unique fields for tables
This commit is contained in:
parent
684c24e4fd
commit
4378c02d17
16 changed files with 144 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue