56 lines
1.2 KiB
PHP
56 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_examine_log".
|
|
*
|
|
* @property int $id
|
|
* @property int $prescription_id 处方id
|
|
* @property int $pharmacist_id 药师id
|
|
* @property int $examine_status 审核状态
|
|
* @property string $reject_reason 决绝原因
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class ExamineLog extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_examine_log';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['prescription_id', 'pharmacist_id', 'examine_status', 'created_at', 'updated_at'], 'integer'],
|
|
[['reject_reason'], 'string'],
|
|
[['created_at', 'updated_at'], 'required'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'prescription_id' => '处方id',
|
|
'pharmacist_id' => '药师id',
|
|
'examine_status' => '审核状态',
|
|
'reject_reason' => '拒绝原因',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|