@platform-modules/civil-aviation-authority 1.0.13 → 1.0.14
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/user.js +5 -5
- package/package.json +1 -1
- package/src/models/user.ts +6 -10
package/dist/models/user.js
CHANGED
|
@@ -49,11 +49,11 @@ let User = class User extends BaseModel_1.BaseModel {
|
|
|
49
49
|
};
|
|
50
50
|
exports.User = User;
|
|
51
51
|
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
53
53
|
__metadata("design:type", Number)
|
|
54
54
|
], User.prototype, "employee_id", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
57
57
|
__metadata("design:type", Number)
|
|
58
58
|
], User.prototype, "civil_employee_id", void 0);
|
|
59
59
|
__decorate([
|
|
@@ -113,11 +113,11 @@ __decorate([
|
|
|
113
113
|
__metadata("design:type", String)
|
|
114
114
|
], User.prototype, "blood_type", void 0);
|
|
115
115
|
__decorate([
|
|
116
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
116
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
117
117
|
__metadata("design:type", Number)
|
|
118
118
|
], User.prototype, "national_id", void 0);
|
|
119
119
|
__decorate([
|
|
120
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
120
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
121
121
|
__metadata("design:type", Number)
|
|
122
122
|
], User.prototype, "manpower_id", void 0);
|
|
123
123
|
__decorate([
|
|
@@ -161,7 +161,7 @@ __decorate([
|
|
|
161
161
|
__metadata("design:type", String)
|
|
162
162
|
], User.prototype, "location", void 0);
|
|
163
163
|
__decorate([
|
|
164
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
164
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
165
165
|
__metadata("design:type", Number)
|
|
166
166
|
], User.prototype, "supervisor_emp_id", void 0);
|
|
167
167
|
__decorate([
|
package/package.json
CHANGED
package/src/models/user.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
1
|
import { Column, Entity } from "typeorm";
|
|
3
2
|
import { BaseModel } from './BaseModel';
|
|
4
3
|
|
|
5
4
|
@Entity({ name: 'users' })
|
|
6
5
|
export class User extends BaseModel {
|
|
7
6
|
|
|
8
|
-
@Column({ nullable: true })
|
|
7
|
+
@Column({ type: 'bigint', nullable: true })
|
|
9
8
|
employee_id?: number;
|
|
10
9
|
|
|
11
|
-
@Column({ nullable: true })
|
|
10
|
+
@Column({ type: 'bigint', nullable: true })
|
|
12
11
|
civil_employee_id?: number;
|
|
13
12
|
|
|
14
13
|
@Column({ nullable: true })
|
|
@@ -53,10 +52,10 @@ export class User extends BaseModel {
|
|
|
53
52
|
@Column({ nullable: true })
|
|
54
53
|
blood_type?: string;
|
|
55
54
|
|
|
56
|
-
@Column({ nullable: true })
|
|
55
|
+
@Column({ type: 'bigint', nullable: true })
|
|
57
56
|
national_id?: number;
|
|
58
57
|
|
|
59
|
-
@Column({ nullable: true })
|
|
58
|
+
@Column({ type: 'bigint', nullable: true })
|
|
60
59
|
manpower_id?: number;
|
|
61
60
|
|
|
62
61
|
@Column({ nullable: true })
|
|
@@ -89,13 +88,12 @@ export class User extends BaseModel {
|
|
|
89
88
|
@Column({ nullable: true })
|
|
90
89
|
location?: string;
|
|
91
90
|
|
|
92
|
-
@Column({ nullable: true })
|
|
91
|
+
@Column({ type: 'bigint', nullable: true })
|
|
93
92
|
supervisor_emp_id?: number;
|
|
94
93
|
|
|
95
94
|
@Column({ nullable: true })
|
|
96
95
|
supervisor_emp_name?: string;
|
|
97
96
|
|
|
98
|
-
|
|
99
97
|
constructor(
|
|
100
98
|
employee_id?: number,
|
|
101
99
|
civil_employee_id?: number,
|
|
@@ -160,6 +158,4 @@ export class User extends BaseModel {
|
|
|
160
158
|
this.supervisor_emp_id = supervisor_emp_id;
|
|
161
159
|
this.supervisor_emp_name = supervisor_emp_name;
|
|
162
160
|
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
161
|
+
}
|