13 lines
466 B
SQL
13 lines
466 B
SQL
CREATE TABLE IF NOT EXISTS `{prefix}sessions` (
|
|
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
`uuid` binary(16) NOT NULL,
|
|
`serverNick` varchar(32) NOT NULL,
|
|
`ip` int UNSIGNED NOT NULL,
|
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`kills` int DEFAULT 0,
|
|
`deaths` int UNSIGNED DEFAULT 0,
|
|
`playtime` mediumint UNSIGNED DEFAULT 0,
|
|
PRIMARY KEY `id` (`id`),
|
|
UNIQUE KEY `date_player` (`uuid`, `date`)
|
|
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|