Framework
FlashcoreSchema
Interface: FlashcoreSchema
Schema namespace wrapper for plugin model registration.
Properties
Methods
model()
model<T>(
name,
schema,
options?): FlashcoreModel<T>Register a model in this namespace.
Type Parameters
| Type Parameter |
|---|
T extends { id: string; } |
Parameters
| Parameter | Type |
|---|---|
name | string |
schema | SchemaFields |
options? | Omit<ModelOptions, "namespace"> |
