This commit is contained in:
2025-10-01 14:02:26 +07:00
parent b81120319c
commit 68e52102d6
2 changed files with 1 additions and 5 deletions

View File

@ -45,7 +45,7 @@ export class TrxCompanyUser {
})
name: string;
@OneToMany(() => TrxConfigLevel, (level) => level.company_user, { onDelete: "NO ACTION", nullable: false })
@OneToMany(() => TrxConfigLevel, (level) => level.id, { onDelete: "NO ACTION", nullable: false })
level: TrxConfigLevel[];
@ManyToOne(() => TrxCompany, { onDelete: "NO ACTION" })

View File

@ -7,10 +7,6 @@ export class TrxConfigLevel {
@PrimaryGeneratedColumn("uuid")
id: string;
@ManyToOne(() => TrxCompanyUser, (company) => company.level, { onDelete: "NO ACTION" })
@JoinColumn()
company_user: TrxCompanyUser;
@Column({
nullable: true,
length: 256,