From 547a3b95f54c80370ef23dc7896b0c3f5dbb4c23 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 22 Oct 2025 03:19:23 +0700 Subject: [PATCH] update --- src/entity/trx_transactions.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/entity/trx_transactions.ts b/src/entity/trx_transactions.ts index b545cb1..50d0b4c 100644 --- a/src/entity/trx_transactions.ts +++ b/src/entity/trx_transactions.ts @@ -7,6 +7,7 @@ import { TrxCurrencyRate } from "./trx_currency_rates"; import { TrxCustomerCost } from "./trx_customer_costs"; import { TrxCustomerUser } from "./trx_customer_users"; import { TrxTransactionPosition, TrxTransactionStatus, TrxTransactionType } from "../types/trx"; +import { TrxVerification } from "./trx_verifications"; @Entity("trx_transactions", { schema: "trx" }) export class TrxTransaction { @@ -34,6 +35,10 @@ export class TrxTransaction { @JoinColumn() customer_user: TrxCustomerUser; + @ManyToOne(() => TrxVerification, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + maker_verification: TrxVerification; + @ManyToOne(() => TrxCustomerAccount, { onDelete: "NO ACTION" }) @JoinColumn() customer_account: TrxCustomerAccount; @@ -96,12 +101,20 @@ export class TrxTransaction { @Column({ nullable: true }) checked_at: Date; + @ManyToOne(() => TrxVerification, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + checker_verification: TrxVerification; + @Column({ nullable: true, length: 256 }) signed_by: string; @Column({ nullable: true }) signed_at: Date; + @ManyToOne(() => TrxVerification, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + signer_verification: TrxVerification; + @Column({ nullable: true, length: 256,