MarwFeatures/Stats/resources/create.sql

10 lines
325 B
SQL

CREATE TABLE IF NOT EXISTS `{prefix}stats` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`uuid` binary(16) NOT NULL,
`date` date NOT NULL,
`kills` int DEFAULT 0,
`deaths` int UNSIGNED DEFAULT 0,
PRIMARY KEY `id` (`id`),
UNIQUE KEY `date_player` (`uuid`, `date`)
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;