@hedhog/admin 0.0.88 → 0.0.90

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/dist/entities/locale.entity.d.ts +0 -1
  2. package/dist/entities/locale.entity.d.ts.map +1 -1
  3. package/dist/entities/locale.entity.js +0 -7
  4. package/dist/entities/locale.entity.js.map +1 -1
  5. package/dist/locale/dto/create.dto.d.ts +0 -1
  6. package/dist/locale/dto/create.dto.d.ts.map +1 -1
  7. package/dist/locale/dto/create.dto.js +0 -4
  8. package/dist/locale/dto/create.dto.js.map +1 -1
  9. package/dist/locale/dto/update.dto.d.ts +0 -1
  10. package/dist/locale/dto/update.dto.d.ts.map +1 -1
  11. package/dist/locale/dto/update.dto.js +0 -5
  12. package/dist/locale/dto/update.dto.js.map +1 -1
  13. package/dist/locale/locale.controller.d.ts +1 -1
  14. package/dist/locale/locale.controller.d.ts.map +1 -1
  15. package/dist/locale/locale.controller.js +14 -11
  16. package/dist/locale/locale.controller.js.map +1 -1
  17. package/dist/locale/locale.service.d.ts +1 -1
  18. package/dist/locale/locale.service.d.ts.map +1 -1
  19. package/dist/locale/locale.service.js +2 -2
  20. package/dist/locale/locale.service.js.map +1 -1
  21. package/dist/locale/locale.service.spec.js +0 -5
  22. package/dist/locale/locale.service.spec.js.map +1 -1
  23. package/dist/role/guards/role.guard.d.ts.map +1 -1
  24. package/dist/role/guards/role.guard.js +8 -0
  25. package/dist/role/guards/role.guard.js.map +1 -1
  26. package/hedhog.yaml +1 -4
  27. package/package.json +1 -1
  28. package/src/entities/locale.entity.ts +0 -6
  29. package/dist/__migrations/migrate-01.d.ts +0 -6
  30. package/dist/__migrations/migrate-01.d.ts.map +0 -1
  31. package/dist/__migrations/migrate-01.js +0 -80
  32. package/dist/__migrations/migrate-01.js.map +0 -1
  33. package/dist/__migrations/migrate-02.d.ts +0 -6
  34. package/dist/__migrations/migrate-02.d.ts.map +0 -1
  35. package/dist/__migrations/migrate-02.js +0 -68
  36. package/dist/__migrations/migrate-02.js.map +0 -1
  37. package/dist/__migrations/migrate-03.d.ts +0 -6
  38. package/dist/__migrations/migrate-03.d.ts.map +0 -1
  39. package/dist/__migrations/migrate-03.js +0 -90
  40. package/dist/__migrations/migrate-03.js.map +0 -1
  41. package/dist/__migrations/migrate-04.d.ts +0 -6
  42. package/dist/__migrations/migrate-04.d.ts.map +0 -1
  43. package/dist/__migrations/migrate-04.js +0 -63
  44. package/dist/__migrations/migrate-04.js.map +0 -1
  45. package/dist/__migrations/migrate-05.d.ts +0 -6
  46. package/dist/__migrations/migrate-05.d.ts.map +0 -1
  47. package/dist/__migrations/migrate-05.js +0 -100
  48. package/dist/__migrations/migrate-05.js.map +0 -1
  49. package/dist/__migrations/migrate-06.d.ts +0 -6
  50. package/dist/__migrations/migrate-06.d.ts.map +0 -1
  51. package/dist/__migrations/migrate-06.js +0 -37
  52. package/dist/__migrations/migrate-06.js.map +0 -1
  53. package/dist/__migrations/migrate-07.d.ts +0 -6
  54. package/dist/__migrations/migrate-07.d.ts.map +0 -1
  55. package/dist/__migrations/migrate-07.js +0 -59
  56. package/dist/__migrations/migrate-07.js.map +0 -1
  57. package/dist/__migrations/migrate-08.d.ts +0 -6
  58. package/dist/__migrations/migrate-08.d.ts.map +0 -1
  59. package/dist/__migrations/migrate-08.js +0 -39
  60. package/dist/__migrations/migrate-08.js.map +0 -1
  61. package/dist/__migrations/migrate-09.d.ts +0 -6
  62. package/dist/__migrations/migrate-09.d.ts.map +0 -1
  63. package/dist/__migrations/migrate-09.js +0 -39
  64. package/dist/__migrations/migrate-09.js.map +0 -1
  65. package/dist/__migrations/migrate-10.d.ts +0 -6
  66. package/dist/__migrations/migrate-10.d.ts.map +0 -1
  67. package/dist/__migrations/migrate-10.js +0 -39
  68. package/dist/__migrations/migrate-10.js.map +0 -1
  69. package/dist/__migrations/migrate-11.d.ts +0 -6
  70. package/dist/__migrations/migrate-11.d.ts.map +0 -1
  71. package/dist/__migrations/migrate-11.js +0 -39
  72. package/dist/__migrations/migrate-11.js.map +0 -1
  73. package/dist/__migrations/migrate-12.d.ts +0 -6
  74. package/dist/__migrations/migrate-12.d.ts.map +0 -1
  75. package/dist/__migrations/migrate-12.js +0 -39
  76. package/dist/__migrations/migrate-12.js.map +0 -1
  77. package/dist/__migrations/migrate-13.d.ts +0 -6
  78. package/dist/__migrations/migrate-13.d.ts.map +0 -1
  79. package/dist/__migrations/migrate-13.js +0 -30
  80. package/dist/__migrations/migrate-13.js.map +0 -1
  81. package/dist/__migrations/migrate-14.d.ts +0 -6
  82. package/dist/__migrations/migrate-14.d.ts.map +0 -1
  83. package/dist/__migrations/migrate-14.js +0 -83
  84. package/dist/__migrations/migrate-14.js.map +0 -1
  85. package/dist/__migrations/migrate-15.d.ts +0 -6
  86. package/dist/__migrations/migrate-15.d.ts.map +0 -1
  87. package/dist/__migrations/migrate-15.js +0 -25
  88. package/dist/__migrations/migrate-15.js.map +0 -1
  89. package/dist/__migrations/migrate-16.d.ts +0 -6
  90. package/dist/__migrations/migrate-16.d.ts.map +0 -1
  91. package/dist/__migrations/migrate-16.js +0 -61
  92. package/dist/__migrations/migrate-16.js.map +0 -1
  93. package/dist/__migrations/migrate-17.d.ts +0 -6
  94. package/dist/__migrations/migrate-17.d.ts.map +0 -1
  95. package/dist/__migrations/migrate-17.js +0 -31
  96. package/dist/__migrations/migrate-17.js.map +0 -1
  97. package/dist/__migrations/migrate-18.d.ts +0 -6
  98. package/dist/__migrations/migrate-18.d.ts.map +0 -1
  99. package/dist/__migrations/migrate-18.js +0 -41
  100. package/dist/__migrations/migrate-18.js.map +0 -1
  101. package/dist/__migrations/migrate-19.d.ts +0 -6
  102. package/dist/__migrations/migrate-19.d.ts.map +0 -1
  103. package/dist/__migrations/migrate-19.js +0 -175
  104. package/dist/__migrations/migrate-19.js.map +0 -1
  105. package/dist/__migrations/migrate-20.d.ts +0 -6
  106. package/dist/__migrations/migrate-20.d.ts.map +0 -1
  107. package/dist/__migrations/migrate-20.js +0 -310
  108. package/dist/__migrations/migrate-20.js.map +0 -1
@@ -1,90 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migrate = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const utils_1 = require("@hedhog/utils");
6
- class Migrate {
7
- async up(queryRunner) {
8
- await queryRunner.createTable(new typeorm_1.Table({
9
- name: 'multifactors',
10
- columns: [
11
- (0, utils_1.idColumn)(),
12
- {
13
- name: 'slug',
14
- type: 'varchar',
15
- isUnique: true,
16
- },
17
- (0, utils_1.timestampColumn)(),
18
- (0, utils_1.timestampColumn)('updated_at'),
19
- ],
20
- }), true);
21
- await queryRunner.createTable(new typeorm_1.Table({
22
- name: 'multifactor_translations',
23
- columns: [
24
- (0, utils_1.foreignColumn)({ name: 'multifactor_id', isPrimary: true }),
25
- (0, utils_1.foreignColumn)({ name: 'locale_id', isPrimary: true }),
26
- {
27
- name: 'name',
28
- type: 'varchar',
29
- },
30
- (0, utils_1.timestampColumn)(),
31
- (0, utils_1.timestampColumn)('updated_at'),
32
- ],
33
- foreignKeys: [
34
- new typeorm_1.TableForeignKey({
35
- columnNames: ['multifactor_id'],
36
- referencedTableName: 'multifactors',
37
- referencedColumnNames: ['id'],
38
- onDelete: 'CASCADE',
39
- }),
40
- new typeorm_1.TableForeignKey({
41
- columnNames: ['locale_id'],
42
- referencedTableName: 'locales',
43
- referencedColumnNames: ['id'],
44
- onDelete: 'CASCADE',
45
- }),
46
- ],
47
- }), true);
48
- await queryRunner.createTable(new typeorm_1.Table({
49
- name: 'users',
50
- columns: [
51
- (0, utils_1.idColumn)(),
52
- (0, utils_1.foreignColumn)({ name: 'multifactor_id', isNullable: true }),
53
- {
54
- name: 'name',
55
- type: 'varchar',
56
- },
57
- {
58
- name: 'email',
59
- type: 'varchar',
60
- },
61
- {
62
- name: 'password',
63
- type: 'varchar',
64
- },
65
- {
66
- name: 'code',
67
- type: 'varchar',
68
- isNullable: true,
69
- },
70
- (0, utils_1.timestampColumn)(),
71
- (0, utils_1.timestampColumn)('updated_at'),
72
- ],
73
- }));
74
- await queryRunner.createForeignKeys('users', [
75
- new typeorm_1.TableForeignKey({
76
- columnNames: ['multifactor_id'],
77
- referencedColumnNames: ['id'],
78
- referencedTableName: 'multifactors',
79
- name: 'fk_users_to_multifactors_on_multifactor_id',
80
- onDelete: 'Cascade',
81
- }),
82
- ]);
83
- }
84
- async down(queryRunner) {
85
- await queryRunner.dropTable('multifactors');
86
- await queryRunner.dropTable('users');
87
- }
88
- }
89
- exports.Migrate = Migrate;
90
- //# sourceMappingURL=migrate-03.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-03.js","sourceRoot":"","sources":["../../src/__migrations/migrate-03.ts"],"names":[],"mappings":";;;AAAA,qCAKiB;AACjB,yCAAyE;AAEzE,MAAa,OAAO;IAClB,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;oBACf,QAAQ,EAAE,IAAI;iBACf;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,EACF,IAAI,CACL,CAAC;QAEF,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,0BAA0B;YAChC,OAAO,EAAE;gBACP,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBAC1D,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACrD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;iBAChB;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;YACD,WAAW,EAAE;gBACX,IAAI,yBAAe,CAAC;oBAClB,WAAW,EAAE,CAAC,gBAAgB,CAAC;oBAC/B,mBAAmB,EAAE,cAAc;oBACnC,qBAAqB,EAAE,CAAC,IAAI,CAAC;oBAC7B,QAAQ,EAAE,SAAS;iBACpB,CAAC;gBACF,IAAI,yBAAe,CAAC;oBAClB,WAAW,EAAE,CAAC,WAAW,CAAC;oBAC1B,mBAAmB,EAAE,SAAS;oBAC9B,qBAAqB,EAAE,CAAC,IAAI,CAAC;oBAC7B,QAAQ,EAAE,SAAS;iBACpB,CAAC;aACH;SACF,CAAC,EACF,IAAI,CACL,CAAC;QAEF,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,OAAO;YACb,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;gBAC3D;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,IAAI;iBACjB;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;QAEF,MAAM,WAAW,CAAC,iBAAiB,CAAC,OAAO,EAAE;YAC3C,IAAI,yBAAe,CAAC;gBAClB,WAAW,EAAE,CAAC,gBAAgB,CAAC;gBAC/B,qBAAqB,EAAE,CAAC,IAAI,CAAC;gBAC7B,mBAAmB,EAAE,cAAc;gBACnC,IAAI,EAAE,4CAA4C;gBAClD,QAAQ,EAAE,SAAS;aACpB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAC5C,MAAM,WAAW,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;CACF;AA7FD,0BA6FC"}
@@ -1,6 +0,0 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class Migrate implements MigrationInterface {
3
- up(queryRunner: QueryRunner): Promise<void>;
4
- down(queryRunner: QueryRunner): Promise<void>;
5
- }
6
- //# sourceMappingURL=migrate-04.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-04.d.ts","sourceRoot":"","sources":["../../src/__migrations/migrate-04.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAEjB,qBAAa,OAAQ,YAAW,kBAAkB;IAC1C,EAAE,CAAC,WAAW,EAAE,WAAW;IAyD3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAGpC"}
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migrate = void 0;
4
- const utils_1 = require("@hedhog/utils");
5
- const typeorm_1 = require("typeorm");
6
- class Migrate {
7
- async up(queryRunner) {
8
- await queryRunner.createTable(new typeorm_1.Table({
9
- name: 'screens',
10
- columns: [
11
- (0, utils_1.idColumn)(),
12
- {
13
- name: 'slug',
14
- type: 'varchar',
15
- isUnique: true,
16
- },
17
- {
18
- name: 'icon',
19
- type: 'varchar',
20
- isNullable: true,
21
- },
22
- (0, utils_1.timestampColumn)(),
23
- (0, utils_1.timestampColumn)('updated_at'),
24
- ],
25
- }));
26
- await queryRunner.createTable(new typeorm_1.Table({
27
- name: 'screen_translations',
28
- columns: [
29
- (0, utils_1.foreignColumn)({ name: 'screen_id', isPrimary: true }),
30
- (0, utils_1.foreignColumn)({ name: 'locale_id', isPrimary: true }),
31
- {
32
- name: 'name',
33
- type: 'varchar',
34
- },
35
- {
36
- name: 'description',
37
- type: 'varchar',
38
- },
39
- (0, utils_1.timestampColumn)(),
40
- (0, utils_1.timestampColumn)('updated_at'),
41
- ],
42
- foreignKeys: [
43
- new typeorm_1.TableForeignKey({
44
- columnNames: ['screen_id'],
45
- referencedTableName: 'screens',
46
- referencedColumnNames: ['id'],
47
- onDelete: 'CASCADE',
48
- }),
49
- new typeorm_1.TableForeignKey({
50
- columnNames: ['locale_id'],
51
- referencedTableName: 'locales',
52
- referencedColumnNames: ['id'],
53
- onDelete: 'CASCADE',
54
- }),
55
- ],
56
- }));
57
- }
58
- async down(queryRunner) {
59
- await queryRunner.dropTable('screens');
60
- }
61
- }
62
- exports.Migrate = Migrate;
63
- //# sourceMappingURL=migrate-04.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-04.js","sourceRoot":"","sources":["../../src/__migrations/migrate-04.ts"],"names":[],"mappings":";;;AAAA,yCAAyE;AAEzE,qCAKiB;AAEjB,MAAa,OAAO;IAClB,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;oBACf,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,IAAI;iBACjB;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;QAEF,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,qBAAqB;YAC3B,OAAO,EAAE;gBACP,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACrD,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACrD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,SAAS;iBAChB;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;YACD,WAAW,EAAE;gBACX,IAAI,yBAAe,CAAC;oBAClB,WAAW,EAAE,CAAC,WAAW,CAAC;oBAC1B,mBAAmB,EAAE,SAAS;oBAC9B,qBAAqB,EAAE,CAAC,IAAI,CAAC;oBAC7B,QAAQ,EAAE,SAAS;iBACpB,CAAC;gBACF,IAAI,yBAAe,CAAC;oBAClB,WAAW,EAAE,CAAC,WAAW,CAAC;oBAC1B,mBAAmB,EAAE,SAAS;oBAC9B,qBAAqB,EAAE,CAAC,IAAI,CAAC;oBAC7B,QAAQ,EAAE,SAAS;iBACpB,CAAC;aACH;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;CACF;AA7DD,0BA6DC"}
@@ -1,6 +0,0 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class Migrate implements MigrationInterface {
3
- up(queryRunner: QueryRunner): Promise<void>;
4
- down(queryRunner: QueryRunner): Promise<void>;
5
- }
6
- //# sourceMappingURL=migrate-05.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-05.d.ts","sourceRoot":"","sources":["../../src/__migrations/migrate-05.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAGjB,qBAAa,OAAQ,YAAW,kBAAkB;IACnC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAwG3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAI3D"}
@@ -1,100 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migrate = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const utils_1 = require("@hedhog/utils");
6
- class Migrate {
7
- async up(queryRunner) {
8
- await queryRunner.createTable(new typeorm_1.Table({
9
- name: 'menus',
10
- columns: [
11
- (0, utils_1.idColumn)(),
12
- (0, utils_1.foreignColumn)({ name: 'menu_id', isNullable: true }),
13
- {
14
- name: 'slug',
15
- type: 'varchar',
16
- isUnique: true,
17
- },
18
- {
19
- name: 'url',
20
- type: 'varchar',
21
- isNullable: true,
22
- },
23
- {
24
- name: 'order',
25
- type: 'int',
26
- default: 0,
27
- unsigned: true,
28
- },
29
- {
30
- name: 'icon',
31
- type: 'varchar',
32
- isNullable: true,
33
- },
34
- (0, utils_1.timestampColumn)(),
35
- (0, utils_1.timestampColumn)('updated_at'),
36
- ],
37
- indices: [{ columnNames: ['slug'], isUnique: true }],
38
- foreignKeys: [
39
- {
40
- columnNames: ['menu_id'],
41
- referencedColumnNames: ['id'],
42
- referencedTableName: 'menus',
43
- onDelete: 'CASCADE',
44
- },
45
- ],
46
- }));
47
- await queryRunner.createTable(new typeorm_1.Table({
48
- name: 'menu_translations',
49
- columns: [
50
- (0, utils_1.foreignColumn)({ name: 'menu_id', isPrimary: true }),
51
- (0, utils_1.foreignColumn)({ name: 'locale_id', isPrimary: true }),
52
- {
53
- name: 'name',
54
- type: 'varchar',
55
- },
56
- (0, utils_1.timestampColumn)(),
57
- (0, utils_1.timestampColumn)('updated_at'),
58
- ],
59
- foreignKeys: [
60
- new typeorm_1.TableForeignKey({
61
- columnNames: ['menu_id'],
62
- referencedColumnNames: ['id'],
63
- referencedTableName: 'menus',
64
- onDelete: 'CASCADE',
65
- }),
66
- new typeorm_1.TableForeignKey({
67
- columnNames: ['locale_id'],
68
- referencedColumnNames: ['id'],
69
- referencedTableName: 'locales',
70
- onDelete: 'CASCADE',
71
- }),
72
- ],
73
- }));
74
- await queryRunner.createTable(new typeorm_1.Table({
75
- name: 'menu_screens',
76
- columns: [
77
- (0, utils_1.foreignColumn)({ name: 'menu_id', isPrimary: true }),
78
- (0, utils_1.foreignColumn)({ name: 'screen_id', isPrimary: true }),
79
- ],
80
- }));
81
- await queryRunner.createForeignKey('menu_screens', new typeorm_1.TableForeignKey({
82
- columnNames: ['menu_id'],
83
- referencedColumnNames: ['id'],
84
- referencedTableName: 'menus',
85
- onDelete: 'CASCADE',
86
- }));
87
- await queryRunner.createForeignKey('menu_screens', new typeorm_1.TableForeignKey({
88
- columnNames: ['screen_id'],
89
- referencedColumnNames: ['id'],
90
- referencedTableName: 'screens',
91
- onDelete: 'CASCADE',
92
- }));
93
- }
94
- async down(queryRunner) {
95
- await queryRunner.dropTable('menu_screens');
96
- await queryRunner.dropTable('menus');
97
- }
98
- }
99
- exports.Migrate = Migrate;
100
- //# sourceMappingURL=migrate-05.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-05.js","sourceRoot":"","sources":["../../src/__migrations/migrate-05.ts"],"names":[],"mappings":"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"}
@@ -1,6 +0,0 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class Migrate implements MigrationInterface {
3
- up(queryRunner: QueryRunner): Promise<void>;
4
- down(queryRunner: QueryRunner): Promise<void>;
5
- }
6
- //# sourceMappingURL=migrate-06.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-06.d.ts","sourceRoot":"","sources":["../../src/__migrations/migrate-06.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAsB,MAAM,SAAS,CAAC;AAE9E,qBAAa,OAAQ,YAAW,kBAAkB;IAC1C,EAAE,CAAC,WAAW,EAAE,WAAW;IA2B3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAGpC"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migrate = void 0;
4
- const utils_1 = require("@hedhog/utils");
5
- const typeorm_1 = require("typeorm");
6
- class Migrate {
7
- async up(queryRunner) {
8
- await queryRunner.createTable(new typeorm_1.Table({
9
- name: 'routes',
10
- columns: [
11
- (0, utils_1.idColumn)(),
12
- {
13
- name: 'url',
14
- type: 'varchar',
15
- },
16
- {
17
- name: 'method',
18
- type: 'enum',
19
- enum: ['GET', 'POST', 'PATCH', 'DELETE', 'PUT', 'OPTIONS', 'HEAD'],
20
- },
21
- (0, utils_1.timestampColumn)(),
22
- (0, utils_1.timestampColumn)('updated_at'),
23
- ],
24
- indices: [
25
- {
26
- columnNames: ['url', 'method'],
27
- isUnique: true,
28
- },
29
- ],
30
- }));
31
- }
32
- async down(queryRunner) {
33
- await queryRunner.dropTable('routes');
34
- }
35
- }
36
- exports.Migrate = Migrate;
37
- //# sourceMappingURL=migrate-06.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-06.js","sourceRoot":"","sources":["../../src/__migrations/migrate-06.ts"],"names":[],"mappings":";;;AAAA,yCAA0D;AAC1D,qCAA8E;AAE9E,MAAa,OAAO;IAClB,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,KAAK;oBACX,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC;iBACnE;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;YACD,OAAO,EAAE;gBACP;oBACE,WAAW,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;oBAC9B,QAAQ,EAAE,IAAI;iBACf;aACF;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;CACF;AA/BD,0BA+BC"}
@@ -1,6 +0,0 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class Migrate implements MigrationInterface {
3
- up(queryRunner: QueryRunner): Promise<void>;
4
- down(queryRunner: QueryRunner): Promise<void>;
5
- }
6
- //# sourceMappingURL=migrate-07.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-07.d.ts","sourceRoot":"","sources":["../../src/__migrations/migrate-07.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAEjB,qBAAa,OAAQ,YAAW,kBAAkB;IAC1C,EAAE,CAAC,WAAW,EAAE,WAAW;IAqD3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAGpC"}
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migrate = void 0;
4
- const utils_1 = require("@hedhog/utils");
5
- const typeorm_1 = require("typeorm");
6
- class Migrate {
7
- async up(queryRunner) {
8
- await queryRunner.createTable(new typeorm_1.Table({
9
- name: 'roles',
10
- columns: [
11
- (0, utils_1.idColumn)(),
12
- {
13
- name: 'slug',
14
- type: 'varchar',
15
- isUnique: true,
16
- },
17
- (0, utils_1.timestampColumn)(),
18
- (0, utils_1.timestampColumn)('updated_at'),
19
- ],
20
- }));
21
- await queryRunner.createTable(new typeorm_1.Table({
22
- name: 'role_translations',
23
- columns: [
24
- (0, utils_1.foreignColumn)({ name: 'role_id', isPrimary: true }),
25
- (0, utils_1.foreignColumn)({ name: 'locale_id', isPrimary: true }),
26
- {
27
- name: 'name',
28
- type: 'varchar',
29
- isNullable: false,
30
- },
31
- {
32
- name: 'description',
33
- type: 'varchar',
34
- },
35
- (0, utils_1.timestampColumn)(),
36
- (0, utils_1.timestampColumn)('updated_at'),
37
- ],
38
- foreignKeys: [
39
- new typeorm_1.TableForeignKey({
40
- columnNames: ['role_id'],
41
- referencedTableName: 'roles',
42
- referencedColumnNames: ['id'],
43
- onDelete: 'CASCADE',
44
- }),
45
- new typeorm_1.TableForeignKey({
46
- columnNames: ['locale_id'],
47
- referencedTableName: 'locales',
48
- referencedColumnNames: ['id'],
49
- onDelete: 'CASCADE',
50
- }),
51
- ],
52
- }));
53
- }
54
- async down(queryRunner) {
55
- await queryRunner.dropTable('roles');
56
- }
57
- }
58
- exports.Migrate = Migrate;
59
- //# sourceMappingURL=migrate-07.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-07.js","sourceRoot":"","sources":["../../src/__migrations/migrate-07.ts"],"names":[],"mappings":";;;AAAA,yCAAyE;AACzE,qCAKiB;AAEjB,MAAa,OAAO;IAClB,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,OAAO;YACb,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;oBACf,QAAQ,EAAE,IAAI;iBACf;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;QAEF,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,mBAAmB;YACzB,OAAO,EAAE;gBACP,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACnD,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACrD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,KAAK;iBAClB;gBACD;oBACE,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,SAAS;iBAChB;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;YACD,WAAW,EAAE;gBACX,IAAI,yBAAe,CAAC;oBAClB,WAAW,EAAE,CAAC,SAAS,CAAC;oBACxB,mBAAmB,EAAE,OAAO;oBAC5B,qBAAqB,EAAE,CAAC,IAAI,CAAC;oBAC7B,QAAQ,EAAE,SAAS;iBACpB,CAAC;gBACF,IAAI,yBAAe,CAAC;oBAClB,WAAW,EAAE,CAAC,WAAW,CAAC;oBAC1B,mBAAmB,EAAE,SAAS;oBAC9B,qBAAqB,EAAE,CAAC,IAAI,CAAC;oBAC7B,QAAQ,EAAE,SAAS;iBACpB,CAAC;aACH;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;CACF;AAzDD,0BAyDC"}
@@ -1,6 +0,0 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class Migrate implements MigrationInterface {
3
- up(queryRunner: QueryRunner): Promise<void>;
4
- down(queryRunner: QueryRunner): Promise<void>;
5
- }
6
- //# sourceMappingURL=migrate-08.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-08.d.ts","sourceRoot":"","sources":["../../src/__migrations/migrate-08.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAEjB,qBAAa,OAAQ,YAAW,kBAAkB;IAC1C,EAAE,CAAC,WAAW,EAAE,WAAW;IA+B3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAGpC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migrate = void 0;
4
- const utils_1 = require("@hedhog/utils");
5
- const typeorm_1 = require("typeorm");
6
- class Migrate {
7
- async up(queryRunner) {
8
- await queryRunner.createTable(new typeorm_1.Table({
9
- name: 'role_menus',
10
- columns: [
11
- (0, utils_1.foreignColumn)({ name: 'role_id', isPrimary: true }),
12
- (0, utils_1.foreignColumn)({ name: 'menu_id', isPrimary: true }),
13
- (0, utils_1.timestampColumn)(),
14
- (0, utils_1.timestampColumn)('updated_at'),
15
- ],
16
- }));
17
- await queryRunner.createForeignKeys('role_menus', [
18
- new typeorm_1.TableForeignKey({
19
- columnNames: ['role_id'],
20
- referencedColumnNames: ['id'],
21
- referencedTableName: 'roles',
22
- onDelete: 'CASCADE',
23
- name: 'fk_role_menus_roles',
24
- }),
25
- new typeorm_1.TableForeignKey({
26
- columnNames: ['menu_id'],
27
- referencedColumnNames: ['id'],
28
- referencedTableName: 'menus',
29
- onDelete: 'CASCADE',
30
- name: 'fk_role_menus_menus',
31
- }),
32
- ]);
33
- }
34
- async down(queryRunner) {
35
- await queryRunner.dropTable('role_menus');
36
- }
37
- }
38
- exports.Migrate = Migrate;
39
- //# sourceMappingURL=migrate-08.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-08.js","sourceRoot":"","sources":["../../src/__migrations/migrate-08.ts"],"names":[],"mappings":";;;AAAA,yCAA+D;AAC/D,qCAKiB;AAEjB,MAAa,OAAO;IAClB,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE;gBACP,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACnD,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACnD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;QAEF,MAAM,WAAW,CAAC,iBAAiB,CAAC,YAAY,EAAE;YAChD,IAAI,yBAAe,CAAC;gBAClB,WAAW,EAAE,CAAC,SAAS,CAAC;gBACxB,qBAAqB,EAAE,CAAC,IAAI,CAAC;gBAC7B,mBAAmB,EAAE,OAAO;gBAC5B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,qBAAqB;aAC5B,CAAC;YACF,IAAI,yBAAe,CAAC;gBAClB,WAAW,EAAE,CAAC,SAAS,CAAC;gBACxB,qBAAqB,EAAE,CAAC,IAAI,CAAC;gBAC7B,mBAAmB,EAAE,OAAO;gBAC5B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,qBAAqB;aAC5B,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAC5C,CAAC;CACF;AAnCD,0BAmCC"}
@@ -1,6 +0,0 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class Migrate implements MigrationInterface {
3
- up(queryRunner: QueryRunner): Promise<void>;
4
- down(queryRunner: QueryRunner): Promise<void>;
5
- }
6
- //# sourceMappingURL=migrate-09.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-09.d.ts","sourceRoot":"","sources":["../../src/__migrations/migrate-09.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAEjB,qBAAa,OAAQ,YAAW,kBAAkB;IAC1C,EAAE,CAAC,WAAW,EAAE,WAAW;IA+B3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAGpC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migrate = void 0;
4
- const utils_1 = require("@hedhog/utils");
5
- const typeorm_1 = require("typeorm");
6
- class Migrate {
7
- async up(queryRunner) {
8
- await queryRunner.createTable(new typeorm_1.Table({
9
- name: 'route_screens',
10
- columns: [
11
- (0, utils_1.foreignColumn)({ name: 'route_id', isPrimary: true }),
12
- (0, utils_1.foreignColumn)({ name: 'screen_id', isPrimary: true }),
13
- (0, utils_1.timestampColumn)(),
14
- (0, utils_1.timestampColumn)('updated_at'),
15
- ],
16
- }));
17
- await queryRunner.createForeignKeys('route_screens', [
18
- new typeorm_1.TableForeignKey({
19
- columnNames: ['route_id'],
20
- referencedColumnNames: ['id'],
21
- referencedTableName: 'routes',
22
- onDelete: 'CASCADE',
23
- name: 'fk_route_screens_routes',
24
- }),
25
- new typeorm_1.TableForeignKey({
26
- columnNames: ['screen_id'],
27
- referencedColumnNames: ['id'],
28
- referencedTableName: 'screens',
29
- onDelete: 'CASCADE',
30
- name: 'fk_route_screens_screens',
31
- }),
32
- ]);
33
- }
34
- async down(queryRunner) {
35
- await queryRunner.dropTable('route_screens');
36
- }
37
- }
38
- exports.Migrate = Migrate;
39
- //# sourceMappingURL=migrate-09.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-09.js","sourceRoot":"","sources":["../../src/__migrations/migrate-09.ts"],"names":[],"mappings":";;;AAAA,yCAA+D;AAC/D,qCAKiB;AAEjB,MAAa,OAAO;IAClB,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,eAAe;YACrB,OAAO,EAAE;gBACP,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACpD,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACrD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;QAEF,MAAM,WAAW,CAAC,iBAAiB,CAAC,eAAe,EAAE;YACnD,IAAI,yBAAe,CAAC;gBAClB,WAAW,EAAE,CAAC,UAAU,CAAC;gBACzB,qBAAqB,EAAE,CAAC,IAAI,CAAC;gBAC7B,mBAAmB,EAAE,QAAQ;gBAC7B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,yBAAyB;aAChC,CAAC;YACF,IAAI,yBAAe,CAAC;gBAClB,WAAW,EAAE,CAAC,WAAW,CAAC;gBAC1B,qBAAqB,EAAE,CAAC,IAAI,CAAC;gBAC7B,mBAAmB,EAAE,SAAS;gBAC9B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAA0B;aACjC,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAC/C,CAAC;CACF;AAnCD,0BAmCC"}
@@ -1,6 +0,0 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class Migrate implements MigrationInterface {
3
- up(queryRunner: QueryRunner): Promise<void>;
4
- down(queryRunner: QueryRunner): Promise<void>;
5
- }
6
- //# sourceMappingURL=migrate-10.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-10.d.ts","sourceRoot":"","sources":["../../src/__migrations/migrate-10.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAEjB,qBAAa,OAAQ,YAAW,kBAAkB;IAC1C,EAAE,CAAC,WAAW,EAAE,WAAW;IA+B3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAGpC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migrate = void 0;
4
- const utils_1 = require("@hedhog/utils");
5
- const typeorm_1 = require("typeorm");
6
- class Migrate {
7
- async up(queryRunner) {
8
- await queryRunner.createTable(new typeorm_1.Table({
9
- name: 'role_screens',
10
- columns: [
11
- (0, utils_1.foreignColumn)({ name: 'role_id', isPrimary: true }),
12
- (0, utils_1.foreignColumn)({ name: 'screen_id', isPrimary: true }),
13
- (0, utils_1.timestampColumn)(),
14
- (0, utils_1.timestampColumn)('updated_at'),
15
- ],
16
- }));
17
- await queryRunner.createForeignKeys('role_screens', [
18
- new typeorm_1.TableForeignKey({
19
- columnNames: ['role_id'],
20
- referencedColumnNames: ['id'],
21
- referencedTableName: 'roles',
22
- onDelete: 'CASCADE',
23
- name: 'fk_role_screens_roles',
24
- }),
25
- new typeorm_1.TableForeignKey({
26
- columnNames: ['screen_id'],
27
- referencedColumnNames: ['id'],
28
- referencedTableName: 'screens',
29
- onDelete: 'CASCADE',
30
- name: 'fk_role_screens_screens',
31
- }),
32
- ]);
33
- }
34
- async down(queryRunner) {
35
- await queryRunner.dropTable('role_screens');
36
- }
37
- }
38
- exports.Migrate = Migrate;
39
- //# sourceMappingURL=migrate-10.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-10.js","sourceRoot":"","sources":["../../src/__migrations/migrate-10.ts"],"names":[],"mappings":";;;AAAA,yCAA+D;AAC/D,qCAKiB;AAEjB,MAAa,OAAO;IAClB,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE;gBACP,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACnD,IAAA,qBAAa,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gBACrD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;QAEF,MAAM,WAAW,CAAC,iBAAiB,CAAC,cAAc,EAAE;YAClD,IAAI,yBAAe,CAAC;gBAClB,WAAW,EAAE,CAAC,SAAS,CAAC;gBACxB,qBAAqB,EAAE,CAAC,IAAI,CAAC;gBAC7B,mBAAmB,EAAE,OAAO;gBAC5B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,uBAAuB;aAC9B,CAAC;YACF,IAAI,yBAAe,CAAC;gBAClB,WAAW,EAAE,CAAC,WAAW,CAAC;gBAC1B,qBAAqB,EAAE,CAAC,IAAI,CAAC;gBAC7B,mBAAmB,EAAE,SAAS;gBAC9B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,yBAAyB;aAChC,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC9C,CAAC;CACF;AAnCD,0BAmCC"}
@@ -1,6 +0,0 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class Migrate implements MigrationInterface {
3
- up(queryRunner: QueryRunner): Promise<void>;
4
- down(queryRunner: QueryRunner): Promise<void>;
5
- }
6
- //# sourceMappingURL=migrate-11.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-11.d.ts","sourceRoot":"","sources":["../../src/__migrations/migrate-11.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAEjB,qBAAa,OAAQ,YAAW,kBAAkB;IAC1C,EAAE,CAAC,WAAW,EAAE,WAAW;IAgC3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAGpC"}