62 lines
1.4 KiB
PHP
62 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii\oldDb;
|
|
|
|
use admin\components\UI\Form\Text;
|
|
use MongoDB\BSON\Timestamp;
|
|
|
|
/**
|
|
* This is the model class for table "yii_physical_package".
|
|
*
|
|
* @property int $id
|
|
* @property string $name 套餐标题
|
|
* @property string $image 科室图片
|
|
* @property double $price 价格
|
|
* @property Text $intro 介绍大纲
|
|
* @property Text $content 项目详情
|
|
* @property Text $service 服务须知
|
|
* @property Timestamp $created_at
|
|
* @property Timestamp $updated_at
|
|
*/
|
|
class PhysicalPackage extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName(): string
|
|
{
|
|
return 'yii_physical_package';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
[['name','price'], 'required'],
|
|
[['price','type'], 'integer'],
|
|
[['name','image','intro','content','service','created_at','updated_at'], 'string']
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels(): array
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'name' => '标题',
|
|
'image' => '图片',
|
|
'price' => '价格',
|
|
'intro' => '介绍',
|
|
'content' => '项目详情',
|
|
'service' => '服务须知',
|
|
'type' => '类型',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|