CREATE TABLE IF NOT EXISTS rate_limit_attempts (
  id INT AUTO_INCREMENT PRIMARY KEY,
  bucket VARCHAR(191) NOT NULL,
  created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  KEY idx_rate_limit_attempts_bucket_created (bucket, created_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
