34 lines
877 B
PHP
34 lines
877 B
PHP
<?php
|
|
|
|
namespace app\common\model\doctor;
|
|
|
|
use app\common\model\BaseModel;
|
|
|
|
/**
|
|
* 药品库模型
|
|
*/
|
|
class Medicine extends BaseModel
|
|
{
|
|
protected $name = 'doctor_medicine';
|
|
|
|
// 设置字段信息
|
|
protected $schema = [
|
|
'id' => 'int',
|
|
'name' => 'string',
|
|
'name_pinyin_abbr' => 'string',
|
|
'supplier' => 'string',
|
|
'unit' => 'string',
|
|
'settlement_price' => 'float',
|
|
'retail_price' => 'float',
|
|
'stock' => 'int',
|
|
'image' => 'string',
|
|
'status' => 'int',
|
|
'type' => 'string',
|
|
'gid' => 'string',
|
|
'remark' => 'string',
|
|
'create_time' => 'int',
|
|
'update_time' => 'int',
|
|
'delete_time' => 'int',
|
|
];
|
|
}
|