Skip to content

Commit 7fb6ffb

Browse files
authored
fix(表结构): 修复表结构错误 (#21)
* fix(初始化表): 修复表结构错误 * fix(报警表): 新增字段 * fix(修复初始化): 表结构变化
1 parent 94a1517 commit 7fb6ffb

File tree

2 files changed

+172
-154
lines changed

2 files changed

+172
-154
lines changed

mysql8/initdb/01-maintain-init-table.sql

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,15 +1337,31 @@ CREATE TABLE `order_contact_address` (
13371337
INDEX `idx_to_organize_id`(`to_organize_id` ASC) USING BTREE
13381338
) ENGINE = InnoDB AUTO_INCREMENT = 2090 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工单联系地址' ROW_FORMAT = DYNAMIC;
13391339

1340+
-- ----------------------------
1341+
-- Table structure for order_daily_duration
1342+
-- ----------------------------
13401343
-- ----------------------------
13411344
-- Table structure for order_daily_duration
13421345
-- ----------------------------
13431346
DROP TABLE IF EXISTS `order_daily_duration`;
13441347
CREATE TABLE `order_daily_duration` (
1345-
PRIMARY KEY ((id)) USING BTREE,
1346-
INDEX `idx_date`((work_date) ASC) USING BTREE,
1347-
INDEX `idx_month`((work_month) ASC) USING BTREE
1348-
) ENGINE = InnoDB AUTO_INCREMENT = 53199 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日交单工单耗时分析' ROW_FORMAT = DYNAMIC;
1348+
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '工单归档。计算当天归档工单的耗时分析',
1349+
`work_month` varchar(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '月份 yyyy-mm',
1350+
`work_date` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '预约日期 yyyy-mm-dd',
1351+
`order_type` int NOT NULL DEFAULT 0 COMMENT '1安装单 2维修单',
1352+
`num_order` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '当天审核完成单',
1353+
`duration_order` int NOT NULL DEFAULT 0 COMMENT '工单持续时长',
1354+
`duration_assign` int NOT NULL DEFAULT 0 COMMENT '配单耗时, 分钟',
1355+
`duration_accept` int NOT NULL DEFAULT 0 COMMENT '接单耗时, 分钟',
1356+
`duration_done` int NOT NULL DEFAULT 0 COMMENT '服务耗时, 分钟',
1357+
`duration_confirm` int NOT NULL DEFAULT 0 COMMENT '签单耗时, 分钟',
1358+
`is_deleted` int NOT NULL DEFAULT 0 COMMENT '删除位',
1359+
`created_unix` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间戳',
1360+
`updated_unix` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
1361+
PRIMARY KEY (`id`) USING BTREE,
1362+
INDEX `idx_date`(`work_date` ASC) USING BTREE,
1363+
INDEX `idx_month`(`work_month` ASC) USING BTREE
1364+
) ENGINE = InnoDB AUTO_INCREMENT = 53217 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日交单工单耗时分析' ROW_FORMAT = DYNAMIC;
13491365

13501366
-- ----------------------------
13511367
-- Table structure for order_daily_engineer

0 commit comments

Comments
 (0)