Skip to Content
DaaS StudioData Model

Data Model

The Data Model editor (/data-model) is a visual interface for managing your database schema. It generates and executes DDL statements (CREATE TABLE, ALTER TABLE, etc.) against your PostgreSQL database.

Data Model page filtered to User Collections: authors, categories and posts

Collections

Create, update metadata (icon, note), and delete tables. Click Create Collection to open a three-step wizard: Basic Info (name, note, singleton), Primary Key, and System Fields.

Create Collection wizard, step 1 Basic Info

Each table requires a primary key field. Choose from four primary key types in step 2:

TypeDescription
integerAuto-incremented integer (SERIAL)
bigIntegerAuto-incremented big integer (BIGSERIAL) — for large datasets
uuidAuto-generated UUID (gen_random_uuid())
stringManually entered string (VARCHAR(255)) — useful for slugs or external IDs

Create Collection wizard, step 2 Primary Key, showing the four key types

Step 3 adds optional system fields: user and date stamps, the workflow fields, a resource_uri field for Scopes, and activity tracking.

Create Collection wizard, step 3 System Fields

Fields

Open a collection to see its fields. The Fields tab shows the form layout; drag a field to reorder it, and the layout saves automatically. The Settings tab holds the collection metadata.

Fields tab of the posts collection with the form layout

Click Add Field to add a column. Select a data type and configure options such as nullability, default value, and interface type (which controls the Studio form renderer).

Supported types include: string, text, integer, bigInteger, float, decimal, boolean, json, uuid, dateTime, timestamp, date, and time.

Create New Field modal, Schema tab

Relationships

Configure foreign key relationships between collections:

  • Many-to-One (M2O) — a column on this table points to another table’s primary key
  • One-to-Many (O2M) — virtual reverse of a M2O; no column is added
  • Many-to-Many (M2M) — a junction table is created automatically
  • Many-to-Any (M2A) — polymorphic relation; items can reference multiple different collections via a junction table with a collection discriminator column

Pick a relational interface (for example Many to One) in the field modal, and a Relationship tab appears. Choose the related collection there, and optionally add the reverse One-to-Many field to it.

Create New Field modal, Relationship tab for a Many-to-One field from posts to authors

Admin Only

All schema mutations require a user with admin access. Read-only schema introspection (listing collections and fields) is available to any authenticated user per their permissions.