@saasicat/adapter-prisma 1.0.0-rc.2 → 1.0.0-rc.4

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # @saasicat/adapter-prisma
2
2
 
3
+ ## What this is
4
+
3
5
  The Prisma + PostgreSQL persistence adapter for SaaSiCat. Targets the
4
6
  canonical schema from `@saasicat/spec` (`prisma-fragments/` +
5
7
  `sql/constraints.postgres.sql`) and passes the executable persistence
@@ -9,6 +11,16 @@ transaction rollback and atomic promo claims are verified, not asserted.
9
11
  > Renamed from `@saasicat/prisma` (deprecated). Same ports, superset of the
10
12
  > old exports.
11
13
 
14
+ ## What this is not
15
+
16
+ Not a Prisma schema. It targets the canonical tables from `@saasicat/spec`;
17
+ `saasicat schema apply` puts them into your `schema.prisma`, and Prisma
18
+ migrates them. This package reads and writes them.
19
+
20
+ Not a place for domain rules. An adapter translates a port to a store — which
21
+ rows, which order, which lock — and every decision above that lives in
22
+ `@saasicat/nest`, so the two adapters stay interchangeable.
23
+
12
24
  ## Quickstart — the bundle
13
25
 
14
26
  ```ts
@@ -260,3 +272,9 @@ generates a client from the composed fragments and executes the
260
272
  `@saasicat/persistence-testing` contract — CI does the same against a
261
273
  postgres service. **The database is disposable: the harness drops and
262
274
  recreates its `public` schema.**
275
+
276
+ ## Next
277
+
278
+ - [Quickstart](../../docs/quickstart.md) — from an existing backend to an enforced feature
279
+ - [Data model](../../docs/explanation/data-model.md) — the canonical tables, and who owns which
280
+ - [Ports and adapters](../../docs/explanation/adr/0007-ports-and-adapters.md) — why an adapter never decides
package/dist/.build-stamp CHANGED
@@ -1 +1 @@
1
- 179dbac7b9329674978a2e97b612b3514fe39b12c1bf83f6ed41a2cafc2f65bd
1
+ c870e387e5f23920d793f7e6cb321855019d14ba30e46ff17bdc06444867ce6a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasicat/adapter-prisma",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.4",
4
4
  "description": "Prisma + PostgreSQL persistence for SaaSiCat: one standard bundle for core, catalog, entitlement, tenant billing, Admin resources and promo, plus individual adapters for custom compositions.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@saasicat/core": "^1.0.0-rc.2"
26
+ "@saasicat/core": "^1.0.0-rc.4"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@nestjs/common": "^11.0.0"
@@ -35,8 +35,8 @@
35
35
  "@prisma/client": "^6.19.0",
36
36
  "tsup": "^8.0.0",
37
37
  "typescript": "^6.0.0",
38
- "@saasicat/persistence-testing": "^1.0.0-rc.2",
39
- "@saasicat/spec": "^1.0.0-rc.2"
38
+ "@saasicat/persistence-testing": "^1.0.0-rc.4",
39
+ "@saasicat/spec": "^1.0.0-rc.4"
40
40
  },
41
41
  "license": "PolyForm-Shield-1.0.0",
42
42
  "author": "Taci Uelker",