|
@@ -310,28 +310,30 @@ CREATE TABLE IF NOT EXISTS `dt_sync_data` (
|
|
|
PRIMARY KEY (`id`)
|
|
|
) ENGINE=InnoDB ROW_FORMAT=DYNAMIC COMMENT='adm交付数据同步到项目现场';
|
|
|
|
|
|
-CREATE TABLE IF NOT EXISTS `dt_define_type_collect` (
|
|
|
- `id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '1' COMMENT '主键ID',
|
|
|
- `group_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '集团编码',
|
|
|
- `project_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '项目ID',
|
|
|
- `define_type_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '类型ID',
|
|
|
- `code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象类型编码',
|
|
|
- `obj_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象类型',
|
|
|
- `delivery_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '交付类型:0-项目交付 1-现场交付',
|
|
|
- `is_delivery` tinyint(1) DEFAULT NULL COMMENT '是否交付 0-否 1-是',
|
|
|
- `instance_scope` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '交付范围:实例范围',
|
|
|
- `association_relation` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '交付范围:依赖&关联',
|
|
|
- `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '交付范围:备注',
|
|
|
- `creator` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
|
|
|
- `creation_time` char(14) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建时间',
|
|
|
- `modifier` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '最后修改人',
|
|
|
- `modified_time` char(14) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '最后修改时间',
|
|
|
- `valid` tinyint(1) NOT NULL DEFAULT '1' COMMENT '合法标识',
|
|
|
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '乐观锁',
|
|
|
- PRIMARY KEY (`id`) USING BTREE
|
|
|
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='对象类型交付配置表';
|
|
|
+CREATE TABLE IF NOT EXISTS `dt_define_type_delivery` (
|
|
|
+ `id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '1' COMMENT '主键ID',
|
|
|
+ `group_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '集团编码',
|
|
|
+ `project_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '项目ID',
|
|
|
+ `define_type_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '类型ID',
|
|
|
+ `code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象类型编码',
|
|
|
+ `obj_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象类型',
|
|
|
+ `delivery_type` tinyint(1) DEFAULT '0' COMMENT '交付类型:0-项目交付 1-现场交付',
|
|
|
+ `is_delivery` tinyint(1) DEFAULT NULL COMMENT '是否交付 0-否 1-是',
|
|
|
+ `instance_scope` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '交付范围:实例范围',
|
|
|
+ `association_relation` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '交付范围:依赖&关联',
|
|
|
+ `delivery_way` tinyint DEFAULT NULL COMMENT '正逆向交付方式 0-逆向 1-正向 2-不确定',
|
|
|
+ `room_func_types` text COLLATE utf8mb4_general_ci COMMENT '交付主张不确定时,正向时设备所在物业空间的空间功能类型',
|
|
|
+ `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '交付范围:备注',
|
|
|
+ `creator` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
|
|
|
+ `creation_time` char(14) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建时间',
|
|
|
+ `modifier` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '最后修改人',
|
|
|
+ `modified_time` char(14) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '最后修改时间',
|
|
|
+ `valid` tinyint(1) NOT NULL DEFAULT '1' COMMENT '合法标识',
|
|
|
+ `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '乐观锁',
|
|
|
+ PRIMARY KEY (`id`) USING BTREE
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='对象类型交付表';
|
|
|
|
|
|
-CREATE TABLE IF NOT EXISTS `dt_define_info_collect` (
|
|
|
+CREATE TABLE IF NOT EXISTS `dt_define_info_delivery` (
|
|
|
`id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
|
|
`group_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '集团编码',
|
|
|
`project_id` varchar(40) COLLATE utf8mb4_general_ci DEFAULT NULL,
|
|
@@ -342,7 +344,7 @@ CREATE TABLE IF NOT EXISTS `dt_define_info_collect` (
|
|
|
`is_delivery` tinyint DEFAULT '1' COMMENT '是否交付 0-否 1-是',
|
|
|
`key_word` tinyint DEFAULT '0' COMMENT '是否为关键信息点-台账详情使用',
|
|
|
`instance_scope` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '实例范围',
|
|
|
- `data_source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '交付数据来源',
|
|
|
+ `data_from` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '交付数据来源',
|
|
|
`collect_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '现场收集信息',
|
|
|
`remark` text COLLATE utf8mb4_general_ci COMMENT '备注',
|
|
|
`creator` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
|
|
@@ -354,7 +356,7 @@ CREATE TABLE IF NOT EXISTS `dt_define_info_collect` (
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='信息点交付配置表';
|
|
|
|
|
|
-CREATE TABLE IF NOT EXISTS `dt_define_relation_collect` (
|
|
|
+CREATE TABLE IF NOT EXISTS `dt_define_relation_delivery` (
|
|
|
`id` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
|
|
`group_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '集团编码',
|
|
|
`project_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '项目ID',
|
|
@@ -363,7 +365,7 @@ CREATE TABLE IF NOT EXISTS `dt_define_relation_collect` (
|
|
|
`rel_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '边类型编码',
|
|
|
`source_type_codes` json DEFAULT NULL COMMENT '源端对象类型编码',
|
|
|
`end_type_codes` json DEFAULT NULL COMMENT '末端对象类型编码',
|
|
|
- `automatic_flag` tinyint(1) DEFAULT NULL COMMENT '计算方式:0-手动计算 1-自动计算',
|
|
|
+ `delivery_cal_flag` tinyint(1) DEFAULT NULL COMMENT '计算方式:0-手动计算 1-自动计算',
|
|
|
`pipe_use` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '管道用途',
|
|
|
`remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '备注',
|
|
|
`creator` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
|