mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add Emoji Reactions
This commit is contained in:
parent
70974d3c35
commit
9722b94eae
17 changed files with 755 additions and 7 deletions
|
|
@ -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", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue