Skip to main content

Documentation Index

Fetch the complete documentation index at: https://archie.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

The Data Model is where you design your app’s database schema, define relationships, and configure data validation. Every change is published in real time and stays in sync with the auto-generated GraphQL and REST APIs that your frontend and integrations consume.

What lives in the Data Model

The Data Model sidebar groups the schema into three item types:
Item typeWhat it isWhere to learn more
TablesThe standard database tables that store your records.Tables
ViewsVirtual tables defined by a saved SQL SELECT query.Views
Data TypesReusable named enums you can apply to fields across tables.Data Types

The two tabs on every table

When you open a table, you switch between two tabs:
  • Schema — the visual schema designer. Add and remove fields, configure validation, define relationships, and create indexes. See Tables and Fields.
  • Data — a spreadsheet-style viewer for the records inside the table. Add, edit, filter, sort, import, and export rows. See Data Viewer.

Auto-generated APIs

Every table and view in the Data Model is automatically exposed through: When you add, rename, or remove a field, both APIs update immediately. You don’t write resolvers, controllers, or routes by hand.

Schema is stored as structured JSON

The Data Model is persisted as a structured JSON representation of your schema, not flat SQL files. Code generation reads from this representation so the rest of your project — types, queries, validation — stays in sync. You configure the model through the UI; you don’t edit raw SQL files.

Permissions live elsewhere

Per-table access control is not configured inside the Data Model. Every table is governed by role-based permissions defined in App Services → Role-Based Access. See Role-Based Access.

Where to go next

Tables

Create, rename, and delete tables.

Fields

The 9 field types and their configuration options.

Data Types

Reusable enums shared across tables.

Views

Virtual tables defined by a SQL query.

Indexes

Speed up lookups and enforce uniqueness.

Relationships

Foreign keys and cardinality between tables.

Data Viewer

Browse and edit records.

Importing & exporting

Move data in and out via CSV.

FAQ

No. You design tables, fields, relationships, and indexes through the visual UI. The only place SQL is required is when you create a View, which is defined by a saved SELECT query.
Each workspace gets a dedicated PostgreSQL database. The Data Model maps directly to PostgreSQL tables, columns, indexes, and enum types.
Permissions live in App Services → Role-Based Access, not in the Data Model. The Data Model defines the shape of your data; Role-Based Access governs which user types can read, write, or administer it.
No. Both APIs are generated from the Data Model and refresh automatically whenever the schema changes.
No. The schema is stored as structured JSON, not SQL files. Use the Data Model UI to make changes — code generation and the auto-generated APIs read from that representation.