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 { 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,