This commit is contained in:
syuilo
2024-07-02 09:54:57 +09:00
parent a6edd50a5d
commit fd0e840138
2 changed files with 6 additions and 16 deletions

View File

@@ -9,7 +9,8 @@ import { MiUser } from './User.js';
import { MiNote } from './Note.js';
@Entity('note_reaction')
@Index(['userId', 'noteId'], { unique: true })
@Index(['userId', 'noteId'])
@Index(['userId', 'noteId', 'reaction'], { unique: true })
export class MiNoteReaction {
@PrimaryColumn(id())
public id: string;