@hedhog/admin 0.0.92 → 0.0.94

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. package/dist/menu/menu.controller.d.ts.map +1 -1
  2. package/dist/menu/menu.controller.js +0 -4
  3. package/dist/menu/menu.controller.js.map +1 -1
  4. package/dist/role/role.controller.d.ts.map +1 -1
  5. package/dist/role/role.controller.js +0 -4
  6. package/dist/role/role.controller.js.map +1 -1
  7. package/dist/route/route.controller.d.ts.map +1 -1
  8. package/dist/route/route.controller.js +0 -4
  9. package/dist/route/route.controller.js.map +1 -1
  10. package/dist/screen/screen.controller.d.ts.map +1 -1
  11. package/dist/screen/screen.controller.js +0 -4
  12. package/dist/screen/screen.controller.js.map +1 -1
  13. package/dist/setting/dto/setting-user.dto.d.ts +4 -0
  14. package/dist/setting/dto/setting-user.dto.d.ts.map +1 -0
  15. package/dist/{entities/role.entity.js → setting/dto/setting-user.dto.js} +8 -19
  16. package/dist/setting/dto/setting-user.dto.js.map +1 -0
  17. package/dist/setting/dto/settings.dto.d.ts +9 -0
  18. package/dist/setting/dto/settings.dto.d.ts.map +1 -0
  19. package/dist/{entities/route.entity.js → setting/dto/settings.dto.js} +19 -21
  20. package/dist/setting/dto/settings.dto.js.map +1 -0
  21. package/dist/setting/settings.controller.d.ts +8 -0
  22. package/dist/setting/settings.controller.d.ts.map +1 -1
  23. package/dist/setting/settings.controller.js +25 -11
  24. package/dist/setting/settings.controller.js.map +1 -1
  25. package/dist/setting/settings.service.d.ts +5 -1
  26. package/dist/setting/settings.service.d.ts.map +1 -1
  27. package/dist/setting/settings.service.js +31 -6
  28. package/dist/setting/settings.service.js.map +1 -1
  29. package/dist/user/user.controller.d.ts.map +1 -1
  30. package/dist/user/user.controller.js +0 -4
  31. package/dist/user/user.controller.js.map +1 -1
  32. package/hedhog.yaml +17 -17
  33. package/package.json +1 -1
  34. package/dist/entities/country.entity.d.ts +0 -6
  35. package/dist/entities/country.entity.d.ts.map +0 -1
  36. package/dist/entities/country.entity.js +0 -38
  37. package/dist/entities/country.entity.js.map +0 -1
  38. package/dist/entities/index.d.ts +0 -12
  39. package/dist/entities/index.d.ts.map +0 -1
  40. package/dist/entities/index.js +0 -28
  41. package/dist/entities/index.js.map +0 -1
  42. package/dist/entities/locale.entity.d.ts +0 -7
  43. package/dist/entities/locale.entity.d.ts.map +0 -1
  44. package/dist/entities/locale.entity.js +0 -44
  45. package/dist/entities/locale.entity.js.map +0 -1
  46. package/dist/entities/menu.entity.d.ts +0 -9
  47. package/dist/entities/menu.entity.d.ts.map +0 -1
  48. package/dist/entities/menu.entity.js +0 -57
  49. package/dist/entities/menu.entity.js.map +0 -1
  50. package/dist/entities/multifactor.entity.d.ts +0 -5
  51. package/dist/entities/multifactor.entity.d.ts.map +0 -1
  52. package/dist/entities/multifactor.entity.js +0 -30
  53. package/dist/entities/multifactor.entity.js.map +0 -1
  54. package/dist/entities/role.entity.d.ts +0 -5
  55. package/dist/entities/role.entity.d.ts.map +0 -1
  56. package/dist/entities/role.entity.js.map +0 -1
  57. package/dist/entities/route.entity.d.ts +0 -6
  58. package/dist/entities/route.entity.d.ts.map +0 -1
  59. package/dist/entities/route.entity.js.map +0 -1
  60. package/dist/entities/screen.entity.d.ts +0 -6
  61. package/dist/entities/screen.entity.d.ts.map +0 -1
  62. package/dist/entities/screen.entity.js +0 -36
  63. package/dist/entities/screen.entity.js.map +0 -1
  64. package/dist/entities/setting-group.entity.d.ts +0 -6
  65. package/dist/entities/setting-group.entity.d.ts.map +0 -1
  66. package/dist/entities/setting-group.entity.js +0 -39
  67. package/dist/entities/setting-group.entity.js.map +0 -1
  68. package/dist/entities/setting.entity.d.ts +0 -8
  69. package/dist/entities/setting.entity.d.ts.map +0 -1
  70. package/dist/entities/setting.entity.js +0 -51
  71. package/dist/entities/setting.entity.js.map +0 -1
  72. package/dist/entities/translation.entity.d.ts +0 -8
  73. package/dist/entities/translation.entity.d.ts.map +0 -1
  74. package/dist/entities/translation.entity.js +0 -42
  75. package/dist/entities/translation.entity.js.map +0 -1
  76. package/dist/entities/user.entity.d.ts +0 -9
  77. package/dist/entities/user.entity.d.ts.map +0 -1
  78. package/dist/entities/user.entity.js +0 -51
  79. package/dist/entities/user.entity.js.map +0 -1
  80. package/src/entities/country.entity.ts +0 -19
  81. package/src/entities/index.ts +0 -11
  82. package/src/entities/locale.entity.ts +0 -24
  83. package/src/entities/menu.entity.ts +0 -35
  84. package/src/entities/multifactor.entity.ts +0 -12
  85. package/src/entities/role.entity.ts +0 -14
  86. package/src/entities/route.entity.ts +0 -17
  87. package/src/entities/screen.entity.ts +0 -17
  88. package/src/entities/setting-group.entity.ts +0 -20
  89. package/src/entities/setting.entity.ts +0 -30
  90. package/src/entities/translation.entity.ts +0 -21
  91. package/src/entities/user.entity.ts +0 -29
@@ -1 +0,0 @@
1
- {"version":3,"file":"setting.entity.d.ts","sourceRoot":"","sources":["../../src/entities/setting.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAMX,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,MAAM,CAAC;IAKd,YAAY,EAAE,OAAO,CAAC;CACvB"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Setting = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let Setting = class Setting {
15
- };
16
- exports.Setting = Setting;
17
- __decorate([
18
- (0, typeorm_1.PrimaryGeneratedColumn)(),
19
- __metadata("design:type", Number)
20
- ], Setting.prototype, "id", void 0);
21
- __decorate([
22
- (0, typeorm_1.Column)({
23
- unique: true,
24
- length: 63,
25
- }),
26
- __metadata("design:type", String)
27
- ], Setting.prototype, "slug", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)({
30
- enum: ['string', 'number', 'boolean', 'json'],
31
- }),
32
- __metadata("design:type", String)
33
- ], Setting.prototype, "type", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)({
36
- length: 1023,
37
- }),
38
- __metadata("design:type", String)
39
- ], Setting.prototype, "value", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({
42
- default: false,
43
- }),
44
- __metadata("design:type", Boolean)
45
- ], Setting.prototype, "userOverride", void 0);
46
- exports.Setting = Setting = __decorate([
47
- (0, typeorm_1.Entity)({
48
- name: 'settings',
49
- })
50
- ], Setting);
51
- //# sourceMappingURL=setting.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setting.entity.js","sourceRoot":"","sources":["../../src/entities/setting.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,OAAO,GAAb,MAAM,OAAO;CAwBnB,CAAA;AAxBY,0BAAO;AAElB;IADC,IAAA,gCAAsB,GAAE;;mCACd;AAMX;IAJC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,EAAE;KACX,CAAC;;qCACW;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;KAC9C,CAAC;;qCACW;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,IAAI;KACb,CAAC;;sCACY;AAKd;IAHC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,KAAK;KACf,CAAC;;6CACoB;kBAvBX,OAAO;IAHnB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,UAAU;KACjB,CAAC;GACW,OAAO,CAwBnB"}
@@ -1,8 +0,0 @@
1
- export declare class TranslationEntity {
2
- id: number;
3
- locale_id: number;
4
- namespace_id: number;
5
- name: string;
6
- value: string;
7
- }
8
- //# sourceMappingURL=translation.entity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translation.entity.d.ts","sourceRoot":"","sources":["../../src/entities/translation.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,iBAAiB;IAE5B,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAGlB,YAAY,EAAE,MAAM,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TranslationEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let TranslationEntity = class TranslationEntity {
15
- };
16
- exports.TranslationEntity = TranslationEntity;
17
- __decorate([
18
- (0, typeorm_1.PrimaryGeneratedColumn)(),
19
- __metadata("design:type", Number)
20
- ], TranslationEntity.prototype, "id", void 0);
21
- __decorate([
22
- (0, typeorm_1.JoinColumn)(),
23
- __metadata("design:type", Number)
24
- ], TranslationEntity.prototype, "locale_id", void 0);
25
- __decorate([
26
- (0, typeorm_1.JoinColumn)(),
27
- __metadata("design:type", Number)
28
- ], TranslationEntity.prototype, "namespace_id", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)(),
31
- __metadata("design:type", String)
32
- ], TranslationEntity.prototype, "name", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)(),
35
- __metadata("design:type", String)
36
- ], TranslationEntity.prototype, "value", void 0);
37
- exports.TranslationEntity = TranslationEntity = __decorate([
38
- (0, typeorm_1.Entity)({
39
- name: 'translations',
40
- })
41
- ], TranslationEntity);
42
- //# sourceMappingURL=translation.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translation.entity.js","sourceRoot":"","sources":["../../src/entities/translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAe7B,CAAA;AAfY,8CAAiB;AAE5B;IADC,IAAA,gCAAsB,GAAE;;6CACd;AAGX;IADC,IAAA,oBAAU,GAAE;;oDACK;AAGlB;IADC,IAAA,oBAAU,GAAE;;uDACQ;AAGrB;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;gDACK;4BAdH,iBAAiB;IAH7B,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,cAAc;KACrB,CAAC;GACW,iBAAiB,CAe7B"}
@@ -1,9 +0,0 @@
1
- export declare class User {
2
- id: number;
3
- multifactor_id?: number;
4
- name: string;
5
- email: string;
6
- password: string;
7
- code?: string;
8
- }
9
- //# sourceMappingURL=user.entity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAMX,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IAKjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.User = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let User = class User {
15
- };
16
- exports.User = User;
17
- __decorate([
18
- (0, typeorm_1.PrimaryGeneratedColumn)(),
19
- __metadata("design:type", Number)
20
- ], User.prototype, "id", void 0);
21
- __decorate([
22
- (0, typeorm_1.Column)({
23
- nullable: true,
24
- }),
25
- (0, typeorm_1.JoinColumn)(),
26
- __metadata("design:type", Number)
27
- ], User.prototype, "multifactor_id", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)(),
30
- __metadata("design:type", String)
31
- ], User.prototype, "name", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)(),
34
- __metadata("design:type", String)
35
- ], User.prototype, "email", void 0);
36
- __decorate([
37
- (0, typeorm_1.Column)(),
38
- __metadata("design:type", String)
39
- ], User.prototype, "password", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({
42
- nullable: true,
43
- }),
44
- __metadata("design:type", String)
45
- ], User.prototype, "code", void 0);
46
- exports.User = User = __decorate([
47
- (0, typeorm_1.Entity)({
48
- name: 'users',
49
- })
50
- ], User);
51
- //# sourceMappingURL=user.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,IAAI,GAAV,MAAM,IAAI;CAuBhB,CAAA;AAvBY,oBAAI;AAEf;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAMX;IAJC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;;4CACW;AAGxB;IADC,IAAA,gBAAM,GAAE;;kCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;mCACK;AAGd;IADC,IAAA,gBAAM,GAAE;;sCACQ;AAKjB;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;kCACY;eAtBH,IAAI;IAHhB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,OAAO;KACd,CAAC;GACW,IAAI,CAuBhB"}
@@ -1,19 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'countries',
5
- })
6
- export class Country {
7
- @PrimaryGeneratedColumn({
8
- unsigned: true,
9
- })
10
- id: number;
11
-
12
- @Column()
13
- name: string;
14
-
15
- @Column({
16
- length: 3,
17
- })
18
- code: string;
19
- }
@@ -1,11 +0,0 @@
1
- export * from './user.entity';
2
- export * from './translation.entity';
3
- export * from './screen.entity';
4
- export * from './role.entity';
5
- export * from './multifactor.entity';
6
- export * from './locale.entity';
7
- export * from './country.entity';
8
- export * from './menu.entity';
9
- export * from './route.entity';
10
- export * from './setting-group.entity';
11
- export * from './setting.entity';
@@ -1,24 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'locales',
5
- })
6
- export class Locale {
7
- @PrimaryGeneratedColumn({
8
- unsigned: true,
9
- })
10
- id: number;
11
-
12
- @Column({
13
- length: 2,
14
- })
15
- code: string;
16
-
17
- @Column({
18
- length: 2,
19
- })
20
- region: string;
21
-
22
- @Column()
23
- enabled: boolean;
24
- }
@@ -1,35 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'menus',
5
- })
6
- export class Menu {
7
- @PrimaryGeneratedColumn()
8
- id: number;
9
-
10
- @JoinColumn()
11
- @Column({
12
- nullable: true,
13
- unsigned: true,
14
- })
15
- menu_id?: string;
16
-
17
- @Column()
18
- slug: string;
19
-
20
- @Column({
21
- nullable: true,
22
- })
23
- url?: string;
24
-
25
- @Column({
26
- default: 0,
27
- unsigned: true,
28
- })
29
- order: number;
30
-
31
- @Column({
32
- nullable: true,
33
- })
34
- icon?: string;
35
- }
@@ -1,12 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'multifactors',
5
- })
6
- export class Multifactor {
7
- @PrimaryGeneratedColumn()
8
- id: number;
9
-
10
- @Column()
11
- slug: string;
12
- }
@@ -1,14 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'roles',
5
- })
6
- export class Role {
7
- @PrimaryGeneratedColumn()
8
- id: number;
9
-
10
- @Column({
11
- unique: true,
12
- })
13
- slug: string;
14
- }
@@ -1,17 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'routes',
5
- })
6
- export class Route {
7
- @PrimaryGeneratedColumn()
8
- id: number;
9
-
10
- @Column()
11
- url: string;
12
-
13
- @Column({
14
- enum: ['GET', 'POST', 'PATCH', 'DELETE', 'PUT', 'OPTIONS', 'HEAD'],
15
- })
16
- method: string;
17
- }
@@ -1,17 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'screens',
5
- })
6
- export class Screen {
7
- @PrimaryGeneratedColumn()
8
- id: number;
9
-
10
- @Column()
11
- slug: string;
12
-
13
- @Column({
14
- nullable: true,
15
- })
16
- icon?: string;
17
- }
@@ -1,20 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'setting_groups',
5
- })
6
- export class SettingGroup {
7
- @PrimaryGeneratedColumn()
8
- id: number;
9
-
10
- @Column({
11
- length: 31,
12
- })
13
- icon: string;
14
-
15
- @Column({
16
- unique: true,
17
- length: 63,
18
- })
19
- slug: string;
20
- }
@@ -1,30 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'settings',
5
- })
6
- export class Setting {
7
- @PrimaryGeneratedColumn()
8
- id: number;
9
-
10
- @Column({
11
- unique: true,
12
- length: 63,
13
- })
14
- slug: string;
15
-
16
- @Column({
17
- enum: ['string', 'number', 'boolean', 'json'],
18
- })
19
- type: string;
20
-
21
- @Column({
22
- length: 1023,
23
- })
24
- value: string;
25
-
26
- @Column({
27
- default: false,
28
- })
29
- userOverride: boolean;
30
- }
@@ -1,21 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'translations',
5
- })
6
- export class TranslationEntity {
7
- @PrimaryGeneratedColumn()
8
- id: number;
9
-
10
- @JoinColumn()
11
- locale_id: number;
12
-
13
- @JoinColumn()
14
- namespace_id: number;
15
-
16
- @Column()
17
- name: string;
18
-
19
- @Column()
20
- value: string;
21
- }
@@ -1,29 +0,0 @@
1
- import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
2
-
3
- @Entity({
4
- name: 'users',
5
- })
6
- export class User {
7
- @PrimaryGeneratedColumn()
8
- id: number;
9
-
10
- @Column({
11
- nullable: true,
12
- })
13
- @JoinColumn()
14
- multifactor_id?: number;
15
-
16
- @Column()
17
- name: string;
18
-
19
- @Column()
20
- email: string;
21
-
22
- @Column()
23
- password: string;
24
-
25
- @Column({
26
- nullable: true,
27
- })
28
- code?: string;
29
- }