feat(api): Add Emoji Reactions

This commit is contained in:
Jesse Wierzbinski 2025-05-25 16:11:56 +02:00
parent 70974d3c35
commit 9722b94eae
No known key found for this signature in database
17 changed files with 755 additions and 7 deletions

View file

@ -166,6 +166,7 @@ export const ReactionRelations = relations(Reactions, ({ one }) => ({
note: one(Notes, {
fields: [Reactions.noteId],
references: [Notes.id],
relationName: "NoteToReactions",
}),
author: one(Users, {
fields: [Reactions.authorId],
@ -508,6 +509,9 @@ export const NotesRelations = relations(Notes, ({ many, one }) => ({
relationName: "NoteToReblogs",
}),
notifications: many(Notifications),
reactions: many(Reactions, {
relationName: "NoteToReactions",
}),
}));
export const Instances = pgTable("Instances", {