From 38caaae54eabfa73c78f4c88a86eff1ae081a912 Mon Sep 17 00:00:00 2001 From: chixiao Date: Sat, 15 Jun 2019 23:15:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=83=A8=E9=97=A8sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/sql/mall_admin.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/sql/mall_admin.sql b/docs/sql/mall_admin.sql index b926a053b..abf6cf7ae 100644 --- a/docs/sql/mall_admin.sql +++ b/docs/sql/mall_admin.sql @@ -350,6 +350,21 @@ CREATE TABLE `sms_template` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4; +-- ---------------------------- +-- Table structure for `deptment` +-- ---------------------------- +DROP TABLE IF EXISTS `deptment`; +CREATE TABLE `deptment` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '部门主键id', + `name` varchar(100) COLLATE utf8mb4_bin NOT NULL COMMENT '部门名称', + `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序字段', + `pid` int(11) NOT NULL DEFAULT '0' COMMENT '父级部门id', + `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '删除标记', + PRIMARY KEY (`id`), + UNIQUE KEY `deptment_id_uindex` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; SET FOREIGN_KEY_CHECKS = 1;