Skip to docs content
Database design and models
Open Source
Free Cloud
Pro
Workers
Updated 2026-08-12

Database design and models

Editions: Open Source · Free Cloud · Pro · Workers

Models are the source of your generated GraphQL (and REST shim). Design in Console Models, via MCP, or sync a Blueprint.

Model field list in Console (newspaper CMS ad_slot example)

Create a model

  1. Open the project → Models.
  2. Create a model — name becomes the GraphQL type/operation stem.
  3. Add field / relation — text, number, date, media, boolean, nested lists, relations, etc.

On Pro / review-enabled Cloud, changes land as a draft. Inspect Schema Changes, then Publish. Physical DDL (where applicable) follows the execution plan.

Schema Changes — pending drafts wait for a human publish

Relations

Configure forward and backward cardinality (has-one / has-many). Optional “known as” aliases disambiguate multiple edges to the same model. Relation keys in filters and connect payloads use snake_case in Admin SDKs — see Filters & relations.

Project profiles

Profile Use
general Single-tenant / CMS-style
saas shared DB Multi-tenant rows + tenant model
saas + per-tenant DB Pro — isolated DB per tenant

Blueprint config.yml must match the destination profile or sync refuses the apply.

Do not

  • Expect CLI/MCP to publish.
  • Hand-edit Engine system_* fields in portable schema.json.
  • Commit secrets into Blueprint exports.

Next