This commit is contained in:
fro1991
2025-10-25 02:32:46 +07:00
parent 4a55d506e4
commit ce3ade48de
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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";