iot-gateway/src/main/resources/db/gateway/public/iot_param.sql
zhuangtianxiang 6f4a7a3345 refactor(iot): 重构设备和事件相关代码
- 修改设备和事件的 Mapper、Repository、Service 层代码
- 优化查询接口,改用 DeviceVo 和 EventVo 返回结果
- 移除不必要的关联查询,提高查询效率- 修正部分字段名称和数据类型,使其更加合理
2024-12-12 14:37:08 +08:00

33 lines
710 B
SQL

create table iot_param
(
id bigserial not null
constraint iot_param_name_pk
primary key,
data_type integer,
uint varchar,
type integer,
identifier varchar,
name varchar,
remark varchar
);
comment on table iot_param is '参数';
comment on column iot_param.id is '主键';
comment on column iot_param.data_type is '数据类型';
comment on column iot_param.uint is '单位';
comment on column iot_param.type is '输入输出类型';
comment on column iot_param.identifier is '标识';
comment on column iot_param.name is '名称';
comment on column iot_param.remark is '备注';
alter table iot_param
owner to gitea;