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

59 lines
1.3 KiB
PHP

<?php
namespace common\modelsgii;
use admin\components\UI\Form\Text;
use MongoDB\BSON\Timestamp;
/**
* This is the model class for table "yii_hospital_department".
*
* @property int $id
* @property string $author 作者
* @property string $title 资讯标题
* @property string $image 科室图片
* @property Text $intro 介绍大纲
* @property Text $content 详情
* @property Timestamp $created_at
* @property Timestamp $updated_at
*/
class HealthyNews extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_healthy_news';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['author', 'title','image','intro','content'], 'required'],
[['id'], 'integer'],
[['author', 'title','image','intro','content','created_at', 'updated_at'], 'string']
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'author' => '作者',
'title' => '标题',
'image' => '图片',
'intro' => '介绍',
'content' => '详情',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}