From c640dd564c05797eb50fb5cb5a41068db194a642 Mon Sep 17 00:00:00 2001 From: "fazri.is" Date: Tue, 4 Nov 2025 16:34:11 +0700 Subject: [PATCH] update --- src/entity/trx_customers.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/entity/trx_customers.ts b/src/entity/trx_customers.ts index a519f10..65baf97 100644 --- a/src/entity/trx_customers.ts +++ b/src/entity/trx_customers.ts @@ -2,6 +2,7 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinTable, ManyToOn import { Status } from "../types/status"; import { TrxCustomerType, TrxIdentityType } from "../types/trx"; import { TrxOccupation } from "./trx_occupations"; +import { TrxCountry } from "./trx_countries"; @Entity("trx_customers", { schema: "trx" }) export class TrxCustomer { @@ -82,6 +83,10 @@ export class TrxCustomer { @JoinTable() occupation: TrxOccupation; + @ManyToOne(() => TrxCountry, { onDelete: "NO ACTION" }) + @JoinTable() + country: TrxCountry; + @Column({ nullable: true, length: 256,