Evalkeeper
    Preparing search index...

    Type Alias PrismaStoreMap

    How Evalkeeper's eval tables map onto an app's own, for an app that had eval tables before Evalkeeper. Pass it to prismaStore and prismaJudgmentCache; leave out anything named the same.

    Types convert on their own: Decimal columns read as numbers, enum columns as their names, and tags may be a String[] or a Json column. Columns Evalkeeper doesn't know (a creator, a legacy results column) are left alone, so they need a default or to be nullable.

    type PrismaStoreMap = {
        fields?: {
            evalCase?: ColumnMap<EvalCaseRow & { labels: unknown }>;
            evalCaseLabel?: ColumnMap<EvalCaseLabelRow>;
            evalJudgment?: ColumnMap<EvalJudgmentRow>;
            evalOutput?: ColumnMap<EvalOutputRow>;
            evalRun?: ColumnMap<EvalRunRow>;
        };
        models?: Partial<Record<EvalTable, string>>;
    }
    Index
    fields?: {
        evalCase?: ColumnMap<EvalCaseRow & { labels: unknown }>;
        evalCaseLabel?: ColumnMap<EvalCaseLabelRow>;
        evalJudgment?: ColumnMap<EvalJudgmentRow>;
        evalOutput?: ColumnMap<EvalOutputRow>;
        evalRun?: ColumnMap<EvalRunRow>;
    }

    Column names per table, keyed by Evalkeeper's field name. null says the table has no such column (for nullable fields only): reads give null, and writing a value fails rather than losing it.

    Type Declaration

    models?: Partial<Record<EvalTable, string>>

    Each table's model on the Prisma client, as the client spells it (prisma.goldCase is "goldCase").