update
This commit is contained in:
@ -45,7 +45,7 @@ export class TrxCompanyUser {
|
|||||||
})
|
})
|
||||||
name: string;
|
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[];
|
level: TrxConfigLevel[];
|
||||||
|
|
||||||
@ManyToOne(() => TrxCompany, { onDelete: "NO ACTION" })
|
@ManyToOne(() => TrxCompany, { onDelete: "NO ACTION" })
|
||||||
|
|||||||
@ -7,10 +7,6 @@ export class TrxConfigLevel {
|
|||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@ManyToOne(() => TrxCompanyUser, (company) => company.level, { onDelete: "NO ACTION" })
|
|
||||||
@JoinColumn()
|
|
||||||
company_user: TrxCompanyUser;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256,
|
length: 256,
|
||||||
|
|||||||
Reference in New Issue
Block a user