From 3c3f8f5c7310dff8460c828be9cc0fdf4a4fd90b Mon Sep 17 00:00:00 2001 From: buke <1312023945@qq.com> Date: Mon, 28 Oct 2024 16:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=A1=88=E5=89=8D=E9=97=AE=E5=8D=B7?= =?UTF-8?q?=E4=BB=A5=E5=8F=8Adma=E6=B5=81=E7=A8=8B=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1730087026_create_table_dma_process_log.up.sql | 13 +++++++++++++ 1730104566_create_before_dma_question.up.sql | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 1730087026_create_table_dma_process_log.up.sql create mode 100644 1730104566_create_before_dma_question.up.sql diff --git a/1730087026_create_table_dma_process_log.up.sql b/1730087026_create_table_dma_process_log.up.sql new file mode 100644 index 0000000..583800b --- /dev/null +++ b/1730087026_create_table_dma_process_log.up.sql @@ -0,0 +1,13 @@ +CREATE TABLE `ufutx_dma_process_log` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(11) NOT NULL COMMENT '用户id', + `order_id` int(11) DEFAULT NULL COMMENT '订单id', + `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态 0:未完成 1:已完成 2:进行中 3:已回退', + `key_name` varchar(255) DEFAULT NULL COMMENT '步骤唯一标识', + `remark` varchar(255) DEFAULT NULL COMMENT '操作备注', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `user_order_id` (`user_id`,`order_id`) USING BTREE, + KEY `key` (`key_name`(191)) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='dma流程图日志表'; \ No newline at end of file diff --git a/1730104566_create_before_dma_question.up.sql b/1730104566_create_before_dma_question.up.sql new file mode 100644 index 0000000..32ca0e8 --- /dev/null +++ b/1730104566_create_before_dma_question.up.sql @@ -0,0 +1,11 @@ +CREATE TABLE `ufutx_before_dma_question` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(11) NOT NULL, + `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态 0:未审核 1:通过 2:拒绝', + `content` text COMMENT '问卷内容', + `remark` varchar(255) DEFAULT NULL COMMENT '审核备注', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='方案前dma问卷调查表'; \ No newline at end of file