prorm API Reference
    Preparing search index...

    Interface SchemaDiff

    Complete schema diff result

    interface SchemaDiff {
        modelName: string;
        tableName: string;
        schemaName?: string;
        changes: {
            columns: ColumnChange[];
            indexes: IndexChange[];
            constraints: ConstraintChange[];
            foreignKeys: ForeignKeyChange[];
        };
        hasChanges: boolean;
        generatedAt: Date;
    }
    Index
    modelName: string

    Name of the model this diff is for

    tableName: string

    Database table name

    schemaName?: string

    Optional schema name

    changes: {
        columns: ColumnChange[];
        indexes: IndexChange[];
        constraints: ConstraintChange[];
        foreignKeys: ForeignKeyChange[];
    }

    All detected changes

    hasChanges: boolean

    Whether there are any changes

    generatedAt: Date

    Timestamp when diff was generated