Database schemas
Every table in the API's Postgres database and in the encrypted SQLite database each device keeps, with its columns, keys, and indexes.
- Postgres schema reference
- Every table the API keeps in Postgres, with its columns, keys, indexes, and what each holds. 58 tables, as of migration
0028_operator_organization.docs/database/postgres.json - SQLite schema reference
- Every table the client SDK keeps in each device's encrypted SQLite database. 70 tables, as of local schema step
add_local_sync_notices.docs/database/sqlite.json
These pages are generated from the Drizzle table definitions and the comments beside them, so they change with the schema. The generator writes docs/database/postgres.json and docs/database/sqlite.json, and the repository's checks fail when either falls behind its source.
The server never sees plaintext: its rows hold ciphertext, signed metadata, and the access state it enforces. The client database is encrypted at rest; the cipher suites give its codec and key. The API reference covers the requests that read and write these tables.