Skip to content

ModelInstance

ModelInstance<TData> = BaseTable<TData> & TData

Defined in: define/table/types/model.ts:126

Represents an instance of a model, combining the base table functionality with the specific data shape. This is the type you get back when you call new User({ ... }) or User.select(...).

TData extends Record<string, unknown>

The inferred shape of the model’s data.