Home > @polyspec/crudui-validator > ItemsModel
ItemsModel interface
Nested model descriptor of a dynamic source (items.model second shape): the source is a relational query, not a single model name, of the shape (model: { table, relations, keys }). Structure only — this fixes the declared shape of a query descriptor; building the query and running it is the runtime's job, out of scope here (SPEC §6 R1: types preserve, validation blocks; never model runtime resolution into the type).
Signature:
export interface ItemsModel
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
unknown[] |
(Optional) Display-key descriptors (which fields compose each row's option label). | ||
|
unknown[] |
(Optional) Join/relation descriptors (each row links a related table to a column pair). | ||
|
string |
(Optional) Primary table the rows are drawn from. |