Skip to content

ModelClass

ModelClass<STATICS, FIELDS, PKA, UNIQUE, INDEX> = STATICS & ModelClassRuntime<FIELDS, PKA, UNIQUE, INDEX> & (initial?, txn?) => ModelInstance<FIELDS, PKA>

Defined in: .work/repos/edinburgh/src/models.ts:467

The static side of a model class returned by defineModel().

Besides the class constructor itself, this includes primary-key lookup helpers like get() and getLazy(), range-query helpers like find(), and named-index helpers like getBy() and findBy().

STATICS

FIELDS

The user-defined fields of the model instance.

PKA extends readonly any[]

Tuple of primary-key argument types.

UNIQUE = { }

Named unique-index specifications.

INDEX = { }

Named secondary-index specifications.