菜单表
drop database if exists `test`;
create database `test`;
use `test`;
drop table if exists t_menu;
create table t_menu(
`id` int NOT NULL AUTO_INCREMENT comment '菜单ID',
`name` varchar(20),
`url` varchar(200),
`icon` varchar(100),
`parent_id` int comment '父菜单ID',
`create_by` int not null,
`create_time` datetime not null,
`update_by` int not null,
`update_time` datetime not null,
`status` int,
`sort` int,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_bin COMMENT = '菜单表';
-- 插入菜单记录
INSERT INTO t_menu (`name`, `url`, `icon`, `parent_id`, `create_by` , `create_time`, `update_by`, `update_time`, `status`, `sort`)
VALUES
('设置', NULL, NULL, NULL, 1 , now(), 1, now(), -1, 1),
('app用户', NULL, NULL, NULL, 1 , now(), 1, now(), -1, 1),
('web用户', NULL, NULL, NULL, 1 , now(), 1, now(), -1, 1),
('角色管理', NULL, NULL, NULL, 1 , now(), 1, now(), -1, 1),
('控制台', NULL, NULL, NULL