Data model
Everything you build in the app has a MongoDB-style name in the API.
| In the app | In the API | Notes |
|---|---|---|
| Database | database | One file in your Google Drive. A connection string opens one database. |
| Table | collection | Addressed by its API name, e.g. clients. |
| Record | document | _id is the record id. |
| Field | field | Addressed by its API name, e.g. dealValue. |
| Link field | reference | Points at records in another table. See Relations. |
| JSON field | nested object/array | Any JSON value, queryable with dot paths ("address.city"). |
API names
Section titled “API names”Tables and fields have two names:
- the display name people see in the app (
Deal value), which anyone can change, and - the API name your code uses (
dealValue), which stays the same when the display name changes, so renaming a column never breaks your code.
API names are created from display names (camelCase, accents removed) and can be edited in the
table’s rename dialog and in each field’s settings. They start with a letter and contain
letters, digits and _ (up to 64 characters).
Documents
Section titled “Documents”A document is a record as JSON. Empty fields are left out.
{ "_id": "r3kq8z1m2x7v", "name": "Mei Lin", "company": "Lumen Studio", "status": "Won", "dealValue": 9500, "email": "mei@example.com", "_createdAt": "2026-11-02T10:15:04.112Z", "_updatedAt": "2026-11-14T08:01:44.530Z"}_idis generated when you insert without one. You can also choose it: any string of up to 64 letters, digits,-and_. It can’t change later._createdAtand_updatedAtcome from edit times and are read-only. You can filter and sort by them.
Values
Section titled “Values”Each field has a type, and values are checked against it. A value that doesn’t fit is
refused with a ValidationError and nothing is written. See
Field types for every type’s JSON form.
Fields appear as you write
Section titled “Fields appear as you write”You don’t need to define a schema first. Inserting a document with a field the table doesn’t
have yet adds the field, with its type guessed from the value: text for strings, number for
numbers, checkbox for booleans, date for Date values, multiple select for arrays of strings,
and JSON for anything else. Writing to a collection that doesn’t exist creates it.
To choose types yourself (single select, email, link…), create the collection with
createCollection or add the
fields in the app.
Made by Faeiz Furqan