From 08fe324f4f7cf10710bee0739531e9b68d563a96 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Sat, 25 Oct 2025 23:20:14 +0700 Subject: [PATCH] update --- ..._country_bank_currencies.ts => trx_bank_currencies.ts} | 8 ++------ src/schema/trx.ts | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) rename src/entity/{trx_country_bank_currencies.ts => trx_bank_currencies.ts} (82%) diff --git a/src/entity/trx_country_bank_currencies.ts b/src/entity/trx_bank_currencies.ts similarity index 82% rename from src/entity/trx_country_bank_currencies.ts rename to src/entity/trx_bank_currencies.ts index 59caeeb..981f129 100644 --- a/src/entity/trx_country_bank_currencies.ts +++ b/src/entity/trx_bank_currencies.ts @@ -3,15 +3,11 @@ import { TrxCountry } from "./trx_countries"; import { TrxCurrency } from "./trx_currencies"; import { TrxBank } from "./trx_banks"; -@Entity("trx_country_bank_currencies", { schema: "trx" }) -export class TrxCountryBankCurrency { +@Entity("trx_bank_currencies", { schema: "trx" }) +export class TrxBankCurrency { @PrimaryGeneratedColumn("uuid") id: string; - @ManyToOne(() => TrxCountry, { onDelete: "NO ACTION" }) - @JoinColumn() - country: TrxCountry; - @ManyToOne(() => TrxBank, { onDelete: "NO ACTION" }) @JoinColumn() bank: TrxBank; diff --git a/src/schema/trx.ts b/src/schema/trx.ts index 7bd9878..093ad0c 100644 --- a/src/schema/trx.ts +++ b/src/schema/trx.ts @@ -8,7 +8,7 @@ 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_bank_currencies"; export * from "../entity/trx_currency_rates"; export * from "../entity/trx_banks"; export * from "../entity/trx_bank_swifts";