diff options
Diffstat (limited to 'util/src/entities/Recipient.ts')
-rw-r--r-- | util/src/entities/Recipient.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/src/entities/Recipient.ts b/util/src/entities/Recipient.ts index 75d5b94d..2a27b29f 100644 --- a/util/src/entities/Recipient.ts +++ b/util/src/entities/Recipient.ts @@ -11,7 +11,11 @@ export class Recipient extends BaseClass { @ManyToOne(() => require("./Channel").Channel) channel: import("./Channel").Channel; - @JoinColumn({ name: "id" }) + @Column() + @RelationId((recipient: Recipient) => recipient.user) + user_id: string; + + @JoinColumn({ name: "user_id" }) @ManyToOne(() => require("./User").User) user: import("./User").User; |