58 lines
1.3 KiB
PHP
58 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "{{%pharmacist_identity}}".
|
|
*
|
|
* @property int $id
|
|
* @property int $su_id 关联医生
|
|
* @property string $card_up 身份证正面
|
|
* @property string $card_down 身份证反面
|
|
* @property int $sign_type 签章类型1电子2手写
|
|
* @property string $sign_image 签章图片
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class PharmacistIdentity extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return '{{%pharmacist_identity}}';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['su_id'], 'required'],
|
|
[['su_id', 'sign_type', 'created_at', 'updated_at'], 'integer'],
|
|
[['card_up', 'card_down', 'sign_image'], 'string'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'su_id' => '关联医生',
|
|
'card_up' => '身份证正面',
|
|
'card_down' => '身份证反面',
|
|
'sign_type' => '签章类型1电子2手写',
|
|
'sign_image' => '签章图片',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|