diff --git a/src/entity/cif_account.ts b/src/entity/cif_account.ts index aa2bc91..51aefd9 100644 --- a/src/entity/cif_account.ts +++ b/src/entity/cif_account.ts @@ -6,131 +6,137 @@ export class CifAccount { id: string; @Column({ - nullable: false, + nullable: true, length: 12 }) cif_number: string; @Column({ - nullable: false, + nullable: true, length: 128 }) name: string; @Column({ - nullable: false, + nullable: true, length: 20 }) account_number: string; @Column({ - nullable: false, - length: 4 + nullable: true, + length: 128 }) branch_code: string; @Column({ - nullable: false, + nullable: true, + length: 128 + }) + branch_name: string; + + @Column({ + nullable: true, }) open_date: Date; @Column({ - type: 'int2', - nullable: false, + type: 'int4', + nullable: true, }) product_type: number; @Column({ - nullable: false, + nullable: true, length: 256 }) product_description: string; @Column({ type: 'float8', - nullable: false, + nullable: true, }) current_balance: number; @Column({ - nullable: false, + nullable: true, length: 2 }) country_code: string; @Column({ - nullable: false, + nullable: true, length: 128 }) country_name: string; @Column({ - nullable: false, - length: 1 + nullable: true, + length: 128 }) exposed_person_flag: string; @Column({ - nullable: false, - length: 1 + nullable: true, + length: 128 }) income_tiering: string; @Column({ - nullable: false, - length: 1 + nullable: true, + length: 128 }) cif_type: string; @Column({ type: 'int2', - nullable: false, + nullable: true, }) status: number; @Column({ - nullable: false, - length: 1 + nullable: true, + length: 128 }) gender: string; @Column({ - nullable: false, + nullable: true, }) birth_date: Date; @Column({ - type: 'uuid', - nullable: false, + // type: 'uuid', + nullable: true, }) economic_sub_clasification: string; @Column({ - type: 'uuid', + // type: 'uuid', nullable: true, }) district: string; @Column({ - type: 'uuid', + // type: 'uuid', nullable: true, }) munisipiu: string; @Column({ - type: 'uuid', + // type: 'uuid', nullable: true, }) administrativu: string; @Column({ - type: 'uuid', + // type: 'uuid', nullable: true, }) suco: string; @Column({ - type: 'uuid', + // type: 'uuid', nullable: true, }) aldeia: string; diff --git a/src/entity/lnkolek.ts b/src/entity/lnkolek.ts index e224f8f..74a9d99 100644 --- a/src/entity/lnkolek.ts +++ b/src/entity/lnkolek.ts @@ -5,6 +5,11 @@ export class LNKOLEK { @PrimaryGeneratedColumn('uuid') id: string; + @Column({ + nullable: false + }) + type: string; + @Column({ type: 'float', nullable: false @@ -35,6 +40,12 @@ export class LNKOLEK { }) branch_code: string; + @Column({ + nullable: true, + length: 128 + }) + branch_name: string; + @Column({ nullable: false, }) @@ -94,10 +105,14 @@ export class LNKOLEK { @Column({ - type: 'float8', nullable: false, }) - ppap: number; + ppap: string; + + @Column({ + nullable: false, + }) + position_date: Date; @Column() @CreateDateColumn() diff --git a/src/entity/trial_balance.ts b/src/entity/trial_balance.ts index 305b284..9acaa8e 100644 --- a/src/entity/trial_balance.ts +++ b/src/entity/trial_balance.ts @@ -6,7 +6,6 @@ export class TrialBalance { id: string; @Column({ - unique: true, nullable: false, length: 64 })