feat: complete general turn lifecycle

This commit is contained in:
2026-07-25 08:42:57 +00:00
parent 88afcb5465
commit 45ba960474
13 changed files with 1412 additions and 30 deletions
@@ -0,0 +1,13 @@
CREATE TABLE "general_access_log" (
"id" SERIAL PRIMARY KEY,
"general_id" INTEGER NOT NULL,
"user_id" TEXT,
"last_refresh" TIMESTAMP(3),
"refresh" INTEGER NOT NULL DEFAULT 0,
"refresh_total" INTEGER NOT NULL DEFAULT 0,
"refresh_score" INTEGER NOT NULL DEFAULT 0,
"refresh_score_total" INTEGER NOT NULL DEFAULT 0
);
CREATE UNIQUE INDEX "general_access_log_general_id_key" ON "general_access_log"("general_id");
CREATE INDEX "general_access_log_user_id_idx" ON "general_access_log"("user_id");