From 00d74abb30232c90932cff36cda83159bdb89bcd Mon Sep 17 00:00:00 2001 From: "fazri.is" Date: Fri, 29 Aug 2025 01:24:28 +0700 Subject: [PATCH] update --- src/entity/eform_beneficial_owners.ts | 66 +++------------------------ src/entity/eform_requests.ts | 3 +- 2 files changed, 8 insertions(+), 61 deletions(-) diff --git a/src/entity/eform_beneficial_owners.ts b/src/entity/eform_beneficial_owners.ts index 3d288f6..cad653d 100644 --- a/src/entity/eform_beneficial_owners.ts +++ b/src/entity/eform_beneficial_owners.ts @@ -25,18 +25,6 @@ export class EformBeneficialOwner { @JoinColumn() nationality: EformConfigNationality; - @ManyToOne(() => EformConfigSourceIncome, { onDelete: "NO ACTION", nullable: true }) - @JoinColumn() - source_income: EformConfigSourceIncome; - - @ManyToOne(() => EformConfigOccupation, { onDelete: "NO ACTION", nullable: true }) - @JoinColumn() - occupation: EformConfigOccupation; - - @ManyToOne(() => EformConfigBusinessField, { onDelete: "NO ACTION", nullable: true }) - @JoinColumn() - business_field: EformConfigBusinessField; - @ManyToOne(() => EformRegionMunisipo, { onDelete: "NO ACTION", nullable: true }) @JoinColumn() munisipo: EformRegionMunisipo; @@ -73,6 +61,12 @@ export class EformBeneficialOwner { }) gender: EformGender; + @Column({ + nullable: true, + length: 128, + }) + phone: string; + @Column({ nullable: false, length: 256, @@ -84,36 +78,6 @@ export class EformBeneficialOwner { }) birth_date: Date; - @Column({ - nullable: true, - length: 256, - }) - type: EformIdentityType; - - @Column({ - nullable: true, - length: 256, - }) - number: string; - - @Column({ - nullable: true, - length: 256, - }) - expired_at: string; - - @Column({ - nullable: true, - length: 256, - }) - issued_at: string; - - @Column({ - nullable: true, - length: 4096, - }) - file: String; - @Column({ nullable: true, length: 4096, @@ -126,24 +90,6 @@ export class EformBeneficialOwner { }) postal_code: string; - @Column({ - nullable: true, - length: 256, - }) - place: string; - - @Column({ - nullable: true, - length: 256, - }) - length_of_work: string; - - @Column({ - nullable: true, - length: 256, - }) - position: string; - @Column() @CreateDateColumn() created_at: Date; diff --git a/src/entity/eform_requests.ts b/src/entity/eform_requests.ts index 866a5eb..acb9cd0 100644 --- a/src/entity/eform_requests.ts +++ b/src/entity/eform_requests.ts @@ -15,8 +15,9 @@ export class EformRequest { id: string; @Column({ - nullable: true, + nullable: false, length: 256, + unique: true, }) code: string;