fix: general_access_log에 벌점 관련 데이터 누락

This commit is contained in:
2023-07-07 10:57:52 +00:00
parent 9bf7bd0fda
commit 3ae49456b1
3 changed files with 12 additions and 2 deletions
+6
View File
@@ -27,6 +27,12 @@ class GeneralAccessLog extends \LDTO\DTO
#[RawName('refresh_total')]
public int $refreshTotal,
#[RawName('refresh_score')]
public int $refreshScore,
#[RawName('refresh_score_total')]
public int $refreshScoreTotal,
) {
}
}
+4 -2
View File
@@ -7,6 +7,8 @@ enum GeneralAccessLogColumn: string {
case generalID = 'general_id';
case userID = 'user_id';
case lastRefresh = 'last_refresh';
case refresh = 'refresh';
case refreshTotal = 'refresh_total';
case refresh = 'refresh'; //순간 갱신 횟수(00:00에 초기화)
case refreshTotal = 'refresh_total'; //누적 갱신 횟수
case refreshScore = 'refreshScore'; //순간 벌점(턴 시간에 초기화)
case refreshScoreTotal = 'refreshScoreTotal'; //누적 벌점(지속적으로 감소, refreshScoreTotal <= refreshTotal)
}
+2
View File
@@ -102,6 +102,8 @@ CREATE TABLE `general_access_log` (
`last_refresh` DATETIME NULL DEFAULT NULL,
`refresh` INT(11) NOT NULL DEFAULT '0',
`refresh_total` INT(11) NOT NULL DEFAULT '0',
`refresh_score` INT(11) NOT NULL DEFAULT '0',
`refresh_score_total` INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE INDEX `general_id` (`general_id`),
)