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