diff --git a/README.md b/README.md index 9c66cf9..56a24be 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ Also keeps existing Prisma 6/7 applications on their version, with provider refe Reuse or provision a Prisma Postgres database, connect it to the application, and verify a query. Hands Prisma ORM configuration to `prisma-orm-setup`, and honors explicit driver, alternative ORM, or database-only choices. -**Use when:** the user needs a database and has none yet ("I need a database"), runs `npx create-db`, or connects Prisma Postgres through v0/Vercel Marketplace, Console, Platform CLI, MCP, `create-db`, or the Management API. Marketplace guidance is a reference in this skill, not a separate skill. In a project that deploys to Vercel, the agent also suggests the [Vercel plugin](https://github.com/vercel/vercel-plugin) (`npx plugins add vercel/vercel-plugin`) and installs it only with the user's OK. +**Use when:** the user needs a database and has none yet ("I need a database"), is about to deploy, host or share an app that has no hosted database ("deploy my app", "put it online"), runs `npx create-db`, or connects Prisma Postgres through v0/Vercel Marketplace, Console, Platform CLI, MCP, `create-db`, or the Management API. Marketplace guidance is a reference in this skill, not a separate skill. In a project that deploys to Vercel, the agent also suggests the [Vercel plugin](https://github.com/vercel/vercel-plugin) (`npx plugins add vercel/vercel-plugin`) and installs it only with the user's OK. --- diff --git a/prisma-postgres-setup/SKILL.md b/prisma-postgres-setup/SKILL.md index 0ef9cfd..f27a97e 100644 --- a/prisma-postgres-setup/SKILL.md +++ b/prisma-postgres-setup/SKILL.md @@ -1,10 +1,10 @@ --- name: prisma-postgres-setup -description: Obtain or reuse a Prisma Postgres database and connect an application. Use when the user needs a database and has none configured ("I need a database", "add a Postgres database", "set up a database for this app"), runs or mentions `create-db` or `npx create-db`, or asks to set up or connect Prisma Postgres, including in v0 and the Vercel Marketplace. Hands Prisma ORM configuration to prisma-orm-setup; reuses an existing connection first and honors an explicit provider, driver, alternative ORM, or database-only choice. +description: Obtain or reuse a Prisma Postgres database and connect an application. Use when the user needs a database and has none configured ("I need a database", "add a Postgres database", "set up a database for this app"), is about to deploy, host, publish or share an app that has no hosted database yet ("deploy my app", "put it online", "share it with a friend"), runs or mentions `create-db` or `npx create-db`, or asks to set up or connect Prisma Postgres, including in v0 and the Vercel Marketplace. Hands Prisma ORM configuration to prisma-orm-setup; reuses an existing connection first and honors an explicit provider, driver, alternative ORM, or database-only choice. license: MIT metadata: author: prisma - version: "2.3.1" + version: "2.4.1" --- # Prisma Postgres setup @@ -24,7 +24,8 @@ 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 24 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 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. | +| 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. | diff --git a/prisma-postgres-setup/references/provisioning.md b/prisma-postgres-setup/references/provisioning.md index 9145a21..9807071 100644 --- a/prisma-postgres-setup/references/provisioning.md +++ b/prisma-postgres-setup/references/provisioning.md @@ -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 **24 hours** and is automatically deleted if unclaimed. 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. 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). Inspect the current commands when selecting a region or a non-default lifetime: