@platform-modules/foreign-ministry 1.3.187 → 1.3.188
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.
- package/.env +6 -15
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/models/MissionTravelClassConfigModel.d.ts +10 -0
- package/dist/models/MissionTravelClassConfigModel.js +50 -0
- package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
- package/dist/models/MissionTravelPerdiemModel.js +54 -0
- package/dist/models/ProjectContactsModel.d.ts +10 -0
- package/dist/models/ProjectContactsModel.js +54 -0
- package/dist/models/ProjectFaqModel.d.ts +9 -0
- package/dist/models/ProjectFaqModel.js +49 -0
- package/dist/models/ProjectFaqReactionsModel.d.ts +8 -0
- package/dist/models/ProjectFaqReactionsModel.js +44 -0
- package/dist/models/ProjectInvoicesModel.d.ts +9 -0
- package/dist/models/ProjectInvoicesModel.js +49 -0
- package/dist/models/ProjectMilestonesModel.d.ts +15 -0
- package/dist/models/ProjectMilestonesModel.js +79 -0
- package/dist/models/ProjectModel.d.ts +9 -3
- package/dist/models/ProjectModel.js +39 -9
- package/dist/models/ProjectResourceUsersModel.d.ts +7 -0
- package/dist/models/{HelpContentMappedCategoriesModel.js → ProjectResourceUsersModel.js} +19 -14
- package/dist/models/ProjectResourcesModel.d.ts +9 -0
- package/dist/models/ProjectResourcesModel.js +49 -0
- package/dist/models/ProjectScopeModel.d.ts +19 -0
- package/dist/models/ProjectScopeModel.js +49 -0
- package/package.json +1 -1
- package/src/index.ts +8 -0
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionTravelApprovalModel.ts +101 -101
- package/src/models/MissionTravelAttachmentModel.ts +56 -56
- package/src/models/MissionTravelChatModel.ts +52 -52
- package/src/models/MissionTravelPersonModel.ts +105 -105
- package/src/models/MissionTravelWorkflowModel.ts +54 -54
- package/src/models/ProjectContactsModel.ts +40 -0
- package/src/models/ProjectFaqModel.ts +35 -0
- package/src/models/ProjectFaqReactionsModel.ts +30 -0
- package/src/models/ProjectInvoicesModel.ts +35 -0
- package/src/models/ProjectMilestonesModel.ts +65 -0
- package/src/models/ProjectModel.ts +41 -11
- package/src/models/ProjectResourceUsersModel.ts +21 -0
- package/src/models/ProjectResourcesModel.ts +35 -0
- package/src/models/ProjectScopeModel.ts +46 -0
- package/src/models/RegisterCandidateRequestModel.ts +183 -183
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.js +0 -34
- package/dist/models/HelpContentTagsModel.d.ts +0 -5
- package/dist/models/HelpContentTagsModel.js +0 -29
- package/dist/models/questionTagsModel.d.ts +0 -6
- package/dist/models/questionTagsModel.js +0 -34
- /package/src/models/{LeaveConfigGradesModel.ts → LeaveConfigGradesModel.Ts} +0 -0
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum MissionTravelWorkFlowStatus {
|
|
5
|
-
COMPLETED = "Completed",
|
|
6
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
-
PENDING = "Pending"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@Entity({ name: 'mission_travel_workflows' })
|
|
11
|
-
export class MissionTravelWorkFlow extends BaseModel {
|
|
12
|
-
@Column({ type: 'int', nullable: false })
|
|
13
|
-
request_id: number;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'int', nullable: true })
|
|
16
|
-
service_id: number | null;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'int', nullable: true })
|
|
19
|
-
sub_service_id: number | null;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'int', nullable: true })
|
|
22
|
-
order: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
25
|
-
content: string;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'enum', enum: MissionTravelWorkFlowStatus, default: MissionTravelWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
28
|
-
status: MissionTravelWorkFlowStatus;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'integer', nullable: true })
|
|
31
|
-
user_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'integer', nullable: true })
|
|
34
|
-
role_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'integer', nullable: true })
|
|
37
|
-
department_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'integer', nullable: true })
|
|
40
|
-
section_id: number | null;
|
|
41
|
-
|
|
42
|
-
constructor(request_id: number, content: string, status: MissionTravelWorkFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null, user_id?: number | null, role_id?: number | null, department_id?: number | null, section_id?: number | null) {
|
|
43
|
-
super();
|
|
44
|
-
this.request_id = request_id;
|
|
45
|
-
this.content = content;
|
|
46
|
-
this.status = status;
|
|
47
|
-
this.order = order || null;
|
|
48
|
-
this.service_id = service_id ?? null;
|
|
49
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
50
|
-
this.user_id = user_id || null;
|
|
51
|
-
this.role_id = role_id || null;
|
|
52
|
-
this.department_id = department_id || null;
|
|
53
|
-
this.section_id = section_id || null;
|
|
54
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum MissionTravelWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'mission_travel_workflows' })
|
|
11
|
+
export class MissionTravelWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'int', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
order: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
25
|
+
content: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'enum', enum: MissionTravelWorkFlowStatus, default: MissionTravelWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
28
|
+
status: MissionTravelWorkFlowStatus;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'integer', nullable: true })
|
|
31
|
+
user_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'integer', nullable: true })
|
|
34
|
+
role_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'integer', nullable: true })
|
|
37
|
+
department_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'integer', nullable: true })
|
|
40
|
+
section_id: number | null;
|
|
41
|
+
|
|
42
|
+
constructor(request_id: number, content: string, status: MissionTravelWorkFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null, user_id?: number | null, role_id?: number | null, department_id?: number | null, section_id?: number | null) {
|
|
43
|
+
super();
|
|
44
|
+
this.request_id = request_id;
|
|
45
|
+
this.content = content;
|
|
46
|
+
this.status = status;
|
|
47
|
+
this.order = order || null;
|
|
48
|
+
this.service_id = service_id ?? null;
|
|
49
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
50
|
+
this.user_id = user_id || null;
|
|
51
|
+
this.role_id = role_id || null;
|
|
52
|
+
this.department_id = department_id || null;
|
|
53
|
+
this.section_id = section_id || null;
|
|
54
|
+
}
|
|
55
55
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_contacts' })
|
|
5
|
+
export class ProjectContacts extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 50 })
|
|
10
|
+
contact_type: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
13
|
+
phone_number: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
16
|
+
email_id: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
+
name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
22
|
+
designation: string;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
project_id?: number,
|
|
26
|
+
contact_type?: string,
|
|
27
|
+
phone_number?: string,
|
|
28
|
+
email_id?: string,
|
|
29
|
+
name?: string,
|
|
30
|
+
designation?: string
|
|
31
|
+
) {
|
|
32
|
+
super();
|
|
33
|
+
this.project_id = project_id ?? 0;
|
|
34
|
+
this.contact_type = contact_type ?? '';
|
|
35
|
+
this.phone_number = phone_number ?? '';
|
|
36
|
+
this.email_id = email_id ?? '';
|
|
37
|
+
this.name = name ?? '';
|
|
38
|
+
this.designation = designation ?? '';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_faqs' })
|
|
5
|
+
export class ProjectFaqs extends BaseModel {
|
|
6
|
+
@Column({ type: 'boolean', default: false })
|
|
7
|
+
is_popular: boolean;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'text' })
|
|
10
|
+
question: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'int' })
|
|
13
|
+
project_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
department_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'text', nullable: true })
|
|
19
|
+
answer: string;
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
question?: string,
|
|
23
|
+
project_id?: number,
|
|
24
|
+
department_id?: number,
|
|
25
|
+
answer?: string,
|
|
26
|
+
is_popular?: boolean
|
|
27
|
+
) {
|
|
28
|
+
super();
|
|
29
|
+
this.question = question ?? '';
|
|
30
|
+
this.project_id = project_id ?? 0;
|
|
31
|
+
this.department_id = department_id ?? 0;
|
|
32
|
+
this.answer = answer ?? '';
|
|
33
|
+
this.is_popular = is_popular ?? false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_faq_reactions' })
|
|
5
|
+
export class ProjectFaqReactions extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int' })
|
|
10
|
+
project_faq_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'int' })
|
|
13
|
+
user_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'boolean', default: true })
|
|
16
|
+
is_like: boolean;
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
project_id?: number,
|
|
20
|
+
project_faq_id?: number,
|
|
21
|
+
user_id?: number,
|
|
22
|
+
is_like?: boolean
|
|
23
|
+
) {
|
|
24
|
+
super();
|
|
25
|
+
this.project_id = project_id ?? 0;
|
|
26
|
+
this.project_faq_id = project_faq_id ?? 0;
|
|
27
|
+
this.user_id = user_id ?? 0;
|
|
28
|
+
this.is_like = is_like ?? true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_invoices' })
|
|
5
|
+
export class ProjectInvoices extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'text', nullable: true })
|
|
10
|
+
invoice_link: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
13
|
+
filename: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'bigint', nullable: true })
|
|
16
|
+
filesize: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
19
|
+
filetype: string;
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
project_id?: number,
|
|
23
|
+
invoice_link?: string,
|
|
24
|
+
filename?: string,
|
|
25
|
+
filesize?: number,
|
|
26
|
+
filetype?: string
|
|
27
|
+
) {
|
|
28
|
+
super();
|
|
29
|
+
this.project_id = project_id ?? 0;
|
|
30
|
+
this.invoice_link = invoice_link ?? '';
|
|
31
|
+
this.filename = filename ?? '';
|
|
32
|
+
this.filesize = filesize ?? 0;
|
|
33
|
+
this.filetype = filetype ?? '';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_milestones' })
|
|
5
|
+
export class ProjectMilestones extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 255 })
|
|
10
|
+
milestone_name: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
13
|
+
vendor_names: string[] | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'text', nullable: true })
|
|
16
|
+
milestone_description: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'date', nullable: true })
|
|
19
|
+
estimated_startdate: Date | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'date', nullable: true })
|
|
22
|
+
estimated_enddate: Date | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'date', nullable: true })
|
|
25
|
+
actual_startdate: Date | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'date', nullable: true })
|
|
28
|
+
actual_enddate: Date | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
31
|
+
checklist: string[] | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'varchar', length: 50, default: 'Not Started' })
|
|
34
|
+
status: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'int', default: 1, nullable: true })
|
|
37
|
+
phase: number;
|
|
38
|
+
|
|
39
|
+
constructor(
|
|
40
|
+
project_id?: number,
|
|
41
|
+
milestone_name?: string,
|
|
42
|
+
vendor_names?: string[] | null,
|
|
43
|
+
milestone_description?: string,
|
|
44
|
+
estimated_startdate?: Date | null,
|
|
45
|
+
estimated_enddate?: Date | null,
|
|
46
|
+
actual_startdate?: Date | null,
|
|
47
|
+
actual_enddate?: Date | null,
|
|
48
|
+
checklist?: string[] | null,
|
|
49
|
+
status?: string,
|
|
50
|
+
phase?: number
|
|
51
|
+
) {
|
|
52
|
+
super();
|
|
53
|
+
this.project_id = project_id ?? 0;
|
|
54
|
+
this.milestone_name = milestone_name ?? '';
|
|
55
|
+
this.vendor_names = vendor_names ?? null;
|
|
56
|
+
this.milestone_description = milestone_description ?? '';
|
|
57
|
+
this.estimated_startdate = estimated_startdate ?? null;
|
|
58
|
+
this.estimated_enddate = estimated_enddate ?? null;
|
|
59
|
+
this.actual_startdate = actual_startdate ?? null;
|
|
60
|
+
this.actual_enddate = actual_enddate ?? null;
|
|
61
|
+
this.checklist = checklist ?? null;
|
|
62
|
+
this.status = status ?? 'Not Started';
|
|
63
|
+
this.phase = phase ?? 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -6,30 +6,60 @@ export class Projects extends BaseModel {
|
|
|
6
6
|
@Column({ type: 'varchar', length: 255 })
|
|
7
7
|
project_name: string;
|
|
8
8
|
|
|
9
|
-
@Column({ type: 'text' })
|
|
10
|
-
|
|
9
|
+
@Column({ type: 'text' , nullable: true})
|
|
10
|
+
project_objective: string;
|
|
11
11
|
|
|
12
|
-
@Column({ type: 'text', nullable: true
|
|
13
|
-
|
|
12
|
+
@Column({ type: 'text' , nullable: true})
|
|
13
|
+
project_benefits: string;
|
|
14
14
|
|
|
15
|
-
@Column({ type: '
|
|
15
|
+
@Column({ type: 'text' , nullable: true})
|
|
16
|
+
project_risks: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'text' , nullable: true})
|
|
19
|
+
project_challenges: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'text' , nullable: true})
|
|
22
|
+
project_description: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'text' , nullable: true})
|
|
25
|
+
project_status: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'text' , nullable: true})
|
|
28
|
+
roadmap_link: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'jsonb' , nullable: true})
|
|
16
31
|
template_ids: number[] | null;
|
|
17
32
|
|
|
18
|
-
@Column({ type: 'varchar', length: 100 })
|
|
33
|
+
@Column({ type: 'varchar', length: 100, nullable: true})
|
|
19
34
|
project_version: string;
|
|
20
35
|
|
|
36
|
+
@Column({ type: 'int', default: 0, nullable: true })
|
|
37
|
+
no_of_phases: number;
|
|
38
|
+
|
|
21
39
|
constructor(
|
|
22
40
|
project_name?: string,
|
|
23
|
-
|
|
41
|
+
project_objective?: string,
|
|
42
|
+
project_benefits?: string,
|
|
43
|
+
project_risks?: string,
|
|
44
|
+
project_challenges?: string,
|
|
45
|
+
project_description?: string,
|
|
46
|
+
project_status?: string,
|
|
24
47
|
roadmap_link?: string | null,
|
|
25
48
|
template_ids?: number[] | null,
|
|
26
|
-
project_version?: string
|
|
49
|
+
project_version?: string,
|
|
50
|
+
no_of_phases?: number
|
|
27
51
|
) {
|
|
28
52
|
super();
|
|
29
53
|
this.project_name = project_name || '';
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
54
|
+
this.project_objective = project_objective || '';
|
|
55
|
+
this.project_benefits = project_benefits || '';
|
|
56
|
+
this.project_risks = project_risks || '';
|
|
57
|
+
this.project_challenges = project_challenges || '';
|
|
58
|
+
this.project_description = project_description || '';
|
|
59
|
+
this.project_status = project_status || '';
|
|
60
|
+
this.roadmap_link = roadmap_link || '';
|
|
61
|
+
this.template_ids = template_ids || [];
|
|
33
62
|
this.project_version = project_version || '';
|
|
63
|
+
this.no_of_phases = no_of_phases ?? 0;
|
|
34
64
|
}
|
|
35
65
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_resource_users' })
|
|
5
|
+
export class ProjectResourceUsers extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int' })
|
|
10
|
+
project_resource_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'int' })
|
|
13
|
+
user_id: number;
|
|
14
|
+
|
|
15
|
+
constructor(project_id?: number, project_resource_id?: number, user_id?: number) {
|
|
16
|
+
super();
|
|
17
|
+
this.project_id = project_id ?? 0;
|
|
18
|
+
this.project_resource_id = project_resource_id ?? 0;
|
|
19
|
+
this.user_id = user_id ?? 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_resources' })
|
|
5
|
+
export class ProjectResources extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int', nullable: true })
|
|
10
|
+
project_manager_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'date', nullable: true })
|
|
13
|
+
estimate_startdate: Date | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'date', nullable: true })
|
|
16
|
+
estimate_enddate: Date | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'boolean', default: false })
|
|
19
|
+
is_collaboration_tool_key: boolean;
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
project_id?: number,
|
|
23
|
+
project_manager_id?: number,
|
|
24
|
+
estimate_startdate?: Date | null,
|
|
25
|
+
estimate_enddate?: Date | null,
|
|
26
|
+
is_collaboration_tool_key?: boolean
|
|
27
|
+
) {
|
|
28
|
+
super();
|
|
29
|
+
this.project_id = project_id ?? 0;
|
|
30
|
+
this.project_manager_id = project_manager_id ?? 0;
|
|
31
|
+
this.estimate_startdate = estimate_startdate ?? null;
|
|
32
|
+
this.estimate_enddate = estimate_enddate ?? null;
|
|
33
|
+
this.is_collaboration_tool_key = is_collaboration_tool_key ?? false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export interface BudgetBreakdownItem {
|
|
5
|
+
phase?: string;
|
|
6
|
+
category?: string;
|
|
7
|
+
budget?: number;
|
|
8
|
+
fromdate?: string;
|
|
9
|
+
todate?: string;
|
|
10
|
+
estimated_cost?: number;
|
|
11
|
+
actual_cost?: number;
|
|
12
|
+
total_cost?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@Entity({ name: 'project_scopes' })
|
|
16
|
+
export class ProjectScopes extends BaseModel {
|
|
17
|
+
@Column({ type: 'text', nullable: true })
|
|
18
|
+
scope: string;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'text', nullable: true })
|
|
21
|
+
outscope: string;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'int' })
|
|
24
|
+
project_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
27
|
+
budget_breakdown: BudgetBreakdownItem[] | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'decimal', precision: 15, scale: 2, nullable: true })
|
|
30
|
+
subtotal: number;
|
|
31
|
+
|
|
32
|
+
constructor(
|
|
33
|
+
project_id?: number,
|
|
34
|
+
scope?: string,
|
|
35
|
+
outscope?: string,
|
|
36
|
+
budget_breakdown?: BudgetBreakdownItem[] | null,
|
|
37
|
+
subtotal?: number
|
|
38
|
+
) {
|
|
39
|
+
super();
|
|
40
|
+
this.project_id = project_id ?? 0;
|
|
41
|
+
this.scope = scope ?? '';
|
|
42
|
+
this.outscope = outscope ?? '';
|
|
43
|
+
this.budget_breakdown = budget_breakdown ?? null;
|
|
44
|
+
this.subtotal = subtotal ?? 0;
|
|
45
|
+
}
|
|
46
|
+
}
|