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

70 lines
1.8 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_granular_recipe".
*
* @property int $id
* @property string|null $content 药方内容
* @property int $deployment 调配 1煎煮2外配
* @property int $dosage 剂数
* @property int $consumption 用量
* @property int $usage 用法
* @property int $fufa_id 关联使用时间表
* @property int $is_deepfry 是否浓煎 0否1是
* @property string $gm_id 颗粒药处方的颗粒药表id
* @property float $total_price 价格
* @property string $remark 备注
* @property int $created_at
* @property int $updated_at
*/
class GranularRepice extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_granular_recipe';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['content'], 'string'],
[['deployment', 'dosage', 'consumption', 'usage', 'volume', 'created_at', 'updated_at'], 'integer'],
[['dosage', 'consumption', 'gm_id'], 'required'],
[['total_price'], 'number'],
[['gm_id'], 'string', 'max' => 100],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'content' => 'Content',
'deployment' => 'Deployment',
'dosage' => 'Dosage',
'consumption' => 'Consumption',
'usage' => 'Usage',
'volume' => 'Volume',
'is_deepfry' => 'Is Deepfry',
'gm_id' => 'Gm ID',
'total_price' => 'Total Price',
'remark' => 'Remark',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}