Skip to content

Commit

Permalink
feat(db): add server metrics table
Browse files Browse the repository at this point in the history
  • Loading branch information
rufuszero committed Oct 13, 2024
1 parent a3627b8 commit 4fd306a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/sql/schema/onyxdb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,10 @@ CREATE TABLE IF NOT EXISTS `player_discord` (
PRIMARY KEY (`ckey`),
UNIQUE KEY `discord_user_id` (`discord_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `server_metrics` (
`id` INT AUTO_INCREMENT PRIMARY KEY,
`record_time` DATETIME NOT NULL,
`player_count` INT DEFAULT 0,
INDEX idx_record_time (record_time)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

0 comments on commit 4fd306a

Please sign in to comment.