Collections

Fields and Types

Collection fields define the schema of your data. Learn about the available field types, validation rules, and configuration options.

Each collection has a set of fields that define its schema. Fields are similar to columns in a database table — they specify the type of data stored, validation rules, and display configuration.

Field types

The platform supports a wide range of field types:

Basic types

TypeDescriptionExample values
textSingle-line or multi-line text"John Doe", "A longer description..."
numberNumeric values (integer or decimal)42, 3.14, -100
dateDate and/or time values"2025-03-15", "2025-03-15T10:30:00Z"
checkboxBoolean true/falsetrue, false
urlWeb URLs"https://example.com"
emailEmail addresses"[email protected]"
phonePhone numbers"+1-555-0123"

Choice types

TypeDescriptionConfiguration
selectSingle selection from predefined optionsDefine options with labels, values, and optional colors
multiselectMultiple selections from predefined optionsSame as select, but allows multiple values

Relational types

TypeDescriptionConfiguration
linkReference to a record in another collectionSpecify the target collection and display field

Link fields create relationships between collections, similar to foreign keys in relational databases. When querying records with link fields, the platform can JOIN related data automatically.

Computed types

TypeDescriptionConfiguration
formulaComputed value based on other fieldsDefine the formula expression
rollupAggregated value from linked recordsSpecify the link field, target field, and aggregation function (sum, count, avg, etc.)

File types

TypeDescription
attachmentFile uploads associated with a record

Field properties

Each field has common properties regardless of type:

PropertyDescription
nameUnique field identifier within the collection
titleHuman-readable display name
kindThe field type (text, number, date, etc.)
requiredWhether the field must have a value for every record
descriptionHelp text displayed in the UI
defaultDefault value for new records

Validation

Fields support validation rules defined as JSON Schema constraints:

  • Text fields — min/max length, pattern (regex)
  • Number fields — min/max value, integer vs decimal
  • Date fields — min/max date range
  • Select fields — values must match defined options

Validation is enforced when records are created or updated. Invalid data is rejected with a descriptive error.

Link fields create relations between collections. Configuration includes:

  • Target collection — which collection the link points to
  • Display field — which field from the target collection to show as the link label
  • Relationship type — how records are related

When querying records that have link fields, the platform can automatically JOIN the related data, returning the linked record's fields alongside the source record.