OptionalfieldsColumn 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.
OptionalevalCase?: ColumnMap<EvalCaseRow & { labels: unknown }>labels is the relation from a case to its answers.
OptionalevalCaseLabel?: ColumnMap<EvalCaseLabelRow>OptionalevalJudgment?: ColumnMap<EvalJudgmentRow>OptionalevalOutput?: ColumnMap<EvalOutputRow>OptionalevalRun?: ColumnMap<EvalRunRow>OptionalmodelsEach table's model on the Prisma client, as the client spells it
(prisma.goldCase is "goldCase").
How Evalkeeper's eval tables map onto an app's own, for an app that had eval tables before Evalkeeper. Pass it to
prismaStoreandprismaJudgmentCache; leave out anything named the same.Types convert on their own: Decimal columns read as numbers, enum columns as their names, and
tagsmay be aString[]or aJsoncolumn. Columns Evalkeeper doesn't know (a creator, a legacy results column) are left alone, so they need a default or to be nullable.