DATA AND USERS

How your app’s data works

Every app has its own backend for accounts and records. Know which data is sample, which is temporary, and which belongs to your users.

Every app has its own backend

Once its screens are connected with Apply, an app keeps its accounts and records in its own backend on Atom. The backend defines the kinds of records the app holds, such as services, bookings and opening hours, and the roles people can have. Atomic writes those rules with the screens and checks them on every build.

A template page’s Atom config tab, listing record kinds such as Service with their fields, and the roles member, owner and staff with what each does.
Template record kinds and sample roles. Published-user controls currently support Member and Admin.

Each app has a separate data context. Atomic does not currently provide a general-purpose external database connection or a complete data-export workflow in the dashboard. Published application APIs remain subject to their access controls.

Three kinds of data

WhereWhat it holdsHow long it lasts
CanvasThe app’s sample records and an account for each roleUntil you reset it or reload; never saved
PreviewA backend rebuilt from the app’s files, starting from its sample dataDisposable: anything you create while trying the preview disappears with it
Published appThe app’s starting records, then the accounts and records of the people who use itKept by the published app; publishing or rolling back never replaces it

Publishing deploys the app’s files, not the preview’s data. A newly published app starts with no users, and with the app’s starting records: its sample records, unless you started from a template without them. Each starting record is added once, so one that an admin deletes stays deleted. Remove sample records you do not want before real people use the app.

Who sees which records

In an app with accounts, what someone sees follows their role:

  • Members can read shared records and their own records. Records belonging to another member must remain private unless intentionally shared.
  • Admins can read and change all app records and mark records as shared.

So information a member needs to read, such as replies to their request, belongs on a record they own. Notes only admins should read belong on a separate record that is not shared.

In a Public — no login app, every visitor acts as the app itself and could read or change any record. Do not collect private information in a public app; use open sign-up or invite-only access instead.

Sample accounts

The accounts you sign in as on the canvas and in the preview exist only there. Their passwords are written in the app’s source, so a published app never creates them. To manage your published app, invite yourself as an admin: see your first admin.

Looking after real data

  • Restoring an earlier version or rolling back a deployment changes code, never your app’s data. A change to how data is stored that has been published cannot be undone by rolling back.
  • A source download does not include users, records or files.
  • Ask the Atomic team about backup, export and deletion before you collect records that matter. See preparing for real data.