Files
dsserver/plugin/admin/app/model/OpmDsRawData.php
T
zimoyin 13fd9c5f0a init
2026-04-06 20:48:32 +08:00

54 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace plugin\admin\app\model;
use support\Model;
/**
* OpmDsRawData 模型
* 表说明:opm_ds_raw_data 数据表模型
* 对应数据表:opm_ds_raw_data
* @property string $id id(非空,主键)
* @property string $raw_data raw_data
* @property string $link link
* @property int $is_analysis is_analysis(默认值:1
* @property string $created_at created_at
* @property string $cmd_type cmd_type
* @property string $sensor_time_seq sensor_time_seq
* @property string $sensor_sn sensor_sn
* @property string $gateway_sn gateway_sn 网关SN
* @property string $device_sn device_sn 设备SN
* @property string $msg_data msg_data 主要报文
* @property string $is_duplicate is_duplicate 是否重复 0 第0条 1 第1条 2 第2条(默认值:0)
* @property int $is_decode is_decode 是否解算 0 未解算 1 raw表已解算 2 info表已解算(默认值:0)
* @property int $data_length data_length raw_data长度
* @property string $cmd_type2 cmd_type2 报文命令
* @property int $point_count point_count 数据点数
* @property int $duplicate_count duplicate_count 重复次数
*/
class OpmDsRawData extends Model
{
/**
* 数据表名
* @var string
*/
protected $table = 'opm_ds_raw_data';
/**
* 主键字段名
* @var string
*/
protected $pk = 'id';
/**
* 关闭自动时间戳(如需开启请改为 true,需确保表有 create_time/update_time 字段)
* @var bool
*/
protected $autoWriteTimestamp = false;
/**
* 字段严格检查(false=允许操作未定义字段)
* @var bool
*/
protected $strict = false;
}