feat(api): add upvote/downvote and best-entry endpoints to performance entries

This commit is contained in:
2026-04-25 18:55:48 +08:00
parent c3a85d1336
commit 5dd30665f7
3 changed files with 172 additions and 2 deletions
+2
View File
@@ -13,6 +13,8 @@ CREATE INDEX "games_source_idx" ON "games" ("source");
-- Alter performance_entries table
ALTER TABLE "performance_entries" ADD COLUMN "fsr_version" "fsr_version" DEFAULT 'none' NOT NULL;
ALTER TABLE "performance_entries" ADD COLUMN "frame_gen_method" "frame_gen_method" DEFAULT 'none' NOT NULL;
ALTER TABLE "performance_entries" ADD COLUMN "upvotes" integer DEFAULT 0 NOT NULL;
ALTER TABLE "performance_entries" ADD COLUMN "downvotes" integer DEFAULT 0 NOT NULL;
ALTER TABLE "performance_entries" ADD COLUMN "verified_at" timestamp;
ALTER TABLE "performance_entries" ADD COLUMN "verified_by" text;