61 lines
1.4 KiB
PHP
61 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use admin\components\UI\Form\Text;
|
|
use MongoDB\BSON\Timestamp;
|
|
|
|
/**
|
|
* This is the model class for table "yii_physical_reserve".
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id 用户id
|
|
* @property int $yard_id 分院id
|
|
* @property int $physical_id 套餐id
|
|
* @property string $day 预约时间
|
|
* @property int $status 预约状态
|
|
* @property int $way 获取报告方式
|
|
* @property Timestamp $created_at
|
|
* @property Timestamp $updated_at
|
|
*/
|
|
class PhysicalReserve extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName(): string
|
|
{
|
|
return 'yii_physical_reserve';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
[['user_id','yard_id','physical_id'], 'required'],
|
|
[['user_id','yard_id','physical_id','status','way'], 'integer'],
|
|
[['day','created_at','updated_at'], 'string']
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels(): array
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => '用户id',
|
|
'yard_id' => '分院id',
|
|
'physical_id' => '体检套餐id',
|
|
'day' => '预约时间',
|
|
'status' => '预约状态',
|
|
'way' => '获取报告的方式',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|