新增公司
This commit is contained in:
parent
53f6e98185
commit
b29ee64423
|
|
@ -17,4 +17,52 @@ alter table sys_dept add remark varchar(255) null comment '公司概述';
|
||||||
-- 公司logo
|
-- 公司logo
|
||||||
alter table sys_dept add logo varchar(255) null comment '公司logo';
|
alter table sys_dept add logo varchar(255) null comment '公司logo';
|
||||||
-- 公司用户初始密码
|
-- 公司用户初始密码
|
||||||
alter table sys_dept add init_password varchar(255) null comment '公司用户初始密码';
|
alter table sys_dept add init_password varchar(255) null comment '公司用户初始密码';
|
||||||
|
|
||||||
|
-- 所属公司ID
|
||||||
|
alter table sys_role add company_id bigint null comment '所属公司ID';
|
||||||
|
|
||||||
|
-- 系统模板表
|
||||||
|
create table sys_template
|
||||||
|
(
|
||||||
|
id bigint auto_increment
|
||||||
|
primary key,
|
||||||
|
name varchar(50) not null comment '模板名称',
|
||||||
|
remark varchar(200) null comment '备注'
|
||||||
|
)
|
||||||
|
comment '权限模板表' charset = utf8
|
||||||
|
row_format = DYNAMIC;
|
||||||
|
|
||||||
|
-- 插入菜单默认模板
|
||||||
|
INSERT INTO sys_template (id, name, remark) VALUES (1, 'default_menu_template', '默认公司菜单模板');
|
||||||
|
|
||||||
|
-- 系统模板菜单表
|
||||||
|
create table sys_template_menu
|
||||||
|
(
|
||||||
|
temp_id bigint not null comment '模板ID',
|
||||||
|
menu_id bigint not null comment '菜单ID'
|
||||||
|
)
|
||||||
|
comment '系统模板菜单表' charset = utf8
|
||||||
|
row_format = DYNAMIC;
|
||||||
|
|
||||||
|
-- 插入菜单模板数据
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 100);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 101);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 103);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1007);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1008);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1009);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1010);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1011);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1016);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1017);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1018);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1019);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1000);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1001);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1002);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1003);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1004);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1005);
|
||||||
|
INSERT INTO bns_cloud_smart_site.sys_template_menu (temp_id, menu_id) VALUES (1, 1006);
|
||||||
Loading…
Reference in New Issue