-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sql
200 lines (187 loc) · 6.61 KB
/
release.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
-- 创建用户
INSERT INTO sgrid.grid_user
(id, user_name, password, create_time, turth_name, last_login_time, user_group_id)
VALUES(1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', NULL, '超管', NULL, NULL);
-- 创建grpc链接 host 需要修改成对应的ip
INSERT INTO sgrid.grid_properties
(id, `key`, value, create_time)
VALUES(1, 'SgridPackageServerHosts', 'server.SgridPackageServer@grpc -h 124.220.19.199 -p 14938', NULL);
INSERT INTO sgrid.grid_properties
(id, `key`, value, create_time)
VALUES(3, 'SgridLogTraceServerHosts', 'server.SgridLogTraceServerHosts@grpc -h 124.220.19.199 -p 15887', NULL);
-- 创建角色
INSERT INTO sgrid.grid_user_role
(id, name, description, create_time)
VALUES(1, '超级管理员', '后台管理,系统管理,菜单管理,网关管理,其他管理', NULL);
INSERT INTO sgrid.grid_user_role
(id, name, description, create_time)
VALUES(4, '普通用户', 'C端用户,面向学生,个人开发者提供FASS,PASS服务', '2024-06-02 10:37:17.445');
-- 创建用户-角色映射
INSERT INTO sgrid.grid_user_to_role
(user_id, role_id)
VALUES(1, 1);
-- 创建团队
INSERT INTO sgrid.grid_user_group
(id, name, description, create_user_id, status, create_time)
VALUES(1, '中控团队', '控制中心团队', 0, 0, '2024-08-26 04:30:27.428');
-- 创建菜单
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(7, '系统管理', 'system', 'system', '', 0);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(8, '用户管理', 'user', 'user', 'devops/system/user_admin', 7);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(10, '角色管理', 'role', 'role', 'devops/system/role_admin', 7);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(11, '菜单管理', 'menu', 'menu', 'devops/system/menu_admin', 7);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(12, '服务管理', 'servant', 'servant', '', 0);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(13, '添加服务组', 'add_group', 'add_group', 'devops/add_group', 12);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(14, '添加服务', 'add_servant', 'add_servant', 'devops/add_servant', 12);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(15, '服务列表', 'servant_admin', 'servant_admin', 'devops/servant_list', 12);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(16, '节点管理', 'grid', 'grid', '', 0);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(17, '添加节点', 'add_node', 'add_node', 'devops/add_node', 16);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(18, '网关管理', 'gateway', 'gateway', '', 0);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(19, '网关配置', 'admin', 'admin', 'devops/gateway_conf', 18);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(20, '属性管理', 'property', 'property', '', 0);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(21, '属性设置', 'set', 'set', 'devops/property_admin', 20);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(22, '更新清单', 'framework_update_list', 'framework_update_list', '', 0);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(23, '更新计划', 'line', 'line', 'devops/version_update_list', 22);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(24, '服务组管理', 'group_admin', 'group_admin', 'devops/group_admin', 12);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(25, '添加计划', 'add_update_plan', 'add_update_plan', 'devops/add_update_plan', 22);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(26, '资源管理', 'assets_admin', 'assets_admin', 'devops/assets_admin', 16);
INSERT INTO sgrid.grid_role_menu
(id, title, `path`, name, component, parent_id)
VALUES(27, '团队管理', 'user_group', 'user_group', 'devops/system/group_admin', 7);
-- 创建角色2菜单
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(0, 12);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(0, 13);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(0, 14);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(0, 15);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(0, 24);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(4, 12);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(4, 13);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(4, 14);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(4, 15);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(4, 24);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(4, 22);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(4, 23);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(4, 25);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 7);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 8);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 10);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 11);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 27);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 12);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 13);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 14);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 15);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 24);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 16);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 17);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 26);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 18);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 19);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 20);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 21);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 22);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 23);
INSERT INTO sgrid.grid_role_to_menu
(role_id, menu_id)
VALUES(1, 25);