@hedhog/admin 0.0.72 → 0.0.74
Sign up to get free protection for your applications and to get access to all the features.
- package/hedhog.yaml +41 -41
- package/package.json +1 -1
- package/src/migrations/migrate-05.ts +8 -0
package/hedhog.yaml
CHANGED
@@ -1001,9 +1001,9 @@ data:
|
|
1001
1001
|
en: System administrator with full access.
|
1002
1002
|
pt: Administrador do sistema com acesso total.
|
1003
1003
|
relations:
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1004
|
+
role_users:
|
1005
|
+
- where:
|
1006
|
+
email: root@hedhog.com
|
1007
1007
|
- slug: screen-manager
|
1008
1008
|
name:
|
1009
1009
|
en: Screen Manager
|
@@ -1012,9 +1012,9 @@ data:
|
|
1012
1012
|
en: Manage screens in the system.
|
1013
1013
|
pt: Gerenciar telas no sistema.
|
1014
1014
|
relations:
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1015
|
+
role_users:
|
1016
|
+
- where:
|
1017
|
+
email: user@hedhog.com
|
1018
1018
|
- slug: admin-access
|
1019
1019
|
name:
|
1020
1020
|
en: Admin Access
|
@@ -1023,11 +1023,11 @@ data:
|
|
1023
1023
|
en: Access to administrative features.
|
1024
1024
|
pt: Acesso a funcionalidades administrativas.
|
1025
1025
|
relations:
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1026
|
+
role_users:
|
1027
|
+
- where:
|
1028
|
+
email: root@hedhog.com
|
1029
|
+
- where:
|
1030
|
+
email: user@hedhog.com
|
1031
1031
|
locales:
|
1032
1032
|
- code: en
|
1033
1033
|
region: US
|
@@ -1036,34 +1036,34 @@ data:
|
|
1036
1036
|
translation_namespaces:
|
1037
1037
|
- name: translation
|
1038
1038
|
relations:
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1039
|
+
translations:
|
1040
|
+
- locale_id:
|
1041
|
+
where:
|
1042
|
+
code: en
|
1043
|
+
name: slogan
|
1044
|
+
value: Administration Panel
|
1045
|
+
- locale_id:
|
1046
|
+
where:
|
1047
|
+
code: pt
|
1048
|
+
name: slogan
|
1049
|
+
value: Painel de Administração
|
1050
|
+
- locale_id:
|
1051
|
+
where:
|
1052
|
+
code: en
|
1053
|
+
name: en
|
1054
|
+
value: English
|
1055
|
+
- locale_id:
|
1056
|
+
where:
|
1057
|
+
code: en
|
1058
|
+
name: pt
|
1059
|
+
value: Portuguese
|
1060
|
+
- locale_id:
|
1061
|
+
where:
|
1047
1062
|
code: pt
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
- locale_id:
|
1056
|
-
where:
|
1057
|
-
code: en
|
1058
|
-
name: pt
|
1059
|
-
value: Portuguese
|
1060
|
-
- locale_id:
|
1061
|
-
where:
|
1062
|
-
code: pt
|
1063
|
-
name: en
|
1064
|
-
value: Inglês
|
1065
|
-
- locale_id:
|
1066
|
-
where:
|
1067
|
-
code: pt
|
1068
|
-
name: pt
|
1069
|
-
value: Português
|
1063
|
+
name: en
|
1064
|
+
value: Inglês
|
1065
|
+
- locale_id:
|
1066
|
+
where:
|
1067
|
+
code: pt
|
1068
|
+
name: pt
|
1069
|
+
value: Português
|
package/package.json
CHANGED
@@ -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
|
|