update
This commit is contained in:
@ -4,6 +4,7 @@ import { TrxCustomerType } from "../types/trx";
|
||||
import { TrxBank } from "./trx_banks";
|
||||
import { TrxBankSwift } from "./trx_bank_swifts";
|
||||
import { TrxBankCurrency } from "./trx_bank_currencies";
|
||||
import { TrxCountry } from "./trx_countries";
|
||||
|
||||
@Entity("trx_receivers", { schema: "trx" })
|
||||
export class TrxReceiver {
|
||||
@ -33,6 +34,10 @@ export class TrxReceiver {
|
||||
})
|
||||
email: string;
|
||||
|
||||
@ManyToOne(() => TrxCountry, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
country: TrxCountry;
|
||||
|
||||
@ManyToOne(() => TrxBank, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
bank: TrxBank;
|
||||
|
||||
Reference in New Issue
Block a user