diff --git a/src/entity/notification.ts b/src/entity/notification.ts index 8069cbd..abd4643 100644 --- a/src/entity/notification.ts +++ b/src/entity/notification.ts @@ -10,8 +10,7 @@ import { import { User } from "./users"; -@Index("idx_notification_recipient_id", ["recipient_id"]) -@Index("idx_notification_sender_id", ["sender_id"]) +@Index(["sender", "recipient"]) @Entity("notifications") export class Notification { @PrimaryGeneratedColumn("uuid")