初始化仓库
This commit is contained in:
62
common/modelsgii/ServiceUser.php
Normal file
62
common/modelsgii/ServiceUser.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "yii_service_user".
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $mobile 手机号
|
||||
* @property string $nickname 昵称
|
||||
* @property int $role 角色1医生2药师3导医4客服
|
||||
* @property int $status 状态0待激活1待审核2已认证3拒绝(需要修改激活资料)
|
||||
* @property int $im_status 客服或者导医的在线状态0下线1上线
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
* @property int $is_delete
|
||||
*/
|
||||
class ServiceUser extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'yii_service_user';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['mobile'], 'required'],
|
||||
[['role', 'status', 'im_status', 'created_at', 'updated_at', 'is_delete'], 'integer'],
|
||||
[['mobile'], 'string', 'max' => 20],
|
||||
[['nickname'], 'string', 'max' => 100],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'mobile' => 'Mobile',
|
||||
'nickname' => 'Nickname',
|
||||
'role' => 'Role',
|
||||
'status' => 'Status',
|
||||
'im_status' => 'Im Status',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
'is_delete' => 'Is Delete',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user