@platform-modules/foreign-ministry 1.0.80 → 1.0.81

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 (74) hide show
  1. package/.env +2 -2
  2. package/dist/data-source.js +2 -12
  3. package/dist/index.d.ts +13 -5
  4. package/dist/index.js +13 -5
  5. package/dist/models/AllowanceRequestsModel.d.ts +9 -0
  6. package/dist/models/AllowanceRequestsModel.js +49 -0
  7. package/dist/models/AllowanceTypesModel.d.ts +8 -0
  8. package/dist/models/AllowanceTypesModel.js +43 -0
  9. package/dist/models/BankAccountChangeRequestsModel.d.ts +12 -0
  10. package/dist/models/BankAccountChangeRequestsModel.js +62 -0
  11. package/dist/models/FMServices.js +1 -1
  12. package/dist/models/FinancialApprovalsModel.d.ts +17 -0
  13. package/dist/models/FinancialApprovalsModel.js +63 -0
  14. package/dist/models/FinancialAttachmentsModel.d.ts +8 -0
  15. package/dist/models/FinancialAttachmentsModel.js +44 -0
  16. package/dist/models/FinancialChatsModel.d.ts +7 -0
  17. package/dist/models/{PortalFeedbackModel.js → FinancialChatsModel.js} +19 -24
  18. package/dist/models/FinancialRequestsModel.d.ts +29 -0
  19. package/dist/models/FinancialRequestsModel.js +103 -0
  20. package/dist/models/FinancialSettingsModel.d.ts +8 -0
  21. package/dist/models/FinancialSettingsModel.js +44 -0
  22. package/dist/models/FinancialWorkFlowModel.d.ts +16 -0
  23. package/dist/models/FinancialWorkFlowModel.js +61 -0
  24. package/dist/models/PayslipRequestsModel.d.ts +8 -0
  25. package/dist/models/PayslipRequestsModel.js +44 -0
  26. package/dist/models/ReimbursementRequestsModel.d.ts +14 -0
  27. package/dist/models/ReimbursementRequestsModel.js +73 -0
  28. package/dist/models/RequestTypeMasterModel.d.ts +11 -0
  29. package/dist/models/RequestTypeMasterModel.js +55 -0
  30. package/dist/models/SalaryCertificateRequestsModel.d.ts +12 -0
  31. package/dist/models/SalaryCertificateRequestsModel.js +62 -0
  32. package/dist/models/role.d.ts +7 -1
  33. package/dist/models/role.js +2 -2
  34. package/dist/models/user.d.ts +1 -5
  35. package/dist/models/user.js +2 -22
  36. package/package.json +1 -1
  37. package/src/data-source.ts +2 -12
  38. package/src/index.ts +13 -5
  39. package/src/models/AllowanceRequestsModel.ts +38 -0
  40. package/src/models/AllowanceTypesModel.ts +26 -0
  41. package/src/models/BankAccountChangeRequestsModel.ts +50 -0
  42. package/src/models/FMServices.ts +1 -1
  43. package/src/models/FinancialApprovalsModel.ts +47 -0
  44. package/src/models/FinancialAttachmentsModel.ts +30 -0
  45. package/src/models/FinancialChatsModel.ts +22 -0
  46. package/src/models/FinancialRequestsModel.ts +81 -0
  47. package/src/models/FinancialSettingsModel.ts +30 -0
  48. package/src/models/FinancialWorkFlowModel.ts +46 -0
  49. package/src/models/PayslipRequestsModel.ts +26 -0
  50. package/src/models/ReimbursementRequestsModel.ts +58 -0
  51. package/src/models/RequestTypeMasterModel.ts +36 -0
  52. package/src/models/SalaryCertificateRequestsModel.ts +40 -0
  53. package/src/models/role.ts +7 -1
  54. package/src/models/user.ts +0 -21
  55. package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
  56. package/dist/models/HelpContentMappedCategoriesModel.js +0 -34
  57. package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
  58. package/dist/models/HelpContentMappedTagsModel.js +0 -34
  59. package/dist/models/HelpContentTagsModel.d.ts +0 -5
  60. package/dist/models/HelpContentTagsModel.js +0 -29
  61. package/dist/models/HolidaysModel.d.ts +0 -11
  62. package/dist/models/HolidaysModel.js +0 -59
  63. package/dist/models/NotificationModel.d.ts +0 -18
  64. package/dist/models/NotificationModel.js +0 -79
  65. package/dist/models/PortalFeedbackModel.d.ts +0 -8
  66. package/dist/models/roleRightsModel.d.ts +0 -16
  67. package/dist/models/roleRightsModel.js +0 -44
  68. package/dist/models/userRolesModel.d.ts +0 -19
  69. package/dist/models/userRolesModel.js +0 -59
  70. package/src/models/HolidaysModel.ts +0 -46
  71. package/src/models/NotificationModel.ts +0 -68
  72. package/src/models/PortalFeedbackModel.ts +0 -33
  73. package/src/models/roleRightsModel.ts +0 -31
  74. package/src/models/userRolesModel.ts +0 -42
@@ -1,11 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class Holidays extends BaseModel {
3
- title: string;
4
- holiday_date: Date;
5
- description?: string;
6
- region?: string;
7
- is_optional: boolean;
8
- holiday_type: string;
9
- year?: number;
10
- constructor(title: string, holiday_date: Date, description?: string, region?: string, is_optional?: boolean, holiday_type?: string, year?: number);
11
- }
@@ -1,59 +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.Holidays = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let Holidays = class Holidays extends BaseModel_1.BaseModel {
16
- constructor(title, holiday_date, description, region, is_optional = false, holiday_type = 'Public', year) {
17
- super();
18
- this.title = title;
19
- this.holiday_date = holiday_date;
20
- this.description = description;
21
- this.region = region;
22
- this.is_optional = is_optional;
23
- this.holiday_type = holiday_type;
24
- this.year = year;
25
- }
26
- };
27
- exports.Holidays = Holidays;
28
- __decorate([
29
- (0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
30
- __metadata("design:type", String)
31
- ], Holidays.prototype, "title", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)({ type: 'date', name: 'holiday_date' }),
34
- __metadata("design:type", Date)
35
- ], Holidays.prototype, "holiday_date", void 0);
36
- __decorate([
37
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
38
- __metadata("design:type", String)
39
- ], Holidays.prototype, "description", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
42
- __metadata("design:type", String)
43
- ], Holidays.prototype, "region", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({ type: 'boolean', name: 'is_optional', default: false }),
46
- __metadata("design:type", Boolean)
47
- ], Holidays.prototype, "is_optional", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ type: 'varchar', length: 30, name: 'holiday_type', default: 'Public' }),
50
- __metadata("design:type", String)
51
- ], Holidays.prototype, "holiday_type", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
54
- __metadata("design:type", Number)
55
- ], Holidays.prototype, "year", void 0);
56
- exports.Holidays = Holidays = __decorate([
57
- (0, typeorm_1.Entity)({ name: 'holidays' }),
58
- __metadata("design:paramtypes", [String, Date, String, String, Boolean, String, Number])
59
- ], Holidays);
@@ -1,18 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare enum NotificationType {
3
- REQUEST_RAISED = "request raised",
4
- REMINDER = "reminder",
5
- IMPORT = "import"
6
- }
7
- export declare class Notification extends BaseModel {
8
- type: NotificationType;
9
- user_id: number;
10
- role_id: number;
11
- department_id: number;
12
- section_id: number;
13
- content: any;
14
- is_read: boolean;
15
- request_id: number;
16
- route_path: string;
17
- constructor(type: NotificationType, user_id: number, role_id: number, department_id: number, section_id: number, content: any, is_read: boolean, request_id: number, route_path: string);
18
- }
@@ -1,79 +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.Notification = exports.NotificationType = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- var NotificationType;
16
- (function (NotificationType) {
17
- NotificationType["REQUEST_RAISED"] = "request raised";
18
- NotificationType["REMINDER"] = "reminder";
19
- NotificationType["IMPORT"] = "import";
20
- })(NotificationType || (exports.NotificationType = NotificationType = {}));
21
- let Notification = class Notification extends BaseModel_1.BaseModel {
22
- constructor(type, user_id, role_id, department_id, section_id, content, is_read, request_id, route_path) {
23
- super();
24
- this.type = type;
25
- this.user_id = user_id;
26
- this.role_id = role_id;
27
- this.department_id = department_id;
28
- this.section_id = section_id;
29
- this.content = content;
30
- this.is_read = is_read;
31
- this.request_id = request_id;
32
- this.route_path = route_path;
33
- }
34
- };
35
- exports.Notification = Notification;
36
- __decorate([
37
- (0, typeorm_1.Column)({
38
- type: "enum",
39
- enum: NotificationType,
40
- nullable: false,
41
- }),
42
- __metadata("design:type", String)
43
- ], Notification.prototype, "type", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
46
- __metadata("design:type", Number)
47
- ], Notification.prototype, "user_id", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
50
- __metadata("design:type", Number)
51
- ], Notification.prototype, "role_id", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
54
- __metadata("design:type", Number)
55
- ], Notification.prototype, "department_id", void 0);
56
- __decorate([
57
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
58
- __metadata("design:type", Number)
59
- ], Notification.prototype, "section_id", void 0);
60
- __decorate([
61
- (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
62
- __metadata("design:type", Object)
63
- ], Notification.prototype, "content", void 0);
64
- __decorate([
65
- (0, typeorm_1.Column)({ type: 'boolean', default: false }),
66
- __metadata("design:type", Boolean)
67
- ], Notification.prototype, "is_read", void 0);
68
- __decorate([
69
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
70
- __metadata("design:type", Number)
71
- ], Notification.prototype, "request_id", void 0);
72
- __decorate([
73
- (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
74
- __metadata("design:type", String)
75
- ], Notification.prototype, "route_path", void 0);
76
- exports.Notification = Notification = __decorate([
77
- (0, typeorm_1.Entity)({ name: 'notification' }),
78
- __metadata("design:paramtypes", [String, Number, Number, Number, Number, Object, Boolean, Number, String])
79
- ], Notification);
@@ -1,8 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- import { Rating } from './feedbackModel';
3
- export declare class PortalFeedback extends BaseModel {
4
- comment: string;
5
- rating: Rating;
6
- user_Id: number;
7
- constructor(comment: string, rating: Rating, user_Id: number);
8
- }
@@ -1,16 +0,0 @@
1
- /** *
2
- @author
3
- Amnet Digital
4
- @date
5
- 2024-05-20
6
- @Model
7
- Role
8
- @usage
9
- Userrole Information will store
10
- */
11
- import { BaseModel } from './BaseModel';
12
- export declare class RoleRights extends BaseModel {
13
- user_role_id: number;
14
- service_id: number;
15
- constructor(user_role_id: number, service_id: number);
16
- }
@@ -1,44 +0,0 @@
1
- "use strict";
2
- /** *
3
- @author
4
- Amnet Digital
5
- @date
6
- 2024-05-20
7
- @Model
8
- Role
9
- @usage
10
- Userrole Information will store
11
- */
12
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
- 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;
16
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17
- };
18
- var __metadata = (this && this.__metadata) || function (k, v) {
19
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.RoleRights = void 0;
23
- const typeorm_1 = require("typeorm");
24
- const BaseModel_1 = require("./BaseModel");
25
- let RoleRights = class RoleRights extends BaseModel_1.BaseModel {
26
- constructor(user_role_id, service_id) {
27
- super();
28
- this.user_role_id = user_role_id;
29
- this.service_id = service_id;
30
- }
31
- };
32
- exports.RoleRights = RoleRights;
33
- __decorate([
34
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
35
- __metadata("design:type", Number)
36
- ], RoleRights.prototype, "user_role_id", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
39
- __metadata("design:type", Number)
40
- ], RoleRights.prototype, "service_id", void 0);
41
- exports.RoleRights = RoleRights = __decorate([
42
- (0, typeorm_1.Entity)({ name: 'role_rights' }),
43
- __metadata("design:paramtypes", [Number, Number])
44
- ], RoleRights);
@@ -1,19 +0,0 @@
1
- /** *
2
- @author
3
- Amnet Digital
4
- @date
5
- 2024-05-20
6
- @Model
7
- Role
8
- @usage
9
- Userrole Information will store
10
- */
11
- import { BaseModel } from './BaseModel';
12
- export declare class UserRole extends BaseModel {
13
- role_id: number;
14
- user_id: number;
15
- department_id: number;
16
- section_id: number;
17
- is_active: boolean;
18
- constructor(role_id: number, user_id: number, department_id: number, section_id: number, is_active?: boolean);
19
- }
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /** *
3
- @author
4
- Amnet Digital
5
- @date
6
- 2024-05-20
7
- @Model
8
- Role
9
- @usage
10
- Userrole Information will store
11
- */
12
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
- 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;
16
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17
- };
18
- var __metadata = (this && this.__metadata) || function (k, v) {
19
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.UserRole = void 0;
23
- const typeorm_1 = require("typeorm");
24
- const BaseModel_1 = require("./BaseModel");
25
- let UserRole = class UserRole extends BaseModel_1.BaseModel {
26
- constructor(role_id, user_id, department_id, section_id, is_active = false) {
27
- super();
28
- this.role_id = role_id;
29
- this.user_id = user_id;
30
- this.department_id = department_id;
31
- this.section_id = section_id;
32
- this.is_active = is_active;
33
- }
34
- };
35
- exports.UserRole = UserRole;
36
- __decorate([
37
- (0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
38
- __metadata("design:type", Number)
39
- ], UserRole.prototype, "role_id", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
42
- __metadata("design:type", Number)
43
- ], UserRole.prototype, "user_id", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
46
- __metadata("design:type", Number)
47
- ], UserRole.prototype, "department_id", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
50
- __metadata("design:type", Number)
51
- ], UserRole.prototype, "section_id", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ type: 'boolean', default: false }),
54
- __metadata("design:type", Boolean)
55
- ], UserRole.prototype, "is_active", void 0);
56
- exports.UserRole = UserRole = __decorate([
57
- (0, typeorm_1.Entity)({ name: 'user_role' }),
58
- __metadata("design:paramtypes", [Number, Number, Number, Number, Boolean])
59
- ], UserRole);
@@ -1,46 +0,0 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
-
4
- @Entity({ name: 'holidays' })
5
- export class Holidays extends BaseModel {
6
-
7
- @Column({ type: 'varchar', length: 200 })
8
- title: string;
9
-
10
- @Column({ type: 'date', name: 'holiday_date' })
11
- holiday_date: Date;
12
-
13
- @Column({ type: 'text', nullable: true })
14
- description?: string;
15
-
16
- @Column({ type: 'varchar', length: 200, nullable: true })
17
- region?: string;
18
-
19
- @Column({ type: 'boolean', name: 'is_optional', default: false })
20
- is_optional: boolean;
21
-
22
- @Column({ type: 'varchar', length: 30, name: 'holiday_type', default: 'Public' })
23
- holiday_type: string;
24
-
25
- @Column({ type: 'int', nullable: true })
26
- year?: number;
27
-
28
- constructor(
29
- title: string,
30
- holiday_date: Date,
31
- description?: string,
32
- region?: string,
33
- is_optional: boolean = false,
34
- holiday_type: string = 'Public',
35
- year?: number
36
- ) {
37
- super();
38
- this.title = title;
39
- this.holiday_date = holiday_date;
40
- this.description = description;
41
- this.region = region;
42
- this.is_optional = is_optional;
43
- this.holiday_type = holiday_type;
44
- this.year = year;
45
- }
46
- }
@@ -1,68 +0,0 @@
1
-
2
- import { Column, Entity } from "typeorm";
3
- import { BaseModel } from './BaseModel';
4
-
5
- export enum NotificationType {
6
- REQUEST_RAISED = 'request raised',
7
- REMINDER = 'reminder',
8
- IMPORT = 'import',
9
- }
10
-
11
- @Entity({ name: 'notification' })
12
- export class Notification extends BaseModel {
13
-
14
- @Column({
15
- type: "enum",
16
- enum: NotificationType,
17
- nullable: false,
18
- })
19
- type: NotificationType;
20
-
21
- @Column({ type: 'bigint', nullable: false })
22
- user_id: number;
23
-
24
- @Column({ type: 'bigint', nullable: true })
25
- role_id: number;
26
-
27
- @Column({ type: 'bigint', nullable: true })
28
- department_id: number;
29
-
30
- @Column({ type: 'bigint', nullable: true })
31
- section_id: number;
32
-
33
- @Column({ type: 'jsonb', nullable: true })
34
- content: any;
35
-
36
- @Column({ type: 'boolean', default: false })
37
- is_read: boolean;
38
-
39
- @Column({ type: 'bigint', nullable: true })
40
- request_id: number;
41
-
42
- @Column({ type: 'varchar', length: 500, nullable: true })
43
- route_path: string;
44
-
45
- constructor(
46
- type: NotificationType,
47
- user_id: number,
48
- role_id: number,
49
- department_id: number,
50
- section_id: number,
51
- content: any,
52
- is_read: boolean,
53
- request_id: number,
54
- route_path: string
55
- ) {
56
- super();
57
- this.type = type;
58
- this.user_id = user_id;
59
- this.role_id = role_id;
60
- this.department_id = department_id;
61
- this.section_id = section_id;
62
- this.content = content;
63
- this.is_read = is_read;
64
- this.request_id = request_id;
65
- this.route_path = route_path;
66
- }
67
- }
68
-
@@ -1,33 +0,0 @@
1
-
2
- import { Column, Entity } from "typeorm";
3
- import { BaseModel } from './BaseModel';
4
- import { Rating } from './feedbackModel';
5
-
6
- @Entity({ name: 'portal_feedback' })
7
- export class PortalFeedback extends BaseModel {
8
-
9
- @Column({ nullable: true })
10
- comment: string;
11
-
12
- @Column({
13
- type: "enum",
14
- enum: Rating,
15
- nullable: true,
16
- })
17
- rating: Rating;
18
-
19
- @Column({ nullable: true })
20
- user_Id: number;
21
-
22
- constructor(
23
- comment: string,
24
- rating: Rating,
25
- user_Id: number,
26
- ) {
27
- super();
28
- this.comment = comment,
29
- this.rating = rating,
30
- this.user_Id = user_Id
31
- }
32
- }
33
-
@@ -1,31 +0,0 @@
1
- /** *
2
- @author
3
- Amnet Digital
4
- @date
5
- 2024-05-20
6
- @Model
7
- Role
8
- @usage
9
- Userrole Information will store
10
- */
11
-
12
- import { Column, Entity } from "typeorm";
13
- import { BaseModel } from './BaseModel';
14
-
15
-
16
- @Entity({ name: 'role_rights' })
17
- export class RoleRights extends BaseModel {
18
-
19
- @Column({ type: 'bigint', nullable: true })
20
- user_role_id: number;
21
-
22
- @Column({ type: 'bigint', nullable: false })
23
- service_id: number;
24
-
25
-
26
- constructor(user_role_id: number, service_id: number) {
27
- super();
28
- this.user_role_id = user_role_id
29
- this.service_id = service_id
30
- }
31
- }
@@ -1,42 +0,0 @@
1
- /** *
2
- @author
3
- Amnet Digital
4
- @date
5
- 2024-05-20
6
- @Model
7
- Role
8
- @usage
9
- Userrole Information will store
10
- */
11
-
12
- import { Column, Entity } from "typeorm";
13
- import { BaseModel } from './BaseModel';
14
-
15
-
16
- @Entity({ name: 'user_role' })
17
- export class UserRole extends BaseModel {
18
-
19
- @Column({ type: 'bigint', nullable: false })
20
- role_id: number;
21
-
22
- @Column({ type: 'bigint', nullable: false })
23
- user_id: number;
24
-
25
- @Column({ type: 'bigint', nullable: true })
26
- department_id: number;
27
-
28
- @Column({ type: 'bigint', nullable: true })
29
- section_id: number;
30
-
31
- @Column({ type: 'boolean', default: false })
32
- is_active: boolean;
33
-
34
- constructor(role_id: number, user_id: number, department_id: number, section_id: number, is_active: boolean = false) {
35
- super();
36
- this.role_id = role_id
37
- this.user_id = user_id
38
- this.department_id = department_id
39
- this.section_id = section_id
40
- this.is_active = is_active
41
- }
42
- }