@saasicat/spec 1.0.0-rc.14 → 1.0.0-rc.15

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.
@@ -29,7 +29,7 @@ openapi: 3.1.0
29
29
 
30
30
  info:
31
31
  title: SaaS Platform SuperAdmin API
32
- version: 1.0.0-rc.14
32
+ version: 1.0.0-rc.15
33
33
  description: |
34
34
  Read and write operations for platform administration:
35
35
  tenants, users, subscriptions, promo codes, audit log,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasicat/spec",
3
- "version": "1.0.0-rc.14",
3
+ "version": "1.0.0-rc.15",
4
4
  "description": "Language-neutral spec of the SaaS platform: JSON Schemas, OpenAPI contract, Prisma fragments, acceptance scenarios.",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",
@@ -125,5 +125,12 @@ CREATE UNIQUE INDEX plan_versions_draft_per_plan
125
125
  - **No add-on tables (#49)** — `subscription_addons`,
126
126
  `unit_addon_versions`, `feature_addon_versions` are not a
127
127
  sales surface; only plan versions + bundles are sold.
128
- - **App-specific tables** (e.g. invoice or bank master data)
129
- belong in the schema of the consuming app, not in the platform.
128
+ - **The application's own invoicing** invoices to the people it sells to, fees
129
+ it collects from its members, their bank details belongs in the schema of the
130
+ consuming app. The subscription business is the platform's: subscribers, their
131
+ invoices and their payments are decided in
132
+ [ADR 0012](../../../docs/explanation/adr/0012-the-subscriber-owns-the-commercial-record.md),
133
+ and every model added for them carries `Subscription` or `Subscriber` in its name,
134
+ which keeps it clear of the names applications use for their own invoicing. A
135
+ prefix cannot rule out a name nobody has seen, so `saasicat schema check` reports
136
+ an application model that carries a platform model's name with a different shape.