Libraries
    Preparing search index...

    Interface SchemaSnapshot

    Serialized snapshot of all entity schemas at a given point in time.

    Stored in <migrations.directory>/snapshot.json and committed to version control. migrate generate diffs the current code against this snapshot (instead of a live database) to produce migration files, so no DB connection is required.

    Each entry in tables mirrors the shape that introspectDatabase would return — allowing diffSchema to be reused unchanged.

    interface SchemaSnapshot {
        tables: Record<string, DatabaseTableState>;
        version: 1;
    }
    Index

    Properties

    Properties

    tables: Record<string, DatabaseTableState>

    Map of table name → database state derived from entity schemas.

    version: 1