Skip to content

Tutorial: Creating Your First Schema

← Home · ← Schemas

This tutorial walks you through building a schema from scratch, explains the decisions you'll make along the way, and shows you what to watch out for. Takes about 5 minutes.

You can also ask the Co-engineer to do this for you. Open the Co-engineer and say "Create a schema for electrode coating experiments with fields for coating thickness, porosity, active material, and mass loading." It will build the schema, choose the right types, and set the units — you just review and confirm. Skip to Tutorial: Working with the Co-engineer if you'd rather start there.


Step 1 — Open the Schema Editor

Click Schemas in the sidebar. You'll see any existing schemas as cards. Each card shows the schema name, tags, and how many fields it has.

The Schemas page showing existing schema cards and the New Schema button

Click + New Schema in the top right.


Step 2 — Give it a name

The schema editor opens. Name it using the domain + artifact convention: Battery — Electrode Coating, Pharma — Tablet Formulation, Thermal — Operating Conditions.

This naming makes schemas easy to find as your project grows — anyone can search by domain or type.

The Create New Schema form with name field, tags, description, and an empty field editor on the left with live preview on the right

Keep it lean. Only add fields that will actually be populated. A schema with 5 well-filled fields is far more useful than one with 20 fields that half the team leaves empty. Empty fields break comparisons and make documents harder to read.


Step 3 — Add your fields

Type a field name in the bottom input and click + Add. The field appears in the list and you set its type.

Click the Type dropdown on any field to change it:

Field type picker showing String, Number, Boolean, Enum, and Date options

For a full description of each type and when to use it, see Schemas → Field Types. The key decision in practice: use Enum instead of String whenever values come from a fixed set — it prevents typos and makes filtering reliable.

Mark a field Required only if the document is meaningless without it. A missing coating_thickness on an electrode coating record makes it useless for comparison. A missing batch_notes doesn't.

The Live Preview on the right updates as you add fields, showing exactly how documents following this schema will look:

Schema editor showing fields on the left with the live preview panel on the right — active_material, coating_thickness, porosity, and mass_loading all visible


Step 4 — Save

Click Save. The schema appears in the library as a card.

Electrode Coating schema card in the library showing name, tags (battery, electrode, coating), and field count

The schema is now available across your project. Go to the Data Studio to create your first data document from it.


What to avoid

  • Don't add fields you won't fill consistently. Sparse data breaks comparisons.
  • Don't rename or remove fields once data documents exist against this schema. This can corrupt existing documents. Add a new schema version instead.
  • Standardise units before you create numeric fields. Changing units later requires migrating all existing documents.

Next step

Tutorial: Using the Data Studio — create documents from this schema and compare them side by side.


← Back to Home