| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace addons\Store\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_store_staff_apply".
- *
- * @property int $id ID
- * @property int $mall_id 商城ID
- * @property int $user_id 用户ID
- * @property int $store_id 门店ID
- * @property int $status 状态;1正常,0禁用,-1删除
- * @property int $check_status 审核状态:0:待审核;1:已通过;2:未通过
- * @property string $check_remark 审核备注
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- * @property string $name 姓名
- * @property string $pic 相片
- * @property string $phone 电话
- */
- class StoreStaffApply extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_store_staff_apply';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'user_id', 'store_id', 'status', 'check_status', 'created_at', 'updated_at'], 'integer'],
- [['check_remark', 'pic'], 'string', 'max' => 255],
- [['name'], 'string', 'max' => 50],
- [['phone'], 'string', 'max' => 15],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'user_id' => 'User ID',
- 'store_id' => 'Store ID',
- 'status' => 'Status',
- 'check_status' => 'Check Status',
- 'check_remark' => 'Check Remark',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'name' => 'Name',
- 'pic' => 'Pic',
- 'phone' => 'Phone',
- ];
- }
- public function getStore()
- {
- return $this->hasOne(Store::class, ['id' => 'store_id']);
- }
- }
|