Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prisma-postgres-setup/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Check the user's requested ORM or driver, installed packages, database connectio
| -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Existing connection or connected integration | Verify its project, database, and environment; reuse it. |
| v0, Vercel Marketplace, or a Vercel project | Read [Marketplace setup](references/vercel-marketplace.md) and use the native integration flow. |
| No database yet and no provider named | Offer `npx create-db@latest` for a working database now with no account (it is deleted after 72 hours unless claimed, and claiming needs a free Prisma account; read the create-db section in [provisioning](references/provisioning.md)), or a persistent database through [provisioning](references/provisioning.md). Ask which one when the request does not say. |
| No database yet and no provider named | Offer `npx create-db@latest` for a working database now with no account (it is deleted at the deletion time printed in its output unless claimed, and claiming needs a free Prisma account; read the create-db section in [provisioning](references/provisioning.md)), or a persistent database through [provisioning](references/provisioning.md). Ask which one when the request does not say. |
| Deploying or sharing an app with no hosted database | Offer `npx create-db@latest` (no account, no card) and set its connection string as `DATABASE_URL` on the host. Before the app goes live, give the user the claim URL and the deletion time and ask them to claim it: an unclaimed database is deleted and the deployed app stops working. On a Prisma 8 project that deploys to Prisma Compute, the module declares the database instead; see the `prisma-compute` skill. |
| Standalone persistent database | Read [provisioning](references/provisioning.md); use an authenticated CLI, MCP tool, Console, or Management API. |
| Temporary development database requested | Read the `create-db` section in [provisioning](references/provisioning.md), including expiry and claiming. |
Expand Down
2 changes: 1 addition & 1 deletion prisma-postgres-setup/references/provisioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ For server-to-server API access, use a workspace service token from the user's s

## Temporary databases with create-db

Use `create-db` when the user needs a working database now and has no connection or Prisma account. By default, the database is available for **72 hours** and is automatically deleted if unclaimed; `--ttl` can only make that shorter. Claim it through the returned claim URL **before its expiry** to keep it; claiming requires a Prisma account. Use the returned expiry as the deadline if a different lifetime was selected. See the [documented lifecycle](https://www.prisma.io/docs/postgres/npx-create-db#claiming-your-database).
Use `create-db` when the user needs a working database now and has no connection or Prisma account. The database is deleted automatically at the deletion time printed in the output unless it is claimed, and `--ttl` can only make that time sooner. Claim it through the returned claim URL **before that time** to keep it; claiming requires a Prisma account. See the [documented lifecycle](https://www.prisma.io/docs/postgres/npx-create-db#claiming-your-database).

Inspect the current commands when selecting a region or a non-default lifetime:

Expand Down
Loading