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

54 lines
1.2 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "{{%doctor_service}}".
*
* @property int $id
* @property int $su_id 关联服务用户id
* @property int $register_status 是否开启挂号服务0否1是
* @property float $register_price 挂号价格
* @property int $created_at
* @property int $updated_at
*/
class DoctorService extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%doctor_service}}';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['su_id'], 'required'],
[['su_id', 'created_at', 'updated_at','register_status'], 'integer'],
[['register_price'], 'number'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'su_id' => '关联服务用户id',
'register_status' => '是否开通挂号',
'register_price' => '挂号金额',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}