Schema Format
Desired schemas and inspected snapshots share a versioned representation of one managed PostgreSQL schema. Tables declare supported columns with optional defaults and identity, primary keys, unique constraints, plain and unique indexes, foreign keys to other tables in the same schema, and check constraints built from simple comparisons such as total >= 0 or status IN ('active', 'closed'). Defaults use a small set of literals and functions that PostgreSQL stores back exactly, so a default survives inspect, plan, apply and verify unchanged. Type aliases and nonsemantic ordering normalize; ordered key and index columns remain significant.
Renames, drops and type conversions belong in a separate change file, so nothing is renamed, deleted or converted by guesswork. Reviewed plans contain the canonical source and target descriptions, fingerprints, explained operations and quoted SQL. Their strict JSON loader rejects malformed and inconsistent artifacts.
Verification compares the complete supported managed schema. Extra tables, columns, constraints or indexes are drift, rather than being ignored as unrelated. A structure outside the inspector’s supported representation produces an error instead of a partial report. A match concerns structural metadata, not application data or migration history.
Read the schema contract, inspection scope, planning format, execution guide and verification guide for exact boundaries.
See the reproducible walkthrough and capability matrix for demonstrated behavior and limits.