Skip to main content
在 Manus 中运行任何 Skill
一键导入

prisma-patterns

星标2
分支0
更新时间2026年7月9日 00:38

Production patterns and footgun avoidance for the Prisma ORM in TypeScript backends: schema and index design, ID strategy, include-vs-select and DTO mapping, transaction form selection, the PrismaClient singleton, cursor pagination, soft delete, typed error translation, and serverless connection pooling. Emphasises the non-obvious traps that silently corrupt data or exhaust connections — updateMany/deleteMany returning a count instead of rows, the interactive $transaction 5-second timeout, `migrate dev` resetting the database, @updatedAt skipping bulk writes, edited migration files breaking checksums, and where soft delete leaks through *OrThrow reads. Use when designing Prisma schema, writing queries or transactions, running migrations, or deploying to serverless runtimes.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly