-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add employee activity tracking in the past 30 days (#72)
* feat: add employee activity tracking in the past 30 days with society bonus option * chore: modify column definitions and optimize indexes * fix: Cased vars, add check for job update and remove job check on player checkout * refactor: remove society bonus option for now in favor of activity tracking * fix: replace onGroupUpdate for OnJobUpdate and add foreign key to table * feat: min duty log time config entry * feat: minor optimization and added onduty display * fix(server/main): onduty display false if player offline * chore: replace all tabs with 4 spaces for consistent indentation --------- Co-authored-by: Manason <clanerp@gmail.com>
- Loading branch information
1 parent
32538e7
commit e3a797e
Showing
12 changed files
with
241 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE IF NOT EXISTS `player_jobs_activity` ( | ||
`id` int UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`citizenid` VARCHAR(50) COLLATE utf8mb4_unicode_ci, | ||
`job` varchar(255) NOT NULL, | ||
`last_checkin` int NOT NULL, | ||
`last_checkout` int NULL DEFAULT NULL, | ||
FOREIGN KEY (`citizenid`) REFERENCES `players` (`citizenid`) ON DELETE CASCADE, | ||
PRIMARY KEY (`id`) USING BTREE, | ||
INDEX `id` (`id` DESC) USING BTREE, | ||
INDEX `last_checkout` (`last_checkout` ASC) USING BTREE, | ||
INDEX `citizenid_job` (`citizenid`, `job`) USING BTREE | ||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci; |
Oops, something went wrong.