@hedhog/admin 0.46.39 → 0.46.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +960 -960
- package/dist/auth/auth.service.d.ts.map +1 -1
- package/dist/auth/auth.service.js +6 -4
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/auth/consts/body.js +24 -24
- package/dist/emails/templates.d.ts.map +1 -1
- package/dist/emails/templates.js +48 -48
- package/dist/emails/templates.js.map +1 -1
- package/frontend/menu/components/create-panel.tsx.ejs +55 -55
- package/frontend/menu/components/update-panel.tsx.ejs +67 -67
- package/frontend/menu/locales/en/admin.menu.json +11 -11
- package/frontend/menu/locales/pt/admin.menu.json +11 -11
- package/frontend/menu/react-query/handlers.ts.ejs +28 -28
- package/frontend/menu/react-query/requests.ts.ejs +56 -56
- package/frontend/menu-locale/locales/en/admin.menu-locale.json +11 -11
- package/frontend/menu-locale/locales/pt/admin.menu-locale.json +11 -11
- package/frontend/menu-screen/locales/en/admin.menu-screen.json +11 -11
- package/frontend/menu-screen/locales/pt/admin.menu-screen.json +11 -11
- package/frontend/multifactor/components/create-panel.tsx.ejs +55 -55
- package/frontend/multifactor/components/update-panel.tsx.ejs +70 -70
- package/frontend/multifactor/locales/en/admin.multifactor.json +11 -11
- package/frontend/multifactor/locales/pt/admin.multifactor.json +11 -11
- package/frontend/multifactor/react-query/handlers.ts.ejs +28 -28
- package/frontend/multifactor/react-query/requests.ts.ejs +59 -59
- package/frontend/multifactor-locale/locales/en/admin.multifactor-locale.json +11 -11
- package/frontend/multifactor-locale/locales/pt/admin.multifactor-locale.json +11 -11
- package/frontend/screen/components/create-panel.tsx.ejs +55 -55
- package/frontend/screen/components/update-panel.tsx.ejs +67 -67
- package/frontend/screen/locales/en/admin.screen.json +11 -11
- package/frontend/screen/locales/pt/admin.screen.json +11 -11
- package/frontend/screen/react-query/handlers.ts.ejs +28 -28
- package/frontend/screen/react-query/requests.ts.ejs +56 -56
- package/frontend/screen-locale/locales/en/admin.screen-locale.json +11 -11
- package/frontend/screen-locale/locales/pt/admin.screen-locale.json +11 -11
- package/frontend/translation/components/create-panel.tsx.ejs +52 -52
- package/frontend/translation/components/update-panel.tsx.ejs +67 -67
- package/frontend/translation/locales/en/admin.translation.json +11 -11
- package/frontend/translation/locales/pt/admin.translation.json +11 -11
- package/frontend/translation/react-query/handlers.ts.ejs +28 -28
- package/frontend/translation/react-query/requests.ts.ejs +58 -58
- package/frontend/translation-namespace/components/create-panel.tsx.ejs +53 -53
- package/frontend/translation-namespace/components/update-panel.tsx.ejs +70 -70
- package/frontend/translation-namespace/locales/en/admin.translation-namespace.json +11 -11
- package/frontend/translation-namespace/locales/pt/admin.translation-namespace.json +11 -11
- package/frontend/translation-namespace/react-query/handlers.ts.ejs +28 -28
- package/frontend/translation-namespace/react-query/requests.ts.ejs +60 -60
- package/frontend/user/components/create-panel.tsx.ejs +52 -52
- package/frontend/user/components/update-panel.tsx.ejs +64 -64
- package/frontend/user/locales/en/admin.user.json +11 -11
- package/frontend/user/locales/pt/admin.user.json +11 -11
- package/frontend/user/react-query/handlers.ts.ejs +28 -28
- package/frontend/user/react-query/requests.ts.ejs +55 -55
- package/hedhog.yaml +783 -783
- package/package.json +45 -45
- package/src/admin.module.ts +39 -39
- package/src/auth/auth.controller.ts +88 -88
- package/src/auth/auth.module.ts +41 -41
- package/src/auth/auth.service.spec.ts +196 -196
- package/src/auth/auth.service.ts +355 -349
- package/src/auth/consts/body.ts +27 -27
- package/src/auth/dto/change.dto.ts +19 -19
- package/src/auth/dto/email.dto.ts +15 -15
- package/src/auth/dto/forget.dto.ts +6 -6
- package/src/auth/dto/login.dto.ts +21 -21
- package/src/auth/dto/otp.dto.ts +11 -11
- package/src/auth/dto/reset.dto.ts +14 -14
- package/src/auth/enums/multifactor-type.enum.ts +4 -4
- package/src/auth/guards/auth.guard.ts +54 -54
- package/src/auth/types/user.type.ts +8 -8
- package/src/dto/delete.dto.ts +8 -8
- package/src/dto/update-ids.dto.ts +9 -9
- package/src/emails/index.ts +2 -2
- package/src/emails/lib.ts +40 -40
- package/src/emails/templates.ts +62 -60
- package/src/index.ts +20 -20
- package/src/menu/dto/create.dto.ts +25 -25
- package/src/menu/dto/order.dto.ts +8 -8
- package/src/menu/dto/update.dto.ts +19 -19
- package/src/menu/menu.controller.ts +105 -105
- package/src/menu/menu.module.ts +18 -18
- package/src/menu/menu.service.spec.ts +247 -247
- package/src/menu/menu.service.ts +263 -263
- package/src/role/dto/create.dto.ts +7 -7
- package/src/role/dto/update.dto.ts +4 -4
- package/src/role/guards/role.guard.ts +121 -121
- package/src/role/role.controller.ts +126 -126
- package/src/role/role.module.ts +28 -28
- package/src/role/role.service.spec.ts +417 -417
- package/src/role/role.service.ts +289 -289
- package/src/route/dto/create.dto.ts +13 -13
- package/src/route/dto/update.dto.ts +15 -15
- package/src/route/route.controller.ts +91 -91
- package/src/route/route.module.ts +18 -18
- package/src/route/route.service.spec.ts +300 -300
- package/src/route/route.service.ts +164 -164
- package/src/screen/dto/create.dto.ts +11 -11
- package/src/screen/dto/update.dto.ts +19 -19
- package/src/screen/screen.controller.ts +93 -93
- package/src/screen/screen.module.ts +18 -18
- package/src/screen/screen.service.spec.ts +298 -298
- package/src/screen/screen.service.ts +179 -179
- package/src/types/http-method.ts +8 -8
- package/src/user/constants/user.constants.ts +1 -1
- package/src/user/dto/create.dto.ts +24 -24
- package/src/user/dto/update.dto.ts +41 -41
- package/src/user/user.controller.ts +75 -75
- package/src/user/user.module.ts +18 -18
- package/src/user/user.service.spec.ts +294 -294
- package/src/user/user.service.ts +129 -129
- package/tsconfig.lib.json +9 -9
- package/tsconfig.production.json +20 -20
package/hedhog.yaml
CHANGED
@@ -1,783 +1,783 @@
|
|
1
|
-
data:
|
2
|
-
route:
|
3
|
-
- url: /auth/verify
|
4
|
-
method: GET
|
5
|
-
- url: /menu/system
|
6
|
-
method: GET
|
7
|
-
- url: /menu
|
8
|
-
method: GET
|
9
|
-
- url: /menu/:menuId/role
|
10
|
-
method: GET
|
11
|
-
- url: /menu/:menuId/screen
|
12
|
-
method: GET
|
13
|
-
- url: /menu/:menuId/role
|
14
|
-
method: PATCH
|
15
|
-
- url: /menu/:menuId/screen
|
16
|
-
method: PATCH
|
17
|
-
- url: /menu/:menuId
|
18
|
-
method: GET
|
19
|
-
- url: /menu
|
20
|
-
method: POST
|
21
|
-
- url: /menu/:menuId
|
22
|
-
method: PATCH
|
23
|
-
- url: /menu
|
24
|
-
method: DELETE
|
25
|
-
- url: /menu/order
|
26
|
-
method: PATCH
|
27
|
-
- url: /role
|
28
|
-
method: GET
|
29
|
-
- url: /role/:roleId/user
|
30
|
-
method: GET
|
31
|
-
- url: /role/:roleId/menu
|
32
|
-
method: GET
|
33
|
-
- url: /role/:roleId/route
|
34
|
-
method: GET
|
35
|
-
- url: /role/:roleId/screen
|
36
|
-
method: GET
|
37
|
-
- url: /role/:roleId/user
|
38
|
-
method: PATCH
|
39
|
-
- url: /role/:roleId/menu
|
40
|
-
method: PATCH
|
41
|
-
- url: /role/:roleId/route
|
42
|
-
method: PATCH
|
43
|
-
- url: /role/:roleId/screen
|
44
|
-
method: PATCH
|
45
|
-
- url: /role/:roleId
|
46
|
-
method: GET
|
47
|
-
- url: /role
|
48
|
-
method: POST
|
49
|
-
- url: /role/:roleId
|
50
|
-
method: PATCH
|
51
|
-
- url: /role
|
52
|
-
method: DELETE
|
53
|
-
- url: /route
|
54
|
-
method: GET
|
55
|
-
- url: /route/:routeId
|
56
|
-
method: GET
|
57
|
-
- url: /route
|
58
|
-
method: POST
|
59
|
-
- url: /route/:routeId
|
60
|
-
method: PATCH
|
61
|
-
- url: /route
|
62
|
-
method: DELETE
|
63
|
-
- url: /route/:routeId/role
|
64
|
-
method: GET
|
65
|
-
- url: /route/:routeId/role
|
66
|
-
method: PATCH
|
67
|
-
- url: /route/:routeId/screen
|
68
|
-
method: GET
|
69
|
-
- url: /route/:routeId/screen
|
70
|
-
method: PATCH
|
71
|
-
- url: /screen
|
72
|
-
method: GET
|
73
|
-
- url: /screen/:screenId/role
|
74
|
-
method: GET
|
75
|
-
- url: /screen/:screenId/route
|
76
|
-
method: GET
|
77
|
-
- url: /screen/:screenId/role
|
78
|
-
method: PATCH
|
79
|
-
- url: /screen/:screenId/route
|
80
|
-
method: PATCH
|
81
|
-
- url: /screen/:screenId
|
82
|
-
method: GET
|
83
|
-
- url: /screen
|
84
|
-
method: POST
|
85
|
-
- url: /screen/:screenId
|
86
|
-
method: PATCH
|
87
|
-
- url: /screen
|
88
|
-
method: DELETE
|
89
|
-
- url: /user
|
90
|
-
method: GET
|
91
|
-
- url: /user/:userId/role
|
92
|
-
method: GET
|
93
|
-
- url: /user/:userId/role
|
94
|
-
method: PATCH
|
95
|
-
- url: /user/:userId
|
96
|
-
method: GET
|
97
|
-
- url: /user
|
98
|
-
method: POST
|
99
|
-
- url: /user/:userId
|
100
|
-
method: PATCH
|
101
|
-
- url: /user
|
102
|
-
method: DELETE
|
103
|
-
- url: /locale
|
104
|
-
method: GET
|
105
|
-
- url: /locale/:localeId
|
106
|
-
method: GET
|
107
|
-
- url: /locale
|
108
|
-
method: POST
|
109
|
-
- url: /locale
|
110
|
-
method: PUT
|
111
|
-
- url: /locale/:localeId
|
112
|
-
method: PATCH
|
113
|
-
- url: /locale
|
114
|
-
method: DELETE
|
115
|
-
- url: /file
|
116
|
-
method: GET
|
117
|
-
- url: /file/:id
|
118
|
-
method: GET
|
119
|
-
- url: /file/download/:token
|
120
|
-
method: GET
|
121
|
-
- url: /file/download/:id
|
122
|
-
method: PUT
|
123
|
-
- url: /file
|
124
|
-
method: POST
|
125
|
-
- url: /file
|
126
|
-
method: DELETE
|
127
|
-
- url: /translation-namespace
|
128
|
-
method: GET
|
129
|
-
relations: &a1
|
130
|
-
role:
|
131
|
-
- where:
|
132
|
-
slug: admin
|
133
|
-
- url: /translation-namespace
|
134
|
-
method: POST
|
135
|
-
relations: *a1
|
136
|
-
- url: /translation-namespace/:id
|
137
|
-
method: GET
|
138
|
-
relations: *a1
|
139
|
-
- url: /translation-namespace/:id
|
140
|
-
method: PATCH
|
141
|
-
relations: *a1
|
142
|
-
- url: /translation-namespace
|
143
|
-
method: DELETE
|
144
|
-
relations: *a1
|
145
|
-
- url: /translation
|
146
|
-
method: GET
|
147
|
-
relations: &a2
|
148
|
-
role:
|
149
|
-
- where:
|
150
|
-
slug: admin
|
151
|
-
- url: /translation
|
152
|
-
method: POST
|
153
|
-
relations: *a2
|
154
|
-
- url: /translation/:id
|
155
|
-
method: GET
|
156
|
-
relations: *a2
|
157
|
-
- url: /translation/:id
|
158
|
-
method: PATCH
|
159
|
-
relations: *a2
|
160
|
-
- url: /translation
|
161
|
-
method: DELETE
|
162
|
-
relations: *a2
|
163
|
-
- url: /multifactor
|
164
|
-
method: GET
|
165
|
-
relations: &a3
|
166
|
-
role:
|
167
|
-
- where:
|
168
|
-
slug: admin
|
169
|
-
- url: /multifactor
|
170
|
-
method: POST
|
171
|
-
relations: *a3
|
172
|
-
- url: /multifactor/:id
|
173
|
-
method: GET
|
174
|
-
relations: *a3
|
175
|
-
- url: /multifactor/:id
|
176
|
-
method: PATCH
|
177
|
-
relations: *a3
|
178
|
-
- url: /multifactor
|
179
|
-
method: DELETE
|
180
|
-
relations: *a3
|
181
|
-
- url: /user/:id
|
182
|
-
method: GET
|
183
|
-
relations: &a4
|
184
|
-
role:
|
185
|
-
- where:
|
186
|
-
slug: admin
|
187
|
-
- url: /user/:id
|
188
|
-
method: PATCH
|
189
|
-
relations: *a4
|
190
|
-
- url: /screen/:id
|
191
|
-
method: GET
|
192
|
-
relations: &a5
|
193
|
-
role:
|
194
|
-
- where:
|
195
|
-
slug: admin
|
196
|
-
- url: /screen/:id
|
197
|
-
method: PATCH
|
198
|
-
relations: *a5
|
199
|
-
- url: /menu/:id
|
200
|
-
method: GET
|
201
|
-
relations: &a6
|
202
|
-
role:
|
203
|
-
- where:
|
204
|
-
slug: admin
|
205
|
-
- url: /menu/:id
|
206
|
-
method: PATCH
|
207
|
-
relations: *a6
|
208
|
-
- url: /menu-screen
|
209
|
-
method: GET
|
210
|
-
relations: &a7
|
211
|
-
role:
|
212
|
-
- where:
|
213
|
-
slug: admin
|
214
|
-
- url: /menu-screen
|
215
|
-
method: POST
|
216
|
-
relations: *a7
|
217
|
-
- url: /menu-screen/:menu_id
|
218
|
-
method: GET
|
219
|
-
relations: *a7
|
220
|
-
- url: /menu-screen/:menu_id
|
221
|
-
method: PATCH
|
222
|
-
relations: *a7
|
223
|
-
- url: /menu-screen
|
224
|
-
method: DELETE
|
225
|
-
relations: *a7
|
226
|
-
menu:
|
227
|
-
- url: /
|
228
|
-
icon: dashboard
|
229
|
-
name:
|
230
|
-
en: Dashboard
|
231
|
-
pt: Dashboard
|
232
|
-
slug: /
|
233
|
-
- url: /management
|
234
|
-
icon: settings-2
|
235
|
-
name:
|
236
|
-
en: Management
|
237
|
-
pt: Gerenciamento
|
238
|
-
slug: /management
|
239
|
-
- menu_id:
|
240
|
-
where:
|
241
|
-
slug: /management
|
242
|
-
url: /management/user
|
243
|
-
icon: user
|
244
|
-
name:
|
245
|
-
en: User
|
246
|
-
pt: Usuários
|
247
|
-
slug: /management/user
|
248
|
-
- menu_id:
|
249
|
-
where:
|
250
|
-
slug: /management
|
251
|
-
url: /management/role
|
252
|
-
icon: circles
|
253
|
-
name:
|
254
|
-
en: Role
|
255
|
-
pt: Cargos
|
256
|
-
slug: /management/role
|
257
|
-
- menu_id:
|
258
|
-
where:
|
259
|
-
slug: /management
|
260
|
-
url: /management/screen
|
261
|
-
icon: device-tv
|
262
|
-
name:
|
263
|
-
en: Screen
|
264
|
-
pt: Telas
|
265
|
-
slug: /management/screen
|
266
|
-
- menu_id:
|
267
|
-
where:
|
268
|
-
slug: /management
|
269
|
-
url: /management/menu
|
270
|
-
icon: menu
|
271
|
-
name:
|
272
|
-
en: Menu
|
273
|
-
pt: Menu
|
274
|
-
slug: /management/menu
|
275
|
-
- menu_id:
|
276
|
-
where:
|
277
|
-
slug: /management
|
278
|
-
url: /management/route
|
279
|
-
icon: route
|
280
|
-
name:
|
281
|
-
en: Route
|
282
|
-
pt: Rotas
|
283
|
-
slug: /management/route
|
284
|
-
screen:
|
285
|
-
- slug: /management/user
|
286
|
-
icon: user
|
287
|
-
name:
|
288
|
-
en: User
|
289
|
-
pt: Usuários
|
290
|
-
description:
|
291
|
-
en: Manage user in the system.
|
292
|
-
pt: Gerenciar usuários no sistema.
|
293
|
-
relations:
|
294
|
-
route:
|
295
|
-
- where:
|
296
|
-
url:
|
297
|
-
like: /user%
|
298
|
-
- slug: /management/role
|
299
|
-
icon: circles
|
300
|
-
name:
|
301
|
-
en: Role
|
302
|
-
pt: Funções
|
303
|
-
description:
|
304
|
-
en: Manage role assigned to user.
|
305
|
-
pt: Gerenciar funções atribuídas a usuários.
|
306
|
-
relations:
|
307
|
-
route:
|
308
|
-
- where:
|
309
|
-
url:
|
310
|
-
like: /role%
|
311
|
-
- slug: /management/screen
|
312
|
-
icon: device-tv
|
313
|
-
name:
|
314
|
-
en: Screen
|
315
|
-
pt: Telas
|
316
|
-
description:
|
317
|
-
en: Manage the screen available in the system.
|
318
|
-
pt: Gerenciar as telas disponíveis no sistema.
|
319
|
-
relations:
|
320
|
-
route:
|
321
|
-
- where:
|
322
|
-
url:
|
323
|
-
like: /screen%
|
324
|
-
- slug: /management/menu
|
325
|
-
icon: menu
|
326
|
-
name:
|
327
|
-
en: Menu
|
328
|
-
pt: Menu
|
329
|
-
description:
|
330
|
-
en: Manage the menu in the system.
|
331
|
-
pt: Gerenciar os menu no sistema.
|
332
|
-
relations:
|
333
|
-
route:
|
334
|
-
- where:
|
335
|
-
url:
|
336
|
-
like: /menu%
|
337
|
-
- slug: /management/route
|
338
|
-
icon: route
|
339
|
-
name:
|
340
|
-
en: Route
|
341
|
-
pt: Rotas
|
342
|
-
description:
|
343
|
-
en: Manage route for navigation within the system.
|
344
|
-
pt: Gerenciar rotas para navegação dentro do sistema.
|
345
|
-
relations:
|
346
|
-
route:
|
347
|
-
- where:
|
348
|
-
url:
|
349
|
-
like: /route%
|
350
|
-
multifactor:
|
351
|
-
- name:
|
352
|
-
en: Email
|
353
|
-
pt: E-mail
|
354
|
-
slug: email
|
355
|
-
- name:
|
356
|
-
en: Authenticator
|
357
|
-
pt: Autenticador
|
358
|
-
slug: authenticator
|
359
|
-
user:
|
360
|
-
- name: Administrator
|
361
|
-
email: root@hedhog.com
|
362
|
-
password:
|
363
|
-
hash: changeme
|
364
|
-
- name: User
|
365
|
-
email: user@hedhog.com
|
366
|
-
password:
|
367
|
-
hash: changeme
|
368
|
-
role:
|
369
|
-
- slug: admin
|
370
|
-
name:
|
371
|
-
en: Administrator
|
372
|
-
pt: Administrador
|
373
|
-
description:
|
374
|
-
en: System administrator with full access.
|
375
|
-
pt: Administrador do sistema com acesso total.
|
376
|
-
relations:
|
377
|
-
user:
|
378
|
-
- where:
|
379
|
-
email: root@hedhog.com
|
380
|
-
menu:
|
381
|
-
- where:
|
382
|
-
id:
|
383
|
-
gte: 0
|
384
|
-
route:
|
385
|
-
- where:
|
386
|
-
id:
|
387
|
-
gte: 0
|
388
|
-
screen:
|
389
|
-
- where:
|
390
|
-
id:
|
391
|
-
gte: 0
|
392
|
-
- slug: screen-manager
|
393
|
-
name:
|
394
|
-
en: Screen Manager
|
395
|
-
pt: Gerente de Telas
|
396
|
-
description:
|
397
|
-
en: Manage screen in the system.
|
398
|
-
pt: Gerenciar telas no sistema.
|
399
|
-
relations:
|
400
|
-
user:
|
401
|
-
- where:
|
402
|
-
email: user@hedhog.com
|
403
|
-
route:
|
404
|
-
- where:
|
405
|
-
url:
|
406
|
-
like: /screen%
|
407
|
-
menu:
|
408
|
-
- where:
|
409
|
-
slug: /
|
410
|
-
- slug: admin-access
|
411
|
-
name:
|
412
|
-
en: Admin Access
|
413
|
-
pt: Acesso de Administrador
|
414
|
-
description:
|
415
|
-
en: Access to administrative features.
|
416
|
-
pt: Acesso a funcionalidades administrativas.
|
417
|
-
relations:
|
418
|
-
user:
|
419
|
-
- where:
|
420
|
-
email: root@hedhog.com
|
421
|
-
- where:
|
422
|
-
email: user@hedhog.com
|
423
|
-
route:
|
424
|
-
- where:
|
425
|
-
method: GET
|
426
|
-
url:
|
427
|
-
in:
|
428
|
-
- /menu/system
|
429
|
-
- /auth/verify
|
430
|
-
- /setting/group/:slug
|
431
|
-
- /setting/group
|
432
|
-
- where:
|
433
|
-
method: PUT
|
434
|
-
url:
|
435
|
-
in:
|
436
|
-
- /setting/:slug
|
437
|
-
translation_namespace:
|
438
|
-
- name: translation
|
439
|
-
relations:
|
440
|
-
translation:
|
441
|
-
- locale_id:
|
442
|
-
where:
|
443
|
-
code: en
|
444
|
-
name: slogan
|
445
|
-
value: Administration Panel
|
446
|
-
- locale_id:
|
447
|
-
where:
|
448
|
-
code: pt
|
449
|
-
name: slogan
|
450
|
-
value: Painel de Administração
|
451
|
-
- locale_id:
|
452
|
-
where:
|
453
|
-
code: en
|
454
|
-
name: en
|
455
|
-
value: English
|
456
|
-
- locale_id:
|
457
|
-
where:
|
458
|
-
code: en
|
459
|
-
name: pt
|
460
|
-
value: Portuguese
|
461
|
-
- locale_id:
|
462
|
-
where:
|
463
|
-
code: pt
|
464
|
-
name: en
|
465
|
-
value: Inglês
|
466
|
-
- locale_id:
|
467
|
-
where:
|
468
|
-
code: pt
|
469
|
-
name: pt
|
470
|
-
value: Português
|
471
|
-
tables:
|
472
|
-
translation_namespace:
|
473
|
-
columns:
|
474
|
-
- type: pk
|
475
|
-
- name: name
|
476
|
-
- type: created_at
|
477
|
-
- type: updated_at
|
478
|
-
ifNotExists: true
|
479
|
-
translation:
|
480
|
-
columns:
|
481
|
-
- type: pk
|
482
|
-
- name: locale_id
|
483
|
-
type: fk
|
484
|
-
references:
|
485
|
-
table: locale
|
486
|
-
column: id
|
487
|
-
onDelete: CASCADE
|
488
|
-
- name: namespace_id
|
489
|
-
type: fk
|
490
|
-
references:
|
491
|
-
table: translation_namespace
|
492
|
-
column: id
|
493
|
-
onDelete: CASCADE
|
494
|
-
- name: name
|
495
|
-
- name: value
|
496
|
-
- type: created_at
|
497
|
-
- type: updated_at
|
498
|
-
indices:
|
499
|
-
- columns:
|
500
|
-
- locale_id
|
501
|
-
- namespace_id
|
502
|
-
- name
|
503
|
-
isUnique: true
|
504
|
-
ifNotExists: true
|
505
|
-
multifactor:
|
506
|
-
columns:
|
507
|
-
- type: pk
|
508
|
-
- type: slug
|
509
|
-
- type: created_at
|
510
|
-
- type: updated_at
|
511
|
-
ifNotExists: true
|
512
|
-
multifactor_locale:
|
513
|
-
columns:
|
514
|
-
- name: multifactor_id
|
515
|
-
type: fk
|
516
|
-
isPrimary: true
|
517
|
-
references:
|
518
|
-
table: multifactor
|
519
|
-
column: id
|
520
|
-
onDelete: CASCADE
|
521
|
-
- name: locale_id
|
522
|
-
type: fk
|
523
|
-
isPrimary: true
|
524
|
-
references:
|
525
|
-
table: locale
|
526
|
-
column: id
|
527
|
-
onDelete: CASCADE
|
528
|
-
- name: name
|
529
|
-
- type: created_at
|
530
|
-
- type: updated_at
|
531
|
-
ifNotExists: true
|
532
|
-
user:
|
533
|
-
columns:
|
534
|
-
- type: pk
|
535
|
-
- name: multifactor_id
|
536
|
-
type: fk
|
537
|
-
isNullable: true
|
538
|
-
references:
|
539
|
-
table: multifactor
|
540
|
-
column: id
|
541
|
-
onDelete: SET NULL
|
542
|
-
- name: name
|
543
|
-
- name: email
|
544
|
-
isUnique: true
|
545
|
-
- name: password
|
546
|
-
- name: code
|
547
|
-
isNullable: true
|
548
|
-
- type: created_at
|
549
|
-
- type: updated_at
|
550
|
-
ifNotExists: true
|
551
|
-
screen:
|
552
|
-
columns:
|
553
|
-
- type: pk
|
554
|
-
- type: slug
|
555
|
-
- name: icon
|
556
|
-
isNullable: true
|
557
|
-
- type: created_at
|
558
|
-
- type: updated_at
|
559
|
-
ifNotExists: true
|
560
|
-
screen_locale:
|
561
|
-
columns:
|
562
|
-
- name: screen_id
|
563
|
-
type: fk
|
564
|
-
isPrimary: true
|
565
|
-
references:
|
566
|
-
table: screen
|
567
|
-
column: id
|
568
|
-
onDelete: CASCADE
|
569
|
-
- name: locale_id
|
570
|
-
type: fk
|
571
|
-
isPrimary: true
|
572
|
-
references:
|
573
|
-
table: locale
|
574
|
-
column: id
|
575
|
-
onDelete: CASCADE
|
576
|
-
- name: name
|
577
|
-
- name: description
|
578
|
-
- type: created_at
|
579
|
-
- type: updated_at
|
580
|
-
ifNotExists: true
|
581
|
-
menu:
|
582
|
-
columns:
|
583
|
-
- type: pk
|
584
|
-
- name: menu_id
|
585
|
-
type: fk
|
586
|
-
isNullable: true
|
587
|
-
references:
|
588
|
-
table: menu
|
589
|
-
column: id
|
590
|
-
onDelete: CASCADE
|
591
|
-
- type: slug
|
592
|
-
- name: url
|
593
|
-
isNullable: true
|
594
|
-
- type: order
|
595
|
-
- name: icon
|
596
|
-
isNullable: true
|
597
|
-
- type: created_at
|
598
|
-
- type: updated_at
|
599
|
-
ifNotExists: true
|
600
|
-
menu_locale:
|
601
|
-
columns:
|
602
|
-
- name: menu_id
|
603
|
-
type: fk
|
604
|
-
isPrimary: true
|
605
|
-
references:
|
606
|
-
table: menu
|
607
|
-
column: id
|
608
|
-
onDelete: CASCADE
|
609
|
-
- name: locale_id
|
610
|
-
type: fk
|
611
|
-
isPrimary: true
|
612
|
-
references:
|
613
|
-
table: locale
|
614
|
-
column: id
|
615
|
-
onDelete: CASCADE
|
616
|
-
- name: name
|
617
|
-
- type: created_at
|
618
|
-
- type: updated_at
|
619
|
-
ifNotExists: true
|
620
|
-
menu_screen:
|
621
|
-
columns:
|
622
|
-
- name: menu_id
|
623
|
-
type: fk
|
624
|
-
isPrimary: true
|
625
|
-
references:
|
626
|
-
table: menu
|
627
|
-
column: id
|
628
|
-
onDelete: CASCADE
|
629
|
-
- name: screen_id
|
630
|
-
type: fk
|
631
|
-
isPrimary: true
|
632
|
-
references:
|
633
|
-
table: screen
|
634
|
-
column: id
|
635
|
-
onDelete: CASCADE
|
636
|
-
ifNotExists: true
|
637
|
-
route:
|
638
|
-
columns:
|
639
|
-
- type: pk
|
640
|
-
- name: url
|
641
|
-
- name: method
|
642
|
-
type: enum
|
643
|
-
enum:
|
644
|
-
- GET
|
645
|
-
- POST
|
646
|
-
- PATCH
|
647
|
-
- DELETE
|
648
|
-
- PUT
|
649
|
-
- OPTIONS
|
650
|
-
- HEAD
|
651
|
-
- name: description
|
652
|
-
isNullable: true
|
653
|
-
- type: created_at
|
654
|
-
- type: updated_at
|
655
|
-
indices:
|
656
|
-
- columns:
|
657
|
-
- url
|
658
|
-
- method
|
659
|
-
isUnique: true
|
660
|
-
ifNotExists: true
|
661
|
-
role:
|
662
|
-
columns:
|
663
|
-
- type: pk
|
664
|
-
- type: slug
|
665
|
-
- type: created_at
|
666
|
-
- type: updated_at
|
667
|
-
ifNotExists: true
|
668
|
-
role_locale:
|
669
|
-
columns:
|
670
|
-
- name: role_id
|
671
|
-
type: fk
|
672
|
-
isPrimary: true
|
673
|
-
references:
|
674
|
-
table: role
|
675
|
-
column: id
|
676
|
-
onDelete: CASCADE
|
677
|
-
- name: locale_id
|
678
|
-
type: fk
|
679
|
-
isPrimary: true
|
680
|
-
references:
|
681
|
-
table: locale
|
682
|
-
column: id
|
683
|
-
onDelete: CASCADE
|
684
|
-
- name: name
|
685
|
-
- name: description
|
686
|
-
- type: created_at
|
687
|
-
- type: updated_at
|
688
|
-
ifNotExists: true
|
689
|
-
role_menu:
|
690
|
-
columns:
|
691
|
-
- name: role_id
|
692
|
-
type: fk
|
693
|
-
isPrimary: true
|
694
|
-
references:
|
695
|
-
table: role
|
696
|
-
column: id
|
697
|
-
onDelete: CASCADE
|
698
|
-
- name: menu_id
|
699
|
-
type: fk
|
700
|
-
isPrimary: true
|
701
|
-
references:
|
702
|
-
table: menu
|
703
|
-
column: id
|
704
|
-
onDelete: CASCADE
|
705
|
-
- type: created_at
|
706
|
-
- type: updated_at
|
707
|
-
ifNotExists: true
|
708
|
-
route_screen:
|
709
|
-
columns:
|
710
|
-
- name: route_id
|
711
|
-
type: fk
|
712
|
-
isPrimary: true
|
713
|
-
references:
|
714
|
-
table: route
|
715
|
-
column: id
|
716
|
-
onDelete: CASCADE
|
717
|
-
- name: screen_id
|
718
|
-
type: fk
|
719
|
-
isPrimary: true
|
720
|
-
references:
|
721
|
-
table: screen
|
722
|
-
column: id
|
723
|
-
onDelete: CASCADE
|
724
|
-
- type: created_at
|
725
|
-
- type: updated_at
|
726
|
-
ifNotExists: true
|
727
|
-
role_screen:
|
728
|
-
columns:
|
729
|
-
- name: role_id
|
730
|
-
type: fk
|
731
|
-
isPrimary: true
|
732
|
-
references:
|
733
|
-
table: role
|
734
|
-
column: id
|
735
|
-
onDelete: CASCADE
|
736
|
-
- name: screen_id
|
737
|
-
type: fk
|
738
|
-
isPrimary: true
|
739
|
-
references:
|
740
|
-
table: screen
|
741
|
-
column: id
|
742
|
-
onDelete: CASCADE
|
743
|
-
- type: created_at
|
744
|
-
- type: updated_at
|
745
|
-
ifNotExists: true
|
746
|
-
role_user:
|
747
|
-
columns:
|
748
|
-
- name: role_id
|
749
|
-
type: fk
|
750
|
-
isPrimary: true
|
751
|
-
references:
|
752
|
-
table: role
|
753
|
-
column: id
|
754
|
-
onDelete: CASCADE
|
755
|
-
- name: user_id
|
756
|
-
type: fk
|
757
|
-
isPrimary: true
|
758
|
-
references:
|
759
|
-
table: user
|
760
|
-
column: id
|
761
|
-
onDelete: CASCADE
|
762
|
-
- type: created_at
|
763
|
-
- type: updated_at
|
764
|
-
ifNotExists: true
|
765
|
-
role_route:
|
766
|
-
columns:
|
767
|
-
- name: role_id
|
768
|
-
type: fk
|
769
|
-
isPrimary: true
|
770
|
-
references:
|
771
|
-
table: role
|
772
|
-
column: id
|
773
|
-
onDelete: CASCADE
|
774
|
-
- name: route_id
|
775
|
-
type: fk
|
776
|
-
isPrimary: true
|
777
|
-
references:
|
778
|
-
table: route
|
779
|
-
column: id
|
780
|
-
onDelete: CASCADE
|
781
|
-
- type: created_at
|
782
|
-
- type: updated_at
|
783
|
-
ifNotExists: true
|
1
|
+
data:
|
2
|
+
route:
|
3
|
+
- url: /auth/verify
|
4
|
+
method: GET
|
5
|
+
- url: /menu/system
|
6
|
+
method: GET
|
7
|
+
- url: /menu
|
8
|
+
method: GET
|
9
|
+
- url: /menu/:menuId/role
|
10
|
+
method: GET
|
11
|
+
- url: /menu/:menuId/screen
|
12
|
+
method: GET
|
13
|
+
- url: /menu/:menuId/role
|
14
|
+
method: PATCH
|
15
|
+
- url: /menu/:menuId/screen
|
16
|
+
method: PATCH
|
17
|
+
- url: /menu/:menuId
|
18
|
+
method: GET
|
19
|
+
- url: /menu
|
20
|
+
method: POST
|
21
|
+
- url: /menu/:menuId
|
22
|
+
method: PATCH
|
23
|
+
- url: /menu
|
24
|
+
method: DELETE
|
25
|
+
- url: /menu/order
|
26
|
+
method: PATCH
|
27
|
+
- url: /role
|
28
|
+
method: GET
|
29
|
+
- url: /role/:roleId/user
|
30
|
+
method: GET
|
31
|
+
- url: /role/:roleId/menu
|
32
|
+
method: GET
|
33
|
+
- url: /role/:roleId/route
|
34
|
+
method: GET
|
35
|
+
- url: /role/:roleId/screen
|
36
|
+
method: GET
|
37
|
+
- url: /role/:roleId/user
|
38
|
+
method: PATCH
|
39
|
+
- url: /role/:roleId/menu
|
40
|
+
method: PATCH
|
41
|
+
- url: /role/:roleId/route
|
42
|
+
method: PATCH
|
43
|
+
- url: /role/:roleId/screen
|
44
|
+
method: PATCH
|
45
|
+
- url: /role/:roleId
|
46
|
+
method: GET
|
47
|
+
- url: /role
|
48
|
+
method: POST
|
49
|
+
- url: /role/:roleId
|
50
|
+
method: PATCH
|
51
|
+
- url: /role
|
52
|
+
method: DELETE
|
53
|
+
- url: /route
|
54
|
+
method: GET
|
55
|
+
- url: /route/:routeId
|
56
|
+
method: GET
|
57
|
+
- url: /route
|
58
|
+
method: POST
|
59
|
+
- url: /route/:routeId
|
60
|
+
method: PATCH
|
61
|
+
- url: /route
|
62
|
+
method: DELETE
|
63
|
+
- url: /route/:routeId/role
|
64
|
+
method: GET
|
65
|
+
- url: /route/:routeId/role
|
66
|
+
method: PATCH
|
67
|
+
- url: /route/:routeId/screen
|
68
|
+
method: GET
|
69
|
+
- url: /route/:routeId/screen
|
70
|
+
method: PATCH
|
71
|
+
- url: /screen
|
72
|
+
method: GET
|
73
|
+
- url: /screen/:screenId/role
|
74
|
+
method: GET
|
75
|
+
- url: /screen/:screenId/route
|
76
|
+
method: GET
|
77
|
+
- url: /screen/:screenId/role
|
78
|
+
method: PATCH
|
79
|
+
- url: /screen/:screenId/route
|
80
|
+
method: PATCH
|
81
|
+
- url: /screen/:screenId
|
82
|
+
method: GET
|
83
|
+
- url: /screen
|
84
|
+
method: POST
|
85
|
+
- url: /screen/:screenId
|
86
|
+
method: PATCH
|
87
|
+
- url: /screen
|
88
|
+
method: DELETE
|
89
|
+
- url: /user
|
90
|
+
method: GET
|
91
|
+
- url: /user/:userId/role
|
92
|
+
method: GET
|
93
|
+
- url: /user/:userId/role
|
94
|
+
method: PATCH
|
95
|
+
- url: /user/:userId
|
96
|
+
method: GET
|
97
|
+
- url: /user
|
98
|
+
method: POST
|
99
|
+
- url: /user/:userId
|
100
|
+
method: PATCH
|
101
|
+
- url: /user
|
102
|
+
method: DELETE
|
103
|
+
- url: /locale
|
104
|
+
method: GET
|
105
|
+
- url: /locale/:localeId
|
106
|
+
method: GET
|
107
|
+
- url: /locale
|
108
|
+
method: POST
|
109
|
+
- url: /locale
|
110
|
+
method: PUT
|
111
|
+
- url: /locale/:localeId
|
112
|
+
method: PATCH
|
113
|
+
- url: /locale
|
114
|
+
method: DELETE
|
115
|
+
- url: /file
|
116
|
+
method: GET
|
117
|
+
- url: /file/:id
|
118
|
+
method: GET
|
119
|
+
- url: /file/download/:token
|
120
|
+
method: GET
|
121
|
+
- url: /file/download/:id
|
122
|
+
method: PUT
|
123
|
+
- url: /file
|
124
|
+
method: POST
|
125
|
+
- url: /file
|
126
|
+
method: DELETE
|
127
|
+
- url: /translation-namespace
|
128
|
+
method: GET
|
129
|
+
relations: &a1
|
130
|
+
role:
|
131
|
+
- where:
|
132
|
+
slug: admin
|
133
|
+
- url: /translation-namespace
|
134
|
+
method: POST
|
135
|
+
relations: *a1
|
136
|
+
- url: /translation-namespace/:id
|
137
|
+
method: GET
|
138
|
+
relations: *a1
|
139
|
+
- url: /translation-namespace/:id
|
140
|
+
method: PATCH
|
141
|
+
relations: *a1
|
142
|
+
- url: /translation-namespace
|
143
|
+
method: DELETE
|
144
|
+
relations: *a1
|
145
|
+
- url: /translation
|
146
|
+
method: GET
|
147
|
+
relations: &a2
|
148
|
+
role:
|
149
|
+
- where:
|
150
|
+
slug: admin
|
151
|
+
- url: /translation
|
152
|
+
method: POST
|
153
|
+
relations: *a2
|
154
|
+
- url: /translation/:id
|
155
|
+
method: GET
|
156
|
+
relations: *a2
|
157
|
+
- url: /translation/:id
|
158
|
+
method: PATCH
|
159
|
+
relations: *a2
|
160
|
+
- url: /translation
|
161
|
+
method: DELETE
|
162
|
+
relations: *a2
|
163
|
+
- url: /multifactor
|
164
|
+
method: GET
|
165
|
+
relations: &a3
|
166
|
+
role:
|
167
|
+
- where:
|
168
|
+
slug: admin
|
169
|
+
- url: /multifactor
|
170
|
+
method: POST
|
171
|
+
relations: *a3
|
172
|
+
- url: /multifactor/:id
|
173
|
+
method: GET
|
174
|
+
relations: *a3
|
175
|
+
- url: /multifactor/:id
|
176
|
+
method: PATCH
|
177
|
+
relations: *a3
|
178
|
+
- url: /multifactor
|
179
|
+
method: DELETE
|
180
|
+
relations: *a3
|
181
|
+
- url: /user/:id
|
182
|
+
method: GET
|
183
|
+
relations: &a4
|
184
|
+
role:
|
185
|
+
- where:
|
186
|
+
slug: admin
|
187
|
+
- url: /user/:id
|
188
|
+
method: PATCH
|
189
|
+
relations: *a4
|
190
|
+
- url: /screen/:id
|
191
|
+
method: GET
|
192
|
+
relations: &a5
|
193
|
+
role:
|
194
|
+
- where:
|
195
|
+
slug: admin
|
196
|
+
- url: /screen/:id
|
197
|
+
method: PATCH
|
198
|
+
relations: *a5
|
199
|
+
- url: /menu/:id
|
200
|
+
method: GET
|
201
|
+
relations: &a6
|
202
|
+
role:
|
203
|
+
- where:
|
204
|
+
slug: admin
|
205
|
+
- url: /menu/:id
|
206
|
+
method: PATCH
|
207
|
+
relations: *a6
|
208
|
+
- url: /menu-screen
|
209
|
+
method: GET
|
210
|
+
relations: &a7
|
211
|
+
role:
|
212
|
+
- where:
|
213
|
+
slug: admin
|
214
|
+
- url: /menu-screen
|
215
|
+
method: POST
|
216
|
+
relations: *a7
|
217
|
+
- url: /menu-screen/:menu_id
|
218
|
+
method: GET
|
219
|
+
relations: *a7
|
220
|
+
- url: /menu-screen/:menu_id
|
221
|
+
method: PATCH
|
222
|
+
relations: *a7
|
223
|
+
- url: /menu-screen
|
224
|
+
method: DELETE
|
225
|
+
relations: *a7
|
226
|
+
menu:
|
227
|
+
- url: /
|
228
|
+
icon: dashboard
|
229
|
+
name:
|
230
|
+
en: Dashboard
|
231
|
+
pt: Dashboard
|
232
|
+
slug: /
|
233
|
+
- url: /management
|
234
|
+
icon: settings-2
|
235
|
+
name:
|
236
|
+
en: Management
|
237
|
+
pt: Gerenciamento
|
238
|
+
slug: /management
|
239
|
+
- menu_id:
|
240
|
+
where:
|
241
|
+
slug: /management
|
242
|
+
url: /management/user
|
243
|
+
icon: user
|
244
|
+
name:
|
245
|
+
en: User
|
246
|
+
pt: Usuários
|
247
|
+
slug: /management/user
|
248
|
+
- menu_id:
|
249
|
+
where:
|
250
|
+
slug: /management
|
251
|
+
url: /management/role
|
252
|
+
icon: circles
|
253
|
+
name:
|
254
|
+
en: Role
|
255
|
+
pt: Cargos
|
256
|
+
slug: /management/role
|
257
|
+
- menu_id:
|
258
|
+
where:
|
259
|
+
slug: /management
|
260
|
+
url: /management/screen
|
261
|
+
icon: device-tv
|
262
|
+
name:
|
263
|
+
en: Screen
|
264
|
+
pt: Telas
|
265
|
+
slug: /management/screen
|
266
|
+
- menu_id:
|
267
|
+
where:
|
268
|
+
slug: /management
|
269
|
+
url: /management/menu
|
270
|
+
icon: menu
|
271
|
+
name:
|
272
|
+
en: Menu
|
273
|
+
pt: Menu
|
274
|
+
slug: /management/menu
|
275
|
+
- menu_id:
|
276
|
+
where:
|
277
|
+
slug: /management
|
278
|
+
url: /management/route
|
279
|
+
icon: route
|
280
|
+
name:
|
281
|
+
en: Route
|
282
|
+
pt: Rotas
|
283
|
+
slug: /management/route
|
284
|
+
screen:
|
285
|
+
- slug: /management/user
|
286
|
+
icon: user
|
287
|
+
name:
|
288
|
+
en: User
|
289
|
+
pt: Usuários
|
290
|
+
description:
|
291
|
+
en: Manage user in the system.
|
292
|
+
pt: Gerenciar usuários no sistema.
|
293
|
+
relations:
|
294
|
+
route:
|
295
|
+
- where:
|
296
|
+
url:
|
297
|
+
like: /user%
|
298
|
+
- slug: /management/role
|
299
|
+
icon: circles
|
300
|
+
name:
|
301
|
+
en: Role
|
302
|
+
pt: Funções
|
303
|
+
description:
|
304
|
+
en: Manage role assigned to user.
|
305
|
+
pt: Gerenciar funções atribuídas a usuários.
|
306
|
+
relations:
|
307
|
+
route:
|
308
|
+
- where:
|
309
|
+
url:
|
310
|
+
like: /role%
|
311
|
+
- slug: /management/screen
|
312
|
+
icon: device-tv
|
313
|
+
name:
|
314
|
+
en: Screen
|
315
|
+
pt: Telas
|
316
|
+
description:
|
317
|
+
en: Manage the screen available in the system.
|
318
|
+
pt: Gerenciar as telas disponíveis no sistema.
|
319
|
+
relations:
|
320
|
+
route:
|
321
|
+
- where:
|
322
|
+
url:
|
323
|
+
like: /screen%
|
324
|
+
- slug: /management/menu
|
325
|
+
icon: menu
|
326
|
+
name:
|
327
|
+
en: Menu
|
328
|
+
pt: Menu
|
329
|
+
description:
|
330
|
+
en: Manage the menu in the system.
|
331
|
+
pt: Gerenciar os menu no sistema.
|
332
|
+
relations:
|
333
|
+
route:
|
334
|
+
- where:
|
335
|
+
url:
|
336
|
+
like: /menu%
|
337
|
+
- slug: /management/route
|
338
|
+
icon: route
|
339
|
+
name:
|
340
|
+
en: Route
|
341
|
+
pt: Rotas
|
342
|
+
description:
|
343
|
+
en: Manage route for navigation within the system.
|
344
|
+
pt: Gerenciar rotas para navegação dentro do sistema.
|
345
|
+
relations:
|
346
|
+
route:
|
347
|
+
- where:
|
348
|
+
url:
|
349
|
+
like: /route%
|
350
|
+
multifactor:
|
351
|
+
- name:
|
352
|
+
en: Email
|
353
|
+
pt: E-mail
|
354
|
+
slug: email
|
355
|
+
- name:
|
356
|
+
en: Authenticator
|
357
|
+
pt: Autenticador
|
358
|
+
slug: authenticator
|
359
|
+
user:
|
360
|
+
- name: Administrator
|
361
|
+
email: root@hedhog.com
|
362
|
+
password:
|
363
|
+
hash: changeme
|
364
|
+
- name: User
|
365
|
+
email: user@hedhog.com
|
366
|
+
password:
|
367
|
+
hash: changeme
|
368
|
+
role:
|
369
|
+
- slug: admin
|
370
|
+
name:
|
371
|
+
en: Administrator
|
372
|
+
pt: Administrador
|
373
|
+
description:
|
374
|
+
en: System administrator with full access.
|
375
|
+
pt: Administrador do sistema com acesso total.
|
376
|
+
relations:
|
377
|
+
user:
|
378
|
+
- where:
|
379
|
+
email: root@hedhog.com
|
380
|
+
menu:
|
381
|
+
- where:
|
382
|
+
id:
|
383
|
+
gte: 0
|
384
|
+
route:
|
385
|
+
- where:
|
386
|
+
id:
|
387
|
+
gte: 0
|
388
|
+
screen:
|
389
|
+
- where:
|
390
|
+
id:
|
391
|
+
gte: 0
|
392
|
+
- slug: screen-manager
|
393
|
+
name:
|
394
|
+
en: Screen Manager
|
395
|
+
pt: Gerente de Telas
|
396
|
+
description:
|
397
|
+
en: Manage screen in the system.
|
398
|
+
pt: Gerenciar telas no sistema.
|
399
|
+
relations:
|
400
|
+
user:
|
401
|
+
- where:
|
402
|
+
email: user@hedhog.com
|
403
|
+
route:
|
404
|
+
- where:
|
405
|
+
url:
|
406
|
+
like: /screen%
|
407
|
+
menu:
|
408
|
+
- where:
|
409
|
+
slug: /
|
410
|
+
- slug: admin-access
|
411
|
+
name:
|
412
|
+
en: Admin Access
|
413
|
+
pt: Acesso de Administrador
|
414
|
+
description:
|
415
|
+
en: Access to administrative features.
|
416
|
+
pt: Acesso a funcionalidades administrativas.
|
417
|
+
relations:
|
418
|
+
user:
|
419
|
+
- where:
|
420
|
+
email: root@hedhog.com
|
421
|
+
- where:
|
422
|
+
email: user@hedhog.com
|
423
|
+
route:
|
424
|
+
- where:
|
425
|
+
method: GET
|
426
|
+
url:
|
427
|
+
in:
|
428
|
+
- /menu/system
|
429
|
+
- /auth/verify
|
430
|
+
- /setting/group/:slug
|
431
|
+
- /setting/group
|
432
|
+
- where:
|
433
|
+
method: PUT
|
434
|
+
url:
|
435
|
+
in:
|
436
|
+
- /setting/:slug
|
437
|
+
translation_namespace:
|
438
|
+
- name: translation
|
439
|
+
relations:
|
440
|
+
translation:
|
441
|
+
- locale_id:
|
442
|
+
where:
|
443
|
+
code: en
|
444
|
+
name: slogan
|
445
|
+
value: Administration Panel
|
446
|
+
- locale_id:
|
447
|
+
where:
|
448
|
+
code: pt
|
449
|
+
name: slogan
|
450
|
+
value: Painel de Administração
|
451
|
+
- locale_id:
|
452
|
+
where:
|
453
|
+
code: en
|
454
|
+
name: en
|
455
|
+
value: English
|
456
|
+
- locale_id:
|
457
|
+
where:
|
458
|
+
code: en
|
459
|
+
name: pt
|
460
|
+
value: Portuguese
|
461
|
+
- locale_id:
|
462
|
+
where:
|
463
|
+
code: pt
|
464
|
+
name: en
|
465
|
+
value: Inglês
|
466
|
+
- locale_id:
|
467
|
+
where:
|
468
|
+
code: pt
|
469
|
+
name: pt
|
470
|
+
value: Português
|
471
|
+
tables:
|
472
|
+
translation_namespace:
|
473
|
+
columns:
|
474
|
+
- type: pk
|
475
|
+
- name: name
|
476
|
+
- type: created_at
|
477
|
+
- type: updated_at
|
478
|
+
ifNotExists: true
|
479
|
+
translation:
|
480
|
+
columns:
|
481
|
+
- type: pk
|
482
|
+
- name: locale_id
|
483
|
+
type: fk
|
484
|
+
references:
|
485
|
+
table: locale
|
486
|
+
column: id
|
487
|
+
onDelete: CASCADE
|
488
|
+
- name: namespace_id
|
489
|
+
type: fk
|
490
|
+
references:
|
491
|
+
table: translation_namespace
|
492
|
+
column: id
|
493
|
+
onDelete: CASCADE
|
494
|
+
- name: name
|
495
|
+
- name: value
|
496
|
+
- type: created_at
|
497
|
+
- type: updated_at
|
498
|
+
indices:
|
499
|
+
- columns:
|
500
|
+
- locale_id
|
501
|
+
- namespace_id
|
502
|
+
- name
|
503
|
+
isUnique: true
|
504
|
+
ifNotExists: true
|
505
|
+
multifactor:
|
506
|
+
columns:
|
507
|
+
- type: pk
|
508
|
+
- type: slug
|
509
|
+
- type: created_at
|
510
|
+
- type: updated_at
|
511
|
+
ifNotExists: true
|
512
|
+
multifactor_locale:
|
513
|
+
columns:
|
514
|
+
- name: multifactor_id
|
515
|
+
type: fk
|
516
|
+
isPrimary: true
|
517
|
+
references:
|
518
|
+
table: multifactor
|
519
|
+
column: id
|
520
|
+
onDelete: CASCADE
|
521
|
+
- name: locale_id
|
522
|
+
type: fk
|
523
|
+
isPrimary: true
|
524
|
+
references:
|
525
|
+
table: locale
|
526
|
+
column: id
|
527
|
+
onDelete: CASCADE
|
528
|
+
- name: name
|
529
|
+
- type: created_at
|
530
|
+
- type: updated_at
|
531
|
+
ifNotExists: true
|
532
|
+
user:
|
533
|
+
columns:
|
534
|
+
- type: pk
|
535
|
+
- name: multifactor_id
|
536
|
+
type: fk
|
537
|
+
isNullable: true
|
538
|
+
references:
|
539
|
+
table: multifactor
|
540
|
+
column: id
|
541
|
+
onDelete: SET NULL
|
542
|
+
- name: name
|
543
|
+
- name: email
|
544
|
+
isUnique: true
|
545
|
+
- name: password
|
546
|
+
- name: code
|
547
|
+
isNullable: true
|
548
|
+
- type: created_at
|
549
|
+
- type: updated_at
|
550
|
+
ifNotExists: true
|
551
|
+
screen:
|
552
|
+
columns:
|
553
|
+
- type: pk
|
554
|
+
- type: slug
|
555
|
+
- name: icon
|
556
|
+
isNullable: true
|
557
|
+
- type: created_at
|
558
|
+
- type: updated_at
|
559
|
+
ifNotExists: true
|
560
|
+
screen_locale:
|
561
|
+
columns:
|
562
|
+
- name: screen_id
|
563
|
+
type: fk
|
564
|
+
isPrimary: true
|
565
|
+
references:
|
566
|
+
table: screen
|
567
|
+
column: id
|
568
|
+
onDelete: CASCADE
|
569
|
+
- name: locale_id
|
570
|
+
type: fk
|
571
|
+
isPrimary: true
|
572
|
+
references:
|
573
|
+
table: locale
|
574
|
+
column: id
|
575
|
+
onDelete: CASCADE
|
576
|
+
- name: name
|
577
|
+
- name: description
|
578
|
+
- type: created_at
|
579
|
+
- type: updated_at
|
580
|
+
ifNotExists: true
|
581
|
+
menu:
|
582
|
+
columns:
|
583
|
+
- type: pk
|
584
|
+
- name: menu_id
|
585
|
+
type: fk
|
586
|
+
isNullable: true
|
587
|
+
references:
|
588
|
+
table: menu
|
589
|
+
column: id
|
590
|
+
onDelete: CASCADE
|
591
|
+
- type: slug
|
592
|
+
- name: url
|
593
|
+
isNullable: true
|
594
|
+
- type: order
|
595
|
+
- name: icon
|
596
|
+
isNullable: true
|
597
|
+
- type: created_at
|
598
|
+
- type: updated_at
|
599
|
+
ifNotExists: true
|
600
|
+
menu_locale:
|
601
|
+
columns:
|
602
|
+
- name: menu_id
|
603
|
+
type: fk
|
604
|
+
isPrimary: true
|
605
|
+
references:
|
606
|
+
table: menu
|
607
|
+
column: id
|
608
|
+
onDelete: CASCADE
|
609
|
+
- name: locale_id
|
610
|
+
type: fk
|
611
|
+
isPrimary: true
|
612
|
+
references:
|
613
|
+
table: locale
|
614
|
+
column: id
|
615
|
+
onDelete: CASCADE
|
616
|
+
- name: name
|
617
|
+
- type: created_at
|
618
|
+
- type: updated_at
|
619
|
+
ifNotExists: true
|
620
|
+
menu_screen:
|
621
|
+
columns:
|
622
|
+
- name: menu_id
|
623
|
+
type: fk
|
624
|
+
isPrimary: true
|
625
|
+
references:
|
626
|
+
table: menu
|
627
|
+
column: id
|
628
|
+
onDelete: CASCADE
|
629
|
+
- name: screen_id
|
630
|
+
type: fk
|
631
|
+
isPrimary: true
|
632
|
+
references:
|
633
|
+
table: screen
|
634
|
+
column: id
|
635
|
+
onDelete: CASCADE
|
636
|
+
ifNotExists: true
|
637
|
+
route:
|
638
|
+
columns:
|
639
|
+
- type: pk
|
640
|
+
- name: url
|
641
|
+
- name: method
|
642
|
+
type: enum
|
643
|
+
enum:
|
644
|
+
- GET
|
645
|
+
- POST
|
646
|
+
- PATCH
|
647
|
+
- DELETE
|
648
|
+
- PUT
|
649
|
+
- OPTIONS
|
650
|
+
- HEAD
|
651
|
+
- name: description
|
652
|
+
isNullable: true
|
653
|
+
- type: created_at
|
654
|
+
- type: updated_at
|
655
|
+
indices:
|
656
|
+
- columns:
|
657
|
+
- url
|
658
|
+
- method
|
659
|
+
isUnique: true
|
660
|
+
ifNotExists: true
|
661
|
+
role:
|
662
|
+
columns:
|
663
|
+
- type: pk
|
664
|
+
- type: slug
|
665
|
+
- type: created_at
|
666
|
+
- type: updated_at
|
667
|
+
ifNotExists: true
|
668
|
+
role_locale:
|
669
|
+
columns:
|
670
|
+
- name: role_id
|
671
|
+
type: fk
|
672
|
+
isPrimary: true
|
673
|
+
references:
|
674
|
+
table: role
|
675
|
+
column: id
|
676
|
+
onDelete: CASCADE
|
677
|
+
- name: locale_id
|
678
|
+
type: fk
|
679
|
+
isPrimary: true
|
680
|
+
references:
|
681
|
+
table: locale
|
682
|
+
column: id
|
683
|
+
onDelete: CASCADE
|
684
|
+
- name: name
|
685
|
+
- name: description
|
686
|
+
- type: created_at
|
687
|
+
- type: updated_at
|
688
|
+
ifNotExists: true
|
689
|
+
role_menu:
|
690
|
+
columns:
|
691
|
+
- name: role_id
|
692
|
+
type: fk
|
693
|
+
isPrimary: true
|
694
|
+
references:
|
695
|
+
table: role
|
696
|
+
column: id
|
697
|
+
onDelete: CASCADE
|
698
|
+
- name: menu_id
|
699
|
+
type: fk
|
700
|
+
isPrimary: true
|
701
|
+
references:
|
702
|
+
table: menu
|
703
|
+
column: id
|
704
|
+
onDelete: CASCADE
|
705
|
+
- type: created_at
|
706
|
+
- type: updated_at
|
707
|
+
ifNotExists: true
|
708
|
+
route_screen:
|
709
|
+
columns:
|
710
|
+
- name: route_id
|
711
|
+
type: fk
|
712
|
+
isPrimary: true
|
713
|
+
references:
|
714
|
+
table: route
|
715
|
+
column: id
|
716
|
+
onDelete: CASCADE
|
717
|
+
- name: screen_id
|
718
|
+
type: fk
|
719
|
+
isPrimary: true
|
720
|
+
references:
|
721
|
+
table: screen
|
722
|
+
column: id
|
723
|
+
onDelete: CASCADE
|
724
|
+
- type: created_at
|
725
|
+
- type: updated_at
|
726
|
+
ifNotExists: true
|
727
|
+
role_screen:
|
728
|
+
columns:
|
729
|
+
- name: role_id
|
730
|
+
type: fk
|
731
|
+
isPrimary: true
|
732
|
+
references:
|
733
|
+
table: role
|
734
|
+
column: id
|
735
|
+
onDelete: CASCADE
|
736
|
+
- name: screen_id
|
737
|
+
type: fk
|
738
|
+
isPrimary: true
|
739
|
+
references:
|
740
|
+
table: screen
|
741
|
+
column: id
|
742
|
+
onDelete: CASCADE
|
743
|
+
- type: created_at
|
744
|
+
- type: updated_at
|
745
|
+
ifNotExists: true
|
746
|
+
role_user:
|
747
|
+
columns:
|
748
|
+
- name: role_id
|
749
|
+
type: fk
|
750
|
+
isPrimary: true
|
751
|
+
references:
|
752
|
+
table: role
|
753
|
+
column: id
|
754
|
+
onDelete: CASCADE
|
755
|
+
- name: user_id
|
756
|
+
type: fk
|
757
|
+
isPrimary: true
|
758
|
+
references:
|
759
|
+
table: user
|
760
|
+
column: id
|
761
|
+
onDelete: CASCADE
|
762
|
+
- type: created_at
|
763
|
+
- type: updated_at
|
764
|
+
ifNotExists: true
|
765
|
+
role_route:
|
766
|
+
columns:
|
767
|
+
- name: role_id
|
768
|
+
type: fk
|
769
|
+
isPrimary: true
|
770
|
+
references:
|
771
|
+
table: role
|
772
|
+
column: id
|
773
|
+
onDelete: CASCADE
|
774
|
+
- name: route_id
|
775
|
+
type: fk
|
776
|
+
isPrimary: true
|
777
|
+
references:
|
778
|
+
table: route
|
779
|
+
column: id
|
780
|
+
onDelete: CASCADE
|
781
|
+
- type: created_at
|
782
|
+
- type: updated_at
|
783
|
+
ifNotExists: true
|