Framework
FlashcoreModelOptions
Interface: FlashcoreModelOptions
Model options for registration.
Properties
| Property | Type | Description |
|---|---|---|
getModel? | (name: string) => FlashcoreModel<{ id: string; }> | Function to get a model by name (for relations). Set by FlashcoreSystem when registering the model. |
getSchema? | (name: string) => NormalizedSchema | Function to get a model's schema by name (for cascades). Set by FlashcoreSystem when registering the model. |
hooks? | ModelHooks<unknown> | - |
methods? | Record<string, (...args) => unknown> | - |
namespace? | string | - |
