- pgSchema "mesh" with 4 tables isolating the peer mesh domain - Enums: visibility, transport, tier, role - audit_log is metadata-only (E2E encryption enforced at broker/client) - Cascade on mesh delete, soft-delete via archivedAt/revokedAt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.7 KiB
1.7 KiB
title, description, url
| title | description | url |
|---|---|---|
| Database | Get started with the database. | /docs/mobile/database |
Database
To enable communication between your Expo app and the server in a production environment, the web application with Hono API must be deployed first.<Card title="Web deployment" description="Deploy your web application to production." href="/docs/web/deployment/checklist" />
As a mobile app uses only client-side code, there's no way to interact with the database directly.
Also, you should avoid any workarounds to interact with the database directly, because it can lead to leaking your database credentials and other security issues.
Recommended approach
You can safely use the API and call the endpoints which will run queries on the database.
To do this you need to set up the database on the web, server side and then use the API client to interact with it.
Learn more about its configuration in the web part of the docs, especially in the following sections: