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

95 lines
2.8 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_doctor_info".
*
* @property int $id
* @property int $su_id 用户id
* @property string $avatar 头像
* @property string $name 姓名
* @property string $mobile 手机号
* @property string $idcard 身份证号码
* @property string $store_id 门店id
* @property int $hospital_id 医院id
* @property int $yard_id 院区id
* @property int $depart_id 科室id
* @property int $title_id 职称id
* @property int $identity 身份1中医2西医
* @property string $good_at 擅长
* @property string $intro 简介
* @property string $qr_code 医生码
* @property int $star 是否是明医 0-否1-明星医生
* @property int $average_response 平均回复时间(单位:小时)
* @property int $inquiries 问诊量
* @property float $applause_rate 好评率
* @property float $reception_rate 接诊率
* @property int $grade 医生评分
* @property string $radio 广播
* @property int $created_at
* @property int $updated_at
*/
class DoctorInfo extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_doctor_info';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['su_id', 'hospital_id', 'yard_id', 'depart_id', 'title_id', 'created_at', 'updated_at'], 'integer'],
[['name', 'mobile', 'idcard','identity'], 'required'],
[['avatar'], 'string', 'max' => 255],
[['name'], 'string', 'max' => 50],
[['mobile'], 'string', 'max' => 30],
[['idcard'], 'string', 'max' => 20],
[['store_id'], 'string', 'max' => 100],
[['good_at', 'intro', 'qr_code'], 'string', 'max' => 500],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'su_id' => 'Su ID',
'avatar' => 'Avatar',
'name' => 'Name',
'mobile' => 'Mobile',
'idcard' => 'Idcard',
'store_id' => 'Store ID',
'hospital_id' => 'Hospital ID',
'yard_id' => 'Yard ID',
'depart_id' => 'Depart ID',
'title_id' => 'Title ID',
'identity' => 'Identity',
'good_at' => 'Good At',
'intro' => 'Intro',
'qr_code' => 'Qr Code',
'star' => 'Star',
'average_response' => 'Average Response',
'inquiries' => 'Inquiries',
'applause_rate' => 'Applause Rate',
'reception_rate' => 'Reception Rate',
'grade' => 'Grade',
'radio' => 'Radio',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}