Table(fields=[...]).
Types
A choice column is a
String or number field with enum=[...]; a multiple choice is an Array(..., of=String(..., enum=[...])).
Options for every field
Each is explained, with Studio’s wording, on Columns and types.
Vectors
A Vector field stores the meaning of a record’s text as numbers, so you can search by meaning. See Vector search.
An index on a vector uses
method="hnsw" with a metric: cosine (default), l2 or ip.
Names
A field name starts with a letter or underscore, then letters, digits and underscores. Duplicates in one table are refused byvalidate.
Changing fields later
Add the field andpawabase deploy. Adding is safe; making a field required on a table with rows needs a value for old rows first (add nullable, backfill, then require). See Migrations and history.
Relations and indexes
Connect and speed up tables.
Schemas
Reuse shapes with Ref.