[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-prisma-prisma-database-setup":3,"mdc-2w49e5-key":37,"related-repo-prisma-prisma-database-setup":1768,"related-org-prisma-prisma-database-setup":1863},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":32,"sourceUrl":35,"mdContent":36},"prisma-database-setup","configure Prisma with database providers","Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.). Use when setting up a new project, changing databases, or troubleshooting connection issues. Triggers on \"configure postgres\", \"connect to mysql\", \"setup mongodb\", \"sqlite setup\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"prisma","Prisma","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fprisma.png",[12,16,19,22,23],{"name":13,"slug":14,"type":15},"MySQL","mysql","tag",{"name":17,"slug":18,"type":15},"Database","database",{"name":20,"slug":21,"type":15},"ORM","orm",{"name":9,"slug":8,"type":15},{"name":24,"slug":25,"type":15},"PostgreSQL","postgresql",44,"https:\u002F\u002Fgithub.com\u002Fprisma\u002Fskills","2026-04-06T18:48:34.192852","MIT",3,[],{"repoUrl":27,"stars":26,"forks":30,"topics":33,"description":34},[],null,"https:\u002F\u002Fgithub.com\u002Fprisma\u002Fskills\u002Ftree\u002FHEAD\u002Fprisma-database-setup","---\nname: prisma-database-setup\ndescription: Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.). Use when setting up a new project, changing databases, or troubleshooting connection issues. Triggers on \"configure postgres\", \"connect to mysql\", \"setup mongodb\", \"sqlite setup\".\nlicense: MIT\nmetadata:\n  author: prisma\n  version: \"7.6.0\"\n---\n\n# Prisma Database Setup\n\nComprehensive guides for configuring Prisma ORM with various database providers.\n\n## When to Apply\n\nReference this skill when:\n- Initializing a new Prisma project\n- Switching database providers\n- Configuring connection strings and environment variables\n- Troubleshooting database connection issues\n- Setting up database-specific features\n- Generating and instantiating Prisma Client\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Provider Guides | CRITICAL | provider names |\n| 2 | Prisma Postgres | HIGH | `prisma-postgres` |\n| 3 | Client Setup | CRITICAL | `prisma-client-setup` |\n\n## System Prerequisites\n\n- **Node.js 20.19.0+**\n- **TypeScript 5.4.0+**\n\n## Bun Runtime\n\nIf you're using Bun, run Prisma CLI commands with `bunx --bun prisma ...` so Prisma uses the Bun runtime instead of falling back to Node.js.\n\n## Supported Databases\n\n| Database | Provider String | Notes |\n|----------|-----------------|-------|\n| PostgreSQL | `postgresql` | Default, full feature support |\n| MySQL | `mysql` | Widespread support, some JSON diffs |\n| SQLite | `sqlite` | Local file-based, no enum\u002Fscalar lists |\n| MongoDB | `mongodb` | Mongo-specific workflow; do not apply SQL driver-adapter guidance |\n| SQL Server | `sqlserver` | Microsoft ecosystem |\n| CockroachDB | `cockroachdb` | Distributed SQL, Postgres-compatible |\n| Prisma Postgres | `postgresql` | Managed serverless database |\n\n## Configuration Files\n\nYour configuration shape depends on the provider and Prisma major version:\n\n1. **All providers** use **`prisma\u002Fschema.prisma`**.\n2. **Prisma 7 SQL setups** typically use **`prisma.config.ts`** for datasource URLs.\n3. **MongoDB projects should stay on Prisma 6.x**, keep `url = env(\"DATABASE_URL\")` in the schema, and continue using the classic MongoDB setup.\n\n## Driver Adapters\n\nThe standard SQL workflow uses a driver adapter. Choose the adapter and driver for your database and pass the adapter to `PrismaClient`.\n\n| Database | Adapter | JS Driver |\n|----------|---------|-----------|\n| PostgreSQL | `@prisma\u002Fadapter-pg` | `pg` |\n| CockroachDB | `@prisma\u002Fadapter-pg` | `pg` |\n| Prisma Postgres (Node.js) | `@prisma\u002Fadapter-pg` | `pg` |\n| Prisma Postgres (edge\u002Fserverless) | `@prisma\u002Fadapter-ppg` | `@prisma\u002Fppg` |\n| MySQL \u002F MariaDB | `@prisma\u002Fadapter-mariadb` | `mariadb` |\n| SQLite | `@prisma\u002Fadapter-better-sqlite3` | `better-sqlite3` |\n| SQLite (Turso\u002FLibSQL) | `@prisma\u002Fadapter-libsql` | `@libsql\u002Fclient` |\n| SQL Server | `@prisma\u002Fadapter-mssql` | `node-mssql` |\n\nMongoDB should not follow the Prisma 7 SQL adapter workflow. Use the latest Prisma 6.x release for MongoDB projects and do not install a SQL `@prisma\u002Fadapter-*` package for it.\n\nExample (PostgreSQL):\n\n```ts\nimport 'dotenv\u002Fconfig'\nimport { PrismaClient } from '..\u002Fgenerated\u002Fclient'\nimport { PrismaPg } from '@prisma\u002Fadapter-pg'\n\nconst adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })\nconst prisma = new PrismaClient({ adapter })\n```\n\n## Prisma Client Setup (Required)\n\nPrisma Client must be installed and generated for any database.\n\n1. Install Prisma CLI and Prisma Client:\n   ```bash\n   npm install prisma --save-dev\n   npm install @prisma\u002Fclient\n   ```\n\n1. Add a generator block (`prisma-client` requires an explicit output path):\n   ```prisma\n   generator client {\n     provider = \"prisma-client\"\n     output   = \"..\u002Fgenerated\"\n   }\n   ```\n\n1. Generate Prisma Client:\n   ```bash\n   npx prisma generate\n   ```\n\n1. For SQL providers, instantiate Prisma Client with the database-specific driver adapter:\n   ```typescript\n   import { PrismaClient } from '..\u002Fgenerated\u002Fclient'\n   import { PrismaPg } from '@prisma\u002Fadapter-pg'\n\n   const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })\n   const prisma = new PrismaClient({ adapter })\n   ```\n\n1. Re-run `prisma generate` after every schema change.\n\n## Quick Reference\n\n### PostgreSQL\n```prisma\ndatasource db {\n  provider = \"postgresql\"\n}\n\ngenerator client {\n  provider = \"prisma-client\"\n  output   = \"..\u002Fgenerated\"\n}\n```\n\n### MySQL\n```prisma\ndatasource db {\n  provider = \"mysql\"\n}\n\ngenerator client {\n  provider = \"prisma-client\"\n  output   = \"..\u002Fgenerated\"\n}\n```\n\n### SQLite\n```prisma\ndatasource db {\n  provider = \"sqlite\"\n}\n\ngenerator client {\n  provider = \"prisma-client\"\n  output   = \"..\u002Fgenerated\"\n}\n```\n\n### MongoDB\n```prisma\ndatasource db {\n  provider = \"mongodb\"\n  url      = env(\"DATABASE_URL\")\n}\n\ngenerator client {\n  provider = \"prisma-client-js\"\n}\n```\n\nFor MongoDB, stay on the latest Prisma 6.x line and keep the connection URL in `schema.prisma`. Do not move a MongoDB project to the Prisma 7 SQL adapter setup. If a MongoDB project asks about upgrading Prisma versions, route to the `prisma-mongodb-upgrade` skill (stay-on-v6 vs Prisma Next is the real decision; Prisma 7 is not an option).\n\n## Rule Files\n\nSee individual rule files for detailed setup instructions:\n\n```\nreferences\u002Fpostgresql.md\nreferences\u002Fmysql.md\nreferences\u002Fsqlite.md\nreferences\u002Fmongodb.md\nreferences\u002Fsqlserver.md\nreferences\u002Fcockroachdb.md\nreferences\u002Fprisma-postgres.md\nreferences\u002Fprisma-client-setup.md\n```\n\n## How to Use\n\nChoose the provider reference file for your database, then apply `references\u002Fprisma-client-setup.md` to complete client generation and adapter setup. For MongoDB, use `references\u002Fmongodb.md` instead of copying the SQL adapter examples or Prisma 7 config pattern.\n",{"data":38,"body":41},{"name":4,"description":6,"license":29,"metadata":39},{"author":8,"version":40},"7.6.0",{"type":42,"children":43},"root",[44,52,58,65,70,105,111,226,232,252,258,271,277,451,457,462,526,532,544,770,783,788,1045,1051,1056,1409,1415,1420,1487,1491,1555,1559,1623,1627,1693,1714,1720,1725,1735,1741,1762],{"type":45,"tag":46,"props":47,"children":48},"element","h1",{"id":4},[49],{"type":50,"value":51},"text","Prisma Database Setup",{"type":45,"tag":53,"props":54,"children":55},"p",{},[56],{"type":50,"value":57},"Comprehensive guides for configuring Prisma ORM with various database providers.",{"type":45,"tag":59,"props":60,"children":62},"h2",{"id":61},"when-to-apply",[63],{"type":50,"value":64},"When to Apply",{"type":45,"tag":53,"props":66,"children":67},{},[68],{"type":50,"value":69},"Reference this skill when:",{"type":45,"tag":71,"props":72,"children":73},"ul",{},[74,80,85,90,95,100],{"type":45,"tag":75,"props":76,"children":77},"li",{},[78],{"type":50,"value":79},"Initializing a new Prisma project",{"type":45,"tag":75,"props":81,"children":82},{},[83],{"type":50,"value":84},"Switching database providers",{"type":45,"tag":75,"props":86,"children":87},{},[88],{"type":50,"value":89},"Configuring connection strings and environment variables",{"type":45,"tag":75,"props":91,"children":92},{},[93],{"type":50,"value":94},"Troubleshooting database connection issues",{"type":45,"tag":75,"props":96,"children":97},{},[98],{"type":50,"value":99},"Setting up database-specific features",{"type":45,"tag":75,"props":101,"children":102},{},[103],{"type":50,"value":104},"Generating and instantiating Prisma Client",{"type":45,"tag":59,"props":106,"children":108},{"id":107},"rule-categories-by-priority",[109],{"type":50,"value":110},"Rule Categories by Priority",{"type":45,"tag":112,"props":113,"children":114},"table",{},[115,144],{"type":45,"tag":116,"props":117,"children":118},"thead",{},[119],{"type":45,"tag":120,"props":121,"children":122},"tr",{},[123,129,134,139],{"type":45,"tag":124,"props":125,"children":126},"th",{},[127],{"type":50,"value":128},"Priority",{"type":45,"tag":124,"props":130,"children":131},{},[132],{"type":50,"value":133},"Category",{"type":45,"tag":124,"props":135,"children":136},{},[137],{"type":50,"value":138},"Impact",{"type":45,"tag":124,"props":140,"children":141},{},[142],{"type":50,"value":143},"Prefix",{"type":45,"tag":145,"props":146,"children":147},"tbody",{},[148,172,200],{"type":45,"tag":120,"props":149,"children":150},{},[151,157,162,167],{"type":45,"tag":152,"props":153,"children":154},"td",{},[155],{"type":50,"value":156},"1",{"type":45,"tag":152,"props":158,"children":159},{},[160],{"type":50,"value":161},"Provider Guides",{"type":45,"tag":152,"props":163,"children":164},{},[165],{"type":50,"value":166},"CRITICAL",{"type":45,"tag":152,"props":168,"children":169},{},[170],{"type":50,"value":171},"provider names",{"type":45,"tag":120,"props":173,"children":174},{},[175,180,185,190],{"type":45,"tag":152,"props":176,"children":177},{},[178],{"type":50,"value":179},"2",{"type":45,"tag":152,"props":181,"children":182},{},[183],{"type":50,"value":184},"Prisma Postgres",{"type":45,"tag":152,"props":186,"children":187},{},[188],{"type":50,"value":189},"HIGH",{"type":45,"tag":152,"props":191,"children":192},{},[193],{"type":45,"tag":194,"props":195,"children":197},"code",{"className":196},[],[198],{"type":50,"value":199},"prisma-postgres",{"type":45,"tag":120,"props":201,"children":202},{},[203,208,213,217],{"type":45,"tag":152,"props":204,"children":205},{},[206],{"type":50,"value":207},"3",{"type":45,"tag":152,"props":209,"children":210},{},[211],{"type":50,"value":212},"Client Setup",{"type":45,"tag":152,"props":214,"children":215},{},[216],{"type":50,"value":166},{"type":45,"tag":152,"props":218,"children":219},{},[220],{"type":45,"tag":194,"props":221,"children":223},{"className":222},[],[224],{"type":50,"value":225},"prisma-client-setup",{"type":45,"tag":59,"props":227,"children":229},{"id":228},"system-prerequisites",[230],{"type":50,"value":231},"System Prerequisites",{"type":45,"tag":71,"props":233,"children":234},{},[235,244],{"type":45,"tag":75,"props":236,"children":237},{},[238],{"type":45,"tag":239,"props":240,"children":241},"strong",{},[242],{"type":50,"value":243},"Node.js 20.19.0+",{"type":45,"tag":75,"props":245,"children":246},{},[247],{"type":45,"tag":239,"props":248,"children":249},{},[250],{"type":50,"value":251},"TypeScript 5.4.0+",{"type":45,"tag":59,"props":253,"children":255},{"id":254},"bun-runtime",[256],{"type":50,"value":257},"Bun Runtime",{"type":45,"tag":53,"props":259,"children":260},{},[261,263,269],{"type":50,"value":262},"If you're using Bun, run Prisma CLI commands with ",{"type":45,"tag":194,"props":264,"children":266},{"className":265},[],[267],{"type":50,"value":268},"bunx --bun prisma ...",{"type":50,"value":270}," so Prisma uses the Bun runtime instead of falling back to Node.js.",{"type":45,"tag":59,"props":272,"children":274},{"id":273},"supported-databases",[275],{"type":50,"value":276},"Supported Databases",{"type":45,"tag":112,"props":278,"children":279},{},[280,300],{"type":45,"tag":116,"props":281,"children":282},{},[283],{"type":45,"tag":120,"props":284,"children":285},{},[286,290,295],{"type":45,"tag":124,"props":287,"children":288},{},[289],{"type":50,"value":17},{"type":45,"tag":124,"props":291,"children":292},{},[293],{"type":50,"value":294},"Provider String",{"type":45,"tag":124,"props":296,"children":297},{},[298],{"type":50,"value":299},"Notes",{"type":45,"tag":145,"props":301,"children":302},{},[303,323,343,365,387,409,431],{"type":45,"tag":120,"props":304,"children":305},{},[306,310,318],{"type":45,"tag":152,"props":307,"children":308},{},[309],{"type":50,"value":24},{"type":45,"tag":152,"props":311,"children":312},{},[313],{"type":45,"tag":194,"props":314,"children":316},{"className":315},[],[317],{"type":50,"value":25},{"type":45,"tag":152,"props":319,"children":320},{},[321],{"type":50,"value":322},"Default, full feature support",{"type":45,"tag":120,"props":324,"children":325},{},[326,330,338],{"type":45,"tag":152,"props":327,"children":328},{},[329],{"type":50,"value":13},{"type":45,"tag":152,"props":331,"children":332},{},[333],{"type":45,"tag":194,"props":334,"children":336},{"className":335},[],[337],{"type":50,"value":14},{"type":45,"tag":152,"props":339,"children":340},{},[341],{"type":50,"value":342},"Widespread support, some JSON diffs",{"type":45,"tag":120,"props":344,"children":345},{},[346,351,360],{"type":45,"tag":152,"props":347,"children":348},{},[349],{"type":50,"value":350},"SQLite",{"type":45,"tag":152,"props":352,"children":353},{},[354],{"type":45,"tag":194,"props":355,"children":357},{"className":356},[],[358],{"type":50,"value":359},"sqlite",{"type":45,"tag":152,"props":361,"children":362},{},[363],{"type":50,"value":364},"Local file-based, no enum\u002Fscalar lists",{"type":45,"tag":120,"props":366,"children":367},{},[368,373,382],{"type":45,"tag":152,"props":369,"children":370},{},[371],{"type":50,"value":372},"MongoDB",{"type":45,"tag":152,"props":374,"children":375},{},[376],{"type":45,"tag":194,"props":377,"children":379},{"className":378},[],[380],{"type":50,"value":381},"mongodb",{"type":45,"tag":152,"props":383,"children":384},{},[385],{"type":50,"value":386},"Mongo-specific workflow; do not apply SQL driver-adapter guidance",{"type":45,"tag":120,"props":388,"children":389},{},[390,395,404],{"type":45,"tag":152,"props":391,"children":392},{},[393],{"type":50,"value":394},"SQL Server",{"type":45,"tag":152,"props":396,"children":397},{},[398],{"type":45,"tag":194,"props":399,"children":401},{"className":400},[],[402],{"type":50,"value":403},"sqlserver",{"type":45,"tag":152,"props":405,"children":406},{},[407],{"type":50,"value":408},"Microsoft ecosystem",{"type":45,"tag":120,"props":410,"children":411},{},[412,417,426],{"type":45,"tag":152,"props":413,"children":414},{},[415],{"type":50,"value":416},"CockroachDB",{"type":45,"tag":152,"props":418,"children":419},{},[420],{"type":45,"tag":194,"props":421,"children":423},{"className":422},[],[424],{"type":50,"value":425},"cockroachdb",{"type":45,"tag":152,"props":427,"children":428},{},[429],{"type":50,"value":430},"Distributed SQL, Postgres-compatible",{"type":45,"tag":120,"props":432,"children":433},{},[434,438,446],{"type":45,"tag":152,"props":435,"children":436},{},[437],{"type":50,"value":184},{"type":45,"tag":152,"props":439,"children":440},{},[441],{"type":45,"tag":194,"props":442,"children":444},{"className":443},[],[445],{"type":50,"value":25},{"type":45,"tag":152,"props":447,"children":448},{},[449],{"type":50,"value":450},"Managed serverless database",{"type":45,"tag":59,"props":452,"children":454},{"id":453},"configuration-files",[455],{"type":50,"value":456},"Configuration Files",{"type":45,"tag":53,"props":458,"children":459},{},[460],{"type":50,"value":461},"Your configuration shape depends on the provider and Prisma major version:",{"type":45,"tag":463,"props":464,"children":465},"ol",{},[466,487,508],{"type":45,"tag":75,"props":467,"children":468},{},[469,474,476,485],{"type":45,"tag":239,"props":470,"children":471},{},[472],{"type":50,"value":473},"All providers",{"type":50,"value":475}," use ",{"type":45,"tag":239,"props":477,"children":478},{},[479],{"type":45,"tag":194,"props":480,"children":482},{"className":481},[],[483],{"type":50,"value":484},"prisma\u002Fschema.prisma",{"type":50,"value":486},".",{"type":45,"tag":75,"props":488,"children":489},{},[490,495,497,506],{"type":45,"tag":239,"props":491,"children":492},{},[493],{"type":50,"value":494},"Prisma 7 SQL setups",{"type":50,"value":496}," typically use ",{"type":45,"tag":239,"props":498,"children":499},{},[500],{"type":45,"tag":194,"props":501,"children":503},{"className":502},[],[504],{"type":50,"value":505},"prisma.config.ts",{"type":50,"value":507}," for datasource URLs.",{"type":45,"tag":75,"props":509,"children":510},{},[511,516,518,524],{"type":45,"tag":239,"props":512,"children":513},{},[514],{"type":50,"value":515},"MongoDB projects should stay on Prisma 6.x",{"type":50,"value":517},", keep ",{"type":45,"tag":194,"props":519,"children":521},{"className":520},[],[522],{"type":50,"value":523},"url = env(\"DATABASE_URL\")",{"type":50,"value":525}," in the schema, and continue using the classic MongoDB setup.",{"type":45,"tag":59,"props":527,"children":529},{"id":528},"driver-adapters",[530],{"type":50,"value":531},"Driver Adapters",{"type":45,"tag":53,"props":533,"children":534},{},[535,537,543],{"type":50,"value":536},"The standard SQL workflow uses a driver adapter. Choose the adapter and driver for your database and pass the adapter to ",{"type":45,"tag":194,"props":538,"children":540},{"className":539},[],[541],{"type":50,"value":542},"PrismaClient",{"type":50,"value":486},{"type":45,"tag":112,"props":545,"children":546},{},[547,567],{"type":45,"tag":116,"props":548,"children":549},{},[550],{"type":45,"tag":120,"props":551,"children":552},{},[553,557,562],{"type":45,"tag":124,"props":554,"children":555},{},[556],{"type":50,"value":17},{"type":45,"tag":124,"props":558,"children":559},{},[560],{"type":50,"value":561},"Adapter",{"type":45,"tag":124,"props":563,"children":564},{},[565],{"type":50,"value":566},"JS Driver",{"type":45,"tag":145,"props":568,"children":569},{},[570,595,618,642,668,694,719,745],{"type":45,"tag":120,"props":571,"children":572},{},[573,577,586],{"type":45,"tag":152,"props":574,"children":575},{},[576],{"type":50,"value":24},{"type":45,"tag":152,"props":578,"children":579},{},[580],{"type":45,"tag":194,"props":581,"children":583},{"className":582},[],[584],{"type":50,"value":585},"@prisma\u002Fadapter-pg",{"type":45,"tag":152,"props":587,"children":588},{},[589],{"type":45,"tag":194,"props":590,"children":592},{"className":591},[],[593],{"type":50,"value":594},"pg",{"type":45,"tag":120,"props":596,"children":597},{},[598,602,610],{"type":45,"tag":152,"props":599,"children":600},{},[601],{"type":50,"value":416},{"type":45,"tag":152,"props":603,"children":604},{},[605],{"type":45,"tag":194,"props":606,"children":608},{"className":607},[],[609],{"type":50,"value":585},{"type":45,"tag":152,"props":611,"children":612},{},[613],{"type":45,"tag":194,"props":614,"children":616},{"className":615},[],[617],{"type":50,"value":594},{"type":45,"tag":120,"props":619,"children":620},{},[621,626,634],{"type":45,"tag":152,"props":622,"children":623},{},[624],{"type":50,"value":625},"Prisma Postgres (Node.js)",{"type":45,"tag":152,"props":627,"children":628},{},[629],{"type":45,"tag":194,"props":630,"children":632},{"className":631},[],[633],{"type":50,"value":585},{"type":45,"tag":152,"props":635,"children":636},{},[637],{"type":45,"tag":194,"props":638,"children":640},{"className":639},[],[641],{"type":50,"value":594},{"type":45,"tag":120,"props":643,"children":644},{},[645,650,659],{"type":45,"tag":152,"props":646,"children":647},{},[648],{"type":50,"value":649},"Prisma Postgres (edge\u002Fserverless)",{"type":45,"tag":152,"props":651,"children":652},{},[653],{"type":45,"tag":194,"props":654,"children":656},{"className":655},[],[657],{"type":50,"value":658},"@prisma\u002Fadapter-ppg",{"type":45,"tag":152,"props":660,"children":661},{},[662],{"type":45,"tag":194,"props":663,"children":665},{"className":664},[],[666],{"type":50,"value":667},"@prisma\u002Fppg",{"type":45,"tag":120,"props":669,"children":670},{},[671,676,685],{"type":45,"tag":152,"props":672,"children":673},{},[674],{"type":50,"value":675},"MySQL \u002F MariaDB",{"type":45,"tag":152,"props":677,"children":678},{},[679],{"type":45,"tag":194,"props":680,"children":682},{"className":681},[],[683],{"type":50,"value":684},"@prisma\u002Fadapter-mariadb",{"type":45,"tag":152,"props":686,"children":687},{},[688],{"type":45,"tag":194,"props":689,"children":691},{"className":690},[],[692],{"type":50,"value":693},"mariadb",{"type":45,"tag":120,"props":695,"children":696},{},[697,701,710],{"type":45,"tag":152,"props":698,"children":699},{},[700],{"type":50,"value":350},{"type":45,"tag":152,"props":702,"children":703},{},[704],{"type":45,"tag":194,"props":705,"children":707},{"className":706},[],[708],{"type":50,"value":709},"@prisma\u002Fadapter-better-sqlite3",{"type":45,"tag":152,"props":711,"children":712},{},[713],{"type":45,"tag":194,"props":714,"children":716},{"className":715},[],[717],{"type":50,"value":718},"better-sqlite3",{"type":45,"tag":120,"props":720,"children":721},{},[722,727,736],{"type":45,"tag":152,"props":723,"children":724},{},[725],{"type":50,"value":726},"SQLite (Turso\u002FLibSQL)",{"type":45,"tag":152,"props":728,"children":729},{},[730],{"type":45,"tag":194,"props":731,"children":733},{"className":732},[],[734],{"type":50,"value":735},"@prisma\u002Fadapter-libsql",{"type":45,"tag":152,"props":737,"children":738},{},[739],{"type":45,"tag":194,"props":740,"children":742},{"className":741},[],[743],{"type":50,"value":744},"@libsql\u002Fclient",{"type":45,"tag":120,"props":746,"children":747},{},[748,752,761],{"type":45,"tag":152,"props":749,"children":750},{},[751],{"type":50,"value":394},{"type":45,"tag":152,"props":753,"children":754},{},[755],{"type":45,"tag":194,"props":756,"children":758},{"className":757},[],[759],{"type":50,"value":760},"@prisma\u002Fadapter-mssql",{"type":45,"tag":152,"props":762,"children":763},{},[764],{"type":45,"tag":194,"props":765,"children":767},{"className":766},[],[768],{"type":50,"value":769},"node-mssql",{"type":45,"tag":53,"props":771,"children":772},{},[773,775,781],{"type":50,"value":774},"MongoDB should not follow the Prisma 7 SQL adapter workflow. Use the latest Prisma 6.x release for MongoDB projects and do not install a SQL ",{"type":45,"tag":194,"props":776,"children":778},{"className":777},[],[779],{"type":50,"value":780},"@prisma\u002Fadapter-*",{"type":50,"value":782}," package for it.",{"type":45,"tag":53,"props":784,"children":785},{},[786],{"type":50,"value":787},"Example (PostgreSQL):",{"type":45,"tag":789,"props":790,"children":795},"pre",{"className":791,"code":792,"language":793,"meta":794,"style":794},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import 'dotenv\u002Fconfig'\nimport { PrismaClient } from '..\u002Fgenerated\u002Fclient'\nimport { PrismaPg } from '@prisma\u002Fadapter-pg'\n\nconst adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })\nconst prisma = new PrismaClient({ adapter })\n","ts","",[796],{"type":45,"tag":194,"props":797,"children":798},{"__ignoreMap":794},[799,828,870,906,916,1000],{"type":45,"tag":800,"props":801,"children":804},"span",{"class":802,"line":803},"line",1,[805,811,817,823],{"type":45,"tag":800,"props":806,"children":808},{"style":807},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[809],{"type":50,"value":810},"import",{"type":45,"tag":800,"props":812,"children":814},{"style":813},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[815],{"type":50,"value":816}," '",{"type":45,"tag":800,"props":818,"children":820},{"style":819},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[821],{"type":50,"value":822},"dotenv\u002Fconfig",{"type":45,"tag":800,"props":824,"children":825},{"style":813},[826],{"type":50,"value":827},"'\n",{"type":45,"tag":800,"props":829,"children":831},{"class":802,"line":830},2,[832,836,841,847,852,857,861,866],{"type":45,"tag":800,"props":833,"children":834},{"style":807},[835],{"type":50,"value":810},{"type":45,"tag":800,"props":837,"children":838},{"style":813},[839],{"type":50,"value":840}," {",{"type":45,"tag":800,"props":842,"children":844},{"style":843},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[845],{"type":50,"value":846}," PrismaClient",{"type":45,"tag":800,"props":848,"children":849},{"style":813},[850],{"type":50,"value":851}," }",{"type":45,"tag":800,"props":853,"children":854},{"style":807},[855],{"type":50,"value":856}," from",{"type":45,"tag":800,"props":858,"children":859},{"style":813},[860],{"type":50,"value":816},{"type":45,"tag":800,"props":862,"children":863},{"style":819},[864],{"type":50,"value":865},"..\u002Fgenerated\u002Fclient",{"type":45,"tag":800,"props":867,"children":868},{"style":813},[869],{"type":50,"value":827},{"type":45,"tag":800,"props":871,"children":872},{"class":802,"line":30},[873,877,881,886,890,894,898,902],{"type":45,"tag":800,"props":874,"children":875},{"style":807},[876],{"type":50,"value":810},{"type":45,"tag":800,"props":878,"children":879},{"style":813},[880],{"type":50,"value":840},{"type":45,"tag":800,"props":882,"children":883},{"style":843},[884],{"type":50,"value":885}," PrismaPg",{"type":45,"tag":800,"props":887,"children":888},{"style":813},[889],{"type":50,"value":851},{"type":45,"tag":800,"props":891,"children":892},{"style":807},[893],{"type":50,"value":856},{"type":45,"tag":800,"props":895,"children":896},{"style":813},[897],{"type":50,"value":816},{"type":45,"tag":800,"props":899,"children":900},{"style":819},[901],{"type":50,"value":585},{"type":45,"tag":800,"props":903,"children":904},{"style":813},[905],{"type":50,"value":827},{"type":45,"tag":800,"props":907,"children":909},{"class":802,"line":908},4,[910],{"type":45,"tag":800,"props":911,"children":913},{"emptyLinePlaceholder":912},true,[914],{"type":50,"value":915},"\n",{"type":45,"tag":800,"props":917,"children":919},{"class":802,"line":918},5,[920,926,931,936,941,946,951,956,962,967,972,976,981,985,990,995],{"type":45,"tag":800,"props":921,"children":923},{"style":922},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[924],{"type":50,"value":925},"const",{"type":45,"tag":800,"props":927,"children":928},{"style":843},[929],{"type":50,"value":930}," adapter ",{"type":45,"tag":800,"props":932,"children":933},{"style":813},[934],{"type":50,"value":935},"=",{"type":45,"tag":800,"props":937,"children":938},{"style":813},[939],{"type":50,"value":940}," new",{"type":45,"tag":800,"props":942,"children":944},{"style":943},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[945],{"type":50,"value":885},{"type":45,"tag":800,"props":947,"children":948},{"style":843},[949],{"type":50,"value":950},"(",{"type":45,"tag":800,"props":952,"children":953},{"style":813},[954],{"type":50,"value":955},"{",{"type":45,"tag":800,"props":957,"children":959},{"style":958},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[960],{"type":50,"value":961}," connectionString",{"type":45,"tag":800,"props":963,"children":964},{"style":813},[965],{"type":50,"value":966},":",{"type":45,"tag":800,"props":968,"children":969},{"style":843},[970],{"type":50,"value":971}," process",{"type":45,"tag":800,"props":973,"children":974},{"style":813},[975],{"type":50,"value":486},{"type":45,"tag":800,"props":977,"children":978},{"style":843},[979],{"type":50,"value":980},"env",{"type":45,"tag":800,"props":982,"children":983},{"style":813},[984],{"type":50,"value":486},{"type":45,"tag":800,"props":986,"children":987},{"style":843},[988],{"type":50,"value":989},"DATABASE_URL ",{"type":45,"tag":800,"props":991,"children":992},{"style":813},[993],{"type":50,"value":994},"}",{"type":45,"tag":800,"props":996,"children":997},{"style":843},[998],{"type":50,"value":999},")\n",{"type":45,"tag":800,"props":1001,"children":1003},{"class":802,"line":1002},6,[1004,1008,1013,1017,1021,1025,1029,1033,1037,1041],{"type":45,"tag":800,"props":1005,"children":1006},{"style":922},[1007],{"type":50,"value":925},{"type":45,"tag":800,"props":1009,"children":1010},{"style":843},[1011],{"type":50,"value":1012}," prisma ",{"type":45,"tag":800,"props":1014,"children":1015},{"style":813},[1016],{"type":50,"value":935},{"type":45,"tag":800,"props":1018,"children":1019},{"style":813},[1020],{"type":50,"value":940},{"type":45,"tag":800,"props":1022,"children":1023},{"style":943},[1024],{"type":50,"value":846},{"type":45,"tag":800,"props":1026,"children":1027},{"style":843},[1028],{"type":50,"value":950},{"type":45,"tag":800,"props":1030,"children":1031},{"style":813},[1032],{"type":50,"value":955},{"type":45,"tag":800,"props":1034,"children":1035},{"style":843},[1036],{"type":50,"value":930},{"type":45,"tag":800,"props":1038,"children":1039},{"style":813},[1040],{"type":50,"value":994},{"type":45,"tag":800,"props":1042,"children":1043},{"style":843},[1044],{"type":50,"value":999},{"type":45,"tag":59,"props":1046,"children":1048},{"id":1047},"prisma-client-setup-required",[1049],{"type":50,"value":1050},"Prisma Client Setup (Required)",{"type":45,"tag":53,"props":1052,"children":1053},{},[1054],{"type":50,"value":1055},"Prisma Client must be installed and generated for any database.",{"type":45,"tag":463,"props":1057,"children":1058},{},[1059,1113,1166,1195,1396],{"type":45,"tag":75,"props":1060,"children":1061},{},[1062,1064],{"type":50,"value":1063},"Install Prisma CLI and Prisma Client:",{"type":45,"tag":789,"props":1065,"children":1069},{"className":1066,"code":1067,"language":1068,"meta":794,"style":794},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install prisma --save-dev\nnpm install @prisma\u002Fclient\n","bash",[1070],{"type":45,"tag":194,"props":1071,"children":1072},{"__ignoreMap":794},[1073,1097],{"type":45,"tag":800,"props":1074,"children":1075},{"class":802,"line":803},[1076,1082,1087,1092],{"type":45,"tag":800,"props":1077,"children":1079},{"style":1078},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1080],{"type":50,"value":1081},"npm",{"type":45,"tag":800,"props":1083,"children":1084},{"style":819},[1085],{"type":50,"value":1086}," install",{"type":45,"tag":800,"props":1088,"children":1089},{"style":819},[1090],{"type":50,"value":1091}," prisma",{"type":45,"tag":800,"props":1093,"children":1094},{"style":819},[1095],{"type":50,"value":1096}," --save-dev\n",{"type":45,"tag":800,"props":1098,"children":1099},{"class":802,"line":830},[1100,1104,1108],{"type":45,"tag":800,"props":1101,"children":1102},{"style":1078},[1103],{"type":50,"value":1081},{"type":45,"tag":800,"props":1105,"children":1106},{"style":819},[1107],{"type":50,"value":1086},{"type":45,"tag":800,"props":1109,"children":1110},{"style":819},[1111],{"type":50,"value":1112}," @prisma\u002Fclient\n",{"type":45,"tag":75,"props":1114,"children":1115},{},[1116,1118,1124,1126],{"type":50,"value":1117},"Add a generator block (",{"type":45,"tag":194,"props":1119,"children":1121},{"className":1120},[],[1122],{"type":50,"value":1123},"prisma-client",{"type":50,"value":1125}," requires an explicit output path):",{"type":45,"tag":789,"props":1127,"children":1130},{"className":1128,"code":1129,"language":8,"meta":794,"style":794},"language-prisma shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","generator client {\n  provider = \"prisma-client\"\n  output   = \"..\u002Fgenerated\"\n}\n",[1131],{"type":45,"tag":194,"props":1132,"children":1133},{"__ignoreMap":794},[1134,1142,1150,1158],{"type":45,"tag":800,"props":1135,"children":1136},{"class":802,"line":803},[1137],{"type":45,"tag":800,"props":1138,"children":1139},{},[1140],{"type":50,"value":1141},"generator client {\n",{"type":45,"tag":800,"props":1143,"children":1144},{"class":802,"line":830},[1145],{"type":45,"tag":800,"props":1146,"children":1147},{},[1148],{"type":50,"value":1149},"  provider = \"prisma-client\"\n",{"type":45,"tag":800,"props":1151,"children":1152},{"class":802,"line":30},[1153],{"type":45,"tag":800,"props":1154,"children":1155},{},[1156],{"type":50,"value":1157},"  output   = \"..\u002Fgenerated\"\n",{"type":45,"tag":800,"props":1159,"children":1160},{"class":802,"line":908},[1161],{"type":45,"tag":800,"props":1162,"children":1163},{},[1164],{"type":50,"value":1165},"}\n",{"type":45,"tag":75,"props":1167,"children":1168},{},[1169,1171],{"type":50,"value":1170},"Generate Prisma Client:",{"type":45,"tag":789,"props":1172,"children":1174},{"className":1066,"code":1173,"language":1068,"meta":794,"style":794},"npx prisma generate\n",[1175],{"type":45,"tag":194,"props":1176,"children":1177},{"__ignoreMap":794},[1178],{"type":45,"tag":800,"props":1179,"children":1180},{"class":802,"line":803},[1181,1186,1190],{"type":45,"tag":800,"props":1182,"children":1183},{"style":1078},[1184],{"type":50,"value":1185},"npx",{"type":45,"tag":800,"props":1187,"children":1188},{"style":819},[1189],{"type":50,"value":1091},{"type":45,"tag":800,"props":1191,"children":1192},{"style":819},[1193],{"type":50,"value":1194}," generate\n",{"type":45,"tag":75,"props":1196,"children":1197},{},[1198,1200],{"type":50,"value":1199},"For SQL providers, instantiate Prisma Client with the database-specific driver adapter:",{"type":45,"tag":789,"props":1201,"children":1205},{"className":1202,"code":1203,"language":1204,"meta":794,"style":794},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { PrismaClient } from '..\u002Fgenerated\u002Fclient'\nimport { PrismaPg } from '@prisma\u002Fadapter-pg'\n\nconst adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })\nconst prisma = new PrismaClient({ adapter })\n","typescript",[1206],{"type":45,"tag":194,"props":1207,"children":1208},{"__ignoreMap":794},[1209,1244,1279,1286,1353],{"type":45,"tag":800,"props":1210,"children":1211},{"class":802,"line":803},[1212,1216,1220,1224,1228,1232,1236,1240],{"type":45,"tag":800,"props":1213,"children":1214},{"style":807},[1215],{"type":50,"value":810},{"type":45,"tag":800,"props":1217,"children":1218},{"style":813},[1219],{"type":50,"value":840},{"type":45,"tag":800,"props":1221,"children":1222},{"style":843},[1223],{"type":50,"value":846},{"type":45,"tag":800,"props":1225,"children":1226},{"style":813},[1227],{"type":50,"value":851},{"type":45,"tag":800,"props":1229,"children":1230},{"style":807},[1231],{"type":50,"value":856},{"type":45,"tag":800,"props":1233,"children":1234},{"style":813},[1235],{"type":50,"value":816},{"type":45,"tag":800,"props":1237,"children":1238},{"style":819},[1239],{"type":50,"value":865},{"type":45,"tag":800,"props":1241,"children":1242},{"style":813},[1243],{"type":50,"value":827},{"type":45,"tag":800,"props":1245,"children":1246},{"class":802,"line":830},[1247,1251,1255,1259,1263,1267,1271,1275],{"type":45,"tag":800,"props":1248,"children":1249},{"style":807},[1250],{"type":50,"value":810},{"type":45,"tag":800,"props":1252,"children":1253},{"style":813},[1254],{"type":50,"value":840},{"type":45,"tag":800,"props":1256,"children":1257},{"style":843},[1258],{"type":50,"value":885},{"type":45,"tag":800,"props":1260,"children":1261},{"style":813},[1262],{"type":50,"value":851},{"type":45,"tag":800,"props":1264,"children":1265},{"style":807},[1266],{"type":50,"value":856},{"type":45,"tag":800,"props":1268,"children":1269},{"style":813},[1270],{"type":50,"value":816},{"type":45,"tag":800,"props":1272,"children":1273},{"style":819},[1274],{"type":50,"value":585},{"type":45,"tag":800,"props":1276,"children":1277},{"style":813},[1278],{"type":50,"value":827},{"type":45,"tag":800,"props":1280,"children":1281},{"class":802,"line":30},[1282],{"type":45,"tag":800,"props":1283,"children":1284},{"emptyLinePlaceholder":912},[1285],{"type":50,"value":915},{"type":45,"tag":800,"props":1287,"children":1288},{"class":802,"line":908},[1289,1293,1297,1301,1305,1309,1313,1317,1321,1325,1329,1333,1337,1341,1345,1349],{"type":45,"tag":800,"props":1290,"children":1291},{"style":922},[1292],{"type":50,"value":925},{"type":45,"tag":800,"props":1294,"children":1295},{"style":843},[1296],{"type":50,"value":930},{"type":45,"tag":800,"props":1298,"children":1299},{"style":813},[1300],{"type":50,"value":935},{"type":45,"tag":800,"props":1302,"children":1303},{"style":813},[1304],{"type":50,"value":940},{"type":45,"tag":800,"props":1306,"children":1307},{"style":943},[1308],{"type":50,"value":885},{"type":45,"tag":800,"props":1310,"children":1311},{"style":843},[1312],{"type":50,"value":950},{"type":45,"tag":800,"props":1314,"children":1315},{"style":813},[1316],{"type":50,"value":955},{"type":45,"tag":800,"props":1318,"children":1319},{"style":958},[1320],{"type":50,"value":961},{"type":45,"tag":800,"props":1322,"children":1323},{"style":813},[1324],{"type":50,"value":966},{"type":45,"tag":800,"props":1326,"children":1327},{"style":843},[1328],{"type":50,"value":971},{"type":45,"tag":800,"props":1330,"children":1331},{"style":813},[1332],{"type":50,"value":486},{"type":45,"tag":800,"props":1334,"children":1335},{"style":843},[1336],{"type":50,"value":980},{"type":45,"tag":800,"props":1338,"children":1339},{"style":813},[1340],{"type":50,"value":486},{"type":45,"tag":800,"props":1342,"children":1343},{"style":843},[1344],{"type":50,"value":989},{"type":45,"tag":800,"props":1346,"children":1347},{"style":813},[1348],{"type":50,"value":994},{"type":45,"tag":800,"props":1350,"children":1351},{"style":843},[1352],{"type":50,"value":999},{"type":45,"tag":800,"props":1354,"children":1355},{"class":802,"line":918},[1356,1360,1364,1368,1372,1376,1380,1384,1388,1392],{"type":45,"tag":800,"props":1357,"children":1358},{"style":922},[1359],{"type":50,"value":925},{"type":45,"tag":800,"props":1361,"children":1362},{"style":843},[1363],{"type":50,"value":1012},{"type":45,"tag":800,"props":1365,"children":1366},{"style":813},[1367],{"type":50,"value":935},{"type":45,"tag":800,"props":1369,"children":1370},{"style":813},[1371],{"type":50,"value":940},{"type":45,"tag":800,"props":1373,"children":1374},{"style":943},[1375],{"type":50,"value":846},{"type":45,"tag":800,"props":1377,"children":1378},{"style":843},[1379],{"type":50,"value":950},{"type":45,"tag":800,"props":1381,"children":1382},{"style":813},[1383],{"type":50,"value":955},{"type":45,"tag":800,"props":1385,"children":1386},{"style":843},[1387],{"type":50,"value":930},{"type":45,"tag":800,"props":1389,"children":1390},{"style":813},[1391],{"type":50,"value":994},{"type":45,"tag":800,"props":1393,"children":1394},{"style":843},[1395],{"type":50,"value":999},{"type":45,"tag":75,"props":1397,"children":1398},{},[1399,1401,1407],{"type":50,"value":1400},"Re-run ",{"type":45,"tag":194,"props":1402,"children":1404},{"className":1403},[],[1405],{"type":50,"value":1406},"prisma generate",{"type":50,"value":1408}," after every schema change.",{"type":45,"tag":59,"props":1410,"children":1412},{"id":1411},"quick-reference",[1413],{"type":50,"value":1414},"Quick Reference",{"type":45,"tag":1416,"props":1417,"children":1418},"h3",{"id":25},[1419],{"type":50,"value":24},{"type":45,"tag":789,"props":1421,"children":1423},{"className":1128,"code":1422,"language":8,"meta":794,"style":794},"datasource db {\n  provider = \"postgresql\"\n}\n\ngenerator client {\n  provider = \"prisma-client\"\n  output   = \"..\u002Fgenerated\"\n}\n",[1424],{"type":45,"tag":194,"props":1425,"children":1426},{"__ignoreMap":794},[1427,1435,1443,1450,1457,1464,1471,1479],{"type":45,"tag":800,"props":1428,"children":1429},{"class":802,"line":803},[1430],{"type":45,"tag":800,"props":1431,"children":1432},{},[1433],{"type":50,"value":1434},"datasource db {\n",{"type":45,"tag":800,"props":1436,"children":1437},{"class":802,"line":830},[1438],{"type":45,"tag":800,"props":1439,"children":1440},{},[1441],{"type":50,"value":1442},"  provider = \"postgresql\"\n",{"type":45,"tag":800,"props":1444,"children":1445},{"class":802,"line":30},[1446],{"type":45,"tag":800,"props":1447,"children":1448},{},[1449],{"type":50,"value":1165},{"type":45,"tag":800,"props":1451,"children":1452},{"class":802,"line":908},[1453],{"type":45,"tag":800,"props":1454,"children":1455},{"emptyLinePlaceholder":912},[1456],{"type":50,"value":915},{"type":45,"tag":800,"props":1458,"children":1459},{"class":802,"line":918},[1460],{"type":45,"tag":800,"props":1461,"children":1462},{},[1463],{"type":50,"value":1141},{"type":45,"tag":800,"props":1465,"children":1466},{"class":802,"line":1002},[1467],{"type":45,"tag":800,"props":1468,"children":1469},{},[1470],{"type":50,"value":1149},{"type":45,"tag":800,"props":1472,"children":1474},{"class":802,"line":1473},7,[1475],{"type":45,"tag":800,"props":1476,"children":1477},{},[1478],{"type":50,"value":1157},{"type":45,"tag":800,"props":1480,"children":1482},{"class":802,"line":1481},8,[1483],{"type":45,"tag":800,"props":1484,"children":1485},{},[1486],{"type":50,"value":1165},{"type":45,"tag":1416,"props":1488,"children":1489},{"id":14},[1490],{"type":50,"value":13},{"type":45,"tag":789,"props":1492,"children":1494},{"className":1128,"code":1493,"language":8,"meta":794,"style":794},"datasource db {\n  provider = \"mysql\"\n}\n\ngenerator client {\n  provider = \"prisma-client\"\n  output   = \"..\u002Fgenerated\"\n}\n",[1495],{"type":45,"tag":194,"props":1496,"children":1497},{"__ignoreMap":794},[1498,1505,1513,1520,1527,1534,1541,1548],{"type":45,"tag":800,"props":1499,"children":1500},{"class":802,"line":803},[1501],{"type":45,"tag":800,"props":1502,"children":1503},{},[1504],{"type":50,"value":1434},{"type":45,"tag":800,"props":1506,"children":1507},{"class":802,"line":830},[1508],{"type":45,"tag":800,"props":1509,"children":1510},{},[1511],{"type":50,"value":1512},"  provider = \"mysql\"\n",{"type":45,"tag":800,"props":1514,"children":1515},{"class":802,"line":30},[1516],{"type":45,"tag":800,"props":1517,"children":1518},{},[1519],{"type":50,"value":1165},{"type":45,"tag":800,"props":1521,"children":1522},{"class":802,"line":908},[1523],{"type":45,"tag":800,"props":1524,"children":1525},{"emptyLinePlaceholder":912},[1526],{"type":50,"value":915},{"type":45,"tag":800,"props":1528,"children":1529},{"class":802,"line":918},[1530],{"type":45,"tag":800,"props":1531,"children":1532},{},[1533],{"type":50,"value":1141},{"type":45,"tag":800,"props":1535,"children":1536},{"class":802,"line":1002},[1537],{"type":45,"tag":800,"props":1538,"children":1539},{},[1540],{"type":50,"value":1149},{"type":45,"tag":800,"props":1542,"children":1543},{"class":802,"line":1473},[1544],{"type":45,"tag":800,"props":1545,"children":1546},{},[1547],{"type":50,"value":1157},{"type":45,"tag":800,"props":1549,"children":1550},{"class":802,"line":1481},[1551],{"type":45,"tag":800,"props":1552,"children":1553},{},[1554],{"type":50,"value":1165},{"type":45,"tag":1416,"props":1556,"children":1557},{"id":359},[1558],{"type":50,"value":350},{"type":45,"tag":789,"props":1560,"children":1562},{"className":1128,"code":1561,"language":8,"meta":794,"style":794},"datasource db {\n  provider = \"sqlite\"\n}\n\ngenerator client {\n  provider = \"prisma-client\"\n  output   = \"..\u002Fgenerated\"\n}\n",[1563],{"type":45,"tag":194,"props":1564,"children":1565},{"__ignoreMap":794},[1566,1573,1581,1588,1595,1602,1609,1616],{"type":45,"tag":800,"props":1567,"children":1568},{"class":802,"line":803},[1569],{"type":45,"tag":800,"props":1570,"children":1571},{},[1572],{"type":50,"value":1434},{"type":45,"tag":800,"props":1574,"children":1575},{"class":802,"line":830},[1576],{"type":45,"tag":800,"props":1577,"children":1578},{},[1579],{"type":50,"value":1580},"  provider = \"sqlite\"\n",{"type":45,"tag":800,"props":1582,"children":1583},{"class":802,"line":30},[1584],{"type":45,"tag":800,"props":1585,"children":1586},{},[1587],{"type":50,"value":1165},{"type":45,"tag":800,"props":1589,"children":1590},{"class":802,"line":908},[1591],{"type":45,"tag":800,"props":1592,"children":1593},{"emptyLinePlaceholder":912},[1594],{"type":50,"value":915},{"type":45,"tag":800,"props":1596,"children":1597},{"class":802,"line":918},[1598],{"type":45,"tag":800,"props":1599,"children":1600},{},[1601],{"type":50,"value":1141},{"type":45,"tag":800,"props":1603,"children":1604},{"class":802,"line":1002},[1605],{"type":45,"tag":800,"props":1606,"children":1607},{},[1608],{"type":50,"value":1149},{"type":45,"tag":800,"props":1610,"children":1611},{"class":802,"line":1473},[1612],{"type":45,"tag":800,"props":1613,"children":1614},{},[1615],{"type":50,"value":1157},{"type":45,"tag":800,"props":1617,"children":1618},{"class":802,"line":1481},[1619],{"type":45,"tag":800,"props":1620,"children":1621},{},[1622],{"type":50,"value":1165},{"type":45,"tag":1416,"props":1624,"children":1625},{"id":381},[1626],{"type":50,"value":372},{"type":45,"tag":789,"props":1628,"children":1630},{"className":1128,"code":1629,"language":8,"meta":794,"style":794},"datasource db {\n  provider = \"mongodb\"\n  url      = env(\"DATABASE_URL\")\n}\n\ngenerator client {\n  provider = \"prisma-client-js\"\n}\n",[1631],{"type":45,"tag":194,"props":1632,"children":1633},{"__ignoreMap":794},[1634,1641,1649,1657,1664,1671,1678,1686],{"type":45,"tag":800,"props":1635,"children":1636},{"class":802,"line":803},[1637],{"type":45,"tag":800,"props":1638,"children":1639},{},[1640],{"type":50,"value":1434},{"type":45,"tag":800,"props":1642,"children":1643},{"class":802,"line":830},[1644],{"type":45,"tag":800,"props":1645,"children":1646},{},[1647],{"type":50,"value":1648},"  provider = \"mongodb\"\n",{"type":45,"tag":800,"props":1650,"children":1651},{"class":802,"line":30},[1652],{"type":45,"tag":800,"props":1653,"children":1654},{},[1655],{"type":50,"value":1656},"  url      = env(\"DATABASE_URL\")\n",{"type":45,"tag":800,"props":1658,"children":1659},{"class":802,"line":908},[1660],{"type":45,"tag":800,"props":1661,"children":1662},{},[1663],{"type":50,"value":1165},{"type":45,"tag":800,"props":1665,"children":1666},{"class":802,"line":918},[1667],{"type":45,"tag":800,"props":1668,"children":1669},{"emptyLinePlaceholder":912},[1670],{"type":50,"value":915},{"type":45,"tag":800,"props":1672,"children":1673},{"class":802,"line":1002},[1674],{"type":45,"tag":800,"props":1675,"children":1676},{},[1677],{"type":50,"value":1141},{"type":45,"tag":800,"props":1679,"children":1680},{"class":802,"line":1473},[1681],{"type":45,"tag":800,"props":1682,"children":1683},{},[1684],{"type":50,"value":1685},"  provider = \"prisma-client-js\"\n",{"type":45,"tag":800,"props":1687,"children":1688},{"class":802,"line":1481},[1689],{"type":45,"tag":800,"props":1690,"children":1691},{},[1692],{"type":50,"value":1165},{"type":45,"tag":53,"props":1694,"children":1695},{},[1696,1698,1704,1706,1712],{"type":50,"value":1697},"For MongoDB, stay on the latest Prisma 6.x line and keep the connection URL in ",{"type":45,"tag":194,"props":1699,"children":1701},{"className":1700},[],[1702],{"type":50,"value":1703},"schema.prisma",{"type":50,"value":1705},". Do not move a MongoDB project to the Prisma 7 SQL adapter setup. If a MongoDB project asks about upgrading Prisma versions, route to the ",{"type":45,"tag":194,"props":1707,"children":1709},{"className":1708},[],[1710],{"type":50,"value":1711},"prisma-mongodb-upgrade",{"type":50,"value":1713}," skill (stay-on-v6 vs Prisma Next is the real decision; Prisma 7 is not an option).",{"type":45,"tag":59,"props":1715,"children":1717},{"id":1716},"rule-files",[1718],{"type":50,"value":1719},"Rule Files",{"type":45,"tag":53,"props":1721,"children":1722},{},[1723],{"type":50,"value":1724},"See individual rule files for detailed setup instructions:",{"type":45,"tag":789,"props":1726,"children":1730},{"className":1727,"code":1729,"language":50},[1728],"language-text","references\u002Fpostgresql.md\nreferences\u002Fmysql.md\nreferences\u002Fsqlite.md\nreferences\u002Fmongodb.md\nreferences\u002Fsqlserver.md\nreferences\u002Fcockroachdb.md\nreferences\u002Fprisma-postgres.md\nreferences\u002Fprisma-client-setup.md\n",[1731],{"type":45,"tag":194,"props":1732,"children":1733},{"__ignoreMap":794},[1734],{"type":50,"value":1729},{"type":45,"tag":59,"props":1736,"children":1738},{"id":1737},"how-to-use",[1739],{"type":50,"value":1740},"How to Use",{"type":45,"tag":53,"props":1742,"children":1743},{},[1744,1746,1752,1754,1760],{"type":50,"value":1745},"Choose the provider reference file for your database, then apply ",{"type":45,"tag":194,"props":1747,"children":1749},{"className":1748},[],[1750],{"type":50,"value":1751},"references\u002Fprisma-client-setup.md",{"type":50,"value":1753}," to complete client generation and adapter setup. For MongoDB, use ",{"type":45,"tag":194,"props":1755,"children":1757},{"className":1756},[],[1758],{"type":50,"value":1759},"references\u002Fmongodb.md",{"type":50,"value":1761}," instead of copying the SQL adapter examples or Prisma 7 config pattern.",{"type":45,"tag":1763,"props":1764,"children":1765},"style",{},[1766],{"type":50,"value":1767},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1769,"total":1862},[1770,1786,1801,1816,1824,1838,1849],{"slug":1771,"name":1771,"fn":1772,"description":1773,"org":1774,"tags":1775,"stars":26,"repoUrl":27,"updatedAt":1785},"prisma-cli","run Prisma CLI commands","Prisma ORM CLI commands reference covering init, generate, migrate, db, dev, studio, validate, format, debug, and mcp. Use for ORM\u002Fdatabase CLI workflows, not Prisma Compute app deployment. For Prisma Compute, `@prisma\u002Fcli app deploy`, `compute:deploy`, `create-prisma --deploy`, apps, deployments, logs, or domains, use the `prisma-compute` skill instead. Triggers on \"prisma init\", \"prisma generate\", \"prisma migrate\", \"prisma db\", \"prisma studio\", \"prisma mcp\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1776,1779,1780,1783,1784],{"name":1777,"slug":1778,"type":15},"CLI","cli",{"name":17,"slug":18,"type":15},{"name":1781,"slug":1782,"type":15},"Migration","migration",{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:48:29.140467",{"slug":1787,"name":1787,"fn":1788,"description":1789,"org":1790,"tags":1791,"stars":26,"repoUrl":27,"updatedAt":1800},"prisma-client-api","write database queries with Prisma Client","Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on \"prisma query\", \"findMany\", \"create\", \"update\", \"delete\", \"$transaction\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1792,1795,1796,1797,1798],{"name":1793,"slug":1794,"type":15},"API Development","api-development",{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":1799,"slug":1204,"type":15},"TypeScript","2026-04-06T18:48:31.666695",{"slug":1802,"name":1802,"fn":1803,"description":1804,"org":1805,"tags":1806,"stars":26,"repoUrl":27,"updatedAt":1815},"prisma-compute","deploy and host Prisma applications","Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a Prisma app, `@prisma\u002Fcli app deploy`, `compute:deploy`, `create-prisma --deploy`, `PRISMA_SERVICE_TOKEN`, `auth workspace`, Compute apps\u002Fdeployments\u002Fbuild logs\u002Fdomains, `@prisma\u002Fcli agent install`, `@prisma\u002Fcli feedback`, localhost vs `0.0.0.0`, deploy port binding, or framework deploy readiness for Hono, Elysia, Next.js, TanStack Start, Astro, Nuxt, Svelte, Nest, Turborepo, or custom\u002Fprebuilt artifacts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1807,1810,1811,1812],{"name":1808,"slug":1809,"type":15},"Deployment","deployment",{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":1813,"slug":1814,"type":15},"Serverless","serverless","2026-07-17T05:31:53.370495",{"slug":4,"name":4,"fn":5,"description":6,"org":1817,"tags":1818,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1819,1820,1821,1822,1823],{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},{"name":20,"slug":21,"type":15},{"name":24,"slug":25,"type":15},{"name":9,"slug":8,"type":15},{"slug":1825,"name":1825,"fn":1826,"description":1827,"org":1828,"tags":1829,"stars":26,"repoUrl":27,"updatedAt":1837},"prisma-driver-adapter-implementation","implement Prisma driver adapters","Required reference for Prisma v7 driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter\u002FTransaction interfaces. Contains critical contract details not inferable from code examples — including the transaction lifecycle protocol, error mapping requirements, and verification checklist. Existing implementations do not replace this skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1830,1831,1834,1835,1836],{"name":17,"slug":18,"type":15},{"name":1832,"slug":1833,"type":15},"Engineering","engineering",{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":1799,"slug":1204,"type":15},"2026-04-06T18:48:35.478693",{"slug":1711,"name":1711,"fn":1839,"description":1840,"org":1841,"tags":1842,"stars":26,"repoUrl":27,"updatedAt":1848},"migrate Prisma MongoDB projects to v6","Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when \"upgrade to prisma 7\" comes up in a project with provider = \"mongodb\", or when evaluating a move to Prisma Next. Triggers on \"upgrade prisma mongodb\", \"prisma 7 mongodb\", \"mongodb prisma migration\", \"prisma next mongodb\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1843,1844,1845,1846,1847],{"name":17,"slug":18,"type":15},{"name":1781,"slug":1782,"type":15},{"name":372,"slug":381,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},"2026-07-11T05:35:03.668013",{"slug":199,"name":199,"fn":1850,"description":1851,"org":1852,"tags":1853,"stars":26,"repoUrl":27,"updatedAt":1861},"manage Prisma Postgres databases","Prisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK. Use when creating Prisma Postgres databases, working in Prisma Console, provisioning with create-db\u002Fcreate-pg\u002Fcreate-postgres, or integrating programmatic provisioning with service tokens or OAuth.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1854,1855,1856,1857,1858],{"name":1777,"slug":1778,"type":15},{"name":17,"slug":18,"type":15},{"name":24,"slug":25,"type":15},{"name":9,"slug":8,"type":15},{"name":1859,"slug":1860,"type":15},"SDK","sdk","2026-07-17T05:31:52.398028",9,{"items":1864,"total":2020},[1865,1880,1893,1906,1919,1933,1949,1960,1974,1985,1996,2012],{"slug":1866,"name":1866,"fn":1867,"description":1868,"org":1869,"tags":1870,"stars":1877,"repoUrl":1878,"updatedAt":1879},"prisma-next","guide Prisma Next project setup and usage","Route a vague Prisma Next prompt to the right specific skill. Use for \"help me with Prisma Next\", \"what is Prisma Next\", \"explain Prisma Next\", \"I'm new to PN\", \"where do I start\", \"what can I do with Prisma Next\", \"what can I do next with Prisma\", \"just ran createprisma\", \"tour of Prisma Next\", \"Prisma Next overview\", and comparison questions like \"Prisma Next vs Prisma 7\", \"PN vs Drizzle\", \"PN vs Kysely\", \"PN vs TypeORM\". Do NOT use when the prompt clearly matches a workflow skill — adoption \u002F quickstart \u002F first-touch orientation \u002F brownfield introspection, schema \u002F contract editing, migration authoring (db update \u002F migration plan \u002F migrate), migration review on deploy \u002F concurrent migrations, queries \u002F db.orm \u002F db.sql \u002F TypedSQL, Supabase \u002F RLS \u002F role binding, runtime \u002F db.ts \u002F middleware wiring, build \u002F Vite plugin \u002F Next.js plugin, debug \u002F structured error envelopes \u002F PN-* error codes, or feedback \u002F bug report \u002F feature request — load that sibling skill directly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1871,1872,1875,1876],{"name":17,"slug":18,"type":15},{"name":1873,"slug":1874,"type":15},"Next.js","next-js",{"name":9,"slug":8,"type":15},{"name":1799,"slug":1204,"type":15},415,"https:\u002F\u002Fgithub.com\u002Fprisma\u002Fprisma-next","2026-07-17T05:32:04.322957",{"slug":1881,"name":1881,"fn":1882,"description":1883,"org":1884,"tags":1885,"stars":1877,"repoUrl":1878,"updatedAt":1892},"prisma-next-build","integrate Prisma Next into build systems","Wire Prisma Next into the project's build system with the right build-tool plugin — Vite today via @prisma-next\u002Fvite-plugin-contract-emit (Vite 7 \u002F 8); Next.js \u002F Webpack \u002F esbuild \u002F Rollup \u002F Turbopack are named as gaps rather than fabricated. Always offers the Vite plugin proactively when the project is using Vite. Use for vite plugin, vite-plugin, vite.config.ts, prismaVitePlugin, contract emit on save, HMR, hot reload contract, dev server, Next.js plugin, next plugin, withPrismaNext, webpack plugin, esbuild plugin, rollup plugin, build integration, dev server plugin, vite 7, vite 8.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1886,1887,1888,1889],{"name":1808,"slug":1809,"type":15},{"name":1873,"slug":1874,"type":15},{"name":9,"slug":8,"type":15},{"name":1890,"slug":1891,"type":15},"Vite","vite","2026-07-02T07:31:36.108254",{"slug":1894,"name":1894,"fn":1895,"description":1896,"org":1897,"tags":1898,"stars":1877,"repoUrl":1878,"updatedAt":1905},"prisma-next-contract","edit Prisma Next data contracts and models","Edit the Prisma Next data contract — add models, fields, relations, indexes, enums, value objects (composite types), type aliases, namespaces (Postgres schemas), cross-contract foreign keys (cross-space FK), polymorphic types (`@@discriminator` \u002F `@@base`), use extension namespaces (`pgvector.Vector(...)`, `cipherstash.EncryptedString(...)`), wire `prisma-next.config.ts` with `defineConfig` from the `@prisma-next\u002F\u003Ctarget>\u002Fconfig` façade, and run `prisma-next contract emit`. Use for schema, models, fields, attributes, soft delete, paranoid, scopes, validations, callbacks, prisma schema, PSL, contract.prisma, contract.ts, contract.json, contract.d.ts, `@prisma-next\u002Fpostgres\u002Fconfig`, `@prisma-next\u002Fpostgres\u002Fcontract-builder`, `@prisma-next\u002Fpostgres\u002Fcontrol`, `@prisma-next\u002Fmongo\u002Fconfig`, `@prisma-next\u002Fmongo\u002Fcontract-builder`, `extensions:`, pgvector, cipherstash, postgis, paradedb, supabase, `@prisma-next\u002Fextension-supabase`, `@@control`, control policy, managed, tolerated, external, observed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1899,1902,1903,1904],{"name":1900,"slug":1901,"type":15},"Data Modeling","data-modeling",{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":1799,"slug":1204,"type":15},"2026-07-30T05:30:10.426962",{"slug":1907,"name":1907,"fn":1908,"description":1909,"org":1910,"tags":1911,"stars":1877,"repoUrl":1878,"updatedAt":1918},"prisma-next-debug","debug and recover from Prisma Next errors","Read a Prisma Next structured error envelope and route to the right recovery — code, domain, severity, why, fix, meta. Use for error, exception, my emit failed, my query won't typecheck, my query crashed, my migration won't apply, MIGRATION.HASH_MISMATCH, BUDGET.ROWS_EXCEEDED, BUDGET.TIME_EXCEEDED, RUNTIME.ABORTED, PLAN.HASH_MISMATCH, CONTRACT.MARKER_MISSING, PN-RUN-3001, PN-RUN-3002, PN-RUN-3030, PN-MIG-2001, PN-CLI-4011, PN-SCHEMA-0001, drift, capability missing, planner conflict, prisma studio, EXPLAIN, query log, db.end, db.close, script won't exit, hangs, close connection, pool.end, client is closed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1912,1913,1916,1917],{"name":17,"slug":18,"type":15},{"name":1914,"slug":1915,"type":15},"Debugging","debugging",{"name":1873,"slug":1874,"type":15},{"name":9,"slug":8,"type":15},"2026-07-24T05:37:10.436314",{"slug":1920,"name":1920,"fn":1921,"description":1922,"org":1923,"tags":1924,"stars":1877,"repoUrl":1878,"updatedAt":1932},"prisma-next-feedback","report Prisma Next issues and feedback","Hand a Prisma Next question or report off to the team — file a GitHub issue (bug or feature request), or route Q&A \u002F design discussion \u002F direct-team-contact to the Prisma Discord at pris.ly\u002Fdiscord. Use for bug, bug report, file an issue, report a bug, feature request, missing feature, this should be a feature, file this, this is a bug, this is broken, surprising behaviour, this doesn't work, file feedback, send feedback, capability gap, file via prisma-next-feedback, ask the team, talk to the team, talk to the Prisma team, talk to Prisma, Discord, Prisma Discord, Q&A, design feedback, is this the intended way, how should I do X, extension author question, extension author needs help.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1925,1928,1931],{"name":1926,"slug":1927,"type":15},"Documentation","documentation",{"name":1929,"slug":1930,"type":15},"GitHub","github",{"name":9,"slug":8,"type":15},"2026-07-02T07:31:34.870809",{"slug":1934,"name":1934,"fn":1935,"description":1936,"org":1937,"tags":1938,"stars":1877,"repoUrl":1878,"updatedAt":1948},"prisma-next-migration-review","review and resolve Prisma Next migrations","Review what Prisma Next migrations will run on merge or deploy, render the migration graph, resolve concurrent \u002F diamond-convergence conflicts, and configure environment refs for CI. Use for \"what migrations are going to run\", \"what runs on deploy\", merge conflict, diamond convergence, concurrent migrations, migration status, ref management, staging, production, MIGRATION.DIVERGED, MIGRATION.NO_MARKER, MIGRATION.MARKER_NOT_IN_HISTORY, prisma migrate status, prisma migrate diff, prisma migrate resolve.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1939,1942,1945,1946,1947],{"name":1940,"slug":1941,"type":15},"CI\u002FCD","ci-cd",{"name":1943,"slug":1944,"type":15},"Code Review","code-review",{"name":17,"slug":18,"type":15},{"name":1781,"slug":1782,"type":15},{"name":9,"slug":8,"type":15},"2026-07-24T05:37:11.422323",{"slug":1950,"name":1950,"fn":1951,"description":1952,"org":1953,"tags":1954,"stars":1877,"repoUrl":1878,"updatedAt":1959},"prisma-next-migrations","author and manage Prisma Next migrations","Author Prisma Next migrations — choose db update vs migration plan, edit the framework-rendered migration.ts (replace placeholder sentinels with dataTransform closures), recover from MIGRATION.HASH_MISMATCH or PN-MIG-2001 unfilled placeholder. Use for prisma migrate dev, prisma migrate deploy, prisma db push, db update, db update --dry-run, migration plan, migrate, migration new, migration show, db verify, db sign, data migration, this.dataTransform, dataTransform, placeholder, generated migration.ts, edit migration.ts, MIGRATION.HASH_MISMATCH, schema drift.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1955,1956,1957,1958],{"name":17,"slug":18,"type":15},{"name":1781,"slug":1782,"type":15},{"name":9,"slug":8,"type":15},{"name":1799,"slug":1204,"type":15},"2026-07-24T05:37:13.469138",{"slug":1961,"name":1961,"fn":1962,"description":1963,"org":1964,"tags":1965,"stars":1877,"repoUrl":1878,"updatedAt":1973},"prisma-next-queries","write Prisma Next queries for database operations","Write Prisma Next queries for Postgres, SQLite, or Mongo — pick a lane (Postgres\u002FSQLite `db.orm.\u003CModel>` + `db.sql.\u003Ctable>`; Mongo `db.orm.\u003Croot>` + `db.query.from(...)` pipeline builder), filter \u002F project \u002F sort \u002F paginate, eager-load with `.include(...)`, Postgres\u002FSQLite `db.transaction(...)`, Postgres\u002FSQLite ORM `.aggregate(...)`, Mongo aggregations via query builder, namespace-aware accessors (`db.orm.\u003Cns>.\u003CModel>`, `db.sql.\u003Cns>.\u003Ctable>`). Triggers: query, where, match, select, project, orderBy, take, skip, include, lookup, first, all, count, aggregate, group, create, update, delete, upsert, returning, transaction, db.close, script teardown, variant, polymorphism, drizzle-style, kysely-style. Notes: `.all()` is a Thenable (just `await` it), iterators are single-use (`RUNTIME.ITERATOR_CONSUMED`), Postgres `count` is `number` while sum\u002Favg\u002Fmin\u002Fmax are `number | null`, ranges use chained `.where()` or `and(...)` (no `.between(...)`).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1966,1967,1968,1969,1970],{"name":17,"slug":18,"type":15},{"name":1873,"slug":1874,"type":15},{"name":24,"slug":25,"type":15},{"name":9,"slug":8,"type":15},{"name":1971,"slug":1972,"type":15},"SQL","sql","2026-07-17T05:32:03.35373",{"slug":1975,"name":1975,"fn":1976,"description":1977,"org":1978,"tags":1979,"stars":1877,"repoUrl":1878,"updatedAt":1984},"prisma-next-quickstart","adopt Prisma Next in projects","Adopt Prisma Next into a new project, onto an existing database, or as the first move after a bootstrap tool dropped you into a scaffold. Use for \"what can I do with Prisma Next\", \"what can I do next with Prisma\", \"where do I start\", \"what should I do first\", \"just ran createprisma\", \"createprisma\", \"npx createprisma\", \"npx create-prisma\", \"first steps\", \"first query\", \"I have a scaffolded Prisma Next project what now\"; for `pnpm dlx prisma-next init` greenfield setup; and for `prisma-next contract infer` + `db sign` against an existing database. Also covers the connect-write-read first-arc orientation, the day-to-day commands (`contract emit`, `db init`, `db update`, `migration plan`, `migrate`, `db schema`, `db verify`), and routing to `prisma-next-contract` \u002F `prisma-next-queries` \u002F `prisma-next-runtime` for the next move. Flags: --target, --authoring, --schema-path, --probe-db, --output.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1980,1981,1982,1983],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":1799,"slug":1204,"type":15},"2026-07-24T05:37:12.462072",{"slug":1986,"name":1986,"fn":1987,"description":1988,"org":1989,"tags":1990,"stars":1877,"repoUrl":1878,"updatedAt":1995},"prisma-next-runtime","configure Prisma Next runtime and database connections","Wire the Prisma Next runtime — `db.ts` setup using `postgres\u003CContract>(...)` from `@prisma-next\u002Fpostgres\u002Fruntime`, `sqlite\u003CContract>(...)` from `@prisma-next\u002Fsqlite\u002Fruntime`, or `mongo\u003CContract>(...)` from `@prisma-next\u002Fmongo\u002Fruntime`; middleware composition (telemetry from `@prisma-next\u002Fmiddleware-telemetry`; lints and budgets), `DATABASE_URL` config, per-environment branching, switching between Postgres, SQLite, and Mongo façades. Use for db.ts, postgres(), sqlite(), mongo(), middleware, telemetry, lints, budgets, DATABASE_URL, .env, connection pool, poolOptions, dev vs prod config, transactions, db.transaction, read replicas, multi-database, script won't exit, hangs, close connection, db.end, db.close, pool.end, [Symbol.asyncDispose], await using.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1991,1992,1993,1994],{"name":17,"slug":18,"type":15},{"name":1873,"slug":1874,"type":15},{"name":24,"slug":25,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T05:32:05.347316",{"slug":1997,"name":1997,"fn":1998,"description":1999,"org":2000,"tags":2001,"stars":1877,"repoUrl":1878,"updatedAt":2011},"prisma-next-supabase","integrate Prisma with Supabase","Use Prisma Next with a Supabase project via `@prisma-next\u002Fextension-supabase` — wire `extensions: [supabasePack]`, declare cross-space FKs to `supabase:auth.AuthUser`, author RLS policies (`policy_select` \u002F `policy_update` \u002F `@@rls`, `auth.uid()` predicates), build `db.ts` with the `supabase()` factory, bind roles per request (`asUser(jwt)` \u002F `asAnon()` \u002F `asServiceRole()`), query `auth.*` \u002F `storage.*` via the `db.asServiceRole().supabase` admin root, and validate JWTs (`jwksUrl` for current projects \u002F `jwtSecret` for legacy HS256). Use for supabase, RLS, row level security, policy, role binding, anon, authenticated, service_role, auth.users, auth.uid(), JWT, JWKS, SUPABASE_JWKS_URL, SUPABASE_JWT_SECRET, SUPABASE.JWT_INVALID, SUPABASE.CONFIG_INVALID, RoleBoundDb, session pooler, supabase:auth.AuthUser, @prisma-next\u002Fextension-supabase.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2002,2005,2006,2007,2008],{"name":2003,"slug":2004,"type":15},"Auth","auth",{"name":20,"slug":21,"type":15},{"name":24,"slug":25,"type":15},{"name":9,"slug":8,"type":15},{"name":2009,"slug":2010,"type":15},"Supabase","supabase","2026-07-30T05:30:11.065251",{"slug":1771,"name":1771,"fn":1772,"description":1773,"org":2013,"tags":2014,"stars":26,"repoUrl":27,"updatedAt":1785},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2015,2016,2017,2018,2019],{"name":1777,"slug":1778,"type":15},{"name":17,"slug":18,"type":15},{"name":1781,"slug":1782,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},21]