Table definition with CRUD operations
deleteById: (id: InValue) => Promise<void>
Delete a row by primary key
inputKeyMap: Record<string, string>
name: string
primaryKey: keyof Row & string
rowToInput: (row: Row,exclude?: readonly string[]) => Partial<Input>
Build an Input object from an existing Row by copying the input-eligible
columns and translating keys through inputKeyMap. Lets callers spread
a row into a new insert without restating every field. Columns named in
exclude are skipped — useful for auto-stamped fields like created.
toDbValues: (input: Input | Partial<Input>) => Promise<Record<string, InValue>>
Transform input to DB values (apply write transforms and defaults)