feat(education): add module application shell
This commit is contained in:
8
sql/mysql/education/000-education-rollback.sql
Normal file
8
sql/mysql/education/000-education-rollback.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- =============================================
|
||||
-- Education 模块种子数据回滚
|
||||
-- =============================================
|
||||
|
||||
DELETE FROM `system_menu`
|
||||
WHERE `id` = 6801 AND `permission` = 'education:capability' AND `parent_id` = 6800;
|
||||
DELETE FROM `system_menu`
|
||||
WHERE `id` = 6800 AND `path` = '/education' AND `name` = '教育管理';
|
||||
5
sql/mysql/education/000-education-schema.sql
Normal file
5
sql/mysql/education/000-education-schema.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- =============================================
|
||||
-- Education 模块 DDL
|
||||
-- 当前为应用外壳阶段,无业务表;后续票据在此追加 CREATE TABLE 语句。
|
||||
-- =============================================
|
||||
-- 占位:education 模块当前无业务表
|
||||
15
sql/mysql/education/000-education-seed.sql
Normal file
15
sql/mysql/education/000-education-seed.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- =============================================
|
||||
-- Education 模块种子数据
|
||||
-- 菜单 ID 范围:6800-6899
|
||||
-- 权限标识前缀:education:
|
||||
-- 可重复执行;角色授权由管理员按租户完成
|
||||
-- =============================================
|
||||
|
||||
INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`)
|
||||
SELECT 6800, '教育管理', '', 1, 50, 0, '/education', 'ep:school', NULL, NULL, 0, b'1', b'1', b'1', 'admin', NOW(), 'admin', NOW(), b'0'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `system_menu` WHERE `id` = 6800);
|
||||
|
||||
INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`)
|
||||
SELECT 6801, '能力查询', 'education:capability', 3, 1, 6800, '', '', '', NULL, 0, b'1', b'1', b'1', 'admin', NOW(), 'admin', NOW(), b'0'
|
||||
WHERE EXISTS (SELECT 1 FROM `system_menu` WHERE `id` = 6800 AND `path` = '/education' AND `deleted` = b'0')
|
||||
AND NOT EXISTS (SELECT 1 FROM `system_menu` WHERE `id` = 6801);
|
||||
Reference in New Issue
Block a user