change: update entity files
This commit is contained in:
parent
c9b8c3090d
commit
e738be4e13
2 changed files with 8 additions and 8 deletions
|
@ -40,17 +40,17 @@ export class communication {
|
||||||
@Column()
|
@Column()
|
||||||
typeId: number;
|
typeId: number;
|
||||||
|
|
||||||
@ManyToOne(() => communicationType, (communicationType) => communicationType.communications, {
|
|
||||||
nullable: false,
|
|
||||||
onDelete: "RESTRICT",
|
|
||||||
onUpdate: "RESTRICT",
|
|
||||||
})
|
|
||||||
type: communicationType;
|
|
||||||
|
|
||||||
@ManyToOne(() => member, (member) => member.awards, {
|
@ManyToOne(() => member, (member) => member.awards, {
|
||||||
nullable: false,
|
nullable: false,
|
||||||
onDelete: "CASCADE",
|
onDelete: "CASCADE",
|
||||||
onUpdate: "RESTRICT",
|
onUpdate: "RESTRICT",
|
||||||
})
|
})
|
||||||
member: member;
|
member: member;
|
||||||
|
|
||||||
|
@ManyToOne(() => communicationType, (communicationType) => communicationType.communications, {
|
||||||
|
nullable: false,
|
||||||
|
onDelete: "RESTRICT",
|
||||||
|
onUpdate: "RESTRICT",
|
||||||
|
})
|
||||||
|
type: communicationType;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ export class protocolPrintout {
|
||||||
@Column({ type: "varchar", length: 255 })
|
@Column({ type: "varchar", length: 255 })
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
@Column({ type: "int" })
|
@Column({ type: "int", default: "1" })
|
||||||
iteration: number;
|
iteration: number;
|
||||||
|
|
||||||
@Column({ type: "varchar", length: 255 })
|
@Column({ type: "varchar", length: 255 })
|
||||||
|
|
Loading…
Reference in a new issue