CREATE TABLE IF NOT EXISTS `mercyv_case_history` (
    `id` INT AUTO_INCREMENT PRIMARY KEY,
    `identifier` VARCHAR(60) NOT NULL,
    `player_name` VARCHAR(100) DEFAULT 'Unbekannt',
    `case_type` VARCHAR(50) NOT NULL,
    `item_won` VARCHAR(100) NOT NULL,
    `item_label` VARCHAR(100) NOT NULL,
    `item_amount` INT DEFAULT 1,
    `rarity` VARCHAR(20) NOT NULL,
    `timestamp` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    INDEX `idx_identifier` (`identifier`),
    INDEX `idx_timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
