@platform-modules/foreign-ministry 1.3.255 → 1.3.256

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 (34) hide show
  1. package/.env +15 -3
  2. package/dist/data-source.js +10 -0
  3. package/dist/index.d.ts +5 -0
  4. package/dist/index.js +5 -0
  5. package/dist/models/AssistanceCitizensAbroadApprovalModel.d.ts +22 -0
  6. package/dist/models/AssistanceCitizensAbroadApprovalModel.js +84 -0
  7. package/dist/models/AssistanceCitizensAbroadAttachmentModel.d.ts +11 -0
  8. package/dist/models/AssistanceCitizensAbroadAttachmentModel.js +52 -0
  9. package/dist/models/AssistanceCitizensAbroadChatModel.d.ts +19 -0
  10. package/dist/models/AssistanceCitizensAbroadChatModel.js +78 -0
  11. package/dist/models/AssistanceCitizensAbroadRequestModel.d.ts +32 -0
  12. package/dist/models/AssistanceCitizensAbroadRequestModel.js +102 -0
  13. package/dist/models/AssistanceCitizensAbroadWorkflowModel.d.ts +17 -0
  14. package/dist/models/AssistanceCitizensAbroadWorkflowModel.js +67 -0
  15. package/package.json +1 -1
  16. package/src/data-source.ts +10 -0
  17. package/src/index.ts +5 -0
  18. package/src/models/AssistanceCitizensAbroadApprovalModel.ts +56 -0
  19. package/src/models/AssistanceCitizensAbroadAttachmentModel.ts +29 -0
  20. package/src/models/AssistanceCitizensAbroadChatModel.ts +64 -0
  21. package/src/models/AssistanceCitizensAbroadRequestModel.ts +73 -0
  22. package/src/models/AssistanceCitizensAbroadWorkflowModel.ts +43 -0
  23. package/src/models/FinancialWorkFlowModel.ts +15 -15
  24. package/src/models/GatePassVisitorsModel.ts +7 -7
  25. package/src/models/PollOptionsModel.ts +26 -26
  26. package/src/models/PollVotesModel.ts +37 -37
  27. package/src/models/PollsModel.ts +49 -49
  28. package/src/models/ResignationTerminationApprovalModel.ts +9 -9
  29. package/src/models/ResignationTerminationRequestModel.ts +9 -9
  30. package/src/models/TelephoneDirectoryModel.ts +20 -20
  31. package/dist/models/EmbassyMasterModel.d.ts +0 -16
  32. package/dist/models/EmbassyMasterModel.js +0 -75
  33. package/dist/models/UserDependentsModel.d.ts +0 -18
  34. package/dist/models/UserDependentsModel.js +0 -94
@@ -0,0 +1,56 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum AssistanceCitizensAbroadApprovalStatus {
5
+ PENDING = 'Pending',
6
+ IN_PROGRESS = 'In Progress',
7
+ APPROVED = 'Approved',
8
+ REJECTED = 'Rejected',
9
+ }
10
+
11
+ @Entity({ name: 'assistance_citizens_abroad_approvals' })
12
+ export class AssistanceCitizensAbroadApprovalDetails extends BaseModel {
13
+ @Column({ type: 'integer', nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: 'integer', nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: 'integer', nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: 'integer', nullable: false })
23
+ level: number;
24
+
25
+ @Column({ type: 'integer', nullable: true })
26
+ approver_role_id: number;
27
+
28
+ @Column({ type: 'integer', nullable: true })
29
+ department_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ section_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ approver_user_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ delegate_user_id: number | null;
39
+
40
+ @Column({ type: 'integer', nullable: true })
41
+ approved_by: number | null;
42
+
43
+ @Column({ type: 'varchar', length: 500, nullable: true, default: '' })
44
+ comment: string;
45
+
46
+ @Column({
47
+ type: 'enum',
48
+ enum: AssistanceCitizensAbroadApprovalStatus,
49
+ default: AssistanceCitizensAbroadApprovalStatus.PENDING,
50
+ nullable: false,
51
+ })
52
+ approval_status: AssistanceCitizensAbroadApprovalStatus;
53
+
54
+ @Column({ type: 'boolean', default: true, nullable: false })
55
+ is_allowed: boolean;
56
+ }
@@ -0,0 +1,29 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'assistance_citizens_abroad_attachments' })
5
+ export class AssistanceCitizensAbroadRequestAttachment extends BaseModel {
6
+ @Column({ type: 'integer', nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: 'integer', nullable: true })
10
+ service_id: number | null;
11
+
12
+ @Column({ type: 'integer', nullable: true })
13
+ sub_service_id: number | null;
14
+
15
+ @Column({ type: 'varchar', length: 500, nullable: false })
16
+ file_url: string;
17
+
18
+ @Column({ type: 'varchar', length: 255, nullable: true })
19
+ file_name: string;
20
+
21
+ @Column({ type: 'varchar', length: 100, nullable: true })
22
+ file_type: string;
23
+
24
+ @Column({ type: 'bigint', nullable: true })
25
+ file_size: number | null;
26
+
27
+ @Column({ type: 'integer', nullable: true })
28
+ chat_id: number | null;
29
+ }
@@ -0,0 +1,64 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+ import { AssistanceCitizensAbroadApprovalStatus } from './AssistanceCitizensAbroadApprovalModel';
4
+
5
+ export enum AssistanceCitizensAbroadMessageType {
6
+ TEXT = 'text',
7
+ IMAGE = 'image',
8
+ VIDEO = 'video',
9
+ FILE = 'file',
10
+ LINK = 'link',
11
+ }
12
+
13
+ @Entity({ name: 'assistance_citizens_abroad_chats' })
14
+ export class AssistanceCitizensAbroadRequestChat extends BaseModel {
15
+ @Column({ type: 'integer', nullable: false })
16
+ request_id: number;
17
+
18
+ @Column({ type: 'integer', nullable: true })
19
+ service_id: number | null;
20
+
21
+ @Column({ type: 'integer', nullable: true })
22
+ sub_service_id: number | null;
23
+
24
+ @Column({ type: 'integer', nullable: false })
25
+ user_id: number;
26
+
27
+ @Column({ type: 'integer', nullable: true })
28
+ role_id: number;
29
+
30
+ @Column({ type: 'text', nullable: false })
31
+ message: string;
32
+
33
+ @Column({
34
+ type: 'enum',
35
+ enum: AssistanceCitizensAbroadMessageType,
36
+ default: AssistanceCitizensAbroadMessageType.TEXT,
37
+ nullable: false,
38
+ })
39
+ messageType: AssistanceCitizensAbroadMessageType;
40
+
41
+ @Column({ type: 'text', nullable: true })
42
+ status: string;
43
+
44
+ constructor(
45
+ request_id: number,
46
+ user_id: number,
47
+ role_id: number,
48
+ message: string,
49
+ service_id?: number,
50
+ sub_service_id?: number,
51
+ messageType?: AssistanceCitizensAbroadMessageType,
52
+ status?: string
53
+ ) {
54
+ super();
55
+ this.request_id = request_id;
56
+ this.service_id = service_id || null;
57
+ this.sub_service_id = sub_service_id || null;
58
+ this.user_id = user_id;
59
+ this.role_id = role_id;
60
+ this.message = message;
61
+ this.messageType = messageType || AssistanceCitizensAbroadMessageType.TEXT;
62
+ this.status = status || AssistanceCitizensAbroadApprovalStatus.PENDING;
63
+ }
64
+ }
@@ -0,0 +1,73 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum AssistanceCitizensAbroadStatus {
5
+ PENDING = 'Pending',
6
+ ASSIGNED = 'Assigned',
7
+ IN_PROGRESS = 'In Progress',
8
+ APPROVED = 'Approved',
9
+ REJECTED = 'Rejected',
10
+ }
11
+
12
+ /** Matches product: Tickets / Lawyer / Release / Cash Assistance / Other */
13
+ export enum AssistanceCitizensAbroadTypeOfAssistance {
14
+ TICKETS = 'Tickets',
15
+ LAWYER = 'Lawyer',
16
+ RELEASE = 'Release',
17
+ CASH_ASSISTANCE = 'Cash Assistance',
18
+ OTHER = 'Other',
19
+ }
20
+
21
+ @Entity({ name: 'assistance_citizens_abroad_requests' })
22
+ export class AssistanceCitizensAbroadRequests extends BaseModel {
23
+ @Column({ type: 'int', nullable: true })
24
+ req_user_department_id: number | null;
25
+
26
+ @Column({ type: 'int', nullable: true })
27
+ req_user_section_id: number | null;
28
+
29
+ @Column({ type: 'int', nullable: true })
30
+ service_id: number | null;
31
+
32
+ @Column({ type: 'int', nullable: true })
33
+ sub_service_id: number | null;
34
+
35
+ @Column({ type: 'int', nullable: false })
36
+ user_id: number;
37
+
38
+ @Column({ type: 'varchar', length: 500, nullable: true })
39
+ citizen_name: string | null;
40
+
41
+ @Column({ type: 'varchar', length: 255, nullable: true })
42
+ id_or_passport_number: string | null;
43
+
44
+ @Column({
45
+ type: 'enum',
46
+ enum: AssistanceCitizensAbroadTypeOfAssistance,
47
+ nullable: true,
48
+ })
49
+ type_of_assistance: AssistanceCitizensAbroadTypeOfAssistance | null;
50
+
51
+ @Column({ type: 'text', nullable: true })
52
+ reason_for_request: string | null;
53
+
54
+ @Column({ type: 'date', nullable: true })
55
+ request_date: Date | null;
56
+
57
+ @Column({ type: 'varchar', length: 255, nullable: true })
58
+ amount: string | null;
59
+
60
+ @Column({ type: 'varchar', length: 255, nullable: true })
61
+ currency_type: string | null;
62
+
63
+ @Column({
64
+ type: 'enum',
65
+ enum: AssistanceCitizensAbroadStatus,
66
+ default: AssistanceCitizensAbroadStatus.PENDING,
67
+ nullable: false,
68
+ })
69
+ status: AssistanceCitizensAbroadStatus;
70
+
71
+ @Column({ type: 'varchar', nullable: true })
72
+ workflow_execution_id: string | null;
73
+ }
@@ -0,0 +1,43 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum AssistanceCitizensAbroadWorkFlowStatus {
5
+ COMPLETED = 'Completed',
6
+ NOT_YET_STARTED = 'Not Yet Started',
7
+ PENDING = 'Pending',
8
+ }
9
+
10
+ @Entity({ name: 'assistance_citizens_abroad_workflows' })
11
+ export class AssistanceCitizensAbroadWorkFlow extends BaseModel {
12
+ @Column({ type: 'integer', nullable: false })
13
+ request_id: number;
14
+
15
+ @Column({ type: 'integer', nullable: true })
16
+ service_id: number | null;
17
+
18
+ @Column({ type: 'integer', nullable: true })
19
+ sub_service_id: number | null;
20
+
21
+ @Column({ type: 'varchar', length: 500, nullable: false })
22
+ content: string;
23
+
24
+ @Column({
25
+ type: 'enum',
26
+ enum: AssistanceCitizensAbroadWorkFlowStatus,
27
+ default: AssistanceCitizensAbroadWorkFlowStatus.NOT_YET_STARTED,
28
+ nullable: false,
29
+ })
30
+ status: AssistanceCitizensAbroadWorkFlowStatus;
31
+
32
+ @Column({ type: 'integer', nullable: true })
33
+ user_id: number | null;
34
+
35
+ @Column({ type: 'integer', nullable: true })
36
+ role_id: number | null;
37
+
38
+ @Column({ type: 'integer', nullable: true })
39
+ department_id: number | null;
40
+
41
+ @Column({ type: 'integer', nullable: true })
42
+ section_id: number | null;
43
+ }
@@ -33,15 +33,15 @@ export class FinancialWorkFlow extends BaseModel {
33
33
  @Column({ type: 'int', nullable: true })
34
34
  approved_by_role_id: number;
35
35
 
36
- @Column({ type: 'int', nullable: true })
37
- step_order: number;
38
-
39
- @Column({ type: 'varchar', length: 50, nullable: true })
40
- action: string | null;
41
-
42
- @ManyToOne(() => FinancialRequests, fr => fr.workflows)
43
- @JoinColumn({ name: 'financial_request_id' })
44
- financialRequest?: FinancialRequests;
36
+ @Column({ type: 'int', nullable: true })
37
+ step_order: number;
38
+
39
+ @Column({ type: 'varchar', length: 50, nullable: true })
40
+ action: string | null;
41
+
42
+ @ManyToOne(() => FinancialRequests, fr => fr.workflows)
43
+ @JoinColumn({ name: 'financial_request_id' })
44
+ financialRequest?: FinancialRequests;
45
45
 
46
46
  constructor(
47
47
  financial_request_id: number,
@@ -55,10 +55,10 @@ export class FinancialWorkFlow extends BaseModel {
55
55
  this.status = status;
56
56
  this.approved_by_user_id = approved_by_user_id;
57
57
  this.content = content;
58
- this.financial_approval_id = 0;
59
- this.activity_date = new Date();
60
- this.step_order = step_order;
61
- this.action = null;
62
- }
63
- }
58
+ this.financial_approval_id = 0;
59
+ this.activity_date = new Date();
60
+ this.step_order = step_order;
61
+ this.action = null;
62
+ }
63
+ }
64
64
 
@@ -85,10 +85,10 @@ export class GatePassVisitors extends BaseModel {
85
85
  @Column({ type: 'varchar', length: 255, nullable: true })
86
86
  visiting_person_in_department: string | null; // زائر في القسم (Visiting Person in Department)
87
87
 
88
- @Column({ type: 'int', nullable: true, unique: true })
89
- serial_number: number | null;
90
-
91
- // QR Code for Gate Pass
88
+ @Column({ type: 'int', nullable: true, unique: true })
89
+ serial_number: number | null;
90
+
91
+ // QR Code for Gate Pass
92
92
  @Column({ type: 'text', nullable: true })
93
93
  qr_code_url: string | null; // QR code URL for this visitor (data URL can be 6000+ characters)
94
94
 
@@ -134,9 +134,9 @@ export class GatePassVisitors extends BaseModel {
134
134
  this.visitor_email_address = visitor_email_address;
135
135
  this.visitor_mobile_number = visitor_mobile_number;
136
136
  this.visitor_photo_url = visitor_photo_url;
137
- this.visitor_photo_file_name = visitor_photo_file_name;
138
- this.serial_number = null;
139
- this.gate_pass_generated = false;
137
+ this.visitor_photo_file_name = visitor_photo_file_name;
138
+ this.serial_number = null;
139
+ this.gate_pass_generated = false;
140
140
  this.email_sent = false;
141
141
  }
142
142
  }
@@ -1,26 +1,26 @@
1
- import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
- import { Poll } from "./PollsModel";
4
- import { PollVote } from "./PollVotesModel";
5
-
6
- @Entity({ name: "poll_options" })
7
- export class PollOption extends BaseModel {
8
- @Column({ type: "int", nullable: false })
9
- poll_id: number;
10
-
11
- @Column({ type: "varchar", length: 500, nullable: false })
12
- option_text: string;
13
-
14
- @ManyToOne(() => Poll, (poll) => poll.options, { nullable: false })
15
- @JoinColumn({ name: "poll_id" })
16
- poll?: Poll;
17
-
18
- @OneToMany(() => PollVote, (vote) => vote.option)
19
- votes?: PollVote[];
20
-
21
- constructor() {
22
- super();
23
- this.poll_id = 0;
24
- this.option_text = "";
25
- }
26
- }
1
+ import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+ import { Poll } from "./PollsModel";
4
+ import { PollVote } from "./PollVotesModel";
5
+
6
+ @Entity({ name: "poll_options" })
7
+ export class PollOption extends BaseModel {
8
+ @Column({ type: "int", nullable: false })
9
+ poll_id: number;
10
+
11
+ @Column({ type: "varchar", length: 500, nullable: false })
12
+ option_text: string;
13
+
14
+ @ManyToOne(() => Poll, (poll) => poll.options, { nullable: false })
15
+ @JoinColumn({ name: "poll_id" })
16
+ poll?: Poll;
17
+
18
+ @OneToMany(() => PollVote, (vote) => vote.option)
19
+ votes?: PollVote[];
20
+
21
+ constructor() {
22
+ super();
23
+ this.poll_id = 0;
24
+ this.option_text = "";
25
+ }
26
+ }
@@ -1,37 +1,37 @@
1
- import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
- import { Poll } from "./PollsModel";
4
- import { PollOption } from "./PollOptionsModel";
5
- import { User } from "./user";
6
-
7
- @Entity({ name: "poll_votes" })
8
- @Index("uq_poll_option_user", ["poll_id", "option_id", "user_id"], { unique: true })
9
- export class PollVote extends BaseModel {
10
- @Column({ type: "int", nullable: false })
11
- poll_id: number;
12
-
13
- @Column({ type: "int", nullable: false })
14
- option_id: number;
15
-
16
- @Column({ type: "int", nullable: false })
17
- user_id: number;
18
-
19
- @ManyToOne(() => Poll, (poll) => poll.votes, { nullable: false })
20
- @JoinColumn({ name: "poll_id" })
21
- poll?: Poll;
22
-
23
- @ManyToOne(() => PollOption, (option) => option.votes, { nullable: false })
24
- @JoinColumn({ name: "option_id" })
25
- option?: PollOption;
26
-
27
- @ManyToOne(() => User, { nullable: false })
28
- @JoinColumn({ name: "user_id" })
29
- user?: User;
30
-
31
- constructor() {
32
- super();
33
- this.poll_id = 0;
34
- this.option_id = 0;
35
- this.user_id = 0;
36
- }
37
- }
1
+ import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+ import { Poll } from "./PollsModel";
4
+ import { PollOption } from "./PollOptionsModel";
5
+ import { User } from "./user";
6
+
7
+ @Entity({ name: "poll_votes" })
8
+ @Index("uq_poll_option_user", ["poll_id", "option_id", "user_id"], { unique: true })
9
+ export class PollVote extends BaseModel {
10
+ @Column({ type: "int", nullable: false })
11
+ poll_id: number;
12
+
13
+ @Column({ type: "int", nullable: false })
14
+ option_id: number;
15
+
16
+ @Column({ type: "int", nullable: false })
17
+ user_id: number;
18
+
19
+ @ManyToOne(() => Poll, (poll) => poll.votes, { nullable: false })
20
+ @JoinColumn({ name: "poll_id" })
21
+ poll?: Poll;
22
+
23
+ @ManyToOne(() => PollOption, (option) => option.votes, { nullable: false })
24
+ @JoinColumn({ name: "option_id" })
25
+ option?: PollOption;
26
+
27
+ @ManyToOne(() => User, { nullable: false })
28
+ @JoinColumn({ name: "user_id" })
29
+ user?: User;
30
+
31
+ constructor() {
32
+ super();
33
+ this.poll_id = 0;
34
+ this.option_id = 0;
35
+ this.user_id = 0;
36
+ }
37
+ }
@@ -1,49 +1,49 @@
1
- import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
- import { ConversationsV2 } from "./ConversationsV2Model";
4
- import { PollOption } from "./PollOptionsModel";
5
- import { PollVote } from "./PollVotesModel";
6
-
7
- @Entity({ name: "poll" })
8
- export class Poll extends BaseModel {
9
- @Column({ type: "int", nullable: false })
10
- group_id: number;
11
-
12
- @Column({ type: "int", nullable: true })
13
- meeting_id?: number | null;
14
-
15
- @Column({ type: "int", nullable: false })
16
- conversation_id: number;
17
-
18
- @Column({ type: "varchar", length: 255, nullable: false })
19
- title: string;
20
-
21
- @Column({ type: "text", nullable: false })
22
- question: string;
23
-
24
- @Column({ type: "timestamptz", nullable: true })
25
- expires_at?: Date | null;
26
-
27
- @Column({ type: "boolean", default: false })
28
- allow_multiple: boolean;
29
-
30
- @ManyToOne(() => ConversationsV2, { nullable: false })
31
- @JoinColumn({ name: "conversation_id" })
32
- conversation?: ConversationsV2;
33
-
34
- @OneToMany(() => PollOption, (option) => option.poll)
35
- options?: PollOption[];
36
-
37
- @OneToMany(() => PollVote, (vote) => vote.poll)
38
- votes?: PollVote[];
39
-
40
- constructor() {
41
- super();
42
- this.group_id = 0;
43
- this.meeting_id = null;
44
- this.conversation_id = 0;
45
- this.title = "";
46
- this.question = "";
47
- this.allow_multiple = false;
48
- }
49
- }
1
+ import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+ import { ConversationsV2 } from "./ConversationsV2Model";
4
+ import { PollOption } from "./PollOptionsModel";
5
+ import { PollVote } from "./PollVotesModel";
6
+
7
+ @Entity({ name: "poll" })
8
+ export class Poll extends BaseModel {
9
+ @Column({ type: "int", nullable: false })
10
+ group_id: number;
11
+
12
+ @Column({ type: "int", nullable: true })
13
+ meeting_id?: number | null;
14
+
15
+ @Column({ type: "int", nullable: false })
16
+ conversation_id: number;
17
+
18
+ @Column({ type: "varchar", length: 255, nullable: false })
19
+ title: string;
20
+
21
+ @Column({ type: "text", nullable: false })
22
+ question: string;
23
+
24
+ @Column({ type: "timestamptz", nullable: true })
25
+ expires_at?: Date | null;
26
+
27
+ @Column({ type: "boolean", default: false })
28
+ allow_multiple: boolean;
29
+
30
+ @ManyToOne(() => ConversationsV2, { nullable: false })
31
+ @JoinColumn({ name: "conversation_id" })
32
+ conversation?: ConversationsV2;
33
+
34
+ @OneToMany(() => PollOption, (option) => option.poll)
35
+ options?: PollOption[];
36
+
37
+ @OneToMany(() => PollVote, (vote) => vote.poll)
38
+ votes?: PollVote[];
39
+
40
+ constructor() {
41
+ super();
42
+ this.group_id = 0;
43
+ this.meeting_id = null;
44
+ this.conversation_id = 0;
45
+ this.title = "";
46
+ this.question = "";
47
+ this.allow_multiple = false;
48
+ }
49
+ }
@@ -43,12 +43,12 @@ export class ResignationTerminationApprovalDetails extends BaseModel {
43
43
  @Column({ type: 'varchar', length: 500, nullable: true, default: '' })
44
44
  comment: string;
45
45
 
46
- @Column({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false })
47
- approval_status: ResignationTerminationApprovalStatus;
48
-
49
- @Column({ type: 'boolean', default: false, nullable: false })
50
- is_edit: boolean;
51
-
52
- @Column({ type: 'boolean', default: true, nullable: false })
53
- is_allowed: boolean;
54
- }
46
+ @Column({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false })
47
+ approval_status: ResignationTerminationApprovalStatus;
48
+
49
+ @Column({ type: 'boolean', default: false, nullable: false })
50
+ is_edit: boolean;
51
+
52
+ @Column({ type: 'boolean', default: true, nullable: false })
53
+ is_allowed: boolean;
54
+ }
@@ -25,15 +25,15 @@ export class ResignationTerminationRequests extends BaseModel {
25
25
  @Column({ type: 'int', nullable: true })
26
26
  sub_service_id: number | null;
27
27
 
28
- @Column({ type: 'int', nullable: false })
29
- user_id: number;
30
-
31
- @Column({ type: 'int', nullable: true })
32
- employee_id: number | null; // Target employee user ID
33
-
34
- // Resignation/Termination specific fields
35
- @Column({ type: 'varchar', length: 50, nullable: true })
36
- employee_type: string | null; // FM / M&C
28
+ @Column({ type: 'int', nullable: false })
29
+ user_id: number;
30
+
31
+ @Column({ type: 'int', nullable: true })
32
+ employee_id: number | null; // Target employee user ID
33
+
34
+ // Resignation/Termination specific fields
35
+ @Column({ type: 'varchar', length: 50, nullable: true })
36
+ employee_type: string | null; // FM / M&C
37
37
 
38
38
  @Column({ type: 'varchar', length: 255, nullable: true })
39
39
  employee_name: string | null;