update
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { TrxCountry } from "./trx_countries";
|
||||
import { TrxCurrency } from "./trx_currencies";
|
||||
import { TrxBank } from "./trx_banks";
|
||||
|
||||
@Entity("trx_country_currencies", { schema: "trx" })
|
||||
export class TrxCountryCurrency {
|
||||
@ -11,6 +12,10 @@ export class TrxCountryCurrency {
|
||||
@JoinColumn()
|
||||
country: TrxCountry;
|
||||
|
||||
@ManyToOne(() => TrxBank, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
bank: TrxBank;
|
||||
|
||||
@ManyToOne(() => TrxCurrency, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
currency: TrxCurrency;
|
||||
@ -7,7 +7,7 @@ export * from "../entity/trx_customer_user_activities";
|
||||
export * from "../entity/trx_customer_costs";
|
||||
export * from "../entity/trx_countries";
|
||||
export * from "../entity/trx_currencies";
|
||||
export * from "../entity/trx_country_currencies";
|
||||
export * from "../entity/trx_country_bank_currencies";
|
||||
export * from "../entity/trx_currency_rates";
|
||||
export * from "../entity/trx_banks";
|
||||
export * from "../entity/trx_bank_swifts";
|
||||
|
||||
Reference in New Issue
Block a user