This commit is contained in:
2025-11-04 16:34:11 +07:00
parent f77860705b
commit c640dd564c

View File

@ -2,6 +2,7 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinTable, ManyToOn
import { Status } from "../types/status"; import { Status } from "../types/status";
import { TrxCustomerType, TrxIdentityType } from "../types/trx"; import { TrxCustomerType, TrxIdentityType } from "../types/trx";
import { TrxOccupation } from "./trx_occupations"; import { TrxOccupation } from "./trx_occupations";
import { TrxCountry } from "./trx_countries";
@Entity("trx_customers", { schema: "trx" }) @Entity("trx_customers", { schema: "trx" })
export class TrxCustomer { export class TrxCustomer {
@ -82,6 +83,10 @@ export class TrxCustomer {
@JoinTable() @JoinTable()
occupation: TrxOccupation; occupation: TrxOccupation;
@ManyToOne(() => TrxCountry, { onDelete: "NO ACTION" })
@JoinTable()
country: TrxCountry;
@Column({ @Column({
nullable: true, nullable: true,
length: 256, length: 256,