create IDX_note_for_timelines

This commit is contained in:
Hazelnoot 2025-06-03 19:05:24 -04:00
parent 8802fbb34d
commit 99e3d45062
2 changed files with 20 additions and 0 deletions

View file

@ -13,6 +13,7 @@ import type { MiDriveFile } from './DriveFile.js';
@Index('IDX_724b311e6f883751f261ebe378', ['userId', 'id'])
@Index('IDX_note_userHost_id', { synchronize: false }) // (userHost, id desc)
@Index('IDX_note_for_timelines', { synchronize: false }) // (id desc, channelId, visibility, userHost)
@Entity('note')
export class MiNote {
@PrimaryColumn(id())