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>
14 lines
513 B
SQL
14 lines
513 B
SQL
-- 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;
|
|
|