@platform-modules/civil-aviation-authority 2.3.87 → 2.3.88

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.
@@ -1,193 +1,193 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum HrServiceRequestStatus {
5
- PENDING = "Pending",
6
- ASSIGNED = "Assigned",
7
- IN_PROGRESS = "In Progress",
8
- COMPLETED = "Completed",
9
- APPROVED = "Approved",
10
- REJECTED = "Rejected"
11
- }
12
-
13
- @Entity({ name: "hr_service_requests" })
14
- export class HrServiceRequest extends BaseModel {
15
- @Column({ type: "integer", nullable: true })
16
- req_user_department_id: number | null;
17
-
18
- @Column({ type: "integer", nullable: true })
19
- req_user_section_id: number | null;
20
-
21
- @Column({ type: "integer", nullable: true })
22
- req_user_position_id: number | null;
23
-
24
- @Column({ type: "integer", nullable: true })
25
- service_id: number | null;
26
-
27
- @Column({ type: "integer", nullable: true })
28
- sub_service_id: number | null;
29
-
30
- @Column({ type: "integer", nullable: false })
31
- user_id: number;
32
-
33
- @Column({ type: "text", nullable: true })
34
- description: string | null;
35
-
36
- @Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
37
- status: HrServiceRequestStatus;
38
-
39
- @Column({ type: "integer", nullable: true })
40
- reviewer_user_id: number | null;
41
-
42
- @Column({ type: "integer", nullable: true })
43
- assigned_to_user_id: number | null;
44
-
45
- @Column({ type: "timestamp", nullable: true })
46
- assigned_at: Date | null;
47
-
48
- @Column({ type: "varchar", length: 255, nullable: true })
49
- workflow_execution_id: string | null;
50
-
51
- // Assignment Decision specific fields
52
- @Column({ type: "varchar", length: 255, nullable: false })
53
- assigned_employee_name: string;
54
-
55
- @Column({ type: "varchar", length: 50, nullable: true })
56
- civil_id_card_number: string | null;
57
-
58
- @Column({ type: "varchar", length: 100, nullable: false })
59
- employee_id: string;
60
-
61
- @Column({ type: "varchar", length: 255, nullable: false })
62
- current_job_position: string;
63
-
64
- @Column({ type: "varchar", length: 255, nullable: false })
65
- assigned_job_position: string;
66
-
67
- @Column({ type: "date", nullable: false })
68
- start_date: Date;
69
-
70
- @Column({ type: "date", nullable: false })
71
- end_date: Date;
72
-
73
- @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
74
- assignment_allowance: number | null; // 0-100 percentage
75
-
76
- @Column({ type: "varchar", length: 20, nullable: false })
77
- phone_number: string;
78
-
79
- @Column({ type: "text", nullable: false })
80
- reason_for_request: string;
81
-
82
- // Replacement tracking fields - Store REPLACEMENT details (ORIGINAL details above remain unchanged)
83
- @Column({ type: "boolean", default: false, nullable: false })
84
- is_replaced: boolean;
85
-
86
- @Column({ type: "varchar", length: 255, nullable: true })
87
- replacement_employee_name: string | null;
88
-
89
- @Column({ type: "varchar", length: 100, nullable: true })
90
- replacement_employee_id: string | null;
91
-
92
- @Column({ type: "varchar", length: 50, nullable: true })
93
- replacement_civil_id_card_number: string | null;
94
-
95
- @Column({ type: "varchar", length: 255, nullable: true })
96
- replacement_current_job_position: string | null;
97
-
98
- @Column({ type: "varchar", length: 255, nullable: true })
99
- replacement_assigned_job_position: string | null;
100
-
101
- @Column({ type: "date", nullable: true })
102
- replacement_start_date: Date | null;
103
-
104
- @Column({ type: "date", nullable: true })
105
- replacement_end_date: Date | null;
106
-
107
- @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
108
- replacement_assignment_allowance: number | null;
109
-
110
- @Column({ type: "text", nullable: true })
111
- replacement_reason: string | null;
112
-
113
- @Column({ type: "integer", nullable: true })
114
- replaced_by_user_id: number | null;
115
-
116
- @Column({ type: "timestamp", nullable: true })
117
- replaced_at: Date | null;
118
-
119
- constructor(
120
- user_id: number,
121
- status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
122
- service_id?: number | null,
123
- sub_service_id?: number | null,
124
- req_user_department_id?: number | null,
125
- req_user_section_id?: number | null,
126
- req_user_position_id?: number | null,
127
- description?: string | null,
128
- reviewer_user_id?: number | null,
129
- assigned_to_user_id?: number | null,
130
- assigned_at?: Date | null,
131
- workflow_execution_id?: string | null,
132
- assigned_employee_name?: string,
133
- civil_id_card_number?: string | null,
134
- employee_id?: string,
135
- current_job_position?: string,
136
- assigned_job_position?: string,
137
- start_date?: Date,
138
- end_date?: Date,
139
- assignment_allowance?: number | null,
140
- phone_number?: string,
141
- reason_for_request?: string,
142
- is_replaced?: boolean,
143
- replacement_employee_name?: string | null,
144
- replacement_employee_id?: string | null,
145
- replacement_civil_id_card_number?: string | null,
146
- replacement_current_job_position?: string | null,
147
- replacement_assigned_job_position?: string | null,
148
- replacement_start_date?: Date | null,
149
- replacement_end_date?: Date | null,
150
- replacement_assignment_allowance?: number | null,
151
- replacement_reason?: string | null,
152
- replaced_by_user_id?: number | null,
153
- replaced_at?: Date | null
154
- ) {
155
- super();
156
- this.user_id = user_id;
157
- this.status = status;
158
- this.service_id = service_id || null;
159
- this.sub_service_id = sub_service_id || null;
160
- this.req_user_department_id = req_user_department_id || null;
161
- this.req_user_section_id = req_user_section_id || null;
162
- this.req_user_position_id = req_user_position_id || null;
163
- this.description = description || null;
164
- this.reviewer_user_id = reviewer_user_id || null;
165
- this.assigned_to_user_id = assigned_to_user_id || null;
166
- this.assigned_at = assigned_at || null;
167
- this.workflow_execution_id = workflow_execution_id || null;
168
- this.assigned_employee_name = assigned_employee_name || "";
169
- this.civil_id_card_number = civil_id_card_number || null;
170
- this.employee_id = employee_id || "";
171
- this.current_job_position = current_job_position || "";
172
- this.assigned_job_position = assigned_job_position || "";
173
- this.start_date = start_date || new Date();
174
- this.end_date = end_date || new Date();
175
- this.assignment_allowance = assignment_allowance || null;
176
- this.phone_number = phone_number || "";
177
- this.reason_for_request = reason_for_request || "";
178
- // Replacement fields initialization
179
- this.is_replaced = is_replaced || false;
180
- this.replacement_employee_name = replacement_employee_name || null;
181
- this.replacement_employee_id = replacement_employee_id || null;
182
- this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
183
- this.replacement_current_job_position = replacement_current_job_position || null;
184
- this.replacement_assigned_job_position = replacement_assigned_job_position || null;
185
- this.replacement_start_date = replacement_start_date || null;
186
- this.replacement_end_date = replacement_end_date || null;
187
- this.replacement_assignment_allowance = replacement_assignment_allowance || null;
188
- this.replacement_reason = replacement_reason || null;
189
- this.replaced_by_user_id = replaced_by_user_id || null;
190
- this.replaced_at = replaced_at || null;
191
- }
192
- }
193
-
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum HrServiceRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected"
11
+ }
12
+
13
+ @Entity({ name: "hr_service_requests" })
14
+ export class HrServiceRequest extends BaseModel {
15
+ @Column({ type: "integer", nullable: true })
16
+ req_user_department_id: number | null;
17
+
18
+ @Column({ type: "integer", nullable: true })
19
+ req_user_section_id: number | null;
20
+
21
+ @Column({ type: "integer", nullable: true })
22
+ req_user_position_id: number | null;
23
+
24
+ @Column({ type: "integer", nullable: true })
25
+ service_id: number | null;
26
+
27
+ @Column({ type: "integer", nullable: true })
28
+ sub_service_id: number | null;
29
+
30
+ @Column({ type: "integer", nullable: false })
31
+ user_id: number;
32
+
33
+ @Column({ type: "text", nullable: true })
34
+ description: string | null;
35
+
36
+ @Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
37
+ status: HrServiceRequestStatus;
38
+
39
+ @Column({ type: "integer", nullable: true })
40
+ reviewer_user_id: number | null;
41
+
42
+ @Column({ type: "integer", nullable: true })
43
+ assigned_to_user_id: number | null;
44
+
45
+ @Column({ type: "timestamp", nullable: true })
46
+ assigned_at: Date | null;
47
+
48
+ @Column({ type: "varchar", length: 255, nullable: true })
49
+ workflow_execution_id: string | null;
50
+
51
+ // Assignment Decision specific fields
52
+ @Column({ type: "varchar", length: 255, nullable: false })
53
+ assigned_employee_name: string;
54
+
55
+ @Column({ type: "varchar", length: 50, nullable: true })
56
+ civil_id_card_number: string | null;
57
+
58
+ @Column({ type: "varchar", length: 100, nullable: false })
59
+ employee_id: string;
60
+
61
+ @Column({ type: "varchar", length: 255, nullable: false })
62
+ current_job_position: string;
63
+
64
+ @Column({ type: "varchar", length: 255, nullable: false })
65
+ assigned_job_position: string;
66
+
67
+ @Column({ type: "date", nullable: false })
68
+ start_date: Date;
69
+
70
+ @Column({ type: "date", nullable: false })
71
+ end_date: Date;
72
+
73
+ @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
74
+ assignment_allowance: number | null; // 0-100 percentage
75
+
76
+ @Column({ type: "varchar", length: 20, nullable: false })
77
+ phone_number: string;
78
+
79
+ @Column({ type: "text", nullable: false })
80
+ reason_for_request: string;
81
+
82
+ // Replacement tracking fields - Store REPLACEMENT details (ORIGINAL details above remain unchanged)
83
+ @Column({ type: "boolean", default: false, nullable: false })
84
+ is_replaced: boolean;
85
+
86
+ @Column({ type: "varchar", length: 255, nullable: true })
87
+ replacement_employee_name: string | null;
88
+
89
+ @Column({ type: "varchar", length: 100, nullable: true })
90
+ replacement_employee_id: string | null;
91
+
92
+ @Column({ type: "varchar", length: 50, nullable: true })
93
+ replacement_civil_id_card_number: string | null;
94
+
95
+ @Column({ type: "varchar", length: 255, nullable: true })
96
+ replacement_current_job_position: string | null;
97
+
98
+ @Column({ type: "varchar", length: 255, nullable: true })
99
+ replacement_assigned_job_position: string | null;
100
+
101
+ @Column({ type: "date", nullable: true })
102
+ replacement_start_date: Date | null;
103
+
104
+ @Column({ type: "date", nullable: true })
105
+ replacement_end_date: Date | null;
106
+
107
+ @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
108
+ replacement_assignment_allowance: number | null;
109
+
110
+ @Column({ type: "text", nullable: true })
111
+ replacement_reason: string | null;
112
+
113
+ @Column({ type: "integer", nullable: true })
114
+ replaced_by_user_id: number | null;
115
+
116
+ @Column({ type: "timestamp", nullable: true })
117
+ replaced_at: Date | null;
118
+
119
+ constructor(
120
+ user_id: number,
121
+ status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
122
+ service_id?: number | null,
123
+ sub_service_id?: number | null,
124
+ req_user_department_id?: number | null,
125
+ req_user_section_id?: number | null,
126
+ req_user_position_id?: number | null,
127
+ description?: string | null,
128
+ reviewer_user_id?: number | null,
129
+ assigned_to_user_id?: number | null,
130
+ assigned_at?: Date | null,
131
+ workflow_execution_id?: string | null,
132
+ assigned_employee_name?: string,
133
+ civil_id_card_number?: string | null,
134
+ employee_id?: string,
135
+ current_job_position?: string,
136
+ assigned_job_position?: string,
137
+ start_date?: Date,
138
+ end_date?: Date,
139
+ assignment_allowance?: number | null,
140
+ phone_number?: string,
141
+ reason_for_request?: string,
142
+ is_replaced?: boolean,
143
+ replacement_employee_name?: string | null,
144
+ replacement_employee_id?: string | null,
145
+ replacement_civil_id_card_number?: string | null,
146
+ replacement_current_job_position?: string | null,
147
+ replacement_assigned_job_position?: string | null,
148
+ replacement_start_date?: Date | null,
149
+ replacement_end_date?: Date | null,
150
+ replacement_assignment_allowance?: number | null,
151
+ replacement_reason?: string | null,
152
+ replaced_by_user_id?: number | null,
153
+ replaced_at?: Date | null
154
+ ) {
155
+ super();
156
+ this.user_id = user_id;
157
+ this.status = status;
158
+ this.service_id = service_id || null;
159
+ this.sub_service_id = sub_service_id || null;
160
+ this.req_user_department_id = req_user_department_id || null;
161
+ this.req_user_section_id = req_user_section_id || null;
162
+ this.req_user_position_id = req_user_position_id || null;
163
+ this.description = description || null;
164
+ this.reviewer_user_id = reviewer_user_id || null;
165
+ this.assigned_to_user_id = assigned_to_user_id || null;
166
+ this.assigned_at = assigned_at || null;
167
+ this.workflow_execution_id = workflow_execution_id || null;
168
+ this.assigned_employee_name = assigned_employee_name || "";
169
+ this.civil_id_card_number = civil_id_card_number || null;
170
+ this.employee_id = employee_id || "";
171
+ this.current_job_position = current_job_position || "";
172
+ this.assigned_job_position = assigned_job_position || "";
173
+ this.start_date = start_date || new Date();
174
+ this.end_date = end_date || new Date();
175
+ this.assignment_allowance = assignment_allowance || null;
176
+ this.phone_number = phone_number || "";
177
+ this.reason_for_request = reason_for_request || "";
178
+ // Replacement fields initialization
179
+ this.is_replaced = is_replaced || false;
180
+ this.replacement_employee_name = replacement_employee_name || null;
181
+ this.replacement_employee_id = replacement_employee_id || null;
182
+ this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
183
+ this.replacement_current_job_position = replacement_current_job_position || null;
184
+ this.replacement_assigned_job_position = replacement_assigned_job_position || null;
185
+ this.replacement_start_date = replacement_start_date || null;
186
+ this.replacement_end_date = replacement_end_date || null;
187
+ this.replacement_assignment_allowance = replacement_assignment_allowance || null;
188
+ this.replacement_reason = replacement_reason || null;
189
+ this.replaced_by_user_id = replaced_by_user_id || null;
190
+ this.replaced_at = replaced_at || null;
191
+ }
192
+ }
193
+
@@ -0,0 +1,108 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum HumanResourceAnnualPlanningRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected",
11
+ INFORMATION_REQUESTED = "Information Requested"
12
+ }
13
+
14
+ export enum Quarter {
15
+ Q1 = "Q1", // Jan-Mar
16
+ Q2 = "Q2", // Apr-Jun
17
+ Q3 = "Q3", // Jul-Sep
18
+ Q4 = "Q4" // Oct-Dec
19
+ }
20
+
21
+ @Entity({ name: "human_resource_annual_planning_requests" })
22
+ export class HumanResourceAnnualPlanningRequest extends BaseModel {
23
+ @Column({ type: "integer", nullable: true })
24
+ req_user_department_id: number | null;
25
+
26
+ @Column({ type: "integer", nullable: true })
27
+ req_user_section_id: number | null;
28
+
29
+ @Column({ type: "integer", nullable: true })
30
+ req_user_position_id: number | null;
31
+
32
+ @Column({ type: "integer", nullable: false })
33
+ user_id: number;
34
+
35
+ @Column({ type: "integer", nullable: true })
36
+ service_id: number | null;
37
+
38
+ @Column({ type: "integer", nullable: true })
39
+ sub_service_id: number | null;
40
+
41
+ @Column({ type: "enum", enum: HumanResourceAnnualPlanningRequestStatus, default: HumanResourceAnnualPlanningRequestStatus.PENDING, nullable: false })
42
+ status: HumanResourceAnnualPlanningRequestStatus;
43
+
44
+ @Column({ type: "integer", nullable: true })
45
+ reviewer_user_id: number | null;
46
+
47
+ @Column({ type: "integer", nullable: true })
48
+ assigned_to_user_id: number | null;
49
+
50
+ @Column({ type: "timestamp", nullable: true })
51
+ assigned_at: Date | null;
52
+
53
+ @Column({ type: "varchar", length: 255, nullable: true })
54
+ workflow_execution_id: string | null;
55
+
56
+ @Column({ type: "text", nullable: true })
57
+ description: string | null;
58
+
59
+ // HR Annual Planning specific fields
60
+ @Column({ type: "text", nullable: true })
61
+ comment: string | null;
62
+
63
+ @Column({ type: "varchar", length: 50, nullable: true })
64
+ extension_number: string | null;
65
+
66
+ @Column({ type: "enum", enum: Quarter, nullable: true })
67
+ quarter: Quarter | null;
68
+
69
+ @Column({ type: "integer", nullable: true })
70
+ year: number | null;
71
+
72
+ constructor(
73
+ user_id: number,
74
+ status: HumanResourceAnnualPlanningRequestStatus = HumanResourceAnnualPlanningRequestStatus.PENDING,
75
+ service_id?: number | null,
76
+ sub_service_id?: number | null,
77
+ req_user_department_id?: number | null,
78
+ req_user_section_id?: number | null,
79
+ req_user_position_id?: number | null,
80
+ description?: string | null,
81
+ reviewer_user_id?: number | null,
82
+ assigned_to_user_id?: number | null,
83
+ assigned_at?: Date | null,
84
+ workflow_execution_id?: string | null,
85
+ comment?: string | null,
86
+ extension_number?: string | null,
87
+ quarter?: Quarter | null,
88
+ year?: number | null
89
+ ) {
90
+ super();
91
+ this.user_id = user_id;
92
+ this.status = status;
93
+ this.service_id = service_id || null;
94
+ this.sub_service_id = sub_service_id || null;
95
+ this.req_user_department_id = req_user_department_id || null;
96
+ this.req_user_section_id = req_user_section_id || null;
97
+ this.req_user_position_id = req_user_position_id || null;
98
+ this.description = description || null;
99
+ this.reviewer_user_id = reviewer_user_id || null;
100
+ this.assigned_to_user_id = assigned_to_user_id || null;
101
+ this.assigned_at = assigned_at || null;
102
+ this.workflow_execution_id = workflow_execution_id || null;
103
+ this.comment = comment || null;
104
+ this.extension_number = extension_number || null;
105
+ this.quarter = quarter || null;
106
+ this.year = year || null;
107
+ }
108
+ }
@@ -0,0 +1,70 @@
1
+ import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+ import { HumanResourceAnnualPlanningRequest } from "./HumanResourceAnnualPlanningRequestModel";
4
+
5
+ export enum RepeatFrequency {
6
+ DAILY = "Daily",
7
+ WEEKLY = "Weekly",
8
+ MONTHLY = "Monthly",
9
+ QUARTERLY = "Quarterly"
10
+ }
11
+
12
+ export enum DurationUnit {
13
+ MINUTES = "Minutes",
14
+ HOURS = "Hours",
15
+ QUARTER = "Quarter"
16
+ }
17
+
18
+ @Entity({ name: "human_resource_annual_planning_tasks" })
19
+ export class HumanResourceAnnualPlanningTask extends BaseModel {
20
+ @Column({ type: "integer", nullable: false })
21
+ request_id: number;
22
+
23
+ @Column({ type: "varchar", length: 255, nullable: true })
24
+ task_related_to_projects: string | null; // Specify if the task is linked to any project
25
+
26
+ @Column({ type: "varchar", length: 50, nullable: false })
27
+ extension_number: string; // (M) Mandatory
28
+
29
+ @Column({ type: "text", nullable: false })
30
+ daily_responsibilities: string; // (M) Mandatory - List of day-to-day tasks performed
31
+
32
+ @Column({ type: "enum", enum: RepeatFrequency, nullable: true })
33
+ repeat_frequency: RepeatFrequency | null; // Frequency of the task (Daily / Weekly / Monthly / Quarterly)
34
+
35
+ @Column({ type: "varchar", length: 50, nullable: true })
36
+ duration: string | null; // Time spent (can be Minutes / Hours / Quarter)
37
+
38
+ @Column({ type: "enum", enum: DurationUnit, nullable: true })
39
+ duration_unit: DurationUnit | null; // Unit for duration (Minutes / Hours / Quarter)
40
+
41
+ @Column({ type: "text", nullable: true })
42
+ deliverables: string | null; // Completed tasks and deliverables
43
+
44
+
45
+ @ManyToOne(() => HumanResourceAnnualPlanningRequest, { onDelete: "CASCADE" })
46
+ @JoinColumn({ name: "request_id" })
47
+ request: HumanResourceAnnualPlanningRequest;
48
+
49
+ constructor(
50
+ request_id: number,
51
+ extension_number: string,
52
+ daily_responsibilities: string,
53
+ task_related_to_projects?: string | null,
54
+ repeat_frequency?: RepeatFrequency | null,
55
+ duration?: string | null,
56
+ duration_unit?: DurationUnit | null,
57
+ deliverables?: string | null,
58
+ created_by?: number | null
59
+ ) {
60
+ super();
61
+ this.request_id = request_id;
62
+ this.extension_number = extension_number;
63
+ this.daily_responsibilities = daily_responsibilities;
64
+ this.task_related_to_projects = task_related_to_projects || null;
65
+ this.repeat_frequency = repeat_frequency || null;
66
+ this.duration = duration || null;
67
+ this.duration_unit = duration_unit || null;
68
+ this.deliverables = deliverables || null;
69
+ }
70
+ }
@@ -0,0 +1,23 @@
1
+ import { Column, Entity, Index } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "performance_cycle_periods" })
5
+ @Index("uq_performance_cycle_period", ["cycle_period", "cycle_year"], { unique: true })
6
+ export class PerformanceCyclePeriod extends BaseModel {
7
+ @Column({ type: "varchar", length: 50, nullable: false })
8
+ cycle_period: string;
9
+
10
+ @Column({ type: "integer", nullable: false })
11
+ cycle_year: number;
12
+
13
+ @Column({ type: "boolean", default: false })
14
+ is_active: boolean;
15
+
16
+ constructor(cycle_period?: string, cycle_year?: number) {
17
+ super();
18
+ this.cycle_period = cycle_period || "";
19
+ this.cycle_year = cycle_year || new Date().getFullYear();
20
+ this.is_active = false;
21
+ }
22
+ }
23
+
@@ -0,0 +1,27 @@
1
+ import { Column, Entity, Index } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "performance_management_goals" })
5
+ export class PerformanceGoalMaster extends BaseModel {
6
+ @Column({ type: "varchar", length: 255, nullable: false })
7
+ goal_title: string;
8
+
9
+ @Column({ type: "text", nullable: true })
10
+ goal_description: string | null;
11
+
12
+ @Column({ type: "integer", nullable: false })
13
+ @Index("idx_performance_goal_cycle_period_id")
14
+ cycle_period_id: number;
15
+
16
+ @Column({ type: "boolean", default: true })
17
+ is_active: boolean;
18
+
19
+ constructor(goal_title?: string, goal_description?: string | null, cycle_period_id?: number) {
20
+ super();
21
+ this.goal_title = goal_title || "";
22
+ this.goal_description = goal_description || null;
23
+ this.cycle_period_id = cycle_period_id || 0;
24
+ this.is_active = true;
25
+ }
26
+ }
27
+