# Projects and databases

> The three kinds of database a project can have in Sypnia Cloud, what each one gives you, and how to move between them.

Applies to: Sypnia Cloud (paid service).  
Source: https://data.docs.sypnia.com/cloud/projects-and-databases/

For agents: Database kinds: managed shared (free tier; one Postgres database per project on a shared server, its own roles, reached through the Data API + SQL endpoint, no direct connection), your own Postgres (paste a connection string; tested for TLS, version ≥ 14, privileges; install automatic or manual; credentials encrypted with KMS), dedicated (pick instance class, storage and region; direct connections with TLS and IP allow list; priced by size, shown before you confirm, paid from credits). Moving: pg_dump/pg_restore and switching the project's database keeps users and signing keys.

|                                 | Managed, shared               | Your own Postgres | Dedicated                                  |
| ------------------------------- | ----------------------------- | ----------------- | ------------------------------------------ |
| Who runs the database           | Sypnia Cloud                  | you               | Sypnia Cloud, a server only for you        |
| Direct `postgres://` connection | no: Data API and SQL endpoint | yes, it is yours  | yes, with TLS and an IP allow list         |
| Backups                         | daily, kept 30 days           | yours             | daily, kept as you choose                  |
| Price                           | free tier                     | free on our side  | by the server's size, prepaid with credits |

## Managed, shared

The fastest start. Your project gets **its own database** on a server shared with other projects. It has its own roles; no other project can connect to it. Good for building and for small apps. When it grows, move it to dedicated or to your own server. Deleting a managed project drops its database and its roles; there is no undo, so export what you need first.

## Your own Postgres

Paste a connection string. The console tests it on the spot — TLS, version 14 or later, privileges — and installs the engine's schemas and roles, or shows you the SQL to give your database administrator ([Any Postgres](https://data.docs.sypnia.com/data/any-postgres)). The connection string is stored encrypted with AWS KMS and is never shown again.

## Dedicated

You choose the machine (from small to memory-optimised), the storage and the region. The server is created for your project alone, with its own network rules. Its price depends on the server you choose, is shown before you confirm and is paid with credits.

## Moving a project

From managed to dedicated, to your own server or back: dump, restore and switch the project's database in Settings. Users live in the same database, and the signing keys move with the project, so nobody is signed out.
