-- QA audit stub for Neon Auth (not needed in production).
-- Creates the minimum neon_auth schema required by FK constraints in
-- subsequent migrations. Real provisioning happens via Neon Auth in prod.
-- This file is namespaced with 0000_ so it sorts/applies before 0001_init.sql.

CREATE SCHEMA IF NOT EXISTS neon_auth;
CREATE TABLE IF NOT EXISTS neon_auth.user (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  email TEXT UNIQUE NOT NULL,
  name TEXT,
  created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);