update
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user