plac-micro-common 1.3.36 → 1.3.38
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.
|
@@ -16,6 +16,10 @@ const types_1 = require("../../types");
|
|
|
16
16
|
let OccupationEntity = class OccupationEntity extends _base_entity_1._BaseEntity {
|
|
17
17
|
};
|
|
18
18
|
exports.OccupationEntity = OccupationEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], OccupationEntity.prototype, "id", void 0);
|
|
19
23
|
__decorate([
|
|
20
24
|
(0, typeorm_1.Column)({ type: "varchar", length: 20 }),
|
|
21
25
|
__metadata("design:type", String)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
2
|
import { CustomerEntity } from "./customer.entity";
|
|
3
3
|
import { Gender } from "../../types";
|
|
4
|
-
import { MaritalStatusEntity, NationalityEntity } from "../core";
|
|
4
|
+
import { MaritalStatusEntity, NationalityEntity, OccupationEntity } from "../core";
|
|
5
5
|
export declare class CustomerIndividualProfileEntity extends _BaseEntity {
|
|
6
6
|
id: string;
|
|
7
7
|
customer_id: string;
|
|
@@ -17,4 +17,5 @@ export declare class CustomerIndividualProfileEntity extends _BaseEntity {
|
|
|
17
17
|
customer: CustomerEntity;
|
|
18
18
|
marital_status?: MaritalStatusEntity;
|
|
19
19
|
nationality?: NationalityEntity;
|
|
20
|
+
occupation?: OccupationEntity;
|
|
20
21
|
}
|
|
@@ -92,6 +92,14 @@ __decorate([
|
|
|
92
92
|
(0, typeorm_1.JoinColumn)({ name: "nationality_id" }),
|
|
93
93
|
__metadata("design:type", core_1.NationalityEntity)
|
|
94
94
|
], CustomerIndividualProfileEntity.prototype, "nationality", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.ManyToOne)(() => core_1.OccupationEntity, {
|
|
97
|
+
nullable: true,
|
|
98
|
+
onDelete: "RESTRICT",
|
|
99
|
+
}),
|
|
100
|
+
(0, typeorm_1.JoinColumn)({ name: "occupation_id" }),
|
|
101
|
+
__metadata("design:type", core_1.OccupationEntity)
|
|
102
|
+
], CustomerIndividualProfileEntity.prototype, "occupation", void 0);
|
|
95
103
|
exports.CustomerIndividualProfileEntity = CustomerIndividualProfileEntity = __decorate([
|
|
96
104
|
(0, typeorm_1.Entity)({ schema: "customer", name: "customer_individual_profiles" })
|
|
97
105
|
], CustomerIndividualProfileEntity);
|