Skip to content

What is a model in Underpeaks?

Updated 20 August 2026·1 views

What is a model?

A model is a schema definition for one table: its name, its columns, and how those columns behave. Every table the public API can read or write, and every table the console content editor renders, is described by one of these definitions. \\\json { "table_name": "nxf_product", "schema": "public", "columns": [ { "name": "prod_id", "type": "string", "nullable": false, "is_primary": true, "hidden": true }, { "name": "title", "type": "string", "nullable": false, "ui_type": "textfield" }, { "name": "price", "type": "double", "nullable": false, "ui_type": "currency-input" } ], "constraints": [] } \\\ | Key | Required | Description | |---|---|---| | table_name | Yes | The underlying table name | | schema | No | Defaults to public | | columns | Yes | The model''s fields | | constraints | No | Table-level constraints |

Was this article helpful?