Hub 2.21.0: install the Church Website; Website storage bought in steps

- New install offers the Church Website: Accounts first when the church has
  none, at accounts.<its address> (www. dropped); the FastPanel email sends a
  www. site's bare domain to www. with a 301.
- Licence.extraStorageSteps (migration): the token sends a Website its limit
  (5 GB + steps, limits.storageBytes, contracts 1.17.0); invoices bill the
  steps bought instead of the storage reported. Edit popup field 0-99.
- A Website/App licence starts on its plan however it's made (New install too).
- Vendored @crosscode/contracts 1.17.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 00:03:21 +02:00
co-authored by Claude Opus 5.5
parent 6f8242064f
commit c6f734ab20
21 changed files with 235 additions and 36 deletions
@@ -0,0 +1,4 @@
-- Hub 2.21.0: a Church Website licence's extra storage steps (5 GB each), bought and billed.
-- AlterTable
ALTER TABLE "Licence" ADD COLUMN "extraStorageSteps" INTEGER NOT NULL DEFAULT 0;
+3
View File
@@ -119,6 +119,9 @@ model Licence {
billedUntil DateTime? @db.Date
// A price per month instead of the tier's (e.g. the Network tier), in cents.
customMonthlyCents Int?
// Hub 2.21.0, Church Website only: extra 5 GB storage steps bought (R20/month each). The
// licence token sends 5 GB + these as the site's storage limit; invoices bill them.
extraStorageSteps Int @default(0)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
// One licence = one install.