-- migration_settings.sql
CREATE TABLE IF NOT EXISTS settings (
    `key`        VARCHAR(100) PRIMARY KEY,
    `value`      TEXT NOT NULL,
    updated_at   DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);

-- Defaults
INSERT INTO settings (`key`, `value`) VALUES
  ('allowed_countries', '["US","CA","GB","AU"]'),
  ('ai_verification',   '1'),
  ('store_name',        'Pep Launchpad')
ON DUPLICATE KEY UPDATE `key` = `key`;
