初始化仓库
This commit is contained in:
82
common/modelsgii/UserInquiry.php
Normal file
82
common/modelsgii/UserInquiry.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "yii_user_inquiry".
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $user_id 关联用户
|
||||
* @property int $su_id 问诊的医生id
|
||||
* @property int $up_id 就诊人id
|
||||
* @property string $desc 病情描述
|
||||
* @property string|null $images 检查报告或患者照片
|
||||
* @property int $is_visit 是否就诊 0否1是
|
||||
* @property string $visit_desc 就诊描述
|
||||
* @property string|null $patient_data 就诊人基础信息
|
||||
* @property int $liver_function 肝功能0正常1异常
|
||||
* @property int $renal_function 肾功能0正常1异常
|
||||
* @property int $person_status 个人病史0无1有
|
||||
* @property string $person_history 个人病史
|
||||
* @property int $allergic_status 过敏史0无1有
|
||||
* @property string $allergic_history 过敏史
|
||||
* @property int $family_status 家庭病史0无1有
|
||||
* @property string|null $family_history 家庭病史
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
*/
|
||||
class UserInquiry extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'yii_user_inquiry';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['user_id', 'su_id'], 'required'],
|
||||
[['user_id', 'su_id','up_id', 'is_visit', 'liver_function', 'renal_function', 'person_status', 'allergic_status', 'family_status', 'created_at', 'updated_at'], 'integer'],
|
||||
[['images', 'patient_data'], 'string'],
|
||||
[['desc'], 'string', 'max' => 500],
|
||||
[['visit_desc'], 'string', 'max' => 255],
|
||||
[['person_history', 'allergic_history', 'family_history'], 'string', 'max' => 1000],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'user_id' => 'User ID',
|
||||
'su_id' => 'Su ID',
|
||||
'up_id' => 'Up ID',
|
||||
'desc' => 'Desc',
|
||||
'images' => 'Images',
|
||||
'is_visit' => 'Is Visit',
|
||||
'visit_desc' => 'Visit Desc',
|
||||
'patient_data' => 'Patient Data',
|
||||
'liver_function' => 'Liver Function',
|
||||
'renal_function' => 'Renal Function',
|
||||
'person_status' => 'Person Status',
|
||||
'person_history' => 'Person History',
|
||||
'allergic_status' => 'Allergic Status',
|
||||
'allergic_history' => 'Allergic History',
|
||||
'family_status' => 'Family Status',
|
||||
'family_history' => 'Family History',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user