@hedhog/admin 0.0.101 → 0.0.103

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"locale.service.d.ts","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQ/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,aAAa;IAKtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IANpC,OAAO,CAAC,KAAK,CAAW;gBAIL,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE;IA0B1B,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAiEhE,WAAW,CAAC,MAAM,EAAE,MAAM;;;;;IAWpB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAwCrD,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IA0DnD,SAAS,CAAC,IAAI,EAAE,MAAM;IAStB,OAAO,CAAC,SAAS,EAAE,MAAM;IAMzB,MAAM,CAAC,IAAI,EAAE,SAAS;IAMtB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IAOpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;IAgB/B,OAAO,CAAC,wBAAwB;IAS1B,sBAAsB,CAAC,CAAC,EAC5B,SAAS,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;IAMtB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IAOpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;IAgB/B,OAAO,CAAC,wBAAwB;IAM1B,sBAAsB,CAAC,CAAC,EAC5B,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA+C3B,sBAAsB,CAAC,CAAC,SAAS,GAAG,EACxC,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAoClC"}
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LocaleService = void 0;
16
16
  const pagination_1 = require("@hedhog/pagination");
17
17
  const prisma_1 = require("@hedhog/prisma");
18
- const utils_1 = require("@hedhog/utils");
19
18
  const common_1 = require("@nestjs/common");
20
19
  let LocaleService = class LocaleService {
21
20
  constructor(prismaService, paginationService) {
@@ -215,8 +214,7 @@ let LocaleService = class LocaleService {
215
214
  }
216
215
  getTableNameTranslations(modelName) {
217
216
  const modelNames = modelName.split('_');
218
- modelNames[modelNames.length - 1] = (0, utils_1.pluralToSingular)(modelNames[modelNames.length - 1]);
219
- modelNames.push('translations');
217
+ modelNames.push('locale');
220
218
  return modelNames.join('_');
221
219
  }
222
220
  async createModelWithLocales(modelName, foreginKeyName, data, locales) {
@@ -1 +1 @@
1
- {"version":3,"file":"locale.service.js","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,yCAAiD;AACjD,2CAKwB;AAMjB,IAAM,aAAa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U,CAAC,CAAC;YAEhD,MAAM,IAAI,GAAQ,EAAE,CAAC;YAErB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;gBACnD,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC;YACvC,CAAC;YAED,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CACvE;gBACE,KAAK,EAAE;oBACL,CAAC,GAAG,cAAc,YAAY,CAAC,EAAE;wBAC/B,CAAC,cAAc,CAAC,EAAE,EAAE;wBACpB,SAAS,EAAE,MAAM,CAAC,EAAE;qBACrB;iBACF;gBACD,MAAM,kBACJ,CAAC,cAAc,CAAC,EAAE,EAAE,EACpB,SAAS,EAAE,MAAM,CAAC,EAAE,IACjB,IAAI,CACR;gBACD,MAAM,oBACD,IAAI,CACR;aACF,CACF,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC;YAC1C,KAAK,EAAE,EAAE,EAAE,EAAE;YACb,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAhWY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAiB,CAAC,CAAC,CAAA;qCADZ,sBAAa;QAET,8BAAiB;GAP5C,aAAa,CAgWzB"}
package/hedhog.yaml CHANGED
@@ -1,138 +1,138 @@
1
1
  data:
2
- routes:
2
+ route:
3
3
  - url: /auth/verify
4
4
  method: GET
5
- - url: /menus/system
5
+ - url: /menu/system
6
6
  method: GET
7
- - url: /menus
7
+ - url: /menu
8
8
  method: GET
9
- - url: /menus/:menuId/roles
9
+ - url: /menu/:menuId/role
10
10
  method: GET
11
- - url: /menus/:menuId/screens
11
+ - url: /menu/:menuId/screen
12
12
  method: GET
13
- - url: /menus/:menuId/roles
13
+ - url: /menu/:menuId/role
14
14
  method: PATCH
15
- - url: /menus/:menuId/screens
15
+ - url: /menu/:menuId/screen
16
16
  method: PATCH
17
- - url: /menus/:menuId
17
+ - url: /menu/:menuId
18
18
  method: GET
19
- - url: /menus
19
+ - url: /menu
20
20
  method: POST
21
- - url: /menus/:menuId
21
+ - url: /menu/:menuId
22
22
  method: PATCH
23
- - url: /menus
23
+ - url: /menu
24
24
  method: DELETE
25
- - url: /menus/order
25
+ - url: /menu/order
26
26
  method: PATCH
27
- - url: /roles
27
+ - url: /role
28
28
  method: GET
29
- - url: /roles/:roleId/users
29
+ - url: /role/:roleId/user
30
30
  method: GET
31
- - url: /roles/:roleId/menus
31
+ - url: /role/:roleId/menu
32
32
  method: GET
33
- - url: /roles/:roleId/routes
33
+ - url: /role/:roleId/route
34
34
  method: GET
35
- - url: /roles/:roleId/screens
35
+ - url: /role/:roleId/screen
36
36
  method: GET
37
- - url: /roles/:roleId/users
37
+ - url: /role/:roleId/user
38
38
  method: PATCH
39
- - url: /roles/:roleId/menus
39
+ - url: /role/:roleId/menu
40
40
  method: PATCH
41
- - url: /roles/:roleId/routes
41
+ - url: /role/:roleId/route
42
42
  method: PATCH
43
- - url: /roles/:roleId/screens
43
+ - url: /role/:roleId/screen
44
44
  method: PATCH
45
- - url: /roles/:roleId
45
+ - url: /role/:roleId
46
46
  method: GET
47
- - url: /roles
47
+ - url: /role
48
48
  method: POST
49
- - url: /roles/:roleId
49
+ - url: /role/:roleId
50
50
  method: PATCH
51
- - url: /roles
51
+ - url: /role
52
52
  method: DELETE
53
- - url: /routes
53
+ - url: /route
54
54
  method: GET
55
- - url: /routes/:routeId
55
+ - url: /route/:routeId
56
56
  method: GET
57
- - url: /routes
57
+ - url: /route
58
58
  method: POST
59
- - url: /routes/:routeId
59
+ - url: /route/:routeId
60
60
  method: PATCH
61
- - url: /routes
61
+ - url: /route
62
62
  method: DELETE
63
- - url: /routes/:routeId/roles
63
+ - url: /route/:routeId/role
64
64
  method: GET
65
- - url: /routes/:routeId/roles
65
+ - url: /route/:routeId/role
66
66
  method: PATCH
67
- - url: /routes/:routeId/screens
67
+ - url: /route/:routeId/screen
68
68
  method: GET
69
- - url: /routes/:routeId/screens
69
+ - url: /route/:routeId/screen
70
70
  method: PATCH
71
- - url: /screens
71
+ - url: /screen
72
72
  method: GET
73
- - url: /screens/:screenId/roles
73
+ - url: /screen/:screenId/role
74
74
  method: GET
75
- - url: /screens/:screenId/routes
75
+ - url: /screen/:screenId/route
76
76
  method: GET
77
- - url: /screens/:screenId/roles
77
+ - url: /screen/:screenId/role
78
78
  method: PATCH
79
- - url: /screens/:screenId/routes
79
+ - url: /screen/:screenId/route
80
80
  method: PATCH
81
- - url: /screens/:screenId
81
+ - url: /screen/:screenId
82
82
  method: GET
83
- - url: /screens
83
+ - url: /screen
84
84
  method: POST
85
- - url: /screens/:screenId
85
+ - url: /screen/:screenId
86
86
  method: PATCH
87
- - url: /screens
87
+ - url: /screen
88
88
  method: DELETE
89
- - url: /settings
89
+ - url: /setting
90
90
  method: GET
91
- - url: /settings/groups/:slug
91
+ - url: /setting/group/:slug
92
92
  method: GET
93
- - url: /settings/groups
93
+ - url: /setting/group
94
94
  method: GET
95
- - url: /settings/:settingId
95
+ - url: /setting/:settingId
96
96
  method: GET
97
- - url: /settings
97
+ - url: /setting
98
98
  method: POST
99
- - url: /settings
99
+ - url: /setting
100
100
  method: PUT
101
- - url: /settings/:slug
101
+ - url: /setting/:slug
102
102
  method: PUT
103
- - url: /settings/users/:slug
103
+ - url: /setting/user/:slug
104
104
  method: PUT
105
- - url: /settings/:settingId
105
+ - url: /setting/:settingId
106
106
  method: PATCH
107
- - url: /settings
107
+ - url: /setting
108
108
  method: DELETE
109
- - url: /users
109
+ - url: /user
110
110
  method: GET
111
- - url: /users/:userId/roles
111
+ - url: /user/:userId/role
112
112
  method: GET
113
- - url: /users/:userId/roles
113
+ - url: /user/:userId/role
114
114
  method: PATCH
115
- - url: /users/:userId
115
+ - url: /user/:userId
116
116
  method: GET
117
- - url: /users
117
+ - url: /user
118
118
  method: POST
119
- - url: /users/:userId
119
+ - url: /user/:userId
120
120
  method: PATCH
121
- - url: /users
121
+ - url: /user
122
122
  method: DELETE
123
- - url: /locales
123
+ - url: /locale
124
124
  method: GET
125
- - url: /locales/:localeId
125
+ - url: /locale/:localeId
126
126
  method: GET
127
- - url: /locales
127
+ - url: /locale
128
128
  method: POST
129
- - url: /locales
129
+ - url: /locale
130
130
  method: PUT
131
- - url: /locales/:localeId
131
+ - url: /locale/:localeId
132
132
  method: PATCH
133
- - url: /locales
133
+ - url: /locale
134
134
  method: DELETE
135
- menus:
135
+ menu:
136
136
  - url: /
137
137
  icon: dashboard
138
138
  name:
@@ -148,137 +148,137 @@ data:
148
148
  - menu_id:
149
149
  where:
150
150
  slug: /management
151
- url: /management/users
152
- icon: users
151
+ url: /management/user
152
+ icon: user
153
153
  name:
154
- en: Users
154
+ en: User
155
155
  pt: Usuários
156
- slug: /management/users
156
+ slug: /management/user
157
157
  - menu_id:
158
158
  where:
159
159
  slug: /management
160
- url: /management/roles
160
+ url: /management/role
161
161
  icon: circles
162
162
  name:
163
- en: Roles
163
+ en: Role
164
164
  pt: Cargos
165
- slug: /management/roles
165
+ slug: /management/role
166
166
  - menu_id:
167
167
  where:
168
168
  slug: /management
169
- url: /management/screens
169
+ url: /management/screen
170
170
  icon: device-tv
171
171
  name:
172
- en: Screens
172
+ en: Screen
173
173
  pt: Telas
174
- slug: /management/screens
174
+ slug: /management/screen
175
175
  - menu_id:
176
176
  where:
177
177
  slug: /management
178
- url: /management/menus
178
+ url: /management/menu
179
179
  icon: menu
180
180
  name:
181
- en: Menus
182
- pt: Menus
183
- slug: /management/menus
181
+ en: Menu
182
+ pt: Menu
183
+ slug: /management/menu
184
184
  - menu_id:
185
185
  where:
186
186
  slug: /management
187
- url: /management/routes
187
+ url: /management/route
188
188
  icon: route
189
189
  name:
190
- en: Routes
190
+ en: Route
191
191
  pt: Rotas
192
- slug: /management/routes
192
+ slug: /management/route
193
193
  - menu_id:
194
194
  where:
195
195
  slug: /management
196
- url: /management/settings
197
- icon: settings
196
+ url: /management/setting
197
+ icon: setting
198
198
  name:
199
- en: Settings
199
+ en: Setting
200
200
  pt: Configurações
201
- slug: /management/settings
202
- screens:
203
- - slug: /management/users
204
- icon: users
201
+ slug: /management/setting
202
+ screen:
203
+ - slug: /management/user
204
+ icon: user
205
205
  name:
206
- en: Users
206
+ en: User
207
207
  pt: Usuários
208
208
  description:
209
- en: Manage users in the system.
209
+ en: Manage user in the system.
210
210
  pt: Gerenciar usuários no sistema.
211
211
  relations:
212
- routes:
212
+ route:
213
213
  - where:
214
214
  url:
215
- like: /users%
216
- - slug: /management/roles
215
+ like: /user%
216
+ - slug: /management/role
217
217
  icon: circles
218
218
  name:
219
- en: Roles
219
+ en: Role
220
220
  pt: Funções
221
221
  description:
222
- en: Manage roles assigned to users.
222
+ en: Manage role assigned to user.
223
223
  pt: Gerenciar funções atribuídas a usuários.
224
224
  relations:
225
- routes:
225
+ route:
226
226
  - where:
227
227
  url:
228
- like: /roles%
229
- - slug: /management/screens
228
+ like: /role%
229
+ - slug: /management/screen
230
230
  icon: monitor
231
231
  name:
232
- en: Screens
232
+ en: Screen
233
233
  pt: Telas
234
234
  description:
235
- en: Manage the screens available in the system.
235
+ en: Manage the screen available in the system.
236
236
  pt: Gerenciar as telas disponíveis no sistema.
237
237
  relations:
238
- routes:
238
+ route:
239
239
  - where:
240
240
  url:
241
- like: /screens%
242
- - slug: /management/menus
241
+ like: /screen%
242
+ - slug: /management/menu
243
243
  icon: menu
244
244
  name:
245
- en: Menus
246
- pt: Menus
245
+ en: Menu
246
+ pt: Menu
247
247
  description:
248
- en: Manage the menus in the system.
249
- pt: Gerenciar os menus no sistema.
248
+ en: Manage the menu in the system.
249
+ pt: Gerenciar os menu no sistema.
250
250
  relations:
251
- routes:
251
+ route:
252
252
  - where:
253
253
  url:
254
- like: /menus%
255
- - slug: /management/routes
254
+ like: /menu%
255
+ - slug: /management/route
256
256
  icon: route
257
257
  name:
258
- en: Routes
258
+ en: Route
259
259
  pt: Rotas
260
260
  description:
261
- en: Manage routes for navigation within the system.
261
+ en: Manage route for navigation within the system.
262
262
  pt: Gerenciar rotas para navegação dentro do sistema.
263
263
  relations:
264
- routes:
264
+ route:
265
265
  - where:
266
266
  url:
267
- like: /routes%
268
- - slug: /management/settings
269
- icon: settings
267
+ like: /route%
268
+ - slug: /management/setting
269
+ icon: setting
270
270
  name:
271
- en: Settings
271
+ en: Setting
272
272
  pt: Configurações
273
273
  description:
274
- en: Manage system settings and configurations.
274
+ en: Manage system setting and configurations.
275
275
  pt: Gerenciar configurações e definições do sistema.
276
276
  relations:
277
- routes:
277
+ route:
278
278
  - where:
279
279
  url:
280
- like: /settings%
281
- countries:
280
+ like: /setting%
281
+ country:
282
282
  - name:
283
283
  en: Afghanistan
284
284
  pt: Afeganistão
@@ -1039,7 +1039,7 @@ data:
1039
1039
  en: Zimbabwe
1040
1040
  pt: Zimbábue
1041
1041
  code: ZWE
1042
- multifactors:
1042
+ multifactor:
1043
1043
  - name:
1044
1044
  en: Email
1045
1045
  pt: E-mail
@@ -1048,7 +1048,7 @@ data:
1048
1048
  en: Authenticator
1049
1049
  pt: Autenticador
1050
1050
  slug: authenticator
1051
- users:
1051
+ user:
1052
1052
  - name: Administrator
1053
1053
  email: root@hedhog.com
1054
1054
  password:
@@ -1057,7 +1057,7 @@ data:
1057
1057
  email: user@hedhog.com
1058
1058
  password:
1059
1059
  hash: changeme
1060
- roles:
1060
+ role:
1061
1061
  - slug: admin
1062
1062
  name:
1063
1063
  en: Administrator
@@ -1066,18 +1066,18 @@ data:
1066
1066
  en: System administrator with full access.
1067
1067
  pt: Administrador do sistema com acesso total.
1068
1068
  relations:
1069
- users:
1069
+ user:
1070
1070
  - where:
1071
1071
  email: root@hedhog.com
1072
- menus:
1072
+ menu:
1073
1073
  - where:
1074
1074
  id:
1075
1075
  gte: 0
1076
- routes:
1076
+ route:
1077
1077
  - where:
1078
1078
  id:
1079
1079
  gte: 0
1080
- screens:
1080
+ screen:
1081
1081
  - where:
1082
1082
  id:
1083
1083
  gte: 0
@@ -1086,17 +1086,17 @@ data:
1086
1086
  en: Screen Manager
1087
1087
  pt: Gerente de Telas
1088
1088
  description:
1089
- en: Manage screens in the system.
1089
+ en: Manage screen in the system.
1090
1090
  pt: Gerenciar telas no sistema.
1091
1091
  relations:
1092
- users:
1092
+ user:
1093
1093
  - where:
1094
1094
  email: user@hedhog.com
1095
- routes:
1095
+ route:
1096
1096
  - where:
1097
1097
  url:
1098
- like: /screens%
1099
- menus:
1098
+ like: /screen%
1099
+ menu:
1100
1100
  - where:
1101
1101
  slug: /
1102
1102
  - slug: admin-access
@@ -1107,34 +1107,34 @@ data:
1107
1107
  en: Access to administrative features.
1108
1108
  pt: Acesso a funcionalidades administrativas.
1109
1109
  relations:
1110
- users:
1110
+ user:
1111
1111
  - where:
1112
1112
  email: root@hedhog.com
1113
1113
  - where:
1114
1114
  email: user@hedhog.com
1115
- routes:
1115
+ route:
1116
1116
  - where:
1117
1117
  method: GET
1118
1118
  url:
1119
1119
  in:
1120
- - /menus/system
1120
+ - /menu/system
1121
1121
  - /auth/verify
1122
- - /settings/groups/:slug
1123
- - /settings/groups
1122
+ - /setting/group/:slug
1123
+ - /setting/group
1124
1124
  - where:
1125
1125
  method: PUT
1126
1126
  url:
1127
1127
  in:
1128
- - /settings/:slug
1129
- locales:
1128
+ - /setting/:slug
1129
+ locale:
1130
1130
  - code: en
1131
1131
  region: US
1132
1132
  - code: pt
1133
1133
  region: BR
1134
- translation_namespaces:
1134
+ translation_namespace:
1135
1135
  - name: translation
1136
1136
  relations:
1137
- translations:
1137
+ translation:
1138
1138
  - locale_id:
1139
1139
  where:
1140
1140
  code: en
@@ -1165,17 +1165,17 @@ data:
1165
1165
  code: pt
1166
1166
  name: pt
1167
1167
  value: Português
1168
- setting_groups:
1168
+ setting_group:
1169
1169
  - slug: localization
1170
1170
  icon: world
1171
1171
  name:
1172
1172
  en: Localization
1173
1173
  pt: Localização
1174
1174
  description:
1175
- en: Configure the localization settings.
1175
+ en: Configure the localization setting.
1176
1176
  pt: Configurar as definições de localização.
1177
1177
  relations:
1178
- settings:
1178
+ setting:
1179
1179
  - slug: language
1180
1180
  type: string
1181
1181
  name:
@@ -1202,10 +1202,10 @@ data:
1202
1202
  en: Appearance
1203
1203
  pt: Aparência
1204
1204
  description:
1205
- en: Configure the appearance settings.
1205
+ en: Configure the appearance setting.
1206
1206
  pt: Configurar as definições de aparência.
1207
1207
  relations:
1208
- settings:
1208
+ setting:
1209
1209
  - slug: theme-primary
1210
1210
  type: string
1211
1211
  name:
@@ -1361,7 +1361,7 @@ data:
1361
1361
  value: 'dark'
1362
1362
 
1363
1363
  tables:
1364
- countries:
1364
+ country:
1365
1365
  columns:
1366
1366
  - type: pk
1367
1367
  - name: code
@@ -1370,46 +1370,46 @@ tables:
1370
1370
  - type: created_at
1371
1371
  - type: updated_at
1372
1372
  ifNotExists: true
1373
- country_translations:
1373
+ country_locale:
1374
1374
  columns:
1375
1375
  - name: country_id
1376
1376
  type: fk
1377
1377
  isPrimary: true
1378
1378
  references:
1379
- table: countries
1379
+ table: country
1380
1380
  column: id
1381
1381
  onDelete: CASCADE
1382
1382
  - name: locale_id
1383
1383
  type: fk
1384
1384
  isPrimary: true
1385
1385
  references:
1386
- table: locales
1386
+ table: locale
1387
1387
  column: id
1388
1388
  onDelete: CASCADE
1389
1389
  - name: name
1390
1390
  - type: created_at
1391
1391
  - type: updated_at
1392
1392
  ifNotExists: true
1393
- translation_namespaces:
1393
+ translation_namespace:
1394
1394
  columns:
1395
1395
  - type: pk
1396
1396
  - name: name
1397
1397
  - type: created_at
1398
1398
  - type: updated_at
1399
1399
  ifNotExists: true
1400
- translations:
1400
+ translation:
1401
1401
  columns:
1402
1402
  - type: pk
1403
1403
  - name: locale_id
1404
1404
  type: fk
1405
1405
  references:
1406
- table: locales
1406
+ table: locale
1407
1407
  column: id
1408
1408
  onDelete: CASCADE
1409
1409
  - name: namespace_id
1410
1410
  type: fk
1411
1411
  references:
1412
- table: translation_namespaces
1412
+ table: translation_namespace
1413
1413
  column: id
1414
1414
  onDelete: CASCADE
1415
1415
  - name: name
@@ -1423,41 +1423,41 @@ tables:
1423
1423
  - name
1424
1424
  isUnique: true
1425
1425
  ifNotExists: true
1426
- multifactors:
1426
+ multifactor:
1427
1427
  columns:
1428
1428
  - type: pk
1429
1429
  - type: slug
1430
1430
  - type: created_at
1431
1431
  - type: updated_at
1432
1432
  ifNotExists: true
1433
- multifactor_translations:
1433
+ multifactor_locale:
1434
1434
  columns:
1435
1435
  - name: multifactor_id
1436
1436
  type: fk
1437
1437
  isPrimary: true
1438
1438
  references:
1439
- table: multifactors
1439
+ table: multifactor
1440
1440
  column: id
1441
1441
  onDelete: CASCADE
1442
1442
  - name: locale_id
1443
1443
  type: fk
1444
1444
  isPrimary: true
1445
1445
  references:
1446
- table: locales
1446
+ table: locale
1447
1447
  column: id
1448
1448
  onDelete: CASCADE
1449
1449
  - name: name
1450
1450
  - type: created_at
1451
1451
  - type: updated_at
1452
1452
  ifNotExists: true
1453
- users:
1453
+ user:
1454
1454
  columns:
1455
1455
  - type: pk
1456
1456
  - name: multifactor_id
1457
1457
  type: fk
1458
1458
  isNullable: true
1459
1459
  references:
1460
- table: multifactors
1460
+ table: multifactor
1461
1461
  column: id
1462
1462
  onDelete: SET NULL
1463
1463
  - name: name
@@ -1468,7 +1468,7 @@ tables:
1468
1468
  - type: created_at
1469
1469
  - type: updated_at
1470
1470
  ifNotExists: true
1471
- screens:
1471
+ screen:
1472
1472
  columns:
1473
1473
  - type: pk
1474
1474
  - type: slug
@@ -1477,20 +1477,20 @@ tables:
1477
1477
  - type: created_at
1478
1478
  - type: updated_at
1479
1479
  ifNotExists: true
1480
- screen_translations:
1480
+ screen_locale:
1481
1481
  columns:
1482
1482
  - name: screen_id
1483
1483
  type: fk
1484
1484
  isPrimary: true
1485
1485
  references:
1486
- table: screens
1486
+ table: screen
1487
1487
  column: id
1488
1488
  onDelete: CASCADE
1489
1489
  - name: locale_id
1490
1490
  type: fk
1491
1491
  isPrimary: true
1492
1492
  references:
1493
- table: locales
1493
+ table: locale
1494
1494
  column: id
1495
1495
  onDelete: CASCADE
1496
1496
  - name: name
@@ -1498,14 +1498,14 @@ tables:
1498
1498
  - type: created_at
1499
1499
  - type: updated_at
1500
1500
  ifNotExists: true
1501
- menus:
1501
+ menu:
1502
1502
  columns:
1503
1503
  - type: pk
1504
1504
  - name: menu_id
1505
1505
  type: fk
1506
1506
  isNullable: true
1507
1507
  references:
1508
- table: menus
1508
+ table: menu
1509
1509
  column: id
1510
1510
  onDelete: CASCADE
1511
1511
  - type: slug
@@ -1517,44 +1517,44 @@ tables:
1517
1517
  - type: created_at
1518
1518
  - type: updated_at
1519
1519
  ifNotExists: true
1520
- menu_translations:
1520
+ menu_locale:
1521
1521
  columns:
1522
1522
  - name: menu_id
1523
1523
  type: fk
1524
1524
  isPrimary: true
1525
1525
  references:
1526
- table: menus
1526
+ table: menu
1527
1527
  column: id
1528
1528
  onDelete: CASCADE
1529
1529
  - name: locale_id
1530
1530
  type: fk
1531
1531
  isPrimary: true
1532
1532
  references:
1533
- table: locales
1533
+ table: locale
1534
1534
  column: id
1535
1535
  onDelete: CASCADE
1536
1536
  - name: name
1537
1537
  - type: created_at
1538
1538
  - type: updated_at
1539
1539
  ifNotExists: true
1540
- menu_screens:
1540
+ menu_screen:
1541
1541
  columns:
1542
1542
  - name: menu_id
1543
1543
  type: fk
1544
1544
  isPrimary: true
1545
1545
  references:
1546
- table: menus
1546
+ table: menu
1547
1547
  column: id
1548
1548
  onDelete: CASCADE
1549
1549
  - name: screen_id
1550
1550
  type: fk
1551
1551
  isPrimary: true
1552
1552
  references:
1553
- table: screens
1553
+ table: screen
1554
1554
  column: id
1555
1555
  onDelete: CASCADE
1556
1556
  ifNotExists: true
1557
- routes:
1557
+ route:
1558
1558
  columns:
1559
1559
  - type: pk
1560
1560
  - name: url
@@ -1574,27 +1574,27 @@ tables:
1574
1574
  - columns: ['url', 'method']
1575
1575
  isUnique: true
1576
1576
  ifNotExists: true
1577
- roles:
1577
+ role:
1578
1578
  columns:
1579
1579
  - type: pk
1580
1580
  - type: slug
1581
1581
  - type: created_at
1582
1582
  - type: updated_at
1583
1583
  ifNotExists: true
1584
- role_translations:
1584
+ role_locale:
1585
1585
  columns:
1586
1586
  - name: role_id
1587
1587
  type: fk
1588
1588
  isPrimary: true
1589
1589
  references:
1590
- table: roles
1590
+ table: role
1591
1591
  column: id
1592
1592
  onDelete: CASCADE
1593
1593
  - name: locale_id
1594
1594
  type: fk
1595
1595
  isPrimary: true
1596
1596
  references:
1597
- table: locales
1597
+ table: locale
1598
1598
  column: id
1599
1599
  onDelete: CASCADE
1600
1600
  - name: name
@@ -1602,106 +1602,106 @@ tables:
1602
1602
  - type: created_at
1603
1603
  - type: updated_at
1604
1604
  ifNotExists: true
1605
- role_menus:
1605
+ role_menu:
1606
1606
  columns:
1607
1607
  - name: role_id
1608
1608
  type: fk
1609
1609
  isPrimary: true
1610
1610
  references:
1611
- table: roles
1611
+ table: role
1612
1612
  column: id
1613
1613
  onDelete: CASCADE
1614
1614
  - name: menu_id
1615
1615
  type: fk
1616
1616
  isPrimary: true
1617
1617
  references:
1618
- table: menus
1618
+ table: menu
1619
1619
  column: id
1620
1620
  onDelete: CASCADE
1621
1621
  - type: created_at
1622
1622
  - type: updated_at
1623
1623
  ifNotExists: true
1624
- route_screens:
1624
+ route_screen:
1625
1625
  columns:
1626
1626
  - name: route_id
1627
1627
  type: fk
1628
1628
  isPrimary: true
1629
1629
  references:
1630
- table: routes
1630
+ table: route
1631
1631
  column: id
1632
1632
  onDelete: CASCADE
1633
1633
  - name: screen_id
1634
1634
  type: fk
1635
1635
  isPrimary: true
1636
1636
  references:
1637
- table: screens
1637
+ table: screen
1638
1638
  column: id
1639
1639
  onDelete: CASCADE
1640
1640
  - type: created_at
1641
1641
  - type: updated_at
1642
1642
  ifNotExists: true
1643
1643
 
1644
- role_screens:
1644
+ role_screen:
1645
1645
  columns:
1646
1646
  - name: role_id
1647
1647
  type: fk
1648
1648
  isPrimary: true
1649
1649
  references:
1650
- table: roles
1650
+ table: role
1651
1651
  column: id
1652
1652
  onDelete: CASCADE
1653
1653
  - name: screen_id
1654
1654
  type: fk
1655
1655
  isPrimary: true
1656
1656
  references:
1657
- table: screens
1657
+ table: screen
1658
1658
  column: id
1659
1659
  onDelete: CASCADE
1660
1660
  - type: created_at
1661
1661
  - type: updated_at
1662
1662
  ifNotExists: true
1663
1663
 
1664
- role_users:
1664
+ role_user:
1665
1665
  columns:
1666
1666
  - name: role_id
1667
1667
  type: fk
1668
1668
  isPrimary: true
1669
1669
  references:
1670
- table: roles
1670
+ table: role
1671
1671
  column: id
1672
1672
  onDelete: CASCADE
1673
1673
  - name: user_id
1674
1674
  type: fk
1675
1675
  isPrimary: true
1676
1676
  references:
1677
- table: users
1677
+ table: user
1678
1678
  column: id
1679
1679
  onDelete: CASCADE
1680
1680
  - type: created_at
1681
1681
  - type: updated_at
1682
1682
  ifNotExists: true
1683
1683
 
1684
- role_routes:
1684
+ role_route:
1685
1685
  columns:
1686
1686
  - name: role_id
1687
1687
  type: fk
1688
1688
  isPrimary: true
1689
1689
  references:
1690
- table: roles
1690
+ table: role
1691
1691
  column: id
1692
1692
  onDelete: CASCADE
1693
1693
  - name: route_id
1694
1694
  type: fk
1695
1695
  isPrimary: true
1696
1696
  references:
1697
- table: routes
1697
+ table: route
1698
1698
  column: id
1699
1699
  onDelete: CASCADE
1700
1700
  - type: created_at
1701
1701
  - type: updated_at
1702
1702
  ifNotExists: true
1703
1703
 
1704
- setting_groups:
1704
+ setting_group:
1705
1705
  columns:
1706
1706
  - type: pk
1707
1707
  - name: icon
@@ -1711,20 +1711,20 @@ tables:
1711
1711
  - type: updated_at
1712
1712
  ifNotExists: true
1713
1713
 
1714
- setting_group_translations:
1714
+ setting_group_locale:
1715
1715
  columns:
1716
1716
  - name: locale_id
1717
1717
  type: fk
1718
1718
  isPrimary: true
1719
1719
  references:
1720
- table: locales
1720
+ table: locale
1721
1721
  column: id
1722
1722
  onDelete: CASCADE
1723
1723
  - name: group_id
1724
1724
  type: fk
1725
1725
  isPrimary: true
1726
1726
  references:
1727
- table: setting_groups
1727
+ table: setting_group
1728
1728
  column: id
1729
1729
  onDelete: CASCADE
1730
1730
  - name: name
@@ -1736,13 +1736,13 @@ tables:
1736
1736
  - type: updated_at
1737
1737
  ifNotExists: true
1738
1738
 
1739
- settings:
1739
+ setting:
1740
1740
  columns:
1741
1741
  - type: pk
1742
1742
  - name: group_id
1743
1743
  type: fk
1744
1744
  references:
1745
- table: setting_groups
1745
+ table: setting_group
1746
1746
  column: id
1747
1747
  onDelete: CASCADE
1748
1748
  - type: slug
@@ -1765,20 +1765,20 @@ tables:
1765
1765
  - type: updated_at
1766
1766
  ifNotExists: true
1767
1767
 
1768
- setting_translations:
1768
+ setting_locale:
1769
1769
  columns:
1770
1770
  - name: locale_id
1771
1771
  type: fk
1772
1772
  isPrimary: true
1773
1773
  references:
1774
- table: locales
1774
+ table: locale
1775
1775
  column: id
1776
1776
  onDelete: CASCADE
1777
1777
  - name: setting_id
1778
1778
  type: fk
1779
1779
  isPrimary: true
1780
1780
  references:
1781
- table: settings
1781
+ table: setting
1782
1782
  column: id
1783
1783
  onDelete: CASCADE
1784
1784
  - name: description
@@ -1791,20 +1791,20 @@ tables:
1791
1791
  - type: updated_at
1792
1792
  ifNotExists: true
1793
1793
 
1794
- setting_users:
1794
+ setting_user:
1795
1795
  columns:
1796
1796
  - name: user_id
1797
1797
  type: fk
1798
1798
  isPrimary: true
1799
1799
  references:
1800
- table: users
1800
+ table: user
1801
1801
  column: id
1802
1802
  onDelete: CASCADE
1803
1803
  - name: setting_id
1804
1804
  type: fk
1805
1805
  isPrimary: true
1806
1806
  references:
1807
- table: settings
1807
+ table: setting
1808
1808
  column: id
1809
1809
  onDelete: CASCADE
1810
1810
  - name: value
@@ -1814,7 +1814,7 @@ tables:
1814
1814
  - type: updated_at
1815
1815
  ifNotExists: true
1816
1816
 
1817
- locales:
1817
+ locale:
1818
1818
  columns:
1819
1819
  - type: pk
1820
1820
  - name: code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.101",
3
+ "version": "0.0.103",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {