@platform-modules/civil-aviation-authority 2.3.179 → 2.3.182

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 (65) hide show
  1. package/.env +17 -9
  2. package/dist/models/AnnualTrainingPlanRequestModel.d.ts +3 -3
  3. package/dist/models/AnnualTrainingPlanRequestModel.js +5 -5
  4. package/dist/models/DocumentMetadataModel.d.ts +45 -0
  5. package/dist/models/DocumentMetadataModel.js +171 -0
  6. package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
  7. package/dist/models/DocumentationDepartmentsModel.js +53 -0
  8. package/dist/models/FolderModel.d.ts +16 -0
  9. package/dist/models/FolderModel.js +85 -0
  10. package/dist/models/HallMasterModel.d.ts +1 -0
  11. package/dist/models/HallMasterModel.js +4 -0
  12. package/dist/models/PermissionModel.d.ts +18 -0
  13. package/dist/models/PermissionModel.js +68 -0
  14. package/dist/models/TrainingRequestModel.d.ts +13 -3
  15. package/dist/models/TrainingRequestModel.js +21 -6
  16. package/dist/models/UUIDBaseModel.d.ts +14 -0
  17. package/dist/models/UUIDBaseModel.js +66 -0
  18. package/package.json +24 -24
  19. package/src/index.ts +413 -413
  20. package/src/models/AccommodationApprovalModel.ts +8 -8
  21. package/src/models/AccommodationRequestModel.ts +8 -8
  22. package/src/models/AirportEntryPermitModel.ts +276 -276
  23. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  24. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  25. package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
  26. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  27. package/src/models/CAAServices.ts +33 -33
  28. package/src/models/CAASubServices.ts +33 -33
  29. package/src/models/CAIRatingMasterModel.ts +39 -39
  30. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  31. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  32. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  33. package/src/models/DepartmentsModel.ts +25 -25
  34. package/src/models/DocumentDriveModel.ts +28 -28
  35. package/src/models/DocumentFolderModel.ts +45 -45
  36. package/src/models/HallMasterModel.ts +3 -0
  37. package/src/models/HousingContractCancelChatModel.ts +56 -56
  38. package/src/models/HousingContractRenewalChatModel.ts +59 -59
  39. package/src/models/HrServiceRequestModel.ts +193 -193
  40. package/src/models/ITRequestAttachmentModel.ts +73 -73
  41. package/src/models/ITRequestChatModel.ts +74 -74
  42. package/src/models/ItApprovalsModel.ts +84 -84
  43. package/src/models/ItWorkflowModel.ts +55 -55
  44. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  45. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  46. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  47. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  48. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  49. package/src/models/PromotionRequestModel.ts +11 -11
  50. package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
  51. package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
  52. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  53. package/src/models/StudyLeaveRequestModel.ts +144 -144
  54. package/src/models/TrainingRequestModel.ts +22 -6
  55. package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
  56. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  57. package/src/models/UserSkillModel.ts +56 -56
  58. package/dist/models/ITApprovalSettings.d.ts +0 -7
  59. package/dist/models/ITApprovalSettings.js +0 -40
  60. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  61. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  62. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  63. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  64. package/dist/models/Workflows.d.ts +0 -9
  65. package/dist/models/Workflows.js +0 -31
@@ -9,20 +9,20 @@ export class CAASubServices extends BaseModel {
9
9
  @Column({ type: 'varchar', length: 64, nullable: true, unique: true })
10
10
  code: string | null;
11
11
 
12
- @Column({ nullable: false })
13
- sub_service_name: string;
14
-
15
- @Column({ type: "text", nullable: true })
16
- arabic_name: string | null;
17
-
18
- @Column({ nullable: false })
19
- description: string;
20
-
21
- @Column({ type: "text", nullable: true })
22
- arabic_description: string | null;
23
-
24
- @Column({ nullable: true })
25
- service_id: number;
12
+ @Column({ nullable: false })
13
+ sub_service_name: string;
14
+
15
+ @Column({ type: "text", nullable: true })
16
+ arabic_name: string | null;
17
+
18
+ @Column({ nullable: false })
19
+ description: string;
20
+
21
+ @Column({ type: "text", nullable: true })
22
+ arabic_description: string | null;
23
+
24
+ @Column({ nullable: true })
25
+ service_id: number;
26
26
 
27
27
  @ManyToOne(() => CAAServices)
28
28
  @JoinColumn({ name: 'service_id' })
@@ -31,22 +31,22 @@ export class CAASubServices extends BaseModel {
31
31
  @Column({ nullable: true })
32
32
  logo_url: string;
33
33
 
34
- constructor(
35
- sub_service_name: string,
36
- description: string,
37
- arabic_name: string | null,
38
- arabic_description: string | null,
39
- service_id: number,
40
- logo_url: string,
41
- code: string | null = null
42
- ) {
43
- super();
44
- this.sub_service_name = sub_service_name
45
- this.arabic_name = arabic_name || null;
46
- this.description = description
47
- this.arabic_description = arabic_description || null;
48
- this.service_id = service_id
49
- this.logo_url = logo_url
50
- this.code = code
51
- }
52
- }
34
+ constructor(
35
+ sub_service_name: string,
36
+ description: string,
37
+ arabic_name: string | null,
38
+ arabic_description: string | null,
39
+ service_id: number,
40
+ logo_url: string,
41
+ code: string | null = null
42
+ ) {
43
+ super();
44
+ this.sub_service_name = sub_service_name
45
+ this.arabic_name = arabic_name || null;
46
+ this.description = description
47
+ this.arabic_description = arabic_description || null;
48
+ this.service_id = service_id
49
+ this.logo_url = logo_url
50
+ this.code = code
51
+ }
52
+ }
@@ -1,39 +1,39 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- @Entity({ name: "cai_rating_master" })
5
- export class CAIRatingMaster extends BaseModel {
6
- @Column({ type: "text", nullable: false })
7
- confidentiality: string;
8
-
9
- @Column({ type: "text", nullable: false })
10
- integrity: string;
11
-
12
- @Column({ type: "text", nullable: false })
13
- availability: string;
14
-
15
- @Column({ type: "varchar", length: 100, nullable: false })
16
- rating: string;
17
-
18
- @Column({ type: "varchar", length: 100, nullable: false })
19
- value: string;
20
-
21
- @Column({ type: "boolean", default: true })
22
- is_active: boolean;
23
-
24
- constructor(
25
- confidentiality: string,
26
- integrity: string,
27
- availability: string,
28
- rating: string,
29
- value: string
30
- ) {
31
- super();
32
- this.confidentiality = confidentiality;
33
- this.integrity = integrity;
34
- this.availability = availability;
35
- this.rating = rating;
36
- this.value = value;
37
- this.is_active = true;
38
- }
39
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "cai_rating_master" })
5
+ export class CAIRatingMaster extends BaseModel {
6
+ @Column({ type: "text", nullable: false })
7
+ confidentiality: string;
8
+
9
+ @Column({ type: "text", nullable: false })
10
+ integrity: string;
11
+
12
+ @Column({ type: "text", nullable: false })
13
+ availability: string;
14
+
15
+ @Column({ type: "varchar", length: 100, nullable: false })
16
+ rating: string;
17
+
18
+ @Column({ type: "varchar", length: 100, nullable: false })
19
+ value: string;
20
+
21
+ @Column({ type: "boolean", default: true })
22
+ is_active: boolean;
23
+
24
+ constructor(
25
+ confidentiality: string,
26
+ integrity: string,
27
+ availability: string,
28
+ rating: string,
29
+ value: string
30
+ ) {
31
+ super();
32
+ this.confidentiality = confidentiality;
33
+ this.integrity = integrity;
34
+ this.availability = availability;
35
+ this.rating = rating;
36
+ this.value = value;
37
+ this.is_active = true;
38
+ }
39
+ }
@@ -1,25 +1,25 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- @Entity({ name: "csrm_business_impact_rating_master" })
5
- export class CSRMBusinessImpactRatingMaster extends BaseModel {
6
- @Column({ type: "text", nullable: false })
7
- guidelines: string;
8
-
9
- @Column({ type: "varchar", length: 100, nullable: false })
10
- rating: string;
11
-
12
- @Column({ type: "varchar", length: 100, nullable: false })
13
- value: string;
14
-
15
- @Column({ type: "boolean", default: true })
16
- is_active: boolean;
17
-
18
- constructor(guidelines: string, rating: string, value: string) {
19
- super();
20
- this.guidelines = guidelines;
21
- this.rating = rating;
22
- this.value = value;
23
- this.is_active = true;
24
- }
25
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "csrm_business_impact_rating_master" })
5
+ export class CSRMBusinessImpactRatingMaster extends BaseModel {
6
+ @Column({ type: "text", nullable: false })
7
+ guidelines: string;
8
+
9
+ @Column({ type: "varchar", length: 100, nullable: false })
10
+ rating: string;
11
+
12
+ @Column({ type: "varchar", length: 100, nullable: false })
13
+ value: string;
14
+
15
+ @Column({ type: "boolean", default: true })
16
+ is_active: boolean;
17
+
18
+ constructor(guidelines: string, rating: string, value: string) {
19
+ super();
20
+ this.guidelines = guidelines;
21
+ this.rating = rating;
22
+ this.value = value;
23
+ this.is_active = true;
24
+ }
25
+ }
@@ -1,25 +1,25 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- @Entity({ name: "csrm_likelihood_master" })
5
- export class CSRMLikelihoodMaster extends BaseModel {
6
- @Column({ type: "text", nullable: false })
7
- guidelines: string;
8
-
9
- @Column({ type: "varchar", length: 100, nullable: false })
10
- rating: string;
11
-
12
- @Column({ type: "varchar", length: 100, nullable: false })
13
- value: string;
14
-
15
- @Column({ type: "boolean", default: true })
16
- is_active: boolean;
17
-
18
- constructor(guidelines: string, rating: string, value: string) {
19
- super();
20
- this.guidelines = guidelines;
21
- this.rating = rating;
22
- this.value = value;
23
- this.is_active = true;
24
- }
25
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "csrm_likelihood_master" })
5
+ export class CSRMLikelihoodMaster extends BaseModel {
6
+ @Column({ type: "text", nullable: false })
7
+ guidelines: string;
8
+
9
+ @Column({ type: "varchar", length: 100, nullable: false })
10
+ rating: string;
11
+
12
+ @Column({ type: "varchar", length: 100, nullable: false })
13
+ value: string;
14
+
15
+ @Column({ type: "boolean", default: true })
16
+ is_active: boolean;
17
+
18
+ constructor(guidelines: string, rating: string, value: string) {
19
+ super();
20
+ this.guidelines = guidelines;
21
+ this.rating = rating;
22
+ this.value = value;
23
+ this.is_active = true;
24
+ }
25
+ }
@@ -45,12 +45,12 @@ export class CashAllowanceLeaveRequest extends BaseModel {
45
45
  @Column({ type: "timestamp", nullable: true })
46
46
  assigned_at: Date | null;
47
47
 
48
- @Column({ type: "varchar", length: 255, nullable: true })
49
- workflow_execution_id: string | null;
50
-
51
- @Column({ type: "varchar", length: 255, nullable: true })
52
- reference_number: string | null;
53
-
48
+ @Column({ type: "varchar", length: 255, nullable: true })
49
+ workflow_execution_id: string | null;
50
+
51
+ @Column({ type: "varchar", length: 255, nullable: true })
52
+ reference_number: string | null;
53
+
54
54
  // Cash Allowance for Leave specific fields
55
55
  @Column({ type: "varchar", length: 255, nullable: false })
56
56
  employee_name: string;
@@ -112,11 +112,11 @@ export class CashAllowanceLeaveRequest extends BaseModel {
112
112
  this.req_user_position_id = req_user_position_id || null;
113
113
  this.description = description || null;
114
114
  this.reviewer_user_id = reviewer_user_id || null;
115
- this.assigned_to_user_id = assigned_to_user_id || null;
116
- this.assigned_at = assigned_at || null;
117
- this.workflow_execution_id = workflow_execution_id || null;
118
- this.reference_number = null;
119
- this.employee_name = employee_name || "";
115
+ this.assigned_to_user_id = assigned_to_user_id || null;
116
+ this.assigned_at = assigned_at || null;
117
+ this.workflow_execution_id = workflow_execution_id || null;
118
+ this.reference_number = null;
119
+ this.employee_name = employee_name || "";
120
120
  this.employee_id = employee_id || "";
121
121
  this.job_title = job_title || "";
122
122
  this.salary_grade = salary_grade || "";
@@ -1,26 +1,26 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
-
4
- @Entity({ name: 'departments' })
5
- export class Departments extends BaseModel {
6
-
7
- @Column({ type: 'varchar', length: 64, nullable: false})
8
- department_name: string;
9
-
10
- @Column({ type: 'varchar', length: 64, nullable: false})
11
- department_code: string;
12
-
13
- @Column({ nullable: false })
14
- department_description: string;
15
-
16
- constructor(
17
- department_name: string,
18
- department_code: string,
19
- department_description: string,
20
- ) {
21
- super();
22
- this.department_name = department_name
23
- this.department_code = department_code
24
- this.department_description = department_description
25
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'departments' })
5
+ export class Departments extends BaseModel {
6
+
7
+ @Column({ type: 'varchar', length: 64, nullable: false})
8
+ department_name: string;
9
+
10
+ @Column({ type: 'varchar', length: 64, nullable: false})
11
+ department_code: string;
12
+
13
+ @Column({ nullable: false })
14
+ department_description: string;
15
+
16
+ constructor(
17
+ department_name: string,
18
+ department_code: string,
19
+ department_description: string,
20
+ ) {
21
+ super();
22
+ this.department_name = department_name
23
+ this.department_code = department_code
24
+ this.department_description = department_description
25
+ }
26
26
  }
@@ -1,28 +1,28 @@
1
- import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
- import { Departments } from "./DepartmentsModel";
4
- import { DocumentFolder } from "./DocumentFolderModel";
5
-
6
- @Entity({ name: "document_drives" })
7
- export class DocumentDrive extends BaseModel {
8
- @Column({ type: "integer", nullable: false })
9
- department_id: number;
10
-
11
- @Column({ type: "varchar", length: 255, nullable: false })
12
- name: string;
13
-
14
- @Column({ type: "text", nullable: true })
15
- description: string | null;
16
-
17
- @Column({ type: "boolean", nullable: false, default: true })
18
- is_active: boolean;
19
-
20
- @ManyToOne(() => Departments)
21
- @JoinColumn({ name: "department_id" })
22
- department?: Departments;
23
-
24
- @OneToMany(() => DocumentFolder, (folder) => folder.drive)
25
- folders?: DocumentFolder[];
26
-
27
-
28
- }
1
+ import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+ import { Departments } from "./DepartmentsModel";
4
+ import { DocumentFolder } from "./DocumentFolderModel";
5
+
6
+ @Entity({ name: "document_drives" })
7
+ export class DocumentDrive extends BaseModel {
8
+ @Column({ type: "integer", nullable: false })
9
+ department_id: number;
10
+
11
+ @Column({ type: "varchar", length: 255, nullable: false })
12
+ name: string;
13
+
14
+ @Column({ type: "text", nullable: true })
15
+ description: string | null;
16
+
17
+ @Column({ type: "boolean", nullable: false, default: true })
18
+ is_active: boolean;
19
+
20
+ @ManyToOne(() => Departments)
21
+ @JoinColumn({ name: "department_id" })
22
+ department?: Departments;
23
+
24
+ @OneToMany(() => DocumentFolder, (folder) => folder.drive)
25
+ folders?: DocumentFolder[];
26
+
27
+
28
+ }
@@ -1,45 +1,45 @@
1
- import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
- import { Departments } from './DepartmentsModel';
4
- import { Document } from './DocumentModel';
5
- import { DocumentDrive } from './DocumentDriveModel';
6
-
7
- @Entity({ name: 'document_folders' })
8
- export class DocumentFolder extends BaseModel {
9
-
10
- @Column({ type: 'varchar', length: 100, nullable: false })
11
- name: string;
12
-
13
- @Column({ type: 'integer', nullable: false })
14
- department_id: number;
15
-
16
- @Column({ type: 'integer', nullable: true })
17
- drive_id: number | null;
18
-
19
- @ManyToOne(() => DocumentDrive, (d) => d.folders, { nullable: true })
20
- @JoinColumn({ name: 'drive_id' })
21
- drive?: DocumentDrive;
22
-
23
- @Column({ type: 'integer', nullable: true })
24
- parent_folder_id?: number;
25
-
26
- @Column({ type: 'text', nullable: true })
27
- description?: string;
28
-
29
- @Column({ type: 'boolean', nullable: false, default: true })
30
- is_active: boolean;
31
-
32
- @ManyToOne(() => Departments)
33
- @JoinColumn({ name: 'department_id' })
34
- department?: Departments;
35
-
36
- @ManyToOne(() => DocumentFolder, { nullable: true })
37
- @JoinColumn({ name: 'parent_folder_id' })
38
- parentFolder?: DocumentFolder;
39
-
40
- @OneToMany(() => DocumentFolder, folder => folder.parentFolder)
41
- subFolders?: DocumentFolder[];
42
-
43
- @OneToMany(() => Document, document => document.folder)
44
- documents?: Document[];
45
- }
1
+ import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+ import { Departments } from './DepartmentsModel';
4
+ import { Document } from './DocumentModel';
5
+ import { DocumentDrive } from './DocumentDriveModel';
6
+
7
+ @Entity({ name: 'document_folders' })
8
+ export class DocumentFolder extends BaseModel {
9
+
10
+ @Column({ type: 'varchar', length: 100, nullable: false })
11
+ name: string;
12
+
13
+ @Column({ type: 'integer', nullable: false })
14
+ department_id: number;
15
+
16
+ @Column({ type: 'integer', nullable: true })
17
+ drive_id: number | null;
18
+
19
+ @ManyToOne(() => DocumentDrive, (d) => d.folders, { nullable: true })
20
+ @JoinColumn({ name: 'drive_id' })
21
+ drive?: DocumentDrive;
22
+
23
+ @Column({ type: 'integer', nullable: true })
24
+ parent_folder_id?: number;
25
+
26
+ @Column({ type: 'text', nullable: true })
27
+ description?: string;
28
+
29
+ @Column({ type: 'boolean', nullable: false, default: true })
30
+ is_active: boolean;
31
+
32
+ @ManyToOne(() => Departments)
33
+ @JoinColumn({ name: 'department_id' })
34
+ department?: Departments;
35
+
36
+ @ManyToOne(() => DocumentFolder, { nullable: true })
37
+ @JoinColumn({ name: 'parent_folder_id' })
38
+ parentFolder?: DocumentFolder;
39
+
40
+ @OneToMany(() => DocumentFolder, folder => folder.parentFolder)
41
+ subFolders?: DocumentFolder[];
42
+
43
+ @OneToMany(() => Document, document => document.folder)
44
+ documents?: Document[];
45
+ }
@@ -17,4 +17,7 @@ export class HallMaster extends BaseModel {
17
17
 
18
18
  @Column({ type: "varchar", length: 255, nullable: true })
19
19
  hall_name_in_arabic: string | null;
20
+
21
+ @Column({ type: "varchar", length: 255, nullable: true })
22
+ hall_type: string | null;
20
23
  }
@@ -1,56 +1,56 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum HousingContractCancelMessageType {
5
- text = 'text',
6
- image = 'image',
7
- video = 'video',
8
- file = 'file',
9
- link = 'link'
10
- }
11
-
12
- export enum HousingContractCancelChatStatus {
13
- Pending = 'Pending',
14
- Received = 'Received',
15
- Approved = 'Approved',
16
- Rejected = 'Rejected',
17
- InProgress = 'In Progress',
18
- }
19
-
20
- @Entity({ name: 'housing_contract_cancel_chat' })
21
- export class HousingContractCancelChat extends BaseModel {
22
-
23
- @Column({ type: 'int', nullable: false })
24
- request_id: number;
25
-
26
- @Column({ type: 'int', nullable: false })
27
- service_id: number;
28
-
29
- @Column({ type: 'int', nullable: false })
30
- sub_service_id: number;
31
-
32
- @Column({ type: 'int', nullable: false })
33
- user_id: number;
34
-
35
- @Column({ type: 'text', nullable: false })
36
- message: string;
37
-
38
- @Column({ type: 'int', nullable: true })
39
- approver_role_id: number | null;
40
-
41
- @Column({ type: 'varchar', length: 255, nullable: false, default: 'Pending' })
42
- status: string;
43
-
44
- @Column({ type: 'varchar', length: 20, nullable: false })
45
- message_type: string;
46
-
47
- @Column({ type: 'boolean', nullable: false, default: false })
48
- is_internal: boolean;
49
-
50
- @Column({ type: 'int', nullable: false })
51
- created_by: number;
52
-
53
- constructor() {
54
- super();
55
- }
56
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum HousingContractCancelMessageType {
5
+ text = 'text',
6
+ image = 'image',
7
+ video = 'video',
8
+ file = 'file',
9
+ link = 'link'
10
+ }
11
+
12
+ export enum HousingContractCancelChatStatus {
13
+ Pending = 'Pending',
14
+ Received = 'Received',
15
+ Approved = 'Approved',
16
+ Rejected = 'Rejected',
17
+ InProgress = 'In Progress',
18
+ }
19
+
20
+ @Entity({ name: 'housing_contract_cancel_chat' })
21
+ export class HousingContractCancelChat extends BaseModel {
22
+
23
+ @Column({ type: 'int', nullable: false })
24
+ request_id: number;
25
+
26
+ @Column({ type: 'int', nullable: false })
27
+ service_id: number;
28
+
29
+ @Column({ type: 'int', nullable: false })
30
+ sub_service_id: number;
31
+
32
+ @Column({ type: 'int', nullable: false })
33
+ user_id: number;
34
+
35
+ @Column({ type: 'text', nullable: false })
36
+ message: string;
37
+
38
+ @Column({ type: 'int', nullable: true })
39
+ approver_role_id: number | null;
40
+
41
+ @Column({ type: 'varchar', length: 255, nullable: false, default: 'Pending' })
42
+ status: string;
43
+
44
+ @Column({ type: 'varchar', length: 20, nullable: false })
45
+ message_type: string;
46
+
47
+ @Column({ type: 'boolean', nullable: false, default: false })
48
+ is_internal: boolean;
49
+
50
+ @Column({ type: 'int', nullable: false })
51
+ created_by: number;
52
+
53
+ constructor() {
54
+ super();
55
+ }
56
+ }