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

58 lines
1.3 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_doctor_notice".
*
* @property int $id
* @property int $su_id 医生id
* @property int $close_notice 停诊公告 0关闭1开启
* @property string|null $content 公告内容
* @property int $start_time
* @property int $end_time
* @property int $created_at
* @property int $updated_at
*/
class DoctorNotice extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_doctor_notice';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['su_id', 'close_notice'], 'required'],
[['su_id', 'close_notice', 'start_time', 'end_time', 'created_at', 'updated_at'], 'integer'],
[['content'], 'string'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'su_id' => '医生id',
'close_notice' => '停诊公告 0关闭1开启',
'content' => '公告内容',
'start_time' => 'Start Time',
'end_time' => 'End Time',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}