@prisma/orm-toolchain 8.0.0-rc.1-dev.46 → 8.0.0-rc.10-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/dist/{aggregate-CPZB020V.mjs → aggregate-B4HKshLQ.mjs} +10 -10
- package/dist/aggregate-B4HKshLQ.mjs.map +1 -0
- package/dist/{aggregate-DLUJLq5Y.d.mts → aggregate-D_eX4zoo.d.mts} +3 -3
- package/dist/{aggregate-DLUJLq5Y.d.mts.map → aggregate-D_eX4zoo.d.mts.map} +1 -1
- package/dist/cli-telemetry.d.mts +8 -7
- package/dist/cli-telemetry.d.mts.map +1 -1
- package/dist/cli-telemetry.mjs +22 -24
- package/dist/cli-telemetry.mjs.map +1 -1
- package/dist/cli.d.mts +2 -6
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +447 -430
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +20 -11
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/cli__init-output.mjs +1 -1
- package/dist/cli__migration-cli.mjs +6 -6
- package/dist/cli__migration-cli.mjs.map +1 -1
- package/dist/config-loader.d.mts +1 -1
- package/dist/config-loader.mjs +1 -1
- package/dist/{contract-snapshot-store-B0G1Fw_F-CHc4QfKb.mjs → contract-snapshot-store-qGrwlGmt-Cf2NFzRL.mjs} +3 -3
- package/dist/{contract-snapshot-store-B0G1Fw_F-CHc4QfKb.mjs.map → contract-snapshot-store-qGrwlGmt-Cf2NFzRL.mjs.map} +1 -1
- package/dist/{db-verify-BwgNK50T-DGvKgFCK.d.mts → db-verify-Yih5kWtB-B1kv76ec.d.mts} +5 -5
- package/dist/{db-verify-BwgNK50T-DGvKgFCK.d.mts.map → db-verify-Yih5kWtB-B1kv76ec.d.mts.map} +1 -1
- package/dist/{domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs → domain-type-generation-CR9ECUau-DOlKbcaE.mjs} +20 -6
- package/dist/domain-type-generation-CR9ECUau-DOlKbcaE.mjs.map +1 -0
- package/dist/{domain-type-generation-PkAb39ob-Ct8AGqow.d.mts → domain-type-generation-X6-AaL1U-DHEoRf_y.d.mts} +14 -3
- package/dist/domain-type-generation-X6-AaL1U-DHEoRf_y.d.mts.map +1 -0
- package/dist/emitter.d.mts +2 -2
- package/dist/emitter.mjs +2 -2
- package/dist/emitter__domain-type-generation.d.mts +2 -2
- package/dist/emitter__domain-type-generation.mjs +2 -2
- package/dist/{errors-CXbGUWGu-CstQHPh6.mjs → errors-SoLLYLtw-DMxVbVs9.mjs} +9 -9
- package/dist/errors-SoLLYLtw-DMxVbVs9.mjs.map +1 -0
- package/dist/{exports-BZaG8_w_.mjs → exports-BXXeNWlj.mjs} +25 -47
- package/dist/exports-BXXeNWlj.mjs.map +1 -0
- package/dist/exports-CE6OD63o-4Qpqr2W7.mjs +398 -0
- package/dist/exports-CE6OD63o-4Qpqr2W7.mjs.map +1 -0
- package/dist/{exports-8ZUN43ve.mjs → exports-CYa2di3d.mjs} +382 -22
- package/dist/exports-CYa2di3d.mjs.map +1 -0
- package/dist/{graph-membership-BViWUMpP-C4lYYJdU.mjs → graph-membership-DY1Onbc3-CwBd6wuB.mjs} +3 -3
- package/dist/{graph-membership-BViWUMpP-C4lYYJdU.mjs.map → graph-membership-DY1Onbc3-CwBd6wuB.mjs.map} +1 -1
- package/dist/{import-roots-CfoYgejL.d.mts → import-roots-ARK1wjzc.d.mts} +3 -3
- package/dist/{import-roots-CfoYgejL.d.mts.map → import-roots-ARK1wjzc.d.mts.map} +1 -1
- package/dist/{import-roots-CNFBPAT1.mjs → import-roots-BHOrDJbI.mjs} +5 -5
- package/dist/import-roots-BHOrDJbI.mjs.map +1 -0
- package/dist/{index-Dgwl8Tzs.d.mts → index-D217lbiW.d.mts} +7 -3
- package/dist/index-D217lbiW.d.mts.map +1 -0
- package/dist/{index-DRs7L6N0.d.mts → index-u5RdrumF.d.mts} +2 -19
- package/dist/index-u5RdrumF.d.mts.map +1 -0
- package/dist/{invariants-CTHy88OP-CYI2a8IO.mjs → invariants-Cww4bv0v-BEiFxmbX.mjs} +3 -3
- package/dist/{invariants-CTHy88OP-CYI2a8IO.mjs.map → invariants-Cww4bv0v-BEiFxmbX.mjs.map} +1 -1
- package/dist/{io-635GlNx1-D3zrw2qu.mjs → io-BmWQNxRP-DQqbcPsS.mjs} +5 -5
- package/dist/{io-635GlNx1-D3zrw2qu.mjs.map → io-BmWQNxRP-DQqbcPsS.mjs.map} +1 -1
- package/dist/{migration-hspPIEeV.mjs → migration-B9w-7dKe.mjs} +4 -4
- package/dist/{migration-hspPIEeV.mjs.map → migration-B9w-7dKe.mjs.map} +1 -1
- package/dist/{migration-graph-_SJImD5V-BURyY1KM.mjs → migration-graph-CW4bMmTz-B5xFtFVB.mjs} +3 -3
- package/dist/{migration-graph-_SJImD5V-BURyY1KM.mjs.map → migration-graph-CW4bMmTz-B5xFtFVB.mjs.map} +1 -1
- package/dist/migration-tools.d.mts +3 -3
- package/dist/migration-tools.mjs +12 -12
- package/dist/migration-tools__aggregate.d.mts +1 -1
- package/dist/migration-tools__aggregate.mjs +1 -1
- package/dist/migration-tools__contract-snapshot-store.mjs +1 -1
- package/dist/migration-tools__errors.mjs +1 -1
- package/dist/migration-tools__invariants.mjs +1 -1
- package/dist/migration-tools__io.mjs +1 -1
- package/dist/migration-tools__migration-graph.mjs +2 -2
- package/dist/migration-tools__migration.mjs +1 -1
- package/dist/migration-tools__ref-resolution.d.mts +1 -1
- package/dist/migration-tools__ref-resolution.mjs +1 -1
- package/dist/migration-tools__refs.mjs +1 -1
- package/dist/migration-tools__spaces.d.mts +1 -1
- package/dist/migration-tools__spaces.mjs +2 -2
- package/dist/{output-CovTDY14-CUoAqLML.mjs → output-D83nTTpC-XlvN30yS.mjs} +4 -4
- package/dist/{output-CovTDY14-CUoAqLML.mjs.map → output-D83nTTpC-XlvN30yS.mjs.map} +1 -1
- package/dist/publish-surface.d.mts +1 -1
- package/dist/publish-surface.mjs +2 -2
- package/dist/publish-surface__import-roots.d.mts +1 -1
- package/dist/publish-surface__import-roots.mjs +1 -1
- package/dist/publish-surface__shells.mjs +1 -1
- package/dist/quick-reference-mongo.md +11 -11
- package/dist/quick-reference-postgres.md +10 -10
- package/dist/readme-mongo.md +6 -6
- package/dist/readme-postgres.md +6 -6
- package/dist/{ref-h6InR6dO-rGfl18Jv.mjs → ref-DcqFmceq-QaUjgZeM.mjs} +190 -87
- package/dist/ref-DcqFmceq-QaUjgZeM.mjs.map +1 -0
- package/dist/{ref-resolution-HeNBXW53.mjs → ref-resolution-BWpwb8_b.mjs} +9 -2
- package/dist/ref-resolution-BWpwb8_b.mjs.map +1 -0
- package/dist/{ref-resolution-COGOSL57.d.mts → ref-resolution-CaHQJXE0.d.mts} +11 -1
- package/dist/ref-resolution-CaHQJXE0.d.mts.map +1 -0
- package/dist/{refs-WK86uYYp-gM8tvWQP.mjs → refs-BpSpzdYB-BcDelHGt.mjs} +9 -9
- package/dist/refs-BpSpzdYB-BcDelHGt.mjs.map +1 -0
- package/dist/{shells-C4HbRAr5.mjs → shells-BIdFZwUY.mjs} +1 -6
- package/dist/shells-BIdFZwUY.mjs.map +1 -0
- package/dist/{spaces-Dj65JrwZ.d.mts → spaces-B20bgxF9.d.mts} +2 -2
- package/dist/{spaces-Dj65JrwZ.d.mts.map → spaces-B20bgxF9.d.mts.map} +1 -1
- package/dist/{spaces-4qMOAYE9.mjs → spaces-BCZiAZQn.mjs} +7 -7
- package/dist/spaces-BCZiAZQn.mjs.map +1 -0
- package/dist/{verify-contract-spaces-DhJTb0zM-B62maCfE.mjs → verify-contract-spaces-CrxvgpwD-D5LLXGci.mjs} +7 -7
- package/dist/{verify-contract-spaces-DhJTb0zM-B62maCfE.mjs.map → verify-contract-spaces-CrxvgpwD-D5LLXGci.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.d.mts +1 -1
- package/dist/vite-plugin-contract-emit.mjs +7 -7
- package/dist/vite-plugin-contract-emit.mjs.map +1 -1
- package/package.json +16 -16
- package/dist/aggregate-CPZB020V.mjs.map +0 -1
- package/dist/domain-type-generation-PkAb39ob-Ct8AGqow.d.mts.map +0 -1
- package/dist/domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs.map +0 -1
- package/dist/errors-CXbGUWGu-CstQHPh6.mjs.map +0 -1
- package/dist/exports-8ZUN43ve.mjs.map +0 -1
- package/dist/exports-BCLg4CiV-05kuwcb0.mjs +0 -160
- package/dist/exports-BCLg4CiV-05kuwcb0.mjs.map +0 -1
- package/dist/exports-BZaG8_w_.mjs.map +0 -1
- package/dist/import-roots-CNFBPAT1.mjs.map +0 -1
- package/dist/index-DRs7L6N0.d.mts.map +0 -1
- package/dist/index-Dgwl8Tzs.d.mts.map +0 -1
- package/dist/ref-h6InR6dO-rGfl18Jv.mjs.map +0 -1
- package/dist/ref-resolution-COGOSL57.d.mts.map +0 -1
- package/dist/ref-resolution-HeNBXW53.mjs.map +0 -1
- package/dist/refs-WK86uYYp-gM8tvWQP.mjs.map +0 -1
- package/dist/shells-C4HbRAr5.mjs.map +0 -1
- package/dist/spaces-4qMOAYE9.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as directDependencyShells, c as internalImportRoot, d as transitiveImports, i as createScaffoldSpecifierResolver, l as platformEntrypointOf, n as buildOwnerIndex, o as importRootForDependencies, r as createImportSpecifierResolver, s as importedSpecifiers, t as ImportRootError, u as resolveImportSpecifier } from "./import-roots-
|
|
1
|
+
import { a as directDependencyShells, c as internalImportRoot, d as transitiveImports, i as createScaffoldSpecifierResolver, l as platformEntrypointOf, n as buildOwnerIndex, o as importRootForDependencies, r as createImportSpecifierResolver, s as importedSpecifiers, t as ImportRootError, u as resolveImportSpecifier } from "./import-roots-BHOrDJbI.mjs";
|
|
2
2
|
export { ImportRootError, buildOwnerIndex, createImportSpecifierResolver, createScaffoldSpecifierResolver, directDependencyShells, importRootForDependencies, importedSpecifiers, internalImportRoot, platformEntrypointOf, resolveImportSpecifier, transitiveImports };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as publicShells, t as excludedSubpaths } from "./shells-
|
|
1
|
+
import { n as publicShells, t as excludedSubpaths } from "./shells-BIdFZwUY.mjs";
|
|
2
2
|
export { excludedSubpaths, publicShells };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Welcome to Prisma
|
|
1
|
+
# Welcome to Prisma ORM!
|
|
2
2
|
|
|
3
|
-
Prisma
|
|
3
|
+
Prisma ORM lets you query your database in simple, easy-to-read TypeScript. Define what your data looks like, and Prisma ORM gives you a fully typed client — with autocomplete for every collection, field, and relation.
|
|
4
4
|
|
|
5
|
-
This project is set up for MongoDB. Prisma
|
|
5
|
+
This project is set up for MongoDB. Prisma ORM also supports other databases.
|
|
6
6
|
|
|
7
7
|
{{requirements}}
|
|
8
8
|
|
|
@@ -34,7 +34,7 @@ Your contract has two companion files in the same directory:
|
|
|
34
34
|
|
|
35
35
|
Commit both files to git. When you change your contract, run `{{pkgRun}} contract emit` to update them.
|
|
36
36
|
|
|
37
|
-
If you use a framework like Next.js or Vite, the Prisma
|
|
37
|
+
If you use a framework like Next.js or Vite, the Prisma ORM plugin will do this for you automatically.
|
|
38
38
|
|
|
39
39
|
## Configuration
|
|
40
40
|
|
|
@@ -42,10 +42,10 @@ If you use a framework like Next.js or Vite, the Prisma Next plugin will do this
|
|
|
42
42
|
|
|
43
43
|
```typescript
|
|
44
44
|
import 'dotenv/config';
|
|
45
|
-
import {
|
|
45
|
+
import { definePrismaConfig } from '@prisma/cli-engine';
|
|
46
46
|
import { defineConfig as ormConfig } from '{{configEntrypoint}}';
|
|
47
47
|
|
|
48
|
-
export default
|
|
48
|
+
export default definePrismaConfig({
|
|
49
49
|
orm: ormConfig({
|
|
50
50
|
contract: './{{schemaPath}}',
|
|
51
51
|
db: {
|
|
@@ -97,14 +97,14 @@ Multi-document transactions and change streams require MongoDB to run as a **rep
|
|
|
97
97
|
- **`mongodb-memory-server`:** use `MongoMemoryReplSet` instead of `MongoMemoryServer` in tests.
|
|
98
98
|
- **MongoDB Atlas:** every Atlas cluster is already a replica set.
|
|
99
99
|
|
|
100
|
-
The transaction API (`db.transaction(...)`) is on the roadmap and tracked under [TML-2313](https://linear.app/prisma-company/issue/TML-2313/mongo-dev-replica-set-story-is-missing-transactions-change-streams). Prisma
|
|
100
|
+
The transaction API (`db.transaction(...)`) is on the roadmap and tracked under [TML-2313](https://linear.app/prisma-company/issue/TML-2313/mongo-dev-replica-set-story-is-missing-transactions-change-streams). Prisma ORM's Mongo facade does not expose it yet — until that ticket lands, drive transactions yourself with a raw `MongoClient` using the escape hatch in the next section.
|
|
101
101
|
|
|
102
102
|
## Escape hatches
|
|
103
103
|
|
|
104
104
|
The ORM covers the common cases. For the rest, two escape hatches are designed in:
|
|
105
105
|
|
|
106
106
|
- **Typed raw aggregations — `db.query`.** The facade exposes `db.query`, a typed builder for aggregation pipelines that runs through the same runtime + middleware + codec stack as `db.orm`. Reach for it when the ORM can't express a `$lookup`/`$facet`/`$graphLookup`/window-function pipeline.
|
|
107
|
-
- **Direct `mongodb` driver control — `mongoClient` binding.** Construct your own `MongoClient` and pass it to `mongo({ mongoClient, dbName, contractJson })`. Your code keeps the `MongoClient` reference and uses it directly (transactions, change streams, sessions, anything Prisma
|
|
107
|
+
- **Direct `mongodb` driver control — `mongoClient` binding.** Construct your own `MongoClient` and pass it to `mongo({ mongoClient, dbName, contractJson })`. Your code keeps the `MongoClient` reference and uses it directly (transactions, change streams, sessions, anything Prisma ORM doesn't surface yet); the same `db` object continues to give you the typed ORM.
|
|
108
108
|
|
|
109
109
|
`db.runtime()` is **not** the escape hatch — it returns the internal executor (`MongoRuntime`), not a `mongodb` `MongoClient` or `Db`. Use `db.query` for raw aggregations and the `mongoClient` binding for direct driver control.
|
|
110
110
|
|
|
@@ -112,6 +112,6 @@ The ORM covers the common cases. For the rest, two escape hatches are designed i
|
|
|
112
112
|
|
|
113
113
|
If this project lives inside a pnpm workspace, a few things are worth knowing:
|
|
114
114
|
|
|
115
|
-
- **Catalogs.** When the workspace's `pnpm-workspace.yaml` defines a `catalogs` entry for
|
|
116
|
-
- **`pnpm dlx`.** `pnpm dlx
|
|
117
|
-
- **`pnpm` → `npm` fallback.** If `pnpm` ever fails to install Prisma
|
|
115
|
+
- **Catalogs.** When the workspace's `pnpm-workspace.yaml` defines a `catalogs` entry for `prisma` or `{{pkg}}`, pnpm uses the catalog version everywhere — `init` does too. If you wanted the published `latest` instead, update or remove the catalog entry, then re-run `pnpm install`.
|
|
116
|
+
- **`pnpm dlx`.** `pnpm dlx prisma@latest orm init …` works in any directory. Inside a workspace, pnpm still resolves dependencies through the workspace's catalog/overrides rather than the registry; expect the installed Prisma ORM packages to reflect the workspace's catalog rather than `latest`.
|
|
117
|
+
- **`pnpm` → `npm` fallback.** If `pnpm` ever fails to install Prisma ORM with a `workspace:*` or `catalog:` resolution error (a leak in a published artefact), `init` falls back to `npm install` and surfaces a warning. Once the offending package republishes a clean version you can switch back with `pnpm install`.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Welcome to Prisma
|
|
1
|
+
# Welcome to Prisma ORM!
|
|
2
2
|
|
|
3
|
-
Prisma
|
|
3
|
+
Prisma ORM lets you query your database in simple, easy-to-read TypeScript. Define what your data looks like, and Prisma ORM gives you a fully typed client — with autocomplete for every table, column, and relation.
|
|
4
4
|
|
|
5
|
-
This project is set up for PostgreSQL. Prisma
|
|
5
|
+
This project is set up for PostgreSQL. Prisma ORM also supports other databases.
|
|
6
6
|
|
|
7
7
|
{{requirements}}
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ Every model you define in your contract can be queried from your app. Your edito
|
|
|
17
17
|
```typescript
|
|
18
18
|
import { db } from '{{dbImportPath}}';
|
|
19
19
|
|
|
20
|
-
const user = await db.orm.User
|
|
20
|
+
const user = await db.orm.public.User
|
|
21
21
|
.where({ email: 'alice@example.com' })
|
|
22
22
|
.first();
|
|
23
23
|
|
|
@@ -32,7 +32,7 @@ Your contract has two companion files in the same directory:
|
|
|
32
32
|
|
|
33
33
|
Commit both files to git. When you change your contract, run `{{pkgRun}} contract emit` to update them.
|
|
34
34
|
|
|
35
|
-
If you use a framework like Next.js or Vite, the Prisma
|
|
35
|
+
If you use a framework like Next.js or Vite, the Prisma ORM plugin will do this for you automatically.
|
|
36
36
|
|
|
37
37
|
## Configuration
|
|
38
38
|
|
|
@@ -40,10 +40,10 @@ If you use a framework like Next.js or Vite, the Prisma Next plugin will do this
|
|
|
40
40
|
|
|
41
41
|
```typescript
|
|
42
42
|
import 'dotenv/config';
|
|
43
|
-
import {
|
|
43
|
+
import { definePrismaConfig } from '@prisma/cli-engine';
|
|
44
44
|
import { defineConfig as ormConfig } from '{{configEntrypoint}}';
|
|
45
45
|
|
|
46
|
-
export default
|
|
46
|
+
export default definePrismaConfig({
|
|
47
47
|
orm: ormConfig({
|
|
48
48
|
contract: './{{schemaPath}}',
|
|
49
49
|
db: {
|
|
@@ -91,6 +91,6 @@ You can customize how your environment variables are loaded by changing or remov
|
|
|
91
91
|
|
|
92
92
|
If this project lives inside a pnpm workspace, a few things are worth knowing:
|
|
93
93
|
|
|
94
|
-
- **Catalogs.** When the workspace's `pnpm-workspace.yaml` defines a `catalogs` entry for
|
|
95
|
-
- **`pnpm dlx`.** `pnpm dlx
|
|
96
|
-
- **`pnpm` → `npm` fallback.** If `pnpm` ever fails to install Prisma
|
|
94
|
+
- **Catalogs.** When the workspace's `pnpm-workspace.yaml` defines a `catalogs` entry for `prisma` or `{{pkg}}`, pnpm uses the catalog version everywhere — `init` does too. If you wanted the published `latest` instead, update or remove the catalog entry, then re-run `pnpm install`.
|
|
95
|
+
- **`pnpm dlx`.** `pnpm dlx prisma@latest orm init …` works in any directory. Inside a workspace, pnpm still resolves dependencies through the workspace's catalog/overrides rather than the registry; expect the installed Prisma ORM packages to reflect the workspace's catalog rather than `latest`.
|
|
96
|
+
- **`pnpm` → `npm` fallback.** If `pnpm` ever fails to install Prisma ORM with a `workspace:*` or `catalog:` resolution error (a leak in a published artefact), `init` falls back to `npm install` and surfaces a warning. Once the offending package republishes a clean version you can switch back with `pnpm install`.
|
package/dist/readme-mongo.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# {{projectName}}
|
|
2
2
|
|
|
3
|
-
Generated by `prisma
|
|
3
|
+
Generated by `prisma orm init` with the Minimal template.
|
|
4
4
|
|
|
5
5
|
## First run
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ Generated by `prisma-cli init` with the Minimal template.
|
|
|
9
9
|
|
|
10
10
|
## Available scripts
|
|
11
11
|
|
|
12
|
-
- `{{runDev}}` — run the Prisma
|
|
12
|
+
- `{{runDev}}` — run the Prisma ORM sample script
|
|
13
13
|
|
|
14
14
|
### Database and migrations
|
|
15
15
|
|
|
@@ -21,15 +21,15 @@ Generated by `prisma-cli init` with the Minimal template.
|
|
|
21
21
|
- `{{runMigrate}}` — apply the planned MongoDB migration
|
|
22
22
|
- `{{runDbSeed}}` — insert sample users manually
|
|
23
23
|
|
|
24
|
-
## Prisma
|
|
24
|
+
## Prisma ORM
|
|
25
25
|
|
|
26
|
-
Prisma
|
|
26
|
+
Prisma ORM setup is scaffolded in:
|
|
27
27
|
|
|
28
28
|
- `{{contractPath}}`
|
|
29
29
|
- `prisma.config.ts`
|
|
30
30
|
- `prisma/db.ts`
|
|
31
31
|
- `src/lib/prisma.ts`
|
|
32
32
|
|
|
33
|
-
For provider-specific Prisma
|
|
33
|
+
For provider-specific Prisma ORM reference docs, see `prisma-8.md`. Prisma ORM skills live in the upstream `skills/` directory: https://github.com/prisma/prisma/tree/main/skills.
|
|
34
34
|
|
|
35
|
-
Node-based Prisma
|
|
35
|
+
Node-based Prisma ORM projects expect Node.js 24 LTS or newer.
|
package/dist/readme-postgres.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# {{projectName}}
|
|
2
2
|
|
|
3
|
-
Generated by `prisma
|
|
3
|
+
Generated by `prisma orm init` with the Minimal template.
|
|
4
4
|
|
|
5
5
|
## First run
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ Generated by `prisma-cli init` with the Minimal template.
|
|
|
9
9
|
|
|
10
10
|
## Available scripts
|
|
11
11
|
|
|
12
|
-
- `{{runDev}}` — run the Prisma
|
|
12
|
+
- `{{runDev}}` — run the Prisma ORM sample script
|
|
13
13
|
|
|
14
14
|
### Database and migrations
|
|
15
15
|
|
|
@@ -20,15 +20,15 @@ Generated by `prisma-cli init` with the Minimal template.
|
|
|
20
20
|
- `{{runMigrate}}` — apply a planned migration
|
|
21
21
|
- `{{runDbSeed}}` — insert sample users manually (run after `db:init`)
|
|
22
22
|
|
|
23
|
-
## Prisma
|
|
23
|
+
## Prisma ORM
|
|
24
24
|
|
|
25
|
-
Prisma
|
|
25
|
+
Prisma ORM setup is scaffolded in:
|
|
26
26
|
|
|
27
27
|
- `{{contractPath}}`
|
|
28
28
|
- `prisma.config.ts`
|
|
29
29
|
- `prisma/db.ts`
|
|
30
30
|
- `src/lib/prisma.ts`
|
|
31
31
|
|
|
32
|
-
For provider-specific Prisma
|
|
32
|
+
For provider-specific Prisma ORM reference docs, see `prisma-8.md`. Prisma ORM skills live in the upstream `skills/` directory: https://github.com/prisma/prisma/tree/main/skills.
|
|
33
33
|
|
|
34
|
-
Node-based Prisma
|
|
34
|
+
Node-based Prisma ORM projects expect Node.js 24 LTS or newer.
|