|
@@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS `adm_cad` (
|
|
`floor_id` varchar(255) NOT NULL COMMENT '楼层ID',
|
|
`floor_id` varchar(255) NOT NULL COMMENT '楼层ID',
|
|
`building_id` varchar(255) NOT NULL COMMENT '建筑ID',
|
|
`building_id` varchar(255) NOT NULL COMMENT '建筑ID',
|
|
`project_id` varchar(255) NOT NULL COMMENT '项目ID',
|
|
`project_id` varchar(255) NOT NULL COMMENT '项目ID',
|
|
- `group_code` varchar(255) NOT NULL COMMENT '集团编码',
|
|
|
|
|
|
+ `group_code` varchar(40) NOT NULL COMMENT '集团编码',
|
|
`creator` varchar(32) NULL DEFAULT NULL COMMENT '创建人',
|
|
`creator` varchar(32) NULL DEFAULT NULL COMMENT '创建人',
|
|
`creation_time` char(14) NULL DEFAULT NULL COMMENT '创建时间',
|
|
`creation_time` char(14) NULL DEFAULT NULL COMMENT '创建时间',
|
|
`modifier` varchar(32) NULL DEFAULT NULL COMMENT '最后修改人',
|
|
`modifier` varchar(32) NULL DEFAULT NULL COMMENT '最后修改人',
|
|
@@ -97,6 +97,7 @@ CREATE TABLE IF NOT EXISTS `adm_file` (
|
|
`ref_info_code` varchar(40) NULL DEFAULT NULL COMMENT '关联的对象信息点code',
|
|
`ref_info_code` varchar(40) NULL DEFAULT NULL COMMENT '关联的对象信息点code',
|
|
`remark` varchar(200) NULL DEFAULT NULL COMMENT '描述',
|
|
`remark` varchar(200) NULL DEFAULT NULL COMMENT '描述',
|
|
`order_num` tinyint(0) NULL DEFAULT NULL COMMENT '文件附件(照片)的排序序号',
|
|
`order_num` tinyint(0) NULL DEFAULT NULL COMMENT '文件附件(照片)的排序序号',
|
|
|
|
+ `group_code` varchar(40) NOT NULL COMMENT '集团编码',
|
|
`project_id` varchar(40) NOT NULL COMMENT '项目id',
|
|
`project_id` varchar(40) NOT NULL COMMENT '项目id',
|
|
`floor_id` varchar(60) NULL DEFAULT NULL COMMENT '楼层id',
|
|
`floor_id` varchar(60) NULL DEFAULT NULL COMMENT '楼层id',
|
|
`building_id` varchar(60) NULL DEFAULT NULL COMMENT '建筑id',
|
|
`building_id` varchar(60) NULL DEFAULT NULL COMMENT '建筑id',
|
|
@@ -206,6 +207,7 @@ CREATE TABLE IF NOT EXISTS `adm_pipe_config` (
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `adm_problem` (
|
|
CREATE TABLE IF NOT EXISTS `adm_problem` (
|
|
`id` varchar(100) NOT NULL,
|
|
`id` varchar(100) NOT NULL,
|
|
|
|
+ `group_code` varchar(40) NOT NULL COMMENT '集团id',
|
|
`project_id` varchar(40) NOT NULL COMMENT '项目id',
|
|
`project_id` varchar(40) NOT NULL COMMENT '项目id',
|
|
`building_id` varchar(60) NOT NULL COMMENT '建筑id',
|
|
`building_id` varchar(60) NOT NULL COMMENT '建筑id',
|
|
`floor_id` varchar(60) NOT NULL COMMENT '问题所在楼层id',
|
|
`floor_id` varchar(60) NOT NULL COMMENT '问题所在楼层id',
|
|
@@ -218,7 +220,8 @@ CREATE TABLE IF NOT EXISTS `adm_problem` (
|
|
`type_code` varchar(20) NOT NULL COMMENT '问题类型编码',
|
|
`type_code` varchar(20) NOT NULL COMMENT '问题类型编码',
|
|
`type_name` varchar(40) NOT NULL COMMENT '问题类型名称',
|
|
`type_name` varchar(40) NOT NULL COMMENT '问题类型名称',
|
|
`info` json NULL COMMENT '问题描述',
|
|
`info` json NULL COMMENT '问题描述',
|
|
- `state` tinyint(0) NOT NULL COMMENT '建筑结构核查任务状态(1:有效;2:已解决)',
|
|
|
|
|
|
+ `status` tinyint(0) NOT NULL COMMENT '建筑结构核查任务状态(1:有效;2:已解决)',
|
|
|
|
+ `remark` varchar(255) DEFAULT NULL COMMENT '备注',
|
|
`creator` varchar(32) NULL DEFAULT NULL COMMENT '创建人',
|
|
`creator` varchar(32) NULL DEFAULT NULL COMMENT '创建人',
|
|
`creation_time` char(14) NULL DEFAULT NULL COMMENT '创建时间',
|
|
`creation_time` char(14) NULL DEFAULT NULL COMMENT '创建时间',
|
|
`modifier` varchar(32) NULL DEFAULT NULL COMMENT '最后修改人',
|
|
`modifier` varchar(32) NULL DEFAULT NULL COMMENT '最后修改人',
|
|
@@ -275,6 +278,7 @@ CREATE TABLE IF NOT EXISTS `adm_qr_code` (
|
|
`floor_id` varchar(60) NOT NULL COMMENT '楼层id',
|
|
`floor_id` varchar(60) NOT NULL COMMENT '楼层id',
|
|
`location` json NOT NULL COMMENT '位置坐标({x:1,y:1,z:1})',
|
|
`location` json NOT NULL COMMENT '位置坐标({x:1,y:1,z:1})',
|
|
`remark` varchar(200) NULL DEFAULT NULL COMMENT '描述信息(临时记录二维码粘贴位置)',
|
|
`remark` varchar(200) NULL DEFAULT NULL COMMENT '描述信息(临时记录二维码粘贴位置)',
|
|
|
|
+ `group_code` varchar(40) NOT NULL COMMENT '集团编码',
|
|
`project_id` varchar(40) NOT NULL COMMENT '项目id',
|
|
`project_id` varchar(40) NOT NULL COMMENT '项目id',
|
|
`building_id` varchar(60) NOT NULL COMMENT '建筑id',
|
|
`building_id` varchar(60) NOT NULL COMMENT '建筑id',
|
|
`creator` varchar(32) NULL DEFAULT NULL COMMENT '创建人',
|
|
`creator` varchar(32) NULL DEFAULT NULL COMMENT '创建人',
|
|
@@ -408,7 +412,7 @@ CREATE TABLE IF NOT EXISTS `adm_model_file` (
|
|
CREATE TABLE IF NOT EXISTS `boss_sku_dict_rel` (
|
|
CREATE TABLE IF NOT EXISTS `boss_sku_dict_rel` (
|
|
`id` varchar(40) COLLATE utf8mb4_general_ci NOT NULL,
|
|
`id` varchar(40) COLLATE utf8mb4_general_ci NOT NULL,
|
|
`sku_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'BOSS:商品编码',
|
|
`sku_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'BOSS:商品编码',
|
|
- `type_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'BDTP:对象类型编码',
|
|
|
|
|
|
+ `class_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'BDTP:对象类型编码',
|
|
`obj_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '对象类型',
|
|
`obj_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '对象类型',
|
|
`creator` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL 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 '创建时间',
|
|
`creation_time` char(14) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建时间',
|
|
@@ -419,19 +423,19 @@ CREATE TABLE IF NOT EXISTS `boss_sku_dict_rel` (
|
|
PRIMARY KEY (`id`)
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='BOSS商品sku与数据字典关系映射表';
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='BOSS商品sku与数据字典关系映射表';
|
|
|
|
|
|
-CREATE TABLE IF NOT EXISTS `boss_project_delivery_plan` (
|
|
|
|
- `id` varchar(40) COLLATE utf8mb4_general_ci NOT NULL,
|
|
|
|
- `project_id` int DEFAULT NULL COMMENT '项目id(BOSS)',
|
|
|
|
- `plan_id` int DEFAULT NULL COMMENT '商品所属计划Id',
|
|
|
|
- `plan_info_id` int NOT NULL COMMENT '验收商品id',
|
|
|
|
- `product_sku_code` varchar(40) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '商品编码',
|
|
|
|
- `product_num` int DEFAULT NULL COMMENT '商品对应的实施数量',
|
|
|
|
- `steward_account` varchar(40) COLLATE utf8mb4_general_ci DEFAULT NULL 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 NOT NULL DEFAULT '1' COMMENT '合法标识',
|
|
|
|
- `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '乐观锁',
|
|
|
|
- PRIMARY KEY (`id`)
|
|
|
|
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci='BOSS项目交付计划';
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS "boss_project_delivery_plan" (
|
|
|
|
+ "id" varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
|
|
|
+ "project_id" int DEFAULT NULL COMMENT '项目id(BOSS)',
|
|
|
|
+ "plan_id" int DEFAULT NULL COMMENT '商品所属计划Id',
|
|
|
|
+ "plan_info_id" int NOT NULL COMMENT '验收商品id',
|
|
|
|
+ "product_sku_code" varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '商品编码',
|
|
|
|
+ "product_num" int DEFAULT NULL COMMENT '商品对应的实施数量',
|
|
|
|
+ "steward_account" varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL 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 NOT NULL DEFAULT '1' COMMENT '合法标识',
|
|
|
|
+ "ts" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '乐观锁',
|
|
|
|
+ PRIMARY KEY ("id")
|
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|