|
|
|
@ -67,7 +67,8 @@ create table devices_manage
|
|
|
|
|
is_frequency bit null, -- 是否变频 |
|
|
|
|
device_type bigint null, -- 设备类型id(字典配置) |
|
|
|
|
system_id bigint null, -- 项目类型id |
|
|
|
|
remark nvarchar(255) null, -- 备注 |
|
|
|
|
project_id bigint null, -- 项目类型id |
|
|
|
|
remark nvarchar(255) null, -- 系统id |
|
|
|
|
grade int null -- 保留 |
|
|
|
|
) |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'资产设备管理', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage'; |
|
|
|
@ -86,6 +87,7 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建人', @l
|
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否变频', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'is_frequency'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设备类型id(字典配置)', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'device_type'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目类型id', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'system_id'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统id', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'project_id'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'remark'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数据标识', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'grade'; |
|
|
|
|
|
|
|
|
@ -119,9 +121,10 @@ create table meter_manage (
|
|
|
|
|
gateway_id bigint null, -- 对应网关管理表gateway_manage的id |
|
|
|
|
param_id bigint null, -- 对应参数id |
|
|
|
|
protocol_type bigint null, -- 协议类型(字典表) |
|
|
|
|
communication_type int NULL, -- 通讯方式 |
|
|
|
|
communication_type int NULL, -- 通讯方式(字典表) |
|
|
|
|
remark nvarchar(255) null, -- 备注 |
|
|
|
|
system_id bigint null, -- 项目类型id |
|
|
|
|
system_id bigint null, -- 系统类型id |
|
|
|
|
project_id bigint null, -- 项目类型id |
|
|
|
|
grade int null -- 保留 |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -155,7 +158,8 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'对应参数id
|
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'协议类型(字典表)', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'protocol_id'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'通讯方式', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'communication_type'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'remark'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目类型ID', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'system_id'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目类型ID', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'project_id'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统类型ID', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'system_id'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'保留', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'devices_manage', @level2type=N'Column', @level2name=N'grade'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -175,7 +179,8 @@ CREATE TABLE gateway_manage (
|
|
|
|
|
remark varchar(100) COLLATE Chinese_PRC_CI_AS NULL, |
|
|
|
|
communication_type int NULL, |
|
|
|
|
grade int NULL, |
|
|
|
|
system_id bigint null, -- 项目类型id |
|
|
|
|
system_id bigint null, -- 系统类型id |
|
|
|
|
project_id bigint null, -- 项目类型id |
|
|
|
|
CONSTRAINT pk_gateway_manage PRIMARY KEY (id) |
|
|
|
|
); |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'网关管理', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'gateway_manage'; |
|
|
|
@ -193,7 +198,8 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运营商类
|
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'gateway_manage', @level2type=N'Column', @level2name=N'remark'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'通信类型(字典表)', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'gateway_manage', @level2type=N'Column', @level2name=N'communication_type_id'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'预留字段', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'gateway_manage', @level2type=N'Column', @level2name=N'grade'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目类型id', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'gateway_manage', @level2type=N'Column', @level2name=N'system_id'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统类型id', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'gateway_manage', @level2type=N'Column', @level2name=N'system_id'; |
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目类型id', @level0type=N'Schema', @level0name=N'dbo', @level1type=N'Table', @level1name=N'gateway_manage', @level2type=N'Column', @level2name=N'project_id'; |
|
|
|
|
|
|
|
|
|
-- 设备采集参数表 |
|
|
|
|
create table device_params( |
|
|
|
|