65 lines
1.6 KiB
PHP
65 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_west_recipe".
|
|
*
|
|
* @property int $id
|
|
* @property string $content
|
|
* @property int $number 药品数量
|
|
* @property string|null $instruction 说明书
|
|
* @property int $time_id
|
|
* @property int $type_id
|
|
* @property int $grain_number 每天几粒
|
|
* @property int $available_days 可用天数
|
|
* @property int $f_id 频率
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class WestRecipe extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_west_recipe';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['content', 'number', 'time_id', 'type_id', 'wu_id','grain_number', 'available_days', 'f_id'], 'required'],
|
|
[['number', 'time_id', 'type_id', 'grain_number', 'available_days', 'f_id', 'wu_id', 'created_at', 'updated_at'], 'integer'],
|
|
[['instruction'], 'string'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'content' => 'Content',
|
|
'number' => '药品数量',
|
|
'instruction' => '说明书',
|
|
'time_id' => 'Time ID',
|
|
'type_id' => 'Type ID',
|
|
'wu_id' => '单位 ID',
|
|
'grain_number' => '每天几粒',
|
|
'available_days' => '可用天数',
|
|
'f_id' => '频率',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|