@platform-modules/foreign-ministry 1.3.78 → 1.3.80
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/dist/models/UserEmploymentDetailsModel.d.ts +5 -0
- package/dist/models/UserEmploymentDetailsModel.js +20 -0
- package/dist/models/user.d.ts +12 -3
- package/dist/models/user.js +23 -8
- package/package.json +1 -1
- package/src/models/DiplomaticClubCardMembersModel.ts +75 -75
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +26 -26
- package/src/models/DiplomaticRequestsModel.ts +157 -157
- package/src/models/UserEmploymentDetailsModel.ts +15 -0
- package/src/models/user.ts +24 -8
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
- package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
- package/dist/models/DiplomaticClubCardAttachmentModel.js +0 -44
- package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
- package/dist/models/DiplomaticClubCardChatModel.js +0 -36
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
- package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
- package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestAttachmentModel.js +0 -54
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestChatModel.js +0 -44
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SubscriptionAmountModel.d.ts +0 -67
- package/dist/models/SubscriptionAmountModel.js +0 -114
|
@@ -6,6 +6,8 @@ import { BaseModel } from './BaseModel';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class UserEmploymentDetails extends BaseModel {
|
|
8
8
|
user_id: number;
|
|
9
|
+
job_title: string | null;
|
|
10
|
+
man_power_number: string | null;
|
|
9
11
|
date_of_decree_issuance: Date | null;
|
|
10
12
|
civil_service_number: string | null;
|
|
11
13
|
information_number: string | null;
|
|
@@ -19,6 +21,7 @@ export declare class UserEmploymentDetails extends BaseModel {
|
|
|
19
21
|
secondment_end_date: Date | null;
|
|
20
22
|
disability_type: string | null;
|
|
21
23
|
retirement_start_date: Date | null;
|
|
24
|
+
retirement_end_date: Date | null;
|
|
22
25
|
contract_end_date: Date | null;
|
|
23
26
|
job_type_group: string | null;
|
|
24
27
|
entity_transferred_from: string | null;
|
|
@@ -26,6 +29,7 @@ export declare class UserEmploymentDetails extends BaseModel {
|
|
|
26
29
|
entity_transferred_to: string | null;
|
|
27
30
|
date_of_transfer_to: Date | null;
|
|
28
31
|
job_description: string | null;
|
|
32
|
+
country_of_appointment: string | null;
|
|
29
33
|
date_of_appointment: Date | null;
|
|
30
34
|
appointment_grade: string | null;
|
|
31
35
|
type_of_appointment: string | null;
|
|
@@ -33,6 +37,7 @@ export declare class UserEmploymentDetails extends BaseModel {
|
|
|
33
37
|
mc_work: boolean | null;
|
|
34
38
|
governorate_name: string | null;
|
|
35
39
|
works_in_department: string | null;
|
|
40
|
+
office: string | null;
|
|
36
41
|
full_name_of_mission: string | null;
|
|
37
42
|
mission: string | null;
|
|
38
43
|
description_of_mission: string | null;
|
|
@@ -24,6 +24,14 @@ __decorate([
|
|
|
24
24
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], UserEmploymentDetails.prototype, "user_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], UserEmploymentDetails.prototype, "job_title", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], UserEmploymentDetails.prototype, "man_power_number", void 0);
|
|
27
35
|
__decorate([
|
|
28
36
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
29
37
|
__metadata("design:type", Object)
|
|
@@ -76,6 +84,10 @@ __decorate([
|
|
|
76
84
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
77
85
|
__metadata("design:type", Object)
|
|
78
86
|
], UserEmploymentDetails.prototype, "retirement_start_date", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], UserEmploymentDetails.prototype, "retirement_end_date", void 0);
|
|
79
91
|
__decorate([
|
|
80
92
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
81
93
|
__metadata("design:type", Object)
|
|
@@ -104,6 +116,10 @@ __decorate([
|
|
|
104
116
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
105
117
|
__metadata("design:type", Object)
|
|
106
118
|
], UserEmploymentDetails.prototype, "job_description", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], UserEmploymentDetails.prototype, "country_of_appointment", void 0);
|
|
107
123
|
__decorate([
|
|
108
124
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
109
125
|
__metadata("design:type", Object)
|
|
@@ -132,6 +148,10 @@ __decorate([
|
|
|
132
148
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
133
149
|
__metadata("design:type", Object)
|
|
134
150
|
], UserEmploymentDetails.prototype, "works_in_department", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
153
|
+
__metadata("design:type", Object)
|
|
154
|
+
], UserEmploymentDetails.prototype, "office", void 0);
|
|
135
155
|
__decorate([
|
|
136
156
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
137
157
|
__metadata("design:type", Object)
|
package/dist/models/user.d.ts
CHANGED
|
@@ -38,11 +38,20 @@ export declare class User extends BaseModel {
|
|
|
38
38
|
qualification?: string;
|
|
39
39
|
father_name?: string;
|
|
40
40
|
spouse_name?: string;
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
father_age?: number;
|
|
42
|
+
mother_name?: string;
|
|
43
|
+
mother_age?: number;
|
|
44
|
+
spouse_age?: number;
|
|
45
|
+
children?: {
|
|
46
|
+
name: string;
|
|
47
|
+
age: number;
|
|
48
|
+
}[];
|
|
43
49
|
language_preferences?: string;
|
|
44
50
|
category: "FM" | "Embassy";
|
|
45
51
|
mandc_number: number;
|
|
46
52
|
is_services_blocked?: boolean;
|
|
47
|
-
constructor(employee_id?: number, employee_name?: string, employee_arabic_name?: string, date_of_birth?: string, region_of_birth?: string, country_of_birth?: string, date_of_joining?: string, last_promotion_date?: string, gender?: string, marital_status?: string, nationality?: string, email?: string, blood_group?: string, national_id?: number, mobile?: string, office_number?: string, department?: number, section?: number, grade?: number, location?: string, country?: string, is_admin?: boolean, division?: number, reporting_to?: number, address?: string, residential_status?: string, religion?: string, designation?: number, avatar?: string, passport_number?: string, personal_email?: string, extension_number?: number, fax_number?: string, diplomatic_name?: string, civil_employee_id?: number, qualification?: string, father_name?: string,
|
|
53
|
+
constructor(employee_id?: number, employee_name?: string, employee_arabic_name?: string, date_of_birth?: string, region_of_birth?: string, country_of_birth?: string, date_of_joining?: string, last_promotion_date?: string, gender?: string, marital_status?: string, nationality?: string, email?: string, blood_group?: string, national_id?: number, mobile?: string, office_number?: string, department?: number, section?: number, grade?: number, location?: string, country?: string, is_admin?: boolean, division?: number, reporting_to?: number, address?: string, residential_status?: string, religion?: string, designation?: number, avatar?: string, passport_number?: string, personal_email?: string, extension_number?: number, fax_number?: string, diplomatic_name?: string, civil_employee_id?: number, qualification?: string, father_name?: string, father_age?: number, mother_name?: string, mother_age?: number, spouse_name?: string, spouse_age?: number, children?: {
|
|
54
|
+
name: string;
|
|
55
|
+
age: number;
|
|
56
|
+
}[], language_preferences?: string, category?: "FM" | "Embassy", mandc_number?: number, is_services_blocked?: boolean);
|
|
48
57
|
}
|
package/dist/models/user.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.User = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let User = class User extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(employee_id, employee_name, employee_arabic_name, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, marital_status, nationality, email, blood_group, national_id, mobile, office_number, department, section, grade, location, country, is_admin, division, reporting_to, address, residential_status, religion, designation, avatar, passport_number, personal_email, extension_number, fax_number, diplomatic_name, civil_employee_id, qualification, father_name, spouse_name,
|
|
16
|
+
constructor(employee_id, employee_name, employee_arabic_name, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, marital_status, nationality, email, blood_group, national_id, mobile, office_number, department, section, grade, location, country, is_admin, division, reporting_to, address, residential_status, religion, designation, avatar, passport_number, personal_email, extension_number, fax_number, diplomatic_name, civil_employee_id, qualification, father_name, father_age, mother_name, mother_age, spouse_name, spouse_age, children, language_preferences, category, mandc_number, is_services_blocked) {
|
|
17
17
|
super();
|
|
18
18
|
this.employee_id = employee_id;
|
|
19
19
|
this.employee_name = employee_name;
|
|
@@ -52,9 +52,12 @@ let User = class User extends BaseModel_1.BaseModel {
|
|
|
52
52
|
this.civil_employee_id = civil_employee_id;
|
|
53
53
|
this.qualification = qualification;
|
|
54
54
|
this.father_name = father_name;
|
|
55
|
+
this.father_age = father_age;
|
|
56
|
+
this.mother_name = mother_name;
|
|
57
|
+
this.mother_age = mother_age;
|
|
55
58
|
this.spouse_name = spouse_name;
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
59
|
+
this.spouse_age = spouse_age;
|
|
60
|
+
this.children = children;
|
|
58
61
|
this.language_preferences = language_preferences;
|
|
59
62
|
this.category = category || "FM";
|
|
60
63
|
this.mandc_number = mandc_number || 0;
|
|
@@ -215,13 +218,25 @@ __decorate([
|
|
|
215
218
|
__metadata("design:type", String)
|
|
216
219
|
], User.prototype, "spouse_name", void 0);
|
|
217
220
|
__decorate([
|
|
218
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
219
|
-
__metadata("design:type",
|
|
220
|
-
], User.prototype, "
|
|
221
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
222
|
+
__metadata("design:type", Number)
|
|
223
|
+
], User.prototype, "father_age", void 0);
|
|
221
224
|
__decorate([
|
|
222
225
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
223
226
|
__metadata("design:type", String)
|
|
224
|
-
], User.prototype, "
|
|
227
|
+
], User.prototype, "mother_name", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
230
|
+
__metadata("design:type", Number)
|
|
231
|
+
], User.prototype, "mother_age", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
234
|
+
__metadata("design:type", Number)
|
|
235
|
+
], User.prototype, "spouse_age", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
238
|
+
__metadata("design:type", Array)
|
|
239
|
+
], User.prototype, "children", void 0);
|
|
225
240
|
__decorate([
|
|
226
241
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
227
242
|
__metadata("design:type", String)
|
|
@@ -240,5 +255,5 @@ __decorate([
|
|
|
240
255
|
], User.prototype, "is_services_blocked", void 0);
|
|
241
256
|
exports.User = User = __decorate([
|
|
242
257
|
(0, typeorm_1.Entity)({ name: 'users' }),
|
|
243
|
-
__metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, String, Number, Number, Number, String, String, Boolean, Number, Number, String, String, String, Number, String, String, String, Number, String, String, Number, String, String,
|
|
258
|
+
__metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, String, Number, Number, Number, String, String, Boolean, Number, Number, String, String, String, Number, String, String, String, Number, String, String, Number, String, String, Number, String, Number, String, Number, Array, String, String, Number, Boolean])
|
|
244
259
|
], User);
|
package/package.json
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { DiplomaticRequests } from "./DiplomaticRequestsModel";
|
|
4
|
-
import type { DiplomaticClubCardPhotos } from './DiplomaticClubCardPhotosModel';
|
|
5
|
-
|
|
6
|
-
export enum MembershipType {
|
|
7
|
-
SINGLE = "Single",
|
|
8
|
-
FAMILY = "Family"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export enum RequestType {
|
|
12
|
-
EMPLOYEE_SELF = "Employee Self",
|
|
13
|
-
NON_EMPLOYEE = "Non Employee"
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export enum MemberType {
|
|
17
|
-
PRIMARY = "Primary",
|
|
18
|
-
FAMILY_MEMBER = "Family Member"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@Entity({ name: 'diplomatic_club_card_members' })
|
|
22
|
-
export class DiplomaticClubCardMembers extends BaseModel {
|
|
23
|
-
@Column({ type: 'int' })
|
|
24
|
-
diplomatic_request_id: number;
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'varchar', length: 255 })
|
|
27
|
-
family_member_name: string;
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
30
|
-
relation: string | null;
|
|
31
|
-
|
|
32
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
33
|
-
title: string | null;
|
|
34
|
-
|
|
35
|
-
@Column({ type: 'int', nullable: true })
|
|
36
|
-
diplomatic_title_id: number | null;
|
|
37
|
-
|
|
38
|
-
@Column({ type: 'date', nullable: true })
|
|
39
|
-
expiry_date: Date | null;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'text', nullable: true })
|
|
42
|
-
photo_url: string | null;
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
45
|
-
membership_id: string | null;
|
|
46
|
-
|
|
47
|
-
@ManyToOne(() => DiplomaticRequests, dr => dr.diplomaticClubCardMembers)
|
|
48
|
-
@JoinColumn({ name: 'diplomatic_request_id' })
|
|
49
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
50
|
-
|
|
51
|
-
@OneToMany('DiplomaticClubCardPhotos', 'diplomaticMember', { nullable: true })
|
|
52
|
-
photos?: DiplomaticClubCardPhotos[];
|
|
53
|
-
|
|
54
|
-
constructor(
|
|
55
|
-
diplomatic_request_id: number,
|
|
56
|
-
family_member_name: string,
|
|
57
|
-
relation?: string | null,
|
|
58
|
-
title?: string | null,
|
|
59
|
-
diplomatic_title_id?: number | null,
|
|
60
|
-
expiry_date?: Date | null,
|
|
61
|
-
photo_url?: string | null,
|
|
62
|
-
membership_id?: string | null
|
|
63
|
-
) {
|
|
64
|
-
super();
|
|
65
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
66
|
-
this.family_member_name = family_member_name;
|
|
67
|
-
this.relation = relation || null;
|
|
68
|
-
this.title = title || null;
|
|
69
|
-
this.diplomatic_title_id = diplomatic_title_id || null;
|
|
70
|
-
this.expiry_date = expiry_date || null;
|
|
71
|
-
this.photo_url = photo_url || null;
|
|
72
|
-
this.membership_id = membership_id || null;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
1
|
+
import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { DiplomaticRequests } from "./DiplomaticRequestsModel";
|
|
4
|
+
import type { DiplomaticClubCardPhotos } from './DiplomaticClubCardPhotosModel';
|
|
5
|
+
|
|
6
|
+
export enum MembershipType {
|
|
7
|
+
SINGLE = "Single",
|
|
8
|
+
FAMILY = "Family"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum RequestType {
|
|
12
|
+
EMPLOYEE_SELF = "Employee Self",
|
|
13
|
+
NON_EMPLOYEE = "Non Employee"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum MemberType {
|
|
17
|
+
PRIMARY = "Primary",
|
|
18
|
+
FAMILY_MEMBER = "Family Member"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Entity({ name: 'diplomatic_club_card_members' })
|
|
22
|
+
export class DiplomaticClubCardMembers extends BaseModel {
|
|
23
|
+
@Column({ type: 'int' })
|
|
24
|
+
diplomatic_request_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'varchar', length: 255 })
|
|
27
|
+
family_member_name: string;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
30
|
+
relation: string | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
33
|
+
title: string | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'int', nullable: true })
|
|
36
|
+
diplomatic_title_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'date', nullable: true })
|
|
39
|
+
expiry_date: Date | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'text', nullable: true })
|
|
42
|
+
photo_url: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
45
|
+
membership_id: string | null;
|
|
46
|
+
|
|
47
|
+
@ManyToOne(() => DiplomaticRequests, dr => dr.diplomaticClubCardMembers)
|
|
48
|
+
@JoinColumn({ name: 'diplomatic_request_id' })
|
|
49
|
+
diplomaticRequest?: DiplomaticRequests;
|
|
50
|
+
|
|
51
|
+
@OneToMany('DiplomaticClubCardPhotos', 'diplomaticMember', { nullable: true })
|
|
52
|
+
photos?: DiplomaticClubCardPhotos[];
|
|
53
|
+
|
|
54
|
+
constructor(
|
|
55
|
+
diplomatic_request_id: number,
|
|
56
|
+
family_member_name: string,
|
|
57
|
+
relation?: string | null,
|
|
58
|
+
title?: string | null,
|
|
59
|
+
diplomatic_title_id?: number | null,
|
|
60
|
+
expiry_date?: Date | null,
|
|
61
|
+
photo_url?: string | null,
|
|
62
|
+
membership_id?: string | null
|
|
63
|
+
) {
|
|
64
|
+
super();
|
|
65
|
+
this.diplomatic_request_id = diplomatic_request_id;
|
|
66
|
+
this.family_member_name = family_member_name;
|
|
67
|
+
this.relation = relation || null;
|
|
68
|
+
this.title = title || null;
|
|
69
|
+
this.diplomatic_title_id = diplomatic_title_id || null;
|
|
70
|
+
this.expiry_date = expiry_date || null;
|
|
71
|
+
this.photo_url = photo_url || null;
|
|
72
|
+
this.membership_id = membership_id || null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'diplomatic_club_subscription_master' })
|
|
5
|
-
export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
6
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
7
|
-
subscription_type: string | null; // Type: Single or Family
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'decimal', precision: 10, scale: 2 })
|
|
10
|
-
subscription_amount: number;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
13
|
-
currency: string | null;
|
|
14
|
-
|
|
15
|
-
constructor(
|
|
16
|
-
subscription_type: string,
|
|
17
|
-
subscription_amount: number,
|
|
18
|
-
currency?: string | null,
|
|
19
|
-
) {
|
|
20
|
-
super();
|
|
21
|
-
this.subscription_type = subscription_type;
|
|
22
|
-
this.subscription_amount = subscription_amount;
|
|
23
|
-
this.currency = currency || null;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'diplomatic_club_subscription_master' })
|
|
5
|
+
export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
6
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
7
|
+
subscription_type: string | null; // Type: Single or Family
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'decimal', precision: 10, scale: 2 })
|
|
10
|
+
subscription_amount: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
13
|
+
currency: string | null;
|
|
14
|
+
|
|
15
|
+
constructor(
|
|
16
|
+
subscription_type: string,
|
|
17
|
+
subscription_amount: number,
|
|
18
|
+
currency?: string | null,
|
|
19
|
+
) {
|
|
20
|
+
super();
|
|
21
|
+
this.subscription_type = subscription_type;
|
|
22
|
+
this.subscription_amount = subscription_amount;
|
|
23
|
+
this.currency = currency || null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|