fix(notification): indexing to ssender and recipient id

This commit is contained in:
avicenan
2026-05-04 17:34:56 +07:00
parent 2aa5875f3c
commit da56a3ad8a

View File

@ -10,8 +10,7 @@ import {
import { User } from "./users"; import { User } from "./users";
@Index("idx_notification_recipient_id", ["recipient_id"]) @Index(["sender", "recipient"])
@Index("idx_notification_sender_id", ["sender_id"])
@Entity("notifications") @Entity("notifications")
export class Notification { export class Notification {
@PrimaryGeneratedColumn("uuid") @PrimaryGeneratedColumn("uuid")