2018-10-12 21:49:10 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `{prefix}stats` (
|
2018-10-06 03:03:07 +02:00
|
|
|
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
2018-10-02 11:36:02 +02:00
|
|
|
`uuid` binary(16) NOT NULL,
|
2018-10-12 21:49:10 +02:00
|
|
|
`date` date NOT NULL,
|
2018-10-02 11:36:02 +02:00
|
|
|
`kills` int DEFAULT 0,
|
|
|
|
`deaths` int UNSIGNED DEFAULT 0,
|
2018-10-06 03:03:07 +02:00
|
|
|
PRIMARY KEY `id` (`id`),
|
|
|
|
UNIQUE KEY `date_player` (`uuid`, `date`)
|
|
|
|
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|