@platform-modules/foreign-ministry 1.3.156 → 1.3.158
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/data-source.js +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/LMSExternalEntityTrainedPersonModel.d.ts +17 -0
- package/dist/models/LMSExternalEntityTrainedPersonModel.js +67 -0
- package/dist/models/UniversalLanguageMasterModel.d.ts +10 -0
- package/dist/models/UniversalLanguageMasterModel.js +51 -0
- package/package.json +1 -1
- package/src/data-source.ts +4 -0
- package/src/index.ts +2 -0
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +42 -0
- package/src/models/UniversalLanguageMasterModel.ts +30 -0
package/dist/data-source.js
CHANGED
|
@@ -116,6 +116,7 @@ const LMSCourseExternalLecturerWorkflowModel_1 = require("./models/LMSCourseExte
|
|
|
116
116
|
const LMSCourseExternalLecturerCostModel_1 = require("./models/LMSCourseExternalLecturerCostModel");
|
|
117
117
|
const LMSCourseExternalLecturerLecturerModel_1 = require("./models/LMSCourseExternalLecturerLecturerModel");
|
|
118
118
|
const LMSExternalEntityTrainedRequestModel_1 = require("./models/LMSExternalEntityTrainedRequestModel");
|
|
119
|
+
const LMSExternalEntityTrainedPersonModel_1 = require("./models/LMSExternalEntityTrainedPersonModel");
|
|
119
120
|
const LMSExternalEntityTrainedApprovalModel_1 = require("./models/LMSExternalEntityTrainedApprovalModel");
|
|
120
121
|
const LMSExternalEntityTrainedAttachmentModel_1 = require("./models/LMSExternalEntityTrainedAttachmentModel");
|
|
121
122
|
const LMSExternalEntityTrainedChatModel_1 = require("./models/LMSExternalEntityTrainedChatModel");
|
|
@@ -187,6 +188,7 @@ const GiftsModel_1 = require("./models/GiftsModel");
|
|
|
187
188
|
const GiftAttachmentModel_1 = require("./models/GiftAttachmentModel");
|
|
188
189
|
const ProjectModel_1 = require("./models/ProjectModel");
|
|
189
190
|
const TemplateModel_1 = require("./models/TemplateModel");
|
|
191
|
+
const UniversalLanguageMasterModel_1 = require("./models/UniversalLanguageMasterModel");
|
|
190
192
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
191
193
|
type: 'postgres',
|
|
192
194
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -308,6 +310,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
308
310
|
LMSCourseExternalLecturerCostModel_1.LMSCourseExternalLecturerCost,
|
|
309
311
|
LMSCourseExternalLecturerLecturerModel_1.LMSCourseExternalLecturerLecturer,
|
|
310
312
|
LMSExternalEntityTrainedRequestModel_1.LMSExternalEntityTrainedRequests,
|
|
313
|
+
LMSExternalEntityTrainedPersonModel_1.LMSExternalEntityTrainedPerson,
|
|
311
314
|
LMSExternalEntityTrainedApprovalModel_1.LMSExternalEntityTrainedApprovalDetails,
|
|
312
315
|
LMSExternalEntityTrainedAttachmentModel_1.LMSExternalEntityTrainedRequestAttachment,
|
|
313
316
|
LMSExternalEntityTrainedChatModel_1.LMSExternalEntityTrainedRequestChat,
|
|
@@ -379,5 +382,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
379
382
|
GiftAttachmentModel_1.GiftAttachments,
|
|
380
383
|
ProjectModel_1.Projects,
|
|
381
384
|
TemplateModel_1.Templates,
|
|
385
|
+
UniversalLanguageMasterModel_1.UniversalLanguageMaster,
|
|
382
386
|
],
|
|
383
387
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export * from './models/LMSCourseExternalLecturerWorkflowModel';
|
|
|
118
118
|
export * from './models/LMSCourseExternalLecturerCostModel';
|
|
119
119
|
export * from './models/LMSCourseExternalLecturerLecturerModel';
|
|
120
120
|
export * from './models/LMSExternalEntityTrainedRequestModel';
|
|
121
|
+
export * from './models/LMSExternalEntityTrainedPersonModel';
|
|
121
122
|
export * from './models/LMSExternalEntityTrainedApprovalModel';
|
|
122
123
|
export * from './models/LMSExternalEntityTrainedAttachmentModel';
|
|
123
124
|
export * from './models/LMSExternalEntityTrainedChatModel';
|
|
@@ -187,6 +188,7 @@ export { TitleCategory } from './models/DiplomaticTitlesMasterModel';
|
|
|
187
188
|
export * from './models/DiplomaticOrganizationMasterModel';
|
|
188
189
|
export * from './models/CountryMasterModel';
|
|
189
190
|
export * from './models/NationalityMasterModel';
|
|
191
|
+
export * from './models/UniversalLanguageMasterModel';
|
|
190
192
|
export * from './models/OfficeMasterModel';
|
|
191
193
|
export * from './models/UpdateAttendanceAttachmentModel';
|
|
192
194
|
export * from './models/RoutingGroupUsersModel';
|
package/dist/index.js
CHANGED
|
@@ -136,6 +136,7 @@ __exportStar(require("./models/LMSCourseExternalLecturerWorkflowModel"), exports
|
|
|
136
136
|
__exportStar(require("./models/LMSCourseExternalLecturerCostModel"), exports);
|
|
137
137
|
__exportStar(require("./models/LMSCourseExternalLecturerLecturerModel"), exports);
|
|
138
138
|
__exportStar(require("./models/LMSExternalEntityTrainedRequestModel"), exports);
|
|
139
|
+
__exportStar(require("./models/LMSExternalEntityTrainedPersonModel"), exports);
|
|
139
140
|
__exportStar(require("./models/LMSExternalEntityTrainedApprovalModel"), exports);
|
|
140
141
|
__exportStar(require("./models/LMSExternalEntityTrainedAttachmentModel"), exports);
|
|
141
142
|
__exportStar(require("./models/LMSExternalEntityTrainedChatModel"), exports);
|
|
@@ -221,6 +222,7 @@ Object.defineProperty(exports, "TitleCategory", { enumerable: true, get: functio
|
|
|
221
222
|
__exportStar(require("./models/DiplomaticOrganizationMasterModel"), exports);
|
|
222
223
|
__exportStar(require("./models/CountryMasterModel"), exports);
|
|
223
224
|
__exportStar(require("./models/NationalityMasterModel"), exports);
|
|
225
|
+
__exportStar(require("./models/UniversalLanguageMasterModel"), exports);
|
|
224
226
|
__exportStar(require("./models/OfficeMasterModel"), exports);
|
|
225
227
|
__exportStar(require("./models/UpdateAttendanceAttachmentModel"), exports);
|
|
226
228
|
__exportStar(require("./models/RoutingGroupUsersModel"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
/**
|
|
3
|
+
* One person/trainee per row; multiple rows per request (Request for Individual Training).
|
|
4
|
+
*/
|
|
5
|
+
export declare class LMSExternalEntityTrainedPerson extends BaseModel {
|
|
6
|
+
request_id: number;
|
|
7
|
+
service_id: number | null;
|
|
8
|
+
sub_service_id: number | null;
|
|
9
|
+
full_name: string | null;
|
|
10
|
+
employee_id: string | null;
|
|
11
|
+
age: number | null;
|
|
12
|
+
university: string | null;
|
|
13
|
+
qualification: string | null;
|
|
14
|
+
learning_curriculum: string | null;
|
|
15
|
+
training_period: string | null;
|
|
16
|
+
display_order: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LMSExternalEntityTrainedPerson = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
/**
|
|
16
|
+
* One person/trainee per row; multiple rows per request (Request for Individual Training).
|
|
17
|
+
*/
|
|
18
|
+
let LMSExternalEntityTrainedPerson = class LMSExternalEntityTrainedPerson extends BaseModel_1.BaseModel {
|
|
19
|
+
};
|
|
20
|
+
exports.LMSExternalEntityTrainedPerson = LMSExternalEntityTrainedPerson;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], LMSExternalEntityTrainedPerson.prototype, "request_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], LMSExternalEntityTrainedPerson.prototype, "service_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], LMSExternalEntityTrainedPerson.prototype, "sub_service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], LMSExternalEntityTrainedPerson.prototype, "full_name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], LMSExternalEntityTrainedPerson.prototype, "employee_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], LMSExternalEntityTrainedPerson.prototype, "age", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], LMSExternalEntityTrainedPerson.prototype, "university", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], LMSExternalEntityTrainedPerson.prototype, "qualification", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], LMSExternalEntityTrainedPerson.prototype, "learning_curriculum", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], LMSExternalEntityTrainedPerson.prototype, "training_period", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], LMSExternalEntityTrainedPerson.prototype, "display_order", void 0);
|
|
65
|
+
exports.LMSExternalEntityTrainedPerson = LMSExternalEntityTrainedPerson = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'lms_external_entity_trained_people' })
|
|
67
|
+
], LMSExternalEntityTrainedPerson);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class UniversalLanguageMaster extends BaseModel {
|
|
3
|
+
language_name: string;
|
|
4
|
+
language_name_arabic: string | null;
|
|
5
|
+
language_code: string | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
display_order: number;
|
|
9
|
+
constructor(language_name: string);
|
|
10
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UniversalLanguageMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let UniversalLanguageMaster = class UniversalLanguageMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(language_name) {
|
|
17
|
+
super();
|
|
18
|
+
this.language_name = language_name;
|
|
19
|
+
this.is_active = true;
|
|
20
|
+
this.display_order = 0;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.UniversalLanguageMaster = UniversalLanguageMaster;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], UniversalLanguageMaster.prototype, "language_name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], UniversalLanguageMaster.prototype, "language_name_arabic", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], UniversalLanguageMaster.prototype, "language_code", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], UniversalLanguageMaster.prototype, "description", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], UniversalLanguageMaster.prototype, "is_active", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], UniversalLanguageMaster.prototype, "display_order", void 0);
|
|
48
|
+
exports.UniversalLanguageMaster = UniversalLanguageMaster = __decorate([
|
|
49
|
+
(0, typeorm_1.Entity)({ name: 'universal_language_master' }),
|
|
50
|
+
__metadata("design:paramtypes", [String])
|
|
51
|
+
], UniversalLanguageMaster);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -121,6 +121,7 @@ import { LMSCourseExternalLecturerWorkFlow } from './models/LMSCourseExternalLec
|
|
|
121
121
|
import { LMSCourseExternalLecturerCost } from './models/LMSCourseExternalLecturerCostModel';
|
|
122
122
|
import { LMSCourseExternalLecturerLecturer } from './models/LMSCourseExternalLecturerLecturerModel';
|
|
123
123
|
import { LMSExternalEntityTrainedRequests } from './models/LMSExternalEntityTrainedRequestModel';
|
|
124
|
+
import { LMSExternalEntityTrainedPerson } from './models/LMSExternalEntityTrainedPersonModel';
|
|
124
125
|
import { LMSExternalEntityTrainedApprovalDetails } from './models/LMSExternalEntityTrainedApprovalModel';
|
|
125
126
|
import { LMSExternalEntityTrainedRequestAttachment } from './models/LMSExternalEntityTrainedAttachmentModel';
|
|
126
127
|
import { LMSExternalEntityTrainedRequestChat } from './models/LMSExternalEntityTrainedChatModel';
|
|
@@ -193,6 +194,7 @@ import { Gifts } from './models/GiftsModel';
|
|
|
193
194
|
import { GiftAttachments } from './models/GiftAttachmentModel';
|
|
194
195
|
import { Projects } from './models/ProjectModel';
|
|
195
196
|
import { Templates } from './models/TemplateModel';
|
|
197
|
+
import { UniversalLanguageMaster } from './models/UniversalLanguageMasterModel';
|
|
196
198
|
export const AppDataSource = new DataSource({
|
|
197
199
|
type: 'postgres',
|
|
198
200
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -314,6 +316,7 @@ export const AppDataSource = new DataSource({
|
|
|
314
316
|
LMSCourseExternalLecturerCost,
|
|
315
317
|
LMSCourseExternalLecturerLecturer,
|
|
316
318
|
LMSExternalEntityTrainedRequests,
|
|
319
|
+
LMSExternalEntityTrainedPerson,
|
|
317
320
|
LMSExternalEntityTrainedApprovalDetails,
|
|
318
321
|
LMSExternalEntityTrainedRequestAttachment,
|
|
319
322
|
LMSExternalEntityTrainedRequestChat,
|
|
@@ -385,5 +388,6 @@ export const AppDataSource = new DataSource({
|
|
|
385
388
|
GiftAttachments,
|
|
386
389
|
Projects,
|
|
387
390
|
Templates,
|
|
391
|
+
UniversalLanguageMaster,
|
|
388
392
|
],
|
|
389
393
|
});
|
package/src/index.ts
CHANGED
|
@@ -118,6 +118,7 @@ export * from './models/LMSCourseExternalLecturerWorkflowModel';
|
|
|
118
118
|
export * from './models/LMSCourseExternalLecturerCostModel';
|
|
119
119
|
export * from './models/LMSCourseExternalLecturerLecturerModel';
|
|
120
120
|
export * from './models/LMSExternalEntityTrainedRequestModel';
|
|
121
|
+
export * from './models/LMSExternalEntityTrainedPersonModel';
|
|
121
122
|
export * from './models/LMSExternalEntityTrainedApprovalModel';
|
|
122
123
|
export * from './models/LMSExternalEntityTrainedAttachmentModel';
|
|
123
124
|
export * from './models/LMSExternalEntityTrainedChatModel';
|
|
@@ -187,6 +188,7 @@ export { TitleCategory } from './models/DiplomaticTitlesMasterModel';
|
|
|
187
188
|
export * from './models/DiplomaticOrganizationMasterModel';
|
|
188
189
|
export * from './models/CountryMasterModel';
|
|
189
190
|
export * from './models/NationalityMasterModel';
|
|
191
|
+
export * from './models/UniversalLanguageMasterModel';
|
|
190
192
|
export * from './models/OfficeMasterModel';
|
|
191
193
|
export * from './models/UpdateAttendanceAttachmentModel';
|
|
192
194
|
export * from './models/RoutingGroupUsersModel';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One person/trainee per row; multiple rows per request (Request for Individual Training).
|
|
6
|
+
*/
|
|
7
|
+
@Entity({ name: 'lms_external_entity_trained_people' })
|
|
8
|
+
export class LMSExternalEntityTrainedPerson extends BaseModel {
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'int', nullable: false })
|
|
11
|
+
request_id: number;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'int', nullable: true })
|
|
14
|
+
service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
sub_service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
+
full_name: string | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
23
|
+
employee_id: string | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
age: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
29
|
+
university: string | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'text', nullable: true })
|
|
32
|
+
qualification: string | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'text', nullable: true })
|
|
35
|
+
learning_curriculum: string | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
38
|
+
training_period: string | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'int', default: 0 })
|
|
41
|
+
display_order: number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'universal_language_master' })
|
|
5
|
+
export class UniversalLanguageMaster extends BaseModel {
|
|
6
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
7
|
+
language_name: string; // Language name
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
10
|
+
language_name_arabic: string | null; // Arabic translation
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 20, nullable: true })
|
|
13
|
+
language_code: string | null; // e.g. ISO 639-1: en, ar
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'text', nullable: true })
|
|
16
|
+
description: string | null; // Description
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'boolean', default: true })
|
|
19
|
+
is_active: boolean; // Whether the language is active
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', default: 0 })
|
|
22
|
+
display_order: number; // Order for display in dropdowns
|
|
23
|
+
|
|
24
|
+
constructor(language_name: string) {
|
|
25
|
+
super();
|
|
26
|
+
this.language_name = language_name;
|
|
27
|
+
this.is_active = true;
|
|
28
|
+
this.display_order = 0;
|
|
29
|
+
}
|
|
30
|
+
}
|