change: update entity files

This commit is contained in:
Julian Krauser 2025-01-13 11:16:35 +01:00
parent c9b8c3090d
commit e738be4e13
2 changed files with 8 additions and 8 deletions

View file

@ -40,17 +40,17 @@ export class communication {
@Column()
typeId: number;
@ManyToOne(() => communicationType, (communicationType) => communicationType.communications, {
nullable: false,
onDelete: "RESTRICT",
onUpdate: "RESTRICT",
})
type: communicationType;
@ManyToOne(() => member, (member) => member.awards, {
nullable: false,
onDelete: "CASCADE",
onUpdate: "RESTRICT",
})
member: member;
@ManyToOne(() => communicationType, (communicationType) => communicationType.communications, {
nullable: false,
onDelete: "RESTRICT",
onUpdate: "RESTRICT",
})
type: communicationType;
}