Interface: ReactiveDatabaseModelDefinition<Model>
The shape of an object which contains the definition of a model
Type Parameters
| Type Parameter |
|---|
Model extends PlainObject |
Properties
| Property | Type | Description |
|---|---|---|
constraints? | ModelConstraints<Model> | The validation constraints for the model |
primaryKey | Extract<keyof Model> | The property which is used as the primary key for the model |
properties | Extract<keyof Model, string>[] | An array of the model's properties |
relationships | Record<string, RelationshipConfiguration> | The relationships which are defined for the model |
schema | string | The dexie store schema for the model See Dexie Documenation |