Files
zimoyin 13fd9c5f0a init
2026-04-06 20:48:32 +08:00

56 lines
1.6 KiB
PHP
Raw Permalink 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;
/**
* 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;
}