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

69 lines
1.7 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_lead_info".
*
* @property int $id
* @property int $su_id
* @property string $name 姓名
* @property string $avatar 头像
* @property string $mobile 手机号
* @property string $idcard 身份证号码
* @property int $hospital_id 医院id
* @property int $depart_id 科室id
* @property string $card_up 身份证正面
* @property string $card_down 身份证反面
* @property int $created_at
* @property int $updated_at
*/
class LeadInfo extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_lead_info';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['su_id', 'name', 'mobile', 'idcard', 'hospital_id', 'depart_id'], 'required'],
[['su_id', 'hospital_id', 'depart_id', 'created_at', 'updated_at'], 'integer'],
[['name'], 'string', 'max' => 50],
[['avatar', 'card_up', 'card_down'], 'string', 'max' => 255],
[['mobile'], 'string', 'max' => 30],
[['idcard'], 'string', 'max' => 20],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'su_id' => 'Su ID',
'name' => 'Name',
'avatar' => 'Avatar',
'mobile' => 'Mobile',
'idcard' => 'Idcard',
'hospital_id' => 'Hospital ID',
'depart_id' => 'Depart ID',
'card_up' => 'Card Up',
'card_down' => 'Card Down',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}