Skip to content

Project

Source: src/Prisma/Project.ts

A Prisma project, optionally with a default Prisma Postgres database.

A Project is the ownership boundary for its databases, branches, apps, and repository link. Destroying this resource deletes the project and its contained data. Set createDatabase: false when you want standalone Prisma.Database resources with independent lifecycles.

Project with a default database

const project = yield* Prisma.Project("app", {
name: "app",
region: "us-east-1",
});

Project only

const project = yield* Prisma.Project("control-plane", {
createDatabase: false,
});