Loading...
Loading...
Compare original and translation side by side
Edit your data contract. Prisma handles the rest.
metadata.library_versionprisma skills sync编辑你的数据契约。其余工作由Prisma处理。
metadata.library_versionprisma skills synccontract.prismacontract.jsoncontract.d.tsdb.sql.<ns>.<table>db.orm.<ns>.<Model>db.orm.usersreferences/queries.mdmigration.tsreferences/contract.mdreferences/migrations.mdmigration.tsreferences/migrations.mdmigration plan--fromdbMIGRATION.PLAN_ORIGIN_UNKNOWN--from @emptyreferences/migration-model.mdcontract.prismacontract.jsoncontract.d.tsdb.sql.<ns>.<table>db.orm.<ns>.<Model>db.orm.usersreferences/queries.mdmigration.tsreferences/contract.mdreferences/migrations.mdmigration.tsreferences/migrations.mdmigration plan--fromdbMIGRATION.PLAN_ORIGIN_UNKNOWN--from @emptyreferences/migration-model.md| Task | Reference | Triggers |
|---|---|---|
| Adopt / set up / first steps | | new project, existing database, "what can I do with Prisma Next", "where do I start", "just ran createprisma", |
| Edit the data contract | | schema, models, fields, attributes, relations, indexes, enums, value objects (composite types), type aliases, namespaces (Postgres schemas), cross-contract foreign keys (cross-space FK), polymorphic types ( |
| Author migrations | | |
| Migration graph, refs, plan origin | | migration graph, refs, |
| Review migrations on deploy | | "what migrations are going to run", "what runs on deploy / merge", merge conflict, diamond convergence, concurrent migrations, migration status, ref management for CI, staging / production environment refs, |
| Write queries | | query, where, select, project, orderBy, limit, offset, take, skip, include, lookup, first, all, count, aggregate, groupBy, create, update, delete, upsert, returning, transaction, |
| Wire the runtime | | |
| Build-tool integration | | Vite plugin ( |
| Supabase | | |
| Debug an error | | any structured error envelope (code, domain, severity, why, fix, meta), emit failed, query won't typecheck, query crashed, migration won't apply, |
| Upgrade Prisma in an app | | "upgrade Prisma", "upgrade Prisma Next", "bump Prisma Next", "move to Prisma Next X.Y", |
| Upgrade Prisma in an extension | | the same request in a package that is a Prisma extension ( |
| File feedback / ask the team | | bug report, file an issue, feature request, missing feature, capability gap, "this is broken", surprising behaviour, Q&A / design discussion, ask the Prisma team, Prisma Discord (pris.ly/discord), extension-author questions |
| 任务 | 参考文件 | 触发条件 |
|---|---|---|
| 采用/设置/初始步骤 | | 新项目、现有数据库、“我可以用Prisma Next做什么”、“我从哪里开始”、“刚运行createprisma”、 |
| 编辑数据契约 | | schema、模型、字段、属性、关联关系、索引、枚举、值对象(复合类型)、类型别名、命名空间(Postgres模式)、跨契约外键(跨空间FK)、多态类型( |
| 编写迁移脚本 | | |
| 迁移图、引用、规划起点 | | 迁移图、引用、 |
| 部署时审查迁移 | | “将要执行哪些迁移”、“部署/合并时会运行什么”、合并冲突、菱形收敛、并发迁移、迁移状态、CI环境的引用管理、预发布/生产环境引用、 |
| 编写查询语句 | | 查询、where、select、project、orderBy、limit、offset、take、skip、include、lookup、first、all、count、aggregate、groupBy、create、update、delete、upsert、returning、事务、 |
| 配置运行时 | | |
| 构建工具集成 | | Vite插件( |
| Supabase | | |
| 调试错误 | | 任何结构化错误包(代码、领域、严重程度、原因、修复方案、元数据)、生成失败、查询无法通过类型检查、查询崩溃、迁移无法执行、 |
| 在应用中升级Prisma | | “升级Prisma”、“升级Prisma Next”、“更新Prisma Next版本”、“迁移至Prisma Next X.Y”、应用中 |
| 在扩展包中升级Prisma | | 在Prisma扩展包(依赖 |
| 提交反馈/咨询团队 | | 错误报告、提交Issue、功能请求、功能缺失、功能缺口、“这部分坏了”、意外行为、问答/设计讨论、咨询Prisma团队、Prisma Discord(pris.ly/discord)、扩展包开发者问题 |
references/quickstart.mdreferences/quickstart.mdreferences/contract.mdreferences/migrations.mdreferences/migration-review.mdreferences/migration-model.mddb.tsreferences/build.mdreferences/runtime.mdreferences/debug.mdreferences/feedback.mdreferences/upgrade-app.mdreferences/upgrade-extension.mdreferences/quickstart.mdreferences/quickstart.mdreferences/contract.mdreferences/migrations.mdreferences/migration-review.mdreferences/migration-model.mddb.tsreferences/build.mdreferences/runtime.mdreferences/debug.mdreferences/feedback.mdreferences/upgrade-app.mdreferences/upgrade-extension.mdreferences/feedback.mdreferences/feedback.md