This commit is contained in:
fro1991
2025-10-26 05:59:23 +07:00
parent aa42dac66a
commit 37ff11f62e

View File

@ -4,6 +4,7 @@ import { TrxCustomerType } from "../types/trx";
import { TrxBank } from "./trx_banks"; import { TrxBank } from "./trx_banks";
import { TrxBankSwift } from "./trx_bank_swifts"; import { TrxBankSwift } from "./trx_bank_swifts";
import { TrxBankCurrency } from "./trx_bank_currencies"; import { TrxBankCurrency } from "./trx_bank_currencies";
import { TrxCountry } from "./trx_countries";
@Entity("trx_receivers", { schema: "trx" }) @Entity("trx_receivers", { schema: "trx" })
export class TrxReceiver { export class TrxReceiver {
@ -33,6 +34,10 @@ export class TrxReceiver {
}) })
email: string; email: string;
@ManyToOne(() => TrxCountry, { onDelete: "NO ACTION", nullable: true })
@JoinColumn()
country: TrxCountry;
@ManyToOne(() => TrxBank, { onDelete: "NO ACTION" }) @ManyToOne(() => TrxBank, { onDelete: "NO ACTION" })
@JoinColumn() @JoinColumn()
bank: TrxBank; bank: TrxBank;