Files
xk-api-yii/common/modelsgii/oldDb/ServicePackageRecipe.php
2024-12-21 16:35:58 +08:00

51 lines
1.1 KiB
PHP

<?php
namespace common\modelsgii\oldDb;
/**
* 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 $created_at
* @property int $updated_at
*/
class ServicePackageRecipe extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_server_recipe';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['content', 'number','grain_number', 'available_days'], 'required'],
[['number', 'grain_number', 'available_days', 'created_at', 'updated_at'], 'integer'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'content' => 'Content',
'number' => '药品数量',
'wu_id' => '单位 ID',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}