fix: 실제 행동 기준으로 접속 중 국가를 집계
This commit is contained in:
@@ -271,12 +271,14 @@ model GeneralAccessLog {
|
||||
generalId Int @unique @map("general_id")
|
||||
userId String? @map("user_id")
|
||||
lastRefresh DateTime? @map("last_refresh")
|
||||
lastActionAt DateTime? @map("last_action_at")
|
||||
refresh Int @default(0)
|
||||
refreshTotal Int @default(0) @map("refresh_total")
|
||||
refreshScore Int @default(0) @map("refresh_score")
|
||||
refreshScoreTotal Int @default(0) @map("refresh_score_total")
|
||||
|
||||
@@index([userId])
|
||||
@@index([lastActionAt])
|
||||
@@map("general_access_log")
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE "general_access_log"
|
||||
ADD COLUMN "last_action_at" TIMESTAMP(3);
|
||||
|
||||
CREATE INDEX "general_access_log_last_action_at_idx"
|
||||
ON "general_access_log"("last_action_at");
|
||||
Reference in New Issue
Block a user