Skip to content

Collections and fields

What a collection is, how fields and types work, and what happens to your records when you change one.

A collection is a type of thing your app stores — an order, a customer, a message. It has named fields, and each field has a type. One item in a collection is a record.

Collections are created from what you described when the app was built, and they grow as you ask for more. You don't design them up front.

Field types#

TypeHoldsShows as
TextA line of textA single-line input
Long textA paragraph or moreA text area
NumberA quantity or a priceA number input
DateA day, or a day and timeA date picker
Yes / noA true or false valueA checkbox
ChoiceOne value from a fixed listA dropdown
Email, Phone, LinkText, validatedAn input with the right keyboard
Image, FileAn uploaded fileAn upload box with a preview
RelationA link to a record in another collectionA record picker

Add or change a field#

Ask for it in the chat. Name the collection, so there is nothing to guess.

Example message
Add a "delivery note" long text field to Orders, and show it on the order page

Adding a field is always safe. Records that already exist simply have no value in it, and the app treats that as empty.

What a change does to existing records#

This is the part worth reading before you ask for one.

ChangeWhat happens to the data
Add a fieldNothing. Existing records have no value in it.
Remove a fieldIt stops showing. The stored values are kept, and come back if the field is restored.
Rename a fieldThe values move with it.
Change a field's typeValues are converted where that is possible, and lost where it isn't.

One schema, every version#

All versions of an app share one set of collections. A field you add while working on a draft exists for the live site immediately.

This is deliberate — your live app and your draft are reading the same records, and a draft with its own private schema would be unable to show real data. But it does mean a schema change is not something you can preview first. See Versions and drafts.

Changing the schema from outside#

An AI client connected over MCP can change the schema in conversation, and it asks before anything breaking. See Change the schema.

Next#