-- Cooldowns del Rastreador de misiones (/quest-character), por personaje y categoría.
-- category: 'class' (30 min), 'reputation' (1 h), 'specific' (10 min).
CREATE TABLE IF NOT EXISTS home_questsearchhistory (
  id             BIGINT       NOT NULL AUTO_INCREMENT,
  character_name VARCHAR(12)  NOT NULL,
  category       VARCHAR(16)  NOT NULL,
  searched_at    DATETIME     NOT NULL,
  PRIMARY KEY (id),
  KEY idx_char_cat (character_name, category, searched_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
