Preview and the live app share one database
What this means in practice:- Test data is live data. Sample records you or the AI add, and files you upload while testing, are visible to everyone who uses the published app. Remove them before you share the app.
- Schema changes don’t wait for Publish. If the AI renames or removes a column the live app still uses, the live app can break until you publish the matching code.
- There’s no staging database. You can’t test against a separate copy of your data.
Browse data in the Data tab
The Data tab is open by default in the app editor. Under App Database, switch between Data and Schema.Data view
The Data view is a read-only table browser:- Pick a table from the list on the left.
- Rows load 10 at a time. Use Previous and Next to page through them.
- Click a row to open a side panel with every field. Columns that hold JSON or other structured values appear only in this panel, not in the grid.
Schema view
The Schema view is a diagram of your database: each table with its columns and their data types, and lines showing how tables relate to each other. Use it to check the structure after the AI changes it.Apps without a database
Some older apps don’t have a database. Their Data tab shows “No database yet”. Click Add Database to create one.Other sub-tabs
The Integrations and External Database sub-tabs show your organization’s connected integrations and external databases. See Integrations and Databases.Change data and schema with the AI
The AI changes your database by running SQL directly. Each time it does, the chat shows Ran SQL query. Ask in plain language:Create a table for support tickets with a title, status, priority, assignee email and created date.
Add a “region” column to the customers table. Allowed values: North, South, East, West.
Show me all tickets created in the last 7 days.
Delete the test tickets whose title starts with “TEST”.Tips for good results:
- Say what the data means. Mention types when they matter: dates, amounts of money, a fixed list of values, or free text.
- Check the Schema view after the AI creates or changes tables.
- Seed sample data to test your UI, for example “Add 20 realistic sample tickets”, then remove it before people start using the app.
Store files
Apps can keep files that people upload, such as receipts, photos, contracts or attachments. There’s nothing to set up. Ask for the feature:Let people attach a receipt to each expense, and show a thumbnail in the expenses table.
Add a documents section to each customer page where the team can upload PDFs and download them later.The AI adds an upload area with drag and drop and a progress bar. Images, PDFs, video and audio open right in the app. Other files download. How app files work:
- Up to 100 MB per file. Your organization has 10 GB of app file storage in total, shared by all its apps. When it’s full, uploads fail with “Your organization has used all of its file storage.”
- Private to the app. Only people who can open the app can view or download its files. A file link from the app doesn’t work in an email, a document or another tool. To send a file somewhere else, ask the AI to send it through an integration or a Custom API, for example as an email attachment.
- Linked from your tables. The app saves a reference to each file in its database, next to the record it belongs to. The editor has no file browser. You see files the way the app shows them.
- Deleted with their records, if you ask. Tell the AI what should happen to a file when someone deletes its record, for example “delete the receipt when the expense is deleted”. Uploads that never finish are cleaned up on their own.
Apps created before file storage was available get it the first time you ask for uploads. The AI installs what’s needed.
Use other databases from your app
An app isn’t limited to its own database. It can also use:
Set them up first. See Databases and Data queries. Then ask the AI to use them. You can type @ in the app chat to mention a database or saved query by name.
Show open orders from our Postgres warehouse on the dashboard.
Store our team OKRs in a new organization database so our coworkers can read them too.To see the queries your app sends to external databases, add the External DB Queries tab from the + menu. It lists each query with its status, database, duration and any error.
Renaming a saved query breaks apps that run it by its old name.
See which apps use shared data
Open Data in the Workspace tab of the sidebar. The page shows your organization’s shared data, not each app’s own database:- Databases lists your organization databases. The Used by column shows which apps use each one.
- Saved queries lists the queries shared across your workspace.
- Map draws your organization databases on the left and the apps that use them on the right, with a line for each connection. Click a card to highlight its connections. On a database card, click the expand icon (View tables and records) to browse its tables.
Backups and deleting data
- Checkpoints don’t touch your data. Restoring a checkpoint in the chat reverts code only, never the database or stored files. See Version history.
-
There’s no database restore in the editor. Before a risky change, ask the AI to make a copy first:
Before you change anything, copy the orders table to a new table called orders_backup.
- Archiving an app keeps its data and files. Deleting an app permanently deletes its database and its stored files, and you can’t undo it. See Publishing.

