Skip to content
MyAppBuilder
BetaGuide

Production databases

Connect Production Data lets your app keep its records in your own PostgreSQL or Supabase database instead of the built-in database. MyAppBuilder always inspects your existing structure first, without making changes, and every schema change is shown to you as a reviewed migration

Beta — ready to use, but some details may still change.

Connect Production Data lets your app keep its records in your own PostgreSQL or Supabase database instead of the built-in database. MyAppBuilder always inspects your existing structure first, without making changes, and every schema change is shown to you as a reviewed migration before anything runs. This feature is in beta.

Data ownership

Every entity has exactly one owner, shown on the entity's Storage tab:

OwnershipWho changes the structureTypical use
Managed by MyAppBuilderMyAppBuilder, through migrations you approveNew data, or data imported once from a legacy system
Existing tableYou. MyAppBuilder reads and writes rows but never alters the tableA table another system keeps writing to
External APIThe API ownerData that should only be reached through a service

Managed tables live in their own namespace: a PostgreSQL schema named mab_ plus a short project id (for example mab_7f3a2c). Your own schemas and tables are never modified by a MyAppBuilder migration, and the migration review says so explicitly: Existing customer-owned tables modified: NONE.

Logical names and physical names

What you see in the editor is the logical model: entity and field display names such as Customers and Phone number. In the database each entity is a physical table and each field a physical column (customers, phone_number). The physical name is fixed when the table or column is first created.

Renaming an entity or a field in the editor only changes the display name. The database table or column keeps its name, so reports, integrations and SQL that already use it keep working. Open a field's Advanced section to see its physical column, logical type and native database type.

Three strategies for existing data

When you connect a database that already holds data, the wizard asks How should this application use your existing data?

  1. Import into app-managed tables. MyAppBuilder creates managed tables and copies your rows into them once, with column mapping, transformations and a report of rejected rows. Choose it when the app becomes the new home of the data.
  2. Use existing tables. Entities read and write your tables directly. Choose it when another system must keep using those tables.
  3. Use an API. Nothing is stored in a database; the app talks to a service. Set it up in the APIs section.

No two-way sync

An import is a one-time copy, not a synchronisation. If the legacy system keeps changing the data after the import, those changes do not reach the app, and changes made in the app do not flow back. When both systems must stay current, use existing tables or an API instead.

The flow

  1. Provider: choose PostgreSQL or Supabase. MySQL, MariaDB and SQL Server are planned and not available yet (see other databases).
  2. Connect: enter the connection details for one environment (Development, Staging or Production) and test them. Nothing is stored until you save, and nothing is changed.
  3. Inspect: MyAppBuilder reads the structure only (schemas, tables, columns, keys). No business records are read.
  4. Strategy: import, use existing tables, or use an API.
  5. Map: choose source tables and target entities, and confirm every column mapping.
  6. Migration: review the plan, the SQL and its risk level, then apply it or export the SQL and run it yourself.
  7. Verify: follow the import progress, or let MyAppBuilder verify a migration you ran yourself.

Limits in this beta

  • PostgreSQL 13 or newer and Supabase only.
  • Destructive changes (drop, rename, type change) are never applied automatically. See Migrations.
  • Imports are one-time copies; there is no scheduled re-import.

Related

Was this helpful?