feat(api): add upvote/downvote and best-entry endpoints to performance entries
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
boolean,
|
||||
integer,
|
||||
jsonb,
|
||||
pgEnum,
|
||||
pgTable,
|
||||
@@ -68,6 +69,10 @@ export const performanceEntries = pgTable(
|
||||
isRemoved: boolean("is_removed").default(false).notNull(),
|
||||
removedReason: text("removed_reason"),
|
||||
|
||||
// Community rating
|
||||
upvotes: integer("upvotes").default(0).notNull(),
|
||||
downvotes: integer("downvotes").default(0).notNull(),
|
||||
|
||||
// Verification (admin/mod workflow)
|
||||
verifiedAt: timestamp("verified_at"),
|
||||
verifiedBy: text("verified_by").references(() => user.id, {
|
||||
|
||||
Reference in New Issue
Block a user