CREATE TABLE IF NOT EXISTS onboarding_users (
  id VARCHAR(36) PRIMARY KEY,
  current_page VARCHAR(50) NOT NULL DEFAULT '',
  progress INT NOT NULL DEFAULT 0,
  status ENUM('in_progress', 'completed', 'purchased') NOT NULL DEFAULT 'in_progress',
  plan VARCHAR(50) DEFAULT NULL,
  utm_ad VARCHAR(255) DEFAULT NULL,
  created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  INDEX idx_status (status),
  INDEX idx_updated (updated_at)
);
