Skip to main content
The full database schema was not present in this docs repo. Use source, migrations, and docs/codebase-map.json before editing database logic.

Known data concepts

ConceptNotes
WorkspaceCompany account, likely keyed by org_id.
MessageWebsite submission or customer email.
CategoryWorkspace label for routing and reporting.
API keyWebsite integration credential.
Team memberUser membership and role.
Email connectionGmail or Outlook provider state.

Safe edit rules

  • Preserve org_id on workspace data.
  • Preserve foreign key relationships.
  • Preserve RLS policies.
  • Migrate data before removing fields.
  • Keep API payload fields backward compatible.

Before changing tables

  1. Read migrations.
  2. Search all reads and writes for the table.
  3. Confirm RLS policy impact.
  4. Add migration and rollback plan.
  5. Update docs after source changes.