Commit 737baf1f authored by 赵啸非's avatar 赵啸非

添加设备相关信息

parent 78d23419
...@@ -20,3 +20,39 @@ ALTER TABLE mortals_xhx_device ...@@ -20,3 +20,39 @@ ALTER TABLE mortals_xhx_device
ADD COLUMN `onlineTime` datetime DEFAULT NULL COMMENT '最近上线时间' AFTER deviceRemark; ADD COLUMN `onlineTime` datetime DEFAULT NULL COMMENT '最近上线时间' AFTER deviceRemark;
ALTER TABLE mortals_xhx_device ALTER TABLE mortals_xhx_device
ADD COLUMN `offlineTime` datetime DEFAULT NULL COMMENT '最近离线时间' AFTER onlineTime; ADD COLUMN `offlineTime` datetime DEFAULT NULL COMMENT '最近离线时间' AFTER onlineTime;
-- ----------------------------
-- 材料分类表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_datum_category`;
CREATE TABLE mortals_xhx_datum_category(
`id` bigint(20) AUTO_INCREMENT COMMENT '主键ID,主键,自增长',
`categoryId` bigint(20) COMMENT '分类id',
`categoryName` varchar(256) COMMENT '分类名称',
`materialId` bigint(20) COMMENT '材料Id',
`materialName` varchar(256) COMMENT '材料名称',
`sort` int(4) DEFAULT '0' COMMENT '排序字段',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建用户',
`updateUserId` bigint(20) COMMENT '更新用户',
`updateTime` datetime COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='材料分类';
-- ----------------------------
-- 事项材料分类表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_matter_category`;
CREATE TABLE mortals_xhx_matter_category(
`id` bigint(20) AUTO_INCREMENT COMMENT '主键ID,主键,自增长',
`categoryCode` varchar(20) COMMENT '分类编码',
`categoryName` varchar(256) COMMENT '分类名称',
`matterId` bigint(20) COMMENT '事项Id',
`matterName` varchar(256) COMMENT '事项名称',
`sort` int(4) DEFAULT '0' COMMENT '排序字段',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建用户',
`updateUserId` bigint(20) COMMENT '更新用户',
`updateTime` datetime COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='事项材料分类';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment