-
-
Save SupaHam/e8fd13f5313fc9af82b4 to your computer and use it in GitHub Desktop.
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
CREATE TABLE IF NOT EXISTS `server_stats` ( | |
`server_session_id` BIGINT UNSIGNED NOT NULL, | |
`memory` SMALLINT UNSIGNED NOT NULL, | |
`cpu` SMALLINT UNSIGNED NOT NULL, | |
`players` SMALLINT NOT NULL, | |
`timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
CONSTRAINT `fk_server_stats_server_sessions` FOREIGN KEY (`server_session_id`) REFERENCES `server_sessions` (`server_session_id`) ON DELETE CASCADE | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment