Collections & Data Modeling

Model your platform's data with collections, properties, and entities.

Concepts

Open Collections from your project's side menu to get started.

Creating a Collection

  1. Go to Collections.
  2. Click Add, enter a name, and click Create.
  3. The new collection opens so you can define its properties.

Every new collection starts with a required Name property of type Text Input. It identifies each entity, so it can't be renamed, changed, or removed.

Defining Properties

Inside a collection you build its list of properties. Click Add Field to add a property, then set:

Nothing is stored until you click Save. Cancel leaves the collection without keeping your changes.

Property Types

The builder offers the following field types:

TypeUse for
Text InputShort single-line text
Text AreaLonger multi-line text
NumberNumeric values
ToggleAn on/off switch
CheckboxA boolean check
SelectOne choice from a set of options
Multi-SelectSeveral choices from a set of options
DateA calendar date
EmailAn email address
Phone NumberA phone number
AddressA postal address
Address (with Country)A postal address including a country
ColorA color value
ImageAn uploaded image
FileAn uploaded file

Select and Multi-Select properties draw their options from the entities of a collection, so you can link records together. When you pick one of these types, a second list appears under the type to choose the linked collection. The first collection in that list is linked automatically until you pick another.

Adding Entities

Once a collection's properties are defined, you can add records:

  1. Click Entities next to the collection in Collections, or open the collection and click View entities.
  2. Click Add, enter a name, and click Create. The new entity opens.
  3. Fill in the fields according to the collection's properties and click Save.

If you make a property required after entities already exist, any entity with no value for it is marked with an icon that reads "Does not match collection schema" so you can update it.

Using the CLI

An agent or script can model the same data without opening the builder:

See the CLI Reference for every option.

Next Steps