diff --git a/packages/backend/src/models/entities/drive-file.ts b/packages/backend/src/models/entities/drive-file.ts index c81d5d7622..e3a7d1c370 100644 --- a/packages/backend/src/models/entities/drive-file.ts +++ b/packages/backend/src/models/entities/drive-file.ts @@ -23,7 +23,6 @@ export class DriveFile { @PrimaryColumn(id()) public id: string; - @Index() @Column("timestamp without time zone", { comment: "The created date of the DriveFile.", }) @@ -147,7 +146,6 @@ export class DriveFile { }) public webpublicAccessKey: string | null; - @Index() @Column("varchar", { length: 512, nullable: true, diff --git a/packages/backend/src/models/entities/hashtag.ts b/packages/backend/src/models/entities/hashtag.ts index 7b3df1cc22..84d817bcd2 100644 --- a/packages/backend/src/models/entities/hashtag.ts +++ b/packages/backend/src/models/entities/hashtag.ts @@ -19,7 +19,6 @@ export class Hashtag { }) public mentionedUserIds: User["id"][]; - @Index() @Column("integer", { default: 0, }) @@ -43,7 +42,6 @@ export class Hashtag { }) public mentionedRemoteUserIds: User["id"][]; - @Index() @Column("integer", { default: 0, }) @@ -55,7 +53,6 @@ export class Hashtag { }) public attachedUserIds: User["id"][]; - @Index() @Column("integer", { default: 0, }) diff --git a/packages/backend/src/models/entities/note-reaction.ts b/packages/backend/src/models/entities/note-reaction.ts index fc57bb6a07..1d2fc567b5 100644 --- a/packages/backend/src/models/entities/note-reaction.ts +++ b/packages/backend/src/models/entities/note-reaction.ts @@ -17,7 +17,6 @@ export class NoteReaction { @PrimaryColumn(id()) public id: string; - @Index() @Column("timestamp without time zone", { comment: "The created date of the NoteReaction.", }) diff --git a/packages/backend/src/models/entities/note.ts b/packages/backend/src/models/entities/note.ts index 94cd8c7b66..3b7315288e 100644 --- a/packages/backend/src/models/entities/note.ts +++ b/packages/backend/src/models/entities/note.ts @@ -139,7 +139,6 @@ export class Note { // FIXME: file id is not removed from this array even if the file is deleted // TODO: drop this column and use note_files - @Index() @Column({ ...id(), array: true, @@ -147,7 +146,6 @@ export class Note { }) public fileIds: DriveFile["id"][]; - @Index() @Column("varchar", { length: 256, array: true, @@ -163,7 +161,6 @@ export class Note { }) public visibleUserIds: User["id"][]; - @Index() @Column({ ...id(), array: true, @@ -184,7 +181,6 @@ export class Note { }) public emojis: string[]; - @Index() @Column("varchar", { length: 128, array: true, diff --git a/packages/backend/src/models/entities/notification.ts b/packages/backend/src/models/entities/notification.ts index 58fc86a72c..57a2a59158 100644 --- a/packages/backend/src/models/entities/notification.ts +++ b/packages/backend/src/models/entities/notification.ts @@ -20,7 +20,6 @@ export class Notification { @PrimaryColumn(id()) public id: string; - @Index() @Column("timestamp without time zone", { comment: "The created date of the Notification.", }) diff --git a/packages/backend/src/models/entities/poll.ts b/packages/backend/src/models/entities/poll.ts index 3cc6df17cf..9ef2091566 100644 --- a/packages/backend/src/models/entities/poll.ts +++ b/packages/backend/src/models/entities/poll.ts @@ -44,14 +44,12 @@ export class Poll { }) public noteVisibility: (typeof noteVisibilities)[number]; - @Index() @Column({ ...id(), comment: "[Denormalized]", }) public userId: User["id"]; - @Index() @Column("varchar", { length: 512, nullable: true, diff --git a/packages/backend/src/models/entities/user.ts b/packages/backend/src/models/entities/user.ts index 69a2b4dc27..ad86e72422 100644 --- a/packages/backend/src/models/entities/user.ts +++ b/packages/backend/src/models/entities/user.ts @@ -116,7 +116,6 @@ export class User { }) public bannerId: DriveFile["id"] | null; - @Index() @Column("varchar", { length: 128, array: true,