From 1a83737f5ad78e572fda1a5d5101da74810ef9a9 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 23:57:37 +0700 Subject: [PATCH] update --- src/entity/trx_transactions.ts | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/entity/trx_transactions.ts b/src/entity/trx_transactions.ts index 53c1a27..000a009 100644 --- a/src/entity/trx_transactions.ts +++ b/src/entity/trx_transactions.ts @@ -8,6 +8,7 @@ import { TrxCustomerCost } from "./trx_customer_costs"; import { TrxCustomerUser } from "./trx_customer_users"; import { TrxTransactionPosition, TrxTransactionStatus, TrxTransactionType } from "../types/trx"; import { TrxVerification } from "./trx_verifications"; +import { TrxPurposes } from "./trx_purposes"; @Entity("trx_transactions", { schema: "trx" }) export class TrxTransaction { @@ -121,15 +122,6 @@ export class TrxTransaction { }) settlement_file: string; - @Column({ - nullable: true, - length: 256, - }) - mt103_file: string; - - @Column({ nullable: true, length: 256 }) - teller_reference_number: string; - @Column({ nullable: true, length: 256 }) settlemented_by: string; @@ -158,6 +150,22 @@ export class TrxTransaction { }) remark: string; + @Column({ + nullable: true, + length: 256, + }) + mt103_file: string; + + @Column({ nullable: true, length: 256 }) + teller_reference_number: string; + + @ManyToOne(() => TrxPurposes, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + purpose: TrxPurposes; + + @Column({ nullable: true, length: 256 }) + purpose_label: string; + @Column() @CreateDateColumn() created_at: Date;