61 lines
1.6 KiB
PHP
61 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use admin\components\UI\Form\Text;
|
|
use JetBrains\PhpStorm\ArrayShape;
|
|
use MongoDB\BSON\Timestamp;
|
|
|
|
/**
|
|
* This is the model class for table "yii_hospital_department_intro".
|
|
*
|
|
* @property int $id
|
|
* @property int $yard_id 医院id
|
|
* @property int $department_id 科室id
|
|
* @property string $image 科室图片
|
|
* @property Text $intro 科室介绍大纲
|
|
* @property Text $content 科室详情
|
|
* @property Timestamp $created_at
|
|
* @property Timestamp $updated_at
|
|
*/
|
|
class HospitalDepartmentIntro extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName(): string
|
|
{
|
|
return 'yii_hospital_department_intro';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
[['yard_id', 'department_id'], 'required'],
|
|
[['hospital_id', 'department_id'], 'integer'],
|
|
[['created_at', 'updated_at'], 'string']
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
#[ArrayShape(['id' => "string", 'yard_id' => "string", 'department_id' => "string", 'image' => "string", 'intro' => "string", 'content' => "string", 'created_at' => "string", 'updated_at' => "string"])]
|
|
public function attributeLabels(): array
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'yard_id' => '医院id',
|
|
'department_id' => '科室id',
|
|
'image' => '科室图片',
|
|
'intro' => '介绍',
|
|
'content' => '详情',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|