69 lines
1.7 KiB
PHP
69 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_pharmacist_info".
|
|
*
|
|
* @property int $id
|
|
* @property int $su_id 用户id
|
|
* @property string $name 姓名
|
|
* @property string $avatar 头像
|
|
* @property string $mobile 手机号
|
|
* @property string $idcard 身份证号码
|
|
* @property string $store_id 门店id
|
|
* @property int $depart_id 科室id
|
|
* @property int $title_id 职称id
|
|
* @property int $type 身份1中医2西医
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class PharmacistInfo extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_pharmacist_info';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['su_id', 'name', 'mobile', 'idcard', 'store_id', 'title_id','type'], 'required'],
|
|
[['su_id', 'depart_id', 'title_id', 'created_at', 'updated_at'], 'integer'],
|
|
[['name', 'mobile'], 'string', 'max' => 50],
|
|
[['avatar'], 'string', 'max' => 255],
|
|
[['idcard'], 'string', 'max' => 20],
|
|
['store_id','string']
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'su_id' => 'Su ID',
|
|
'name' => 'Name',
|
|
'avatar' => 'Avatar',
|
|
'mobile' => 'Mobile',
|
|
'idcard' => 'Idcard',
|
|
'store_id' => 'Store ID',
|
|
'depart_id' => 'Depart ID',
|
|
'title_id' => 'Title ID',
|
|
'type' => 'Type',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|