This commit is contained in:
fro1991
2025-10-29 22:18:19 +07:00
parent 811a911b8d
commit 50955ec806
2 changed files with 5 additions and 9 deletions

View File

@ -75,10 +75,8 @@ export class TrxCustomerUser {
})
status: Status;
@Column({
nullable: true,
length: 4096,
})
@ManyToOne(() => TrxOccupation, { onDelete: "NO ACTION" })
@JoinTable()
occupation: TrxOccupation;
@Column({

View File

@ -1,4 +1,4 @@
import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinTable, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
import { Status } from "../types/status";
import { TrxCustomerType } from "../types/trx";
import { TrxOccupation } from "./trx_occupations";
@ -78,10 +78,8 @@ export class TrxCustomer {
})
status: Status;
@Column({
nullable: true,
length: 4096,
})
@ManyToOne(() => TrxOccupation, { onDelete: "NO ACTION" })
@JoinTable()
occupation: TrxOccupation;
@Column({