目录 / prisma-next-contract
prisma-next-contract
编辑 Prisma Next 数据契约 —— 添加模型、字段、关系、索引、枚举、值对象(复合类型)、类型别名、命名空间(Postgres 模式)、跨契约外键(跨空间外键)、多态类型(`@@discriminator` / `@@base`),使用扩展命名空间(如 `pgvector.Vector(...)`、`cipherstash.EncryptedString(...)`),通过 `@prisma-next/<target>/config` 外观中的 `defineConfig` 连接 `prisma-next.config.ts`,并运行 `prisma-next contract emit`。适用于 schema、模型、字段、属性、软删除、防删除(paranoid)、作用域(scopes)、验证、回调、Prisma schema、PSL、contract.prisma、contract.ts、contract.json、contract.d.ts、`@prisma-next/postgres/config`、`@prisma-next/postgres/contract-builder`、`@prisma-next/postgres/control`、`@prisma-next/mongo/config`、`@prisma-next/mongo/contract-builder`、`extensions:`、pgvector、cipherstash、postgis、paradedb、supabase、`@prisma-next/extension-supabase`、`@@control`、控制策略(control policy)、托管(managed)、容忍(tolerated)、外部(external)、观察(observed)。
这是模型对公开材料的总结,不是官方声明,请以原链内容为准。
存档时间线
| 版本 | 存档时间 | 内容哈希 | 内容 |
|---|---|---|---|
| v1 | 2026-11-05 05:47 | c67a83fd | 可取 |
版本索引永久保留;内容副本只保留最新 1 份,更早版本仅留索引与哈希(存档时间线的证据链不会因此断裂)。
提交举报 / 纠错
侵权举报经核验成立后,我们会即时下线该条目并删除已存的内容副本。