This commit is contained in:
zimoyin
2026-04-06 20:48:32 +08:00
parent 76e9f24aa7
commit 13fd9c5f0a
77 changed files with 6034 additions and 42 deletions
+56
View File
@@ -0,0 +1,56 @@
<?php
namespace plugin\admin\app\model;
use support\Model;
/**
* OpmDsData 模型
* 表说明:opm_ds_data 数据表模型
* 对应数据表:opm_ds_data
* @property string $id id(非空,主键)
* @property int $cycle_id cycle_id
* @property string $gateway_sn gateway_sn 网关id
* @property int $sensor_id sensor_id 传感器id
* @property string $name name 传感器sn
* @property string $temperature temperature 温度
* @property string $pressure pressure 压力
* @property int $is_analysis is_analysis 1未解析 0已解析(默认值:1)
* @property string $created_at created_at
* @property string $sensor_time sensor_time
* @property string $sensor_raw_data sensor_raw_data
* @property string $cmd_type cmd_type
* @property int $is_sync is_sync(默认值:1
* @property string $is_tag is_tag 1 已标记(默认值:0
* @property string $mcutemp mcutemp mcu 温度
* @property string $power power 电量
* @property int $is_report is_report(默认值:0
* @property string $sleep_cnt_current sleep_cnt_current
* @property string $sleep_cnt_base sleep_cnt_base
*/
class OpmDsData extends Model
{
/**
* 数据表名
* @var string
*/
protected $table = 'opm_ds_data';
/**
* 主键字段名
* @var string
*/
protected $pk = 'id';
/**
* 关闭自动时间戳(如需开启请改为 true,需确保表有 create_time/update_time 字段)
* @var bool
*/
protected $autoWriteTimestamp = false;
/**
* 字段严格检查(false=允许操作未定义字段)
* @var bool
*/
protected $strict = false;
}