Help Center
Data

Project data schemas

A schema is the shape your templates and datasets agree on. Define it once, bind many templates.

Project data schemas

A schema describes the fields a template expects: their names, types and whether the data is a single record or a list of rows.

Templates bind to schema fields. Datasets provide values for them. As long as a schema stays stable, templates and datasets can evolve independently.

You find schemas under Data → Schemas in the project menu.

The two schema shapes

  • Object — a single set of fields. Use for things that exist once: a scoreboard, a now-playing caption.
  • List — multiple items with the same fields. Use for rosters, leaderboards, start lists. The control panel's row selector picks which row is on air.

You pick the shape when you create the schema. It can be changed later from Edit, but existing datasets are not converted — a list dataset keeps its rows and an object dataset keeps its single record. In practice, create a new schema instead of switching the shape of one that is already in use.

Field types

  • Text — any string. Can be marked Multiline text.
  • Number — with optional Min, Max and Step.
  • Boolean — on/off.
  • Color — picked with a color picker.
  • Image — an image URL, picked from the project's media library.
  • Dropdown — one of a fixed list of Choices.

Field options

  • Default value — used when a new row is added, and filled in when a dataset has no value for the field.
  • Required — shows a required badge in the field list. It is a reminder for the people entering data; it does not block saving.
  • Hide from input — hides the field from data-entry forms (see Creating a schema).
  • Conditional Rules — compute the field's value from another field. See Conditional rules.

Naming

Each schema and field has a Label (what people see) and a Name (the internal identifier used in data bindings). Use short lowercase names: name, score, photo.

Templates bind by schema name and field name. Renaming either one later means bindings that use the old name stop finding a value — see Creating a schema before you rename.

Deleting a schema

Deleting a schema permanently deletes its fields and every mapping and dataset that uses the schema. Check the Mappings and Datasets lists first.