-- Nur benoetigt wenn Config.LimitResetMode = 'daily'
CREATE TABLE IF NOT EXISTS `mercyv_blackmarket_limits` (
    `id` INT AUTO_INCREMENT PRIMARY KEY,
    `identifier` VARCHAR(60) NOT NULL,
    `item_name` VARCHAR(50) NOT NULL,
    `amount` INT NOT NULL DEFAULT 0,
    `reset_date` DATE NOT NULL,
    UNIQUE KEY `uq_player_item_date` (`identifier`, `item_name`, `reset_date`),
    INDEX `idx_reset_date` (`reset_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
