Skip to content

Interface: ReactiveDatabaseModelDefinition<Model>

The shape of an object which contains the definition of a model

Type Parameters

Type Parameter
Model extends PlainObject

Properties

PropertyTypeDescription
constraints?ModelConstraints<Model>The validation constraints for the model
primaryKeyExtract<keyof Model>The property which is used as the primary key for the model
propertiesExtract<keyof Model, string>[]An array of the model's properties
relationshipsRecord<string, RelationshipConfiguration>The relationships which are defined for the model
schemastringThe dexie store schema for the model See Dexie Documenation