51 lines
1.6 KiB
PHP
51 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace plugin\admin\app\model;
|
|
|
|
use support\Model;
|
|
|
|
/**
|
|
* OpmDsTestreport 模型
|
|
* 表说明:检测报告表
|
|
* 对应数据表:opm_ds_testreport
|
|
* @property int $id id 主键(非空,主键)
|
|
* @property string $device_code device_code 设备编码唯一标识(非空)
|
|
* @property string $report_code report_code 报告唯一标识
|
|
* @property string $report_year report_year 报告年份
|
|
* @property string $detect_qualify_date detect_qualify_date 报告检测合格日期
|
|
* @property string $detect_inst detect_inst 报告检测机构
|
|
* @property string $detect_report_name detect_report_name 检测报告名称
|
|
* @property string $detect_date detect_date 检测报告检测时间
|
|
* @property string $detect_ret detect_ret 检测报告检测结果
|
|
* @property string $detect_report detect_report 检测报告文件
|
|
* @property int $is_post is_post 是否上传:0否,1已上传(默认值:0)
|
|
* @property int $hospital_id hospital_id 医院ID(非空,默认值:0)
|
|
* @property int $type type 检测报告类型(非空,默认值:0)
|
|
* @property string $created_at created_at
|
|
*/
|
|
class OpmDsTestreport extends Model
|
|
{
|
|
/**
|
|
* 数据表名
|
|
* @var string
|
|
*/
|
|
protected $table = 'opm_ds_testreport';
|
|
|
|
/**
|
|
* 主键字段名
|
|
* @var string
|
|
*/
|
|
protected $pk = 'id';
|
|
|
|
/**
|
|
* 关闭自动时间戳(如需开启请改为 true,需确保表有 create_time/update_time 字段)
|
|
* @var bool
|
|
*/
|
|
protected $autoWriteTimestamp = false;
|
|
|
|
/**
|
|
* 字段严格检查(false=允许操作未定义字段)
|
|
* @var bool
|
|
*/
|
|
protected $strict = false;
|
|
} |