-- Wild Dragon AMPP Integration Schema Patch
-- Run after initial schema.sql

-- Key/value store for runtime configuration (AMPP credentials, etc.)
CREATE TABLE IF NOT EXISTS settings (
  key         TEXT PRIMARY KEY,
  value       TEXT NOT NULL,
  updated_at  TIMESTAMPTZ DEFAULT NOW()
);

-- Track which AMPP folder each asset was synced to
ALTER TABLE assets ADD COLUMN IF NOT EXISTS ampp_folder_id   TEXT;
ALTER TABLE assets ADD COLUMN IF NOT EXISTS ampp_synced_at   TIMESTAMPTZ;
