prorm API Reference
    Preparing search index...

    Interface ModelLike

    The parts of a model class the adapter reads.

    Structural rather than a ModelStatic import, so a plain object works too — useful for schemas that never became models, and for tests.

    interface ModelLike {
        name?: string;
        modelName?: string;
        tableName?: string;
        getTableName?: () => string;
        rawAttributes?: Record<string, unknown>;
        associations?: Record<string, unknown>;
        options?: Record<string, unknown>;
    }
    Index
    name?: string
    modelName?: string
    tableName?: string
    getTableName?: () => string
    rawAttributes?: Record<string, unknown>
    associations?: Record<string, unknown>
    options?: Record<string, unknown>