Files
xk-api-yii/common/modelsgii/DoctorIdentity.php
2024-09-19 11:32:39 +08:00

60 lines
1.4 KiB
PHP

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