Hub 2.25.0: demo clients, and demo data for the Church Website

- A customer can be a demo client: every install a demo site (Accounts
  included, and any later install), never billed (billing off, no invoice
  drafted, sent or made by hand). Migration: Customer.isDemo, demoSince.
- Any install can be marked as a demo site; Events and the Website have
  demo data. The Website's eight demo churches need agent 1.6.0.
- Contracts 1.19.0 vendored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 09:20:10 +02:00
co-authored by Claude Opus 5.5
parent 7850de51ec
commit 8448babb08
24 changed files with 297 additions and 58 deletions
@@ -0,0 +1,3 @@
-- Hub 2.25.0: a demo client. All its installs are demo sites and it's never billed.
ALTER TABLE "Customer" ADD COLUMN "isDemo" BOOLEAN NOT NULL DEFAULT false;
ALTER TABLE "Customer" ADD COLUMN "demoSince" TIMESTAMP(3);
+5
View File
@@ -69,6 +69,11 @@ model Customer {
aiMarkupPercent Int?
// Hub 2.12.0: archived (left out of the customer list until restored). Nothing else changes.
archivedAt DateTime?
// Hub 2.25.0: a demo client (a church used for showing Cross Code). Every install of it is a demo
// site (Accounts too), it's never billed (billingCycle stays none, no invoices are made) and its
// installs can have demo data loaded.
isDemo Boolean @default(false)
demoSince DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
licences Licence[]