Function: defineModel()
ts
function defineModel(name, configure): Model;Defined in: packages/core/src/model/defineModel.ts:404
Define a Model — one file, one entity, one source of truth.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Model name (e.g. 'Task', 'Sprint', 'Project') |
configure | (m) => void | Closure function that receives a ModelBuilder (m) |
Returns
Compiled Model with .schema, .fields, .input, .hidden, .guarded