From 3ae49456b1393ef6910e76103fb826b983d8bad8 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Tue, 4 Jul 2023 17:57:08 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20general=5Faccess=5Flog=EC=97=90=20?= =?UTF-8?q?=EB=B2=8C=EC=A0=90=20=EA=B4=80=EB=A0=A8=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=EB=88=84=EB=9D=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/DTO/GeneralAccessLog.php | 6 ++++++ hwe/sammo/Enums/GeneralAccessLogColumn.php | 6 ++++-- hwe/sql/schema.sql | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/DTO/GeneralAccessLog.php b/hwe/sammo/DTO/GeneralAccessLog.php index fac2424b..d70731f6 100644 --- a/hwe/sammo/DTO/GeneralAccessLog.php +++ b/hwe/sammo/DTO/GeneralAccessLog.php @@ -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, ) { } } \ No newline at end of file diff --git a/hwe/sammo/Enums/GeneralAccessLogColumn.php b/hwe/sammo/Enums/GeneralAccessLogColumn.php index 21290e3d..05bc14c3 100644 --- a/hwe/sammo/Enums/GeneralAccessLogColumn.php +++ b/hwe/sammo/Enums/GeneralAccessLogColumn.php @@ -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) } \ No newline at end of file diff --git a/hwe/sql/schema.sql b/hwe/sql/schema.sql index c335de84..ba20a63b 100644 --- a/hwe/sql/schema.sql +++ b/hwe/sql/schema.sql @@ -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`), )