| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%share}}".
- *
- * @property integer $id
- * @property integer $user_id
- * @property string $mobile
- * @property string $name
- * @property integer $status
- * @property integer $is_delete
- * @property integer $created_at
- * @property integer $updated_at
- * @property integer $store_id
- * @property string $seller_comments
- * @property integer $level
- */
- class Share extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%share}}';
- }
- /**
- * 删除状态
- */
- CONST SHARE_IS_DELETE = 1;
- CONST SHARE_NOT_DELETE = 0;
- /**
- * 审核状态
- */
- CONST SHARE_NO_AUDIT = 0;
- CONST SHARE_AUDIT_PASS = 1;
- CONST SHARE_AUDIT_FAIL = 2;
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['user_id', 'status', 'store_id'], 'required'],
- [['user_id', 'status', 'is_delete', 'created_at', 'store_id', 'updated_at', 'level'], 'integer'],
- [['mobile', 'name'], 'string', 'max' => 255],
- [['seller_comments'], 'string'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'user_id' => 'User ID',
- 'mobile' => 'Mobile',
- 'name' => 'Name',
- 'status' => '审核状态 0--未审核 1--审核通过 2--审核不通过',
- 'is_delete' => 'Is Delete',
- 'created_at' => 'create time',
- 'updated_at' => 'update time',
- 'store_id' => '商城id',
- 'seller_comments' => '备注',
- 'level' => '等级'
- ];
- }
- }
|