-- 035 — SUBSCRIPTION SCHEMA TRUTH (A1). One concern: Stripe identifiers.
-- G3 verified the webhook stores NO stripe_subscription_id anywhere, yet
-- finalize_founder_slot and grandfather reconciliation both key off it.
ALTER TABLE user_profiles
  ADD COLUMN IF NOT EXISTS stripe_customer_id     text NULL,
  ADD COLUMN IF NOT EXISTS stripe_subscription_id text NULL;
CREATE UNIQUE INDEX IF NOT EXISTS idx_user_profiles_stripe_sub
  ON user_profiles (stripe_subscription_id) WHERE stripe_subscription_id IS NOT NULL;
