From 17f475b1c688192d96032d8b3d8bca8a9b3f806d Mon Sep 17 00:00:00 2001 From: fro1991 Date: Tue, 15 Jul 2025 12:13:10 +0700 Subject: [PATCH] update --- src/entity/remit_beneficiaries.ts | 12 +++++++++++- src/entity/remit_transactions.ts | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/entity/remit_beneficiaries.ts b/src/entity/remit_beneficiaries.ts index f75e229..866d035 100644 --- a/src/entity/remit_beneficiaries.ts +++ b/src/entity/remit_beneficiaries.ts @@ -10,6 +10,8 @@ import { RemitConfigOccupation } from "./remit_config_occupations"; import { RemitGender, RemitIdentityType, RemitSenderType } from "../types/remit"; import { RemitConfigSourceIncome } from "./remit_config_source_incomes"; import { RemitConfigBank } from "./remit_config_banks"; +import { RemitIndoProvince } from "./remit_indo_provinces"; +import { RemitIndoCity } from "./remit_indo_cities"; @Entity("remit_beneficiaries", { schema: "remits" }) export class RemitBeneficiary { @@ -44,6 +46,14 @@ export class RemitBeneficiary { }) address: string; + @ManyToOne(() => RemitIndoProvince, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + province: RemitIndoProvince; + + @ManyToOne(() => RemitIndoCity, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + city: RemitIndoCity; + @Column({ nullable: true, length: 256, @@ -66,7 +76,7 @@ export class RemitBeneficiary { @CreateDateColumn() created_at: Date; - @Column({ nullable: true, length: 256, }) + @Column({ nullable: true, length: 256 }) created_by: string; @Column({ nullable: true }) diff --git a/src/entity/remit_transactions.ts b/src/entity/remit_transactions.ts index 3b6923f..a2707a3 100644 --- a/src/entity/remit_transactions.ts +++ b/src/entity/remit_transactions.ts @@ -95,6 +95,27 @@ export class RemitTransaction { @Column({ nullable: true, length: 256 }) approved_by: string; + @Column({ + nullable: true, + length: 4096, + }) + note: String; + + @Column({ + nullable: true, + length: 4096, + }) + remark: String; + + @Column({ + nullable: true, + type: "int2", + }) + callback_count: Number; + + @Column({ nullable: true }) + callback_at: Date; + @Column() @CreateDateColumn() created_at: Date;