USE whp;

CREATE TABLE IF NOT EXISTS site_disable_audit (
  id          INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  site_id     INT UNSIGNED NOT NULL,
  action      ENUM('disable','enable') NOT NULL,
  reason      ENUM('unpaid','tos_violation','maintenance','admin_other') NULL,
  actor       VARCHAR(64) NOT NULL,
  note        TEXT NULL,
  created_at  DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  INDEX idx_site_created (site_id, created_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
