添加:单表演示后台数据库结构,支持mybatis-flex

This commit is contained in:
dataprince 2023-11-22 22:23:54 +08:00
parent 82f1600d39
commit f34c143499

View File

@ -575,4 +575,45 @@ insert into sys_dict_data values(32, 3, '邮件认证', 'email', 'sys_gran
insert into sys_dict_data values(33, 4, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 1, sysdate(), 1, sysdate(), '小程序认证'); insert into sys_dict_data values(33, 4, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 1, sysdate(), 1, sysdate(), '小程序认证');
insert into sys_dict_data values(34, 5, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 1, sysdate(), 1, sysdate(), '三方登录认证'); insert into sys_dict_data values(34, 5, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 1, sysdate(), 1, sysdate(), '三方登录认证');
CREATE TABLE `mf_student` (
`student_id` BIGINT(19) NOT NULL COMMENT '编号',
`student_name` VARCHAR(30) NULL DEFAULT '' COMMENT '学生名称' COLLATE 'utf8mb4_bin',
`student_age` INT(10) NULL DEFAULT NULL COMMENT '年龄',
`student_hobby` VARCHAR(30) NULL DEFAULT '' COMMENT '爱好0代码 1音乐 2电影' COLLATE 'utf8mb4_bin',
`student_gender` CHAR(1) NULL DEFAULT '1' COMMENT '性别1男 2女 3未知' COLLATE 'utf8mb4_bin',
`student_status` CHAR(1) NULL DEFAULT '0' COMMENT '状态0正常 1停用' COLLATE 'utf8mb4_bin',
`student_birthday` DATETIME NULL DEFAULT NULL COMMENT '生日',
`create_by` BIGINT(19) NOT NULL DEFAULT '0' COMMENT '创建者',
`create_time` DATETIME NULL DEFAULT NULL COMMENT '创建时间',
`update_by` BIGINT(19) NOT NULL DEFAULT '0' COMMENT '更新者',
`update_time` DATETIME NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`student_id`) USING BTREE
)
COMMENT='学生信息单表'
COLLATE='utf8mb4_bin'
ENGINE=InnoDB
;
-- 菜单 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息表', '2018', '1', 'student', 'mf/student/index', 1, 0, 'C', '0', '0', 'mf:student:list', '#', 1, sysdate(), 1, null, '学生信息表菜单');
-- 按钮父菜单ID
SELECT @parentId := LAST_INSERT_ID();
-- 按钮 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息表查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'mf:student:query', '#', 1, sysdate(), 1, null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息表新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'mf:student:add', '#', 1, sysdate(), 1, null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息表修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'mf:student:edit', '#', 1, sysdate(), 1, null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息表删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'mf:student:remove', '#', 1, sysdate(), 1, null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息表导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'mf:student:export', '#', 1, sysdate(), 1, null, '');