unique fields for tables

This commit is contained in:
Julian Krauser 2025-01-28 11:09:42 +01:00
parent 684c24e4fd
commit 4378c02d17
16 changed files with 144 additions and 19 deletions

View file

@ -32,7 +32,11 @@ export class member {
@OneToMany(() => communication, (communications) => communications.member)
communications: communication[];
@ManyToOne(() => salutation, (salutation) => salutation.members)
@ManyToOne(() => salutation, (salutation) => salutation.members, {
nullable: false,
onDelete: "RESTRICT",
onUpdate: "RESTRICT",
})
salutation: salutation;
@OneToMany(() => membership, (membership) => membership.member)