diff --git a/packages/backend/src/models/entities/Notification.ts b/packages/backend/src/models/entities/Notification.ts index 4ff2102bd2..7dcf8f57e4 100644 --- a/packages/backend/src/models/entities/Notification.ts +++ b/packages/backend/src/models/entities/Notification.ts @@ -39,17 +39,9 @@ export type Notification = { reaction: string | null; - @Column({ - ...id(), - nullable: true, - }) - public userGroupInvitationId: UserGroupInvitation['id'] | null; + userGroupInvitationId: UserGroupInvitation['id'] | null; - @ManyToOne(type => UserGroupInvitation, { - onDelete: 'CASCADE', - }) - @JoinColumn() - public userGroupInvitation: UserGroupInvitation | null; + userGroupInvitation: UserGroupInvitation | null; choice: number | null;