Hub 2.0 step 5: the church's address

Own domain R0, Cross Code address R10, domain included R25 (custom price
for other endings), once per invoice and never discounted; renewal date
with a reminder 30 days before, once per renewal, and Renewed to move it on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 16:24:10 +02:00
co-authored by Claude Opus 5.5
parent fff1c6f4ef
commit fbbf72dcd8
9 changed files with 229 additions and 11 deletions
@@ -0,0 +1,13 @@
-- Hub 2.0: the church's address (own domain R0, Cross Code address R10, domain included R25), one per
-- customer. Existing churches use their own domain.
-- CreateEnum
CREATE TYPE "AddressType" AS ENUM ('own_domain', 'crosscode', 'included');
-- AlterTable
ALTER TABLE "Customer" ADD COLUMN "addressCustomCents" INTEGER,
ADD COLUMN "addressType" "AddressType" NOT NULL DEFAULT 'own_domain',
ADD COLUMN "domain" TEXT,
ADD COLUMN "domainRemindedFor" DATE,
ADD COLUMN "domainRenewsOn" DATE;