update
This commit is contained in:
@ -3,6 +3,7 @@ import { Status } from "../types/status";
|
||||
import { TrxCustomerType } from "../types/trx";
|
||||
import { TrxBank } from "./trx_banks";
|
||||
import { TrxBankSwift } from "./trx_bank_swifts";
|
||||
import { TrxBankCurrency } from "./trx_bank_currencies";
|
||||
|
||||
@Entity("trx_receivers", { schema: "trx" })
|
||||
export class TrxReceiver {
|
||||
@ -36,6 +37,10 @@ export class TrxReceiver {
|
||||
@JoinColumn()
|
||||
bank: TrxBank;
|
||||
|
||||
@ManyToOne(() => TrxBankCurrency, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
bank_currency: TrxBankCurrency;
|
||||
|
||||
@ManyToOne(() => TrxBankSwift, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
bank_swift: TrxBankSwift;
|
||||
|
||||
Reference in New Issue
Block a user