fix(notification): indexing to ssender and recipient id
This commit is contained in:
@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user