@campxdev/server-shared 1.3.23 → 1.3.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/common/databases/mongoose.repository.d.ts +41 -0
  2. package/dist/common/databases/mongoose.repository.d.ts.map +1 -0
  3. package/dist/common/databases/mongoose.repository.js +95 -0
  4. package/dist/common/databases/mongoose.repository.js.map +1 -0
  5. package/dist/common/filters/unhandled-exception.filter.js +3 -2
  6. package/dist/common/filters/unhandled-exception.filter.js.map +1 -1
  7. package/dist/common/guards/guard.d.ts +0 -2
  8. package/dist/common/guards/guard.d.ts.map +1 -1
  9. package/dist/common/guards/guard.js +1 -6
  10. package/dist/common/guards/guard.js.map +1 -1
  11. package/dist/common/index.d.ts +1 -1
  12. package/dist/common/index.d.ts.map +1 -1
  13. package/dist/common/index.js +1 -1
  14. package/dist/common/index.js.map +1 -1
  15. package/dist/common/interceptors/request.interceptor.d.ts +1 -6
  16. package/dist/common/interceptors/request.interceptor.d.ts.map +1 -1
  17. package/dist/common/interceptors/request.interceptor.js +13 -53
  18. package/dist/common/interceptors/request.interceptor.js.map +1 -1
  19. package/dist/common/interfaces/context.interface.d.ts +32 -62
  20. package/dist/common/interfaces/context.interface.d.ts.map +1 -1
  21. package/dist/common/store/request-store.d.ts +7 -27
  22. package/dist/common/store/request-store.d.ts.map +1 -1
  23. package/dist/common/store/request-store.js +23 -96
  24. package/dist/common/store/request-store.js.map +1 -1
  25. package/dist/common/store/store.interceptor.js +3 -2
  26. package/dist/common/store/store.interceptor.js.map +1 -1
  27. package/dist/domain/db-connection.module.js +3 -2
  28. package/dist/domain/db-connection.module.js.map +1 -1
  29. package/dist/domain/entities/department.entity.d.ts +10 -0
  30. package/dist/domain/entities/department.entity.d.ts.map +1 -0
  31. package/dist/domain/entities/department.entity.js +51 -0
  32. package/dist/domain/entities/department.entity.js.map +1 -0
  33. package/dist/domain/entities/evaluator.entity.js +16 -2
  34. package/dist/domain/entities/evaluator.entity.js.map +1 -1
  35. package/dist/domain/entities/leads.entity.js +26 -2
  36. package/dist/domain/entities/leads.entity.js.map +1 -1
  37. package/dist/domain/entities/profile-permission.entity.d.ts +0 -2
  38. package/dist/domain/entities/profile-permission.entity.d.ts.map +1 -1
  39. package/dist/domain/entities/profile-permission.entity.js +12 -7
  40. package/dist/domain/entities/profile-permission.entity.js.map +1 -1
  41. package/dist/domain/entities/profile.entity.d.ts +1 -17
  42. package/dist/domain/entities/profile.entity.d.ts.map +1 -1
  43. package/dist/domain/entities/profile.entity.js +14 -45
  44. package/dist/domain/entities/profile.entity.js.map +1 -1
  45. package/dist/domain/entities/program.entity.d.ts +14 -0
  46. package/dist/domain/entities/program.entity.d.ts.map +1 -0
  47. package/dist/domain/entities/program.entity.js +71 -0
  48. package/dist/domain/entities/program.entity.js.map +1 -0
  49. package/dist/domain/entities/student.entity.d.ts +31 -11
  50. package/dist/domain/entities/student.entity.d.ts.map +1 -1
  51. package/dist/domain/entities/student.entity.js +170 -38
  52. package/dist/domain/entities/student.entity.js.map +1 -1
  53. package/dist/domain/entities/user.entity.d.ts +3 -0
  54. package/dist/domain/entities/user.entity.d.ts.map +1 -1
  55. package/dist/domain/entities/user.entity.js +29 -2
  56. package/dist/domain/entities/user.entity.js.map +1 -1
  57. package/dist/domain/index.d.ts +2 -8
  58. package/dist/domain/index.d.ts.map +1 -1
  59. package/dist/domain/index.js +2 -8
  60. package/dist/domain/index.js.map +1 -1
  61. package/dist/domain/schemas/global-users.schema.d.ts +3 -12
  62. package/dist/domain/schemas/global-users.schema.d.ts.map +1 -1
  63. package/dist/domain/schemas/global-users.schema.js +23 -46
  64. package/dist/domain/schemas/global-users.schema.js.map +1 -1
  65. package/dist/domain/schemas/tenant.schema.d.ts +35 -89
  66. package/dist/domain/schemas/tenant.schema.d.ts.map +1 -1
  67. package/dist/domain/schemas/tenant.schema.js +85 -274
  68. package/dist/domain/schemas/tenant.schema.js.map +1 -1
  69. package/dist/domain/shared-domain.module.js +3 -2
  70. package/dist/domain/shared-domain.module.js.map +1 -1
  71. package/dist/permissions/check-permission.guard.d.ts +46 -5
  72. package/dist/permissions/check-permission.guard.d.ts.map +1 -1
  73. package/dist/permissions/check-permission.guard.js +8 -14
  74. package/dist/permissions/check-permission.guard.js.map +1 -1
  75. package/dist/permissions/index.d.ts +0 -7
  76. package/dist/permissions/index.d.ts.map +1 -1
  77. package/dist/permissions/index.js +0 -15
  78. package/dist/permissions/index.js.map +1 -1
  79. package/dist/permissions/permissions.d.ts +708 -7787
  80. package/dist/permissions/permissions.d.ts.map +1 -1
  81. package/dist/permissions/permissions.js +1916 -94
  82. package/dist/permissions/permissions.js.map +1 -1
  83. package/dist/shared-module/shared.module.d.ts +0 -1
  84. package/dist/shared-module/shared.module.d.ts.map +1 -1
  85. package/dist/shared-module/shared.module.js +3 -2
  86. package/dist/shared-module/shared.module.js.map +1 -1
  87. package/dist/shared-module/shared.service.d.ts +2 -11
  88. package/dist/shared-module/shared.service.d.ts.map +1 -1
  89. package/dist/shared-module/shared.service.js +20 -73
  90. package/dist/shared-module/shared.service.js.map +1 -1
  91. package/dist/utils/constants.d.ts +4 -19
  92. package/dist/utils/constants.d.ts.map +1 -1
  93. package/dist/utils/constants.js +5 -15
  94. package/dist/utils/constants.js.map +1 -1
  95. package/dist/utils/utils.d.ts +3 -29
  96. package/dist/utils/utils.d.ts.map +1 -1
  97. package/dist/utils/utils.js +12 -132
  98. package/dist/utils/utils.js.map +1 -1
  99. package/package.json +1 -1
  100. package/dist/common/decorators/batch-validation.decorator.d.ts +0 -3
  101. package/dist/common/decorators/batch-validation.decorator.d.ts.map +0 -1
  102. package/dist/common/decorators/batch-validation.decorator.js +0 -27
  103. package/dist/common/decorators/batch-validation.decorator.js.map +0 -1
  104. package/dist/domain/schemas/admission.schema.d.ts +0 -257
  105. package/dist/domain/schemas/admission.schema.d.ts.map +0 -1
  106. package/dist/domain/schemas/admission.schema.js +0 -707
  107. package/dist/domain/schemas/admission.schema.js.map +0 -1
  108. package/dist/domain/schemas/course.schema.d.ts +0 -54
  109. package/dist/domain/schemas/course.schema.d.ts.map +0 -1
  110. package/dist/domain/schemas/course.schema.js +0 -89
  111. package/dist/domain/schemas/course.schema.js.map +0 -1
  112. package/dist/domain/schemas/institution.schema.d.ts +0 -53
  113. package/dist/domain/schemas/institution.schema.d.ts.map +0 -1
  114. package/dist/domain/schemas/institution.schema.js +0 -94
  115. package/dist/domain/schemas/institution.schema.js.map +0 -1
  116. package/dist/domain/schemas/media-record.schema.d.ts +0 -53
  117. package/dist/domain/schemas/media-record.schema.d.ts.map +0 -1
  118. package/dist/domain/schemas/media-record.schema.js +0 -86
  119. package/dist/domain/schemas/media-record.schema.js.map +0 -1
  120. package/dist/domain/schemas/program.schema.d.ts +0 -49
  121. package/dist/domain/schemas/program.schema.d.ts.map +0 -1
  122. package/dist/domain/schemas/program.schema.js +0 -81
  123. package/dist/domain/schemas/program.schema.js.map +0 -1
  124. package/dist/domain/schemas/quota.schema.d.ts +0 -47
  125. package/dist/domain/schemas/quota.schema.d.ts.map +0 -1
  126. package/dist/domain/schemas/quota.schema.js +0 -64
  127. package/dist/domain/schemas/quota.schema.js.map +0 -1
  128. package/dist/domain/schemas/semester.schema.d.ts +0 -50
  129. package/dist/domain/schemas/semester.schema.d.ts.map +0 -1
  130. package/dist/domain/schemas/semester.schema.js +0 -84
  131. package/dist/domain/schemas/semester.schema.js.map +0 -1
  132. package/dist/domain/schemas/sub-schemas.schema.d.ts +0 -270
  133. package/dist/domain/schemas/sub-schemas.schema.d.ts.map +0 -1
  134. package/dist/domain/schemas/sub-schemas.schema.js +0 -904
  135. package/dist/domain/schemas/sub-schemas.schema.js.map +0 -1
  136. package/dist/permissions/app-permissions/commute-x-permissions.d.ts +0 -119
  137. package/dist/permissions/app-permissions/commute-x-permissions.d.ts.map +0 -1
  138. package/dist/permissions/app-permissions/commute-x-permissions.js +0 -129
  139. package/dist/permissions/app-permissions/commute-x-permissions.js.map +0 -1
  140. package/dist/permissions/app-permissions/enroll-x-permissions.d.ts +0 -499
  141. package/dist/permissions/app-permissions/enroll-x-permissions.d.ts.map +0 -1
  142. package/dist/permissions/app-permissions/enroll-x-permissions.js +0 -817
  143. package/dist/permissions/app-permissions/enroll-x-permissions.js.map +0 -1
  144. package/dist/permissions/app-permissions/exams-permissions.d.ts +0 -912
  145. package/dist/permissions/app-permissions/exams-permissions.d.ts.map +0 -1
  146. package/dist/permissions/app-permissions/exams-permissions.js +0 -1702
  147. package/dist/permissions/app-permissions/exams-permissions.js.map +0 -1
  148. package/dist/permissions/app-permissions/hostels-permissions.d.ts +0 -452
  149. package/dist/permissions/app-permissions/hostels-permissions.d.ts.map +0 -1
  150. package/dist/permissions/app-permissions/hostels-permissions.js +0 -580
  151. package/dist/permissions/app-permissions/hostels-permissions.js.map +0 -1
  152. package/dist/permissions/app-permissions/payments-permissions.d.ts +0 -473
  153. package/dist/permissions/app-permissions/payments-permissions.d.ts.map +0 -1
  154. package/dist/permissions/app-permissions/payments-permissions.js +0 -794
  155. package/dist/permissions/app-permissions/payments-permissions.js.map +0 -1
  156. package/dist/permissions/app-permissions/people-x-permissions.d.ts +0 -434
  157. package/dist/permissions/app-permissions/people-x-permissions.d.ts.map +0 -1
  158. package/dist/permissions/app-permissions/people-x-permissions.js +0 -530
  159. package/dist/permissions/app-permissions/people-x-permissions.js.map +0 -1
  160. package/dist/permissions/app-permissions/square-permissions.d.ts +0 -1622
  161. package/dist/permissions/app-permissions/square-permissions.d.ts.map +0 -1
  162. package/dist/permissions/app-permissions/square-permissions.js +0 -2938
  163. package/dist/permissions/app-permissions/square-permissions.js.map +0 -1
@@ -9,17 +9,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ProfileApplicationType = exports.Profile = void 0;
12
+ exports.Profile = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
- const user_entity_1 = require("./user.entity");
15
- let Profile = exports.Profile = class Profile {
16
- equal(data) {
17
- if (data['name'] !== this.name)
18
- return false;
19
- if (data['description'] !== this.description)
20
- return false;
21
- return true;
22
- }
14
+ let Profile = class Profile {
15
+ id;
16
+ name;
17
+ description;
18
+ type;
19
+ createdBy;
20
+ updatedAt;
21
+ createdAt;
23
22
  };
24
23
  __decorate([
25
24
  (0, typeorm_1.PrimaryGeneratedColumn)(),
@@ -32,37 +31,15 @@ __decorate([
32
31
  __decorate([
33
32
  (0, typeorm_1.Column)(),
34
33
  __metadata("design:type", String)
35
- ], Profile.prototype, "application", void 0);
36
- __decorate([
37
- (0, typeorm_1.Column)({ default: false }),
38
- __metadata("design:type", Boolean)
39
- ], Profile.prototype, "isAdmin", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({ default: false }),
42
- __metadata("design:type", Boolean)
43
- ], Profile.prototype, "isDefault", void 0);
34
+ ], Profile.prototype, "description", void 0);
44
35
  __decorate([
45
36
  (0, typeorm_1.Column)(),
46
37
  __metadata("design:type", String)
47
- ], Profile.prototype, "description", void 0);
38
+ ], Profile.prototype, "type", void 0);
48
39
  __decorate([
49
- (0, typeorm_1.Column)({ nullable: true }),
40
+ (0, typeorm_1.Column)(),
50
41
  __metadata("design:type", Number)
51
42
  ], Profile.prototype, "createdBy", void 0);
52
- __decorate([
53
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User),
54
- (0, typeorm_1.JoinColumn)({ name: 'created_by' }),
55
- __metadata("design:type", user_entity_1.User)
56
- ], Profile.prototype, "creator", void 0);
57
- __decorate([
58
- (0, typeorm_1.Column)({ nullable: true }),
59
- __metadata("design:type", Number)
60
- ], Profile.prototype, "updatedBy", void 0);
61
- __decorate([
62
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User),
63
- (0, typeorm_1.JoinColumn)({ name: 'updated_by' }),
64
- __metadata("design:type", user_entity_1.User)
65
- ], Profile.prototype, "updater", void 0);
66
43
  __decorate([
67
44
  (0, typeorm_1.UpdateDateColumn)(),
68
45
  __metadata("design:type", String)
@@ -71,16 +48,8 @@ __decorate([
71
48
  (0, typeorm_1.CreateDateColumn)(),
72
49
  __metadata("design:type", String)
73
50
  ], Profile.prototype, "createdAt", void 0);
74
- exports.Profile = Profile = __decorate([
51
+ Profile = __decorate([
75
52
  (0, typeorm_1.Entity)()
76
53
  ], Profile);
77
- exports.ProfileApplicationType = {
78
- square: 'square',
79
- exams: 'exams',
80
- payments: 'payments',
81
- enroll_x: 'enroll_x',
82
- hostels: 'hostels',
83
- hrms: 'hrms',
84
- commute_x: 'commute_x',
85
- };
54
+ exports.Profile = Profile;
86
55
  //# sourceMappingURL=profile.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,+CAAqC;AAG9B,IAAM,OAAO,qBAAb,MAAM,OAAO;IAuClB,KAAK,CAAC,IAAa;QACjB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,IAAI;YAAE,OAAO,KAAK,CAAC;QAC7C,IAAI,IAAI,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC,WAAW;YAAE,OAAO,KAAK,CAAC;QAC3D,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AA1CC;IADC,IAAA,gCAAsB,GAAE;;mCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;qCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;4CACW;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;wCACV;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0CACR;AAGnB;IADC,IAAA,gBAAM,GAAE;;4CACW;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAA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,0BAAgB,GAAE;;0CACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;0CACD;AApBP,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAqBnB;AArBY,0BAAO"}
@@ -0,0 +1,14 @@
1
+ import { Department } from './department.entity';
2
+ export declare class Program {
3
+ id: number;
4
+ courseId: number;
5
+ branchCode: string;
6
+ branchName: string;
7
+ seats: number;
8
+ branchId: number;
9
+ courseName: string;
10
+ branchDisplay: string;
11
+ departmentId: number;
12
+ department: Department;
13
+ }
14
+ //# sourceMappingURL=program.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/program.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,qBACa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAGtB,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,71 @@
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.Program = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const department_entity_1 = require("./department.entity");
15
+ let Program = class Program {
16
+ id;
17
+ courseId;
18
+ branchCode;
19
+ branchName;
20
+ seats;
21
+ branchId;
22
+ courseName;
23
+ branchDisplay;
24
+ departmentId;
25
+ department;
26
+ };
27
+ __decorate([
28
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
29
+ __metadata("design:type", Number)
30
+ ], Program.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)(),
33
+ __metadata("design:type", Number)
34
+ ], Program.prototype, "courseId", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)(),
37
+ __metadata("design:type", String)
38
+ ], Program.prototype, "branchCode", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)(),
41
+ __metadata("design:type", String)
42
+ ], Program.prototype, "branchName", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)(),
45
+ __metadata("design:type", Number)
46
+ ], Program.prototype, "seats", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)(),
49
+ __metadata("design:type", Number)
50
+ ], Program.prototype, "branchId", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)(),
53
+ __metadata("design:type", String)
54
+ ], Program.prototype, "courseName", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)(),
57
+ __metadata("design:type", String)
58
+ ], Program.prototype, "branchDisplay", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)(),
61
+ __metadata("design:type", Number)
62
+ ], Program.prototype, "departmentId", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.ManyToOne)(() => department_entity_1.Department),
65
+ __metadata("design:type", department_entity_1.Department)
66
+ ], Program.prototype, "department", void 0);
67
+ Program = __decorate([
68
+ (0, typeorm_1.Entity)()
69
+ ], Program);
70
+ exports.Program = Program;
71
+ //# sourceMappingURL=program.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/program.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;AAC5E,2DAAiD;AAG1C,IAAM,OAAO,GAAb,MAAM,OAAO;IAElB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,aAAa,CAAS;IAGtB,YAAY,CAAS;IAGrB,UAAU,CAAa;CACxB,CAAA;AA7BC;IAAC,IAAA,gCAAsB,GAAE;;mCACd;AAEX;IAAC,IAAA,gBAAM,GAAE;;yCACQ;AAEjB;IAAC,IAAA,gBAAM,GAAE;;2CACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;2CACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;sCACK;AAEd;IAAC,IAAA,gBAAM,GAAE;;yCACQ;AAEjB;IAAC,IAAA,gBAAM,GAAE;;2CACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;8CACa;AAEtB;IAAC,IAAA,gBAAM,GAAE;;6CACY;AAErB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAU,CAAC;8BAChB,8BAAU;2CAAC;AA7BZ,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA8BnB;AA9BY,0BAAO"}
@@ -4,35 +4,55 @@ export declare enum Gender {
4
4
  }
5
5
  export declare class Student {
6
6
  id: number;
7
- institutionId: number;
8
- userId: number;
7
+ collegeId: number;
9
8
  rollNo: string;
10
9
  fullName: string;
11
10
  photoId: number;
12
- batch: string;
11
+ admissionNo: string;
13
12
  courseId: number;
14
- programId: number;
15
13
  branchCode: string;
14
+ semester: string;
15
+ semesterId: number;
16
16
  semNo: number;
17
- classroomId: number;
17
+ batch: string;
18
+ batchId: number;
19
+ curriculumId: number;
20
+ programId: number;
18
21
  mobile: string;
19
22
  alternateMobile: string;
20
23
  email: string;
21
- alternateEmail: string;
22
24
  address: string;
25
+ alternateEmail: string;
23
26
  gender: string;
27
+ dob: string;
28
+ parentName: string;
29
+ parentMobile: string;
30
+ parentOccupation: string;
31
+ fatherName: string;
32
+ motherName: string;
33
+ motherOccupation: string;
34
+ motherTongue: string;
35
+ nationality: string;
36
+ religion: string;
37
+ caste: string;
24
38
  hasScholarship: boolean;
25
- detained: boolean;
26
- detainedReason: string;
27
- cancelled: boolean;
39
+ admissionDate: string;
28
40
  discontinued: boolean;
29
41
  discontinuedDate: string;
42
+ yearOfPass: string;
43
+ spotAdmission: boolean;
30
44
  detainee: boolean;
31
- cancelledReason: string;
45
+ aadhaarNo: string;
46
+ userId: number;
47
+ section: string;
48
+ classroomId: number;
49
+ detained: boolean;
50
+ detained_reason: string;
32
51
  transferred: boolean;
33
52
  physicallyChallenged: boolean;
53
+ identificationMark1: string;
54
+ identificationMark2: string;
34
55
  createdAt: string;
35
56
  updatedAt: string;
36
- admissionDate: string;
37
57
  }
38
58
  //# sourceMappingURL=student.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"student.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/student.entity.ts"],"names":[],"mappings":"AAQA,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,qBACa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAGX,aAAa,EAAE,MAAM,CAAC;IAGtB,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,OAAO,EAAE,MAAM,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,UAAU,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE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
16
16
  Gender["Male"] = "male";
17
17
  Gender["Female"] = "female";
18
- })(Gender || (exports.Gender = Gender = {}));
19
- let Student = exports.Student = class Student {
18
+ })(Gender = exports.Gender || (exports.Gender = {}));
19
+ let Student = class Student {
20
+ id;
21
+ collegeId;
22
+ rollNo;
23
+ fullName;
24
+ photoId;
25
+ admissionNo;
26
+ courseId;
27
+ branchCode;
28
+ semester;
29
+ semesterId;
30
+ semNo;
31
+ batch;
32
+ batchId;
33
+ curriculumId;
34
+ programId;
35
+ mobile;
36
+ alternateMobile;
37
+ email;
38
+ address;
39
+ alternateEmail;
40
+ gender;
41
+ dob;
42
+ parentName;
43
+ parentMobile;
44
+ parentOccupation;
45
+ fatherName;
46
+ motherName;
47
+ motherOccupation;
48
+ motherTongue;
49
+ nationality;
50
+ religion;
51
+ caste;
52
+ hasScholarship;
53
+ admissionDate;
54
+ discontinued;
55
+ discontinuedDate;
56
+ yearOfPass;
57
+ spotAdmission;
58
+ detainee;
59
+ aadhaarNo;
60
+ userId;
61
+ section;
62
+ classroomId;
63
+ detained;
64
+ detained_reason;
65
+ transferred;
66
+ physicallyChallenged;
67
+ identificationMark1;
68
+ identificationMark2;
69
+ createdAt;
70
+ updatedAt;
20
71
  };
21
72
  __decorate([
22
73
  (0, typeorm_1.PrimaryGeneratedColumn)(),
23
74
  __metadata("design:type", Number)
24
75
  ], Student.prototype, "id", void 0);
25
- __decorate([
26
- (0, typeorm_1.Column)(),
27
- __metadata("design:type", Number)
28
- ], Student.prototype, "institutionId", void 0);
29
76
  __decorate([
30
77
  (0, typeorm_1.Column)({ nullable: true }),
31
78
  __metadata("design:type", Number)
32
- ], Student.prototype, "userId", void 0);
79
+ ], Student.prototype, "collegeId", void 0);
33
80
  __decorate([
34
81
  (0, typeorm_1.Column)(),
35
82
  __metadata("design:type", String)
36
83
  ], Student.prototype, "rollNo", void 0);
37
84
  __decorate([
38
- (0, typeorm_1.Column)(),
85
+ (0, typeorm_1.Column)({ nullable: true }),
39
86
  __metadata("design:type", String)
40
87
  ], Student.prototype, "fullName", void 0);
41
88
  __decorate([
42
- (0, typeorm_1.Column)({ nullable: true }),
89
+ (0, typeorm_1.Column)(),
43
90
  __metadata("design:type", Number)
44
91
  ], Student.prototype, "photoId", void 0);
45
92
  __decorate([
46
- (0, typeorm_1.Column)(),
93
+ (0, typeorm_1.Column)({ nullable: true }),
47
94
  __metadata("design:type", String)
48
- ], Student.prototype, "batch", void 0);
95
+ ], Student.prototype, "admissionNo", void 0);
49
96
  __decorate([
50
- (0, typeorm_1.Column)(),
97
+ (0, typeorm_1.Column)({ nullable: true }),
51
98
  __metadata("design:type", Number)
52
99
  ], Student.prototype, "courseId", void 0);
100
+ __decorate([
101
+ (0, typeorm_1.Column)({ nullable: true }),
102
+ __metadata("design:type", String)
103
+ ], Student.prototype, "branchCode", void 0);
104
+ __decorate([
105
+ (0, typeorm_1.Column)({ nullable: true }),
106
+ __metadata("design:type", String)
107
+ ], Student.prototype, "semester", void 0);
53
108
  __decorate([
54
109
  (0, typeorm_1.Column)(),
55
110
  __metadata("design:type", Number)
56
- ], Student.prototype, "programId", void 0);
111
+ ], Student.prototype, "semesterId", void 0);
57
112
  __decorate([
58
113
  (0, typeorm_1.Column)(),
114
+ __metadata("design:type", Number)
115
+ ], Student.prototype, "semNo", void 0);
116
+ __decorate([
117
+ (0, typeorm_1.Column)({ nullable: true }),
59
118
  __metadata("design:type", String)
60
- ], Student.prototype, "branchCode", void 0);
119
+ ], Student.prototype, "batch", void 0);
61
120
  __decorate([
62
121
  (0, typeorm_1.Column)(),
63
122
  __metadata("design:type", Number)
64
- ], Student.prototype, "semNo", void 0);
123
+ ], Student.prototype, "batchId", void 0);
65
124
  __decorate([
66
125
  (0, typeorm_1.Column)(),
67
126
  __metadata("design:type", Number)
68
- ], Student.prototype, "classroomId", void 0);
127
+ ], Student.prototype, "curriculumId", void 0);
128
+ __decorate([
129
+ (0, typeorm_1.Column)(),
130
+ __metadata("design:type", Number)
131
+ ], Student.prototype, "programId", void 0);
69
132
  __decorate([
70
133
  (0, typeorm_1.Column)({ nullable: true }),
71
134
  __metadata("design:type", String)
@@ -78,6 +141,10 @@ __decorate([
78
141
  (0, typeorm_1.Column)({ nullable: true }),
79
142
  __metadata("design:type", String)
80
143
  ], Student.prototype, "email", void 0);
144
+ __decorate([
145
+ (0, typeorm_1.Column)(),
146
+ __metadata("design:type", String)
147
+ ], Student.prototype, "address", void 0);
81
148
  __decorate([
82
149
  (0, typeorm_1.Column)({ nullable: true }),
83
150
  __metadata("design:type", String)
@@ -85,51 +152,119 @@ __decorate([
85
152
  __decorate([
86
153
  (0, typeorm_1.Column)(),
87
154
  __metadata("design:type", String)
88
- ], Student.prototype, "address", void 0);
155
+ ], Student.prototype, "gender", void 0);
89
156
  __decorate([
90
157
  (0, typeorm_1.Column)(),
91
158
  __metadata("design:type", String)
92
- ], Student.prototype, "gender", void 0);
159
+ ], Student.prototype, "dob", void 0);
93
160
  __decorate([
94
- (0, typeorm_1.Column)({ default: false }),
95
- __metadata("design:type", Boolean)
96
- ], Student.prototype, "hasScholarship", void 0);
161
+ (0, typeorm_1.Column)({ nullable: true }),
162
+ __metadata("design:type", String)
163
+ ], Student.prototype, "parentName", void 0);
97
164
  __decorate([
98
- (0, typeorm_1.Column)({ default: false }),
99
- __metadata("design:type", Boolean)
100
- ], Student.prototype, "detained", void 0);
165
+ (0, typeorm_1.Column)({ nullable: true }),
166
+ __metadata("design:type", String)
167
+ ], Student.prototype, "parentMobile", void 0);
101
168
  __decorate([
102
169
  (0, typeorm_1.Column)({ nullable: true }),
103
170
  __metadata("design:type", String)
104
- ], Student.prototype, "detainedReason", void 0);
171
+ ], Student.prototype, "parentOccupation", void 0);
105
172
  __decorate([
106
- (0, typeorm_1.Column)({ default: false }),
173
+ (0, typeorm_1.Column)(),
174
+ __metadata("design:type", String)
175
+ ], Student.prototype, "fatherName", void 0);
176
+ __decorate([
177
+ (0, typeorm_1.Column)({ nullable: true }),
178
+ __metadata("design:type", String)
179
+ ], Student.prototype, "motherName", void 0);
180
+ __decorate([
181
+ (0, typeorm_1.Column)({ nullable: true }),
182
+ __metadata("design:type", String)
183
+ ], Student.prototype, "motherOccupation", void 0);
184
+ __decorate([
185
+ (0, typeorm_1.Column)({ nullable: true }),
186
+ __metadata("design:type", String)
187
+ ], Student.prototype, "motherTongue", void 0);
188
+ __decorate([
189
+ (0, typeorm_1.Column)({ nullable: true }),
190
+ __metadata("design:type", String)
191
+ ], Student.prototype, "nationality", void 0);
192
+ __decorate([
193
+ (0, typeorm_1.Column)({ nullable: true }),
194
+ __metadata("design:type", String)
195
+ ], Student.prototype, "religion", void 0);
196
+ __decorate([
197
+ (0, typeorm_1.Column)({ nullable: true }),
198
+ __metadata("design:type", String)
199
+ ], Student.prototype, "caste", void 0);
200
+ __decorate([
201
+ (0, typeorm_1.Column)({ nullable: true }),
107
202
  __metadata("design:type", Boolean)
108
- ], Student.prototype, "cancelled", void 0);
203
+ ], Student.prototype, "hasScholarship", void 0);
109
204
  __decorate([
110
- (0, typeorm_1.Column)({ default: false }),
205
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
206
+ __metadata("design:type", String)
207
+ ], Student.prototype, "admissionDate", void 0);
208
+ __decorate([
209
+ (0, typeorm_1.Column)({ default: false, nullable: true }),
111
210
  __metadata("design:type", Boolean)
112
211
  ], Student.prototype, "discontinued", void 0);
113
212
  __decorate([
114
- (0, typeorm_1.Column)(),
213
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
115
214
  __metadata("design:type", String)
116
215
  ], Student.prototype, "discontinuedDate", void 0);
117
216
  __decorate([
118
- (0, typeorm_1.Column)({ default: false }),
217
+ (0, typeorm_1.Column)({ nullable: true }),
218
+ __metadata("design:type", String)
219
+ ], Student.prototype, "yearOfPass", void 0);
220
+ __decorate([
221
+ (0, typeorm_1.Column)({ default: false, nullable: true }),
222
+ __metadata("design:type", Boolean)
223
+ ], Student.prototype, "spotAdmission", void 0);
224
+ __decorate([
225
+ (0, typeorm_1.Column)({ default: false, nullable: true }),
119
226
  __metadata("design:type", Boolean)
120
227
  ], Student.prototype, "detainee", void 0);
121
228
  __decorate([
122
229
  (0, typeorm_1.Column)({ nullable: true }),
123
230
  __metadata("design:type", String)
124
- ], Student.prototype, "cancelledReason", void 0);
231
+ ], Student.prototype, "aadhaarNo", void 0);
232
+ __decorate([
233
+ (0, typeorm_1.Column)({ nullable: true }),
234
+ __metadata("design:type", Number)
235
+ ], Student.prototype, "userId", void 0);
236
+ __decorate([
237
+ (0, typeorm_1.Column)(),
238
+ __metadata("design:type", String)
239
+ ], Student.prototype, "section", void 0);
240
+ __decorate([
241
+ (0, typeorm_1.Column)(),
242
+ __metadata("design:type", Number)
243
+ ], Student.prototype, "classroomId", void 0);
125
244
  __decorate([
126
- (0, typeorm_1.Column)({ default: false }),
245
+ (0, typeorm_1.Column)(),
246
+ __metadata("design:type", Boolean)
247
+ ], Student.prototype, "detained", void 0);
248
+ __decorate([
249
+ (0, typeorm_1.Column)(),
250
+ __metadata("design:type", String)
251
+ ], Student.prototype, "detained_reason", void 0);
252
+ __decorate([
253
+ (0, typeorm_1.Column)(),
127
254
  __metadata("design:type", Boolean)
128
255
  ], Student.prototype, "transferred", void 0);
129
256
  __decorate([
130
- (0, typeorm_1.Column)({ default: false }),
257
+ (0, typeorm_1.Column)({ default: false, nullable: true }),
131
258
  __metadata("design:type", Boolean)
132
259
  ], Student.prototype, "physicallyChallenged", void 0);
260
+ __decorate([
261
+ (0, typeorm_1.Column)(),
262
+ __metadata("design:type", String)
263
+ ], Student.prototype, "identificationMark1", void 0);
264
+ __decorate([
265
+ (0, typeorm_1.Column)(),
266
+ __metadata("design:type", String)
267
+ ], Student.prototype, "identificationMark2", void 0);
133
268
  __decorate([
134
269
  (0, typeorm_1.CreateDateColumn)(),
135
270
  __metadata("design:type", String)
@@ -138,11 +273,8 @@ __decorate([
138
273
  (0, typeorm_1.UpdateDateColumn)(),
139
274
  __metadata("design:type", String)
140
275
  ], Student.prototype, "updatedAt", void 0);
141
- __decorate([
142
- (0, typeorm_1.Column)(),
143
- __metadata("design:type", String)
144
- ], Student.prototype, "admissionDate", void 0);
145
- exports.Student = Student = __decorate([
276
+ Student = __decorate([
146
277
  (0, typeorm_1.Entity)()
147
278
  ], Student);
279
+ exports.Student = Student;
148
280
  //# sourceMappingURL=student.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"student.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/student.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AAEjB,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,uBAAa,CAAA;IACb,2BAAiB,CAAA;AACnB,CAAC,EAHW,MAAM,sBAAN,MAAM,QAGjB;AAGM,IAAM,OAAO,qBAAb,MAAM,OAAO;CA6FnB,CAAA;AA3FC;IADC,IAAA,gCAAsB,GAAE;;mCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;8CACa;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACZ;AAGf;IADC,IAAA,gBAAM,GAAE;;uCACM;AAGf;IADC,IAAA,gBAAM,GAAE;;yCACQ;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACX;AAGhB;IADC,IAAA,gBAAM,GAAE;;sCACK;AAGd;IADC,IAAA,gBAAM,GAAE;;yCACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;0CACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;2CACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;sCACK;AAGd;IADC,IAAA,gBAAM,GAAE;;4CACW;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACZ;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACH;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACJ;AAGvB;IADC,IAAA,gBAAM,GAAE;;wCACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;uCACM;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACH;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACT;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACJ;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0CACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACL;AAGtB;IADC,IAAA,gBAAM,GAAE;;iDACgB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACT;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACH;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4CACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACG;AAG9B;IADC,IAAA,0BAAgB,GAAE;;0CACD;AAGlB;IADC,IAAA,0BAAgB,GAAE;;0CACD;AAGlB;IADC,IAAA,gBAAM,GAAE;;8CACa;kBA5FX,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA6FnB"}
1
+ {"version":3,"file":"student.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/student.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AAEjB,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,uB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;IAAC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACzB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACZ;AAEf;IAAC,IAAA,gBAAM,GAAE;;wCACO;AAEhB;IAAC,IAAA,gBAAM,GAAE;;4CACW;AAEpB;IAAC,IAAA,gBAAM,GAAE;;yCACS;AAElB;IAAC,IAAA,gBAAM,GAAE;;gDACe;AAExB;IAAC,IAAA,gBAAM,GAAE;;4CACY;AAErB;IAAC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACb;AAE9B;IAAC,IAAA,gBAAM,GAAE;;oDACmB;AAE5B;IAAC,IAAA,gBAAM,GAAE;;oDACmB;AAE5B;IAAC,IAAA,0BAAgB,GAAE;;0CACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;0CACD;AAxJP,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAyJnB;AAzJY,0BAAO"}
@@ -1,3 +1,4 @@
1
+ import { Department } from './department.entity';
1
2
  import { Profile } from './profile.entity';
2
3
  export declare class User {
3
4
  id: number;
@@ -11,8 +12,10 @@ export declare class User {
11
12
  isSuperuser: boolean;
12
13
  roleId: number;
13
14
  departmentId: number;
15
+ department: Department;
14
16
  pictureId: number;
15
17
  profiles: Profile[];
18
+ schoolId: number;
16
19
  createdAt: string;
17
20
  updatedAt: string;
18
21
  verifyPassword(plainTextPassword: string): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/user.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C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B,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAEZ,cAAc,CAAC,iBAAiB,EAAE,MAAM;IAKxC,YAAY;CAGnB"}
@@ -35,8 +35,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.User = void 0;
36
36
  const bcrypt = __importStar(require("bcrypt"));
37
37
  const typeorm_1 = require("typeorm");
38
+ const department_entity_1 = require("./department.entity");
38
39
  const profile_entity_1 = require("./profile.entity");
39
- let User = exports.User = class User {
40
+ let User = class User {
41
+ id;
42
+ type;
43
+ fullName;
44
+ username;
45
+ email;
46
+ mobile;
47
+ password;
48
+ isActive;
49
+ isSuperuser;
50
+ roleId;
51
+ departmentId;
52
+ department;
53
+ pictureId;
54
+ profiles;
55
+ schoolId;
56
+ createdAt;
57
+ updatedAt;
40
58
  async verifyPassword(plainTextPassword) {
41
59
  return bcrypt.compare(plainTextPassword, this.password);
42
60
  }
@@ -88,6 +106,10 @@ __decorate([
88
106
  (0, typeorm_1.Column)(),
89
107
  __metadata("design:type", Number)
90
108
  ], User.prototype, "departmentId", void 0);
109
+ __decorate([
110
+ (0, typeorm_1.ManyToOne)(() => department_entity_1.Department),
111
+ __metadata("design:type", department_entity_1.Department)
112
+ ], User.prototype, "department", void 0);
91
113
  __decorate([
92
114
  (0, typeorm_1.Column)(),
93
115
  __metadata("design:type", Number)
@@ -101,6 +123,10 @@ __decorate([
101
123
  }),
102
124
  __metadata("design:type", Array)
103
125
  ], User.prototype, "profiles", void 0);
126
+ __decorate([
127
+ (0, typeorm_1.Column)(),
128
+ __metadata("design:type", Number)
129
+ ], User.prototype, "schoolId", void 0);
104
130
  __decorate([
105
131
  (0, typeorm_1.CreateDateColumn)(),
106
132
  __metadata("design:type", String)
@@ -115,7 +141,8 @@ __decorate([
115
141
  __metadata("design:paramtypes", []),
116
142
  __metadata("design:returntype", Promise)
117
143
  ], User.prototype, "hashPassword", null);
118
- exports.User = User = __decorate([
144
+ User = __decorate([
119
145
  (0, typeorm_1.Entity)()
120
146
  ], User);
147
+ exports.User = User;
121
148
  //# sourceMappingURL=user.entity.js.map