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