Skip to main content
The Data docs page at /docs/data documents the app’s database schema, providing a complete reference for all tables, columns, relations, and security policies.

Data overview

The overview table lists every database table in the app with its access pattern, column count, and usage cross-references. By default it shows only your custom tables — you can toggle to show all tables including system tables.
Data docs overview showing all tables with access pattern badges

Data model overview with access patterns, required scopes, and usage cross-references

Table detail

Clicking a table scrolls to its detail view, which shows:
  • Table name — the Prisma model name
  • Columns — field names, data types, defaults, nullability, and constraints
  • Relations — foreign key relationships between tables, with links to related tables
  • Indexes — defined indexes and their columns
  • RLS access pattern — a badge indicating the row-level security policy applied to the table:
    • Owner-scoped — rows are filtered by the authenticated user’s ID
    • Org-scoped — rows are filtered by the user’s organization
    • Scope-required — access requires specific scopes
    • Inherited — security is inherited from a related table
    • Public — no row-level filtering
Table detail view showing columns, RLS badges, and cross-references

Table detail with column schema, access control badges, and procedure/workflow usage

Generated from

This page is populated from db-schema.json, which the build pipeline generates by parsing the Prisma schema. Access pattern badges are derived from the tables section of scopes.json.