This commit is contained in:
koreacomp5
2025-11-02 04:39:23 +09:00
parent d057ebef4a
commit cc373f53fe
5 changed files with 188 additions and 63 deletions

View File

@@ -0,0 +1,15 @@
-- Add points/level/grade columns to users
PRAGMA foreign_keys=OFF;
-- points
ALTER TABLE "users" ADD COLUMN "points" INTEGER NOT NULL DEFAULT 0;
-- level
ALTER TABLE "users" ADD COLUMN "level" INTEGER NOT NULL DEFAULT 1;
-- grade (0~10 권장, DB 레벨에서는 정수 제약만, 범위는 앱에서 검증)
ALTER TABLE "users" ADD COLUMN "grade" INTEGER NOT NULL DEFAULT 0;
PRAGMA foreign_keys=ON;