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

72 lines
1.9 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_chinese_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 $cm_id 中药处方的中药表id
* @property string $drug_ids 中药药品ids
* @property float $total_price 价格
* @property string $remark 备注
* @property int $created_at
* @property int $updated_at
*/
class ChineseRepice extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_chinese_recipe';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['content'], 'string'],
[['deployment', 'dosage', 'consumption', 'usage', 'volume', 'created_at', 'updated_at'], 'integer'],
[['dosage', 'consumption', 'cm_id'], 'required'],
[['total_price'], 'number'],
[['cm_id','drug_ids'], 'string', 'max' => 500],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'content' => 'Content',
'deployment' => 'Deployment',
'dosage' => 'Dosage',
'consumption' => 'Consumption',
'usage' => 'Usage',
'volume' => 'Volume',
'is_deepfry' => 'Is Deepfry',
'cm_id' => 'Cm ID',
'drug_ids' => '药品ids',
'total_price' => 'Total Price',
'remark' => 'Remark',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}