diff --git a/src/entity/club/member/communication.ts b/src/entity/club/member/communication.ts index 42b1bd7..f50d1a9 100644 --- a/src/entity/club/member/communication.ts +++ b/src/entity/club/member/communication.ts @@ -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; } diff --git a/src/entity/club/protocol/protocolPrintout.ts b/src/entity/club/protocol/protocolPrintout.ts index 311b407..a369ccb 100644 --- a/src/entity/club/protocol/protocolPrintout.ts +++ b/src/entity/club/protocol/protocolPrintout.ts @@ -9,7 +9,7 @@ export class protocolPrintout { @Column({ type: "varchar", length: 255 }) title: string; - @Column({ type: "int" }) + @Column({ type: "int", default: "1" }) iteration: number; @Column({ type: "varchar", length: 255 })