init
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\admin\app\model;
|
||||
|
||||
use plugin\admin\app\model\Base;
|
||||
|
||||
/**
|
||||
* OpmDsWarnRule 模型
|
||||
* 表说明:opm_ds_warn_rule 数据表模型
|
||||
* 对应数据表:opm_ds_warn_rule
|
||||
* @property string $id id(非空,主键)
|
||||
* @property int $hospital_id hospital_id
|
||||
* @property int $device_id device_id
|
||||
* @property int $type type 1温度 2压力 3时间
|
||||
* @property int $level level 1初级 2中级 3高级
|
||||
* @property string $warn_upper_limit warn_upper_limit
|
||||
* @property string $warn_lower_limit warn_lower_limit
|
||||
* @property string $contact contact
|
||||
* @property string $mobile mobile
|
||||
* @property int $notice_type notice_type 1短信 2电话 3微信
|
||||
* @property int $is_open is_open 1开启 2关闭(默认值:1)
|
||||
* @property string $created_at created_at
|
||||
*/
|
||||
class OpmDsWarnRule extends Base
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'opm_ds_warn_rule';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @var string
|
||||
*/
|
||||
protected $pk = 'id';
|
||||
|
||||
/**
|
||||
* 关闭自动时间戳(如需开启请改为 true,需确保表有 create_time/update_time 字段)
|
||||
* @var bool
|
||||
*/
|
||||
protected $autoWriteTimestamp = false;
|
||||
|
||||
/**
|
||||
* 字段严格检查(false=允许操作未定义字段)
|
||||
* @var bool
|
||||
*/
|
||||
protected $strict = false;
|
||||
}
|
||||
Reference in New Issue
Block a user