@hedhog/admin 0.0.73 → 0.0.75

Sign up to get free protection for your applications and to get access to all the features.
package/hedhog.yaml CHANGED
@@ -134,6 +134,7 @@ data:
134
134
  name:
135
135
  en: Roles
136
136
  pt: Cargos
137
+ slug: /management/roles
137
138
  - menu_id:
138
139
  where:
139
140
  url: /management
@@ -142,6 +143,7 @@ data:
142
143
  name:
143
144
  en: Screens
144
145
  pt: Telas
146
+ slug: /management/screens
145
147
  - menu_id:
146
148
  where:
147
149
  url: /management
@@ -150,6 +152,7 @@ data:
150
152
  name:
151
153
  en: Menus
152
154
  pt: Menus
155
+ slug: /management/menus
153
156
  - menu_id:
154
157
  where:
155
158
  url: /management
@@ -158,6 +161,7 @@ data:
158
161
  name:
159
162
  en: Routes
160
163
  pt: Rotas
164
+ slug: /management/routes
161
165
  - menu_id:
162
166
  where:
163
167
  url: /management
@@ -166,6 +170,7 @@ data:
166
170
  name:
167
171
  en: Settings
168
172
  pt: Configurações
173
+ slug: /management/settings
169
174
  screens:
170
175
  - slug: /management/users
171
176
  icon: users
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -40,6 +40,14 @@ export class Migrate implements MigrationInterface {
40
40
  timestampColumn('updated_at'),
41
41
  ],
42
42
  indices: [{ columnNames: ['slug'], isUnique: true }],
43
+ foreignKeys: [
44
+ {
45
+ columnNames: ['menu_id'],
46
+ referencedColumnNames: ['id'],
47
+ referencedTableName: 'menus',
48
+ onDelete: 'CASCADE',
49
+ },
50
+ ],
43
51
  }),
44
52
  );
45
53