From f4a0d31d8b6bdc944cabc7a53f172bedb0548592 Mon Sep 17 00:00:00 2001 From: paulGao Date: Tue, 24 May 2022 10:15:32 +0800 Subject: [PATCH] improve lilishop.sql --- .gitignore | 1 + init/mysql/lilishop.sql | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a376309 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +init/.DS_Store diff --git a/init/mysql/lilishop.sql b/init/mysql/lilishop.sql index fbc99a0..461f3b9 100644 --- a/init/mysql/lilishop.sql +++ b/init/mysql/lilishop.sql @@ -2327,8 +2327,8 @@ CREATE TABLE `li_department` ( `delete_flag` bit(1) DEFAULT NULL COMMENT '删除标志 true/false 删除/未删除', `update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者', `update_time` datetime(6) DEFAULT NULL COMMENT '更新时间', - `parent_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '父ID', - `sort_order` decimal(10,2) DEFAULT NULL COMMENT '排序值', + `parent_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '0' COMMENT '父ID', + `sort_order` decimal(10,2) DEFAULT 0.00 COMMENT '排序值', `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门名称', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;