bunker-admin a77306fac2 Initial v2 commit: complete rebuild with unified API + React admin
Phase 1-14 complete:
- Unified Express.js API (TypeScript, Prisma ORM, PostgreSQL 16)
- React Admin GUI (Vite + Ant Design + Zustand)
- JWT auth with refresh tokens
- Influence: Campaigns, Representatives, Responses, Email Queue
- Map: Locations, Cuts, Shifts, Canvassing System
- NAR data import infrastructure (2025 format)
- Listmonk newsletter integration
- Landing page builder (GrapesJS)
- MkDocs + Code Server integration
- Volunteer portal with GPS tracking
- Monitoring stack (Prometheus, Grafana, Alertmanager)
- Pangolin tunnel integration

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-11 10:05:04 -07:00

26 lines
1.2 KiB
SQL

-- CreateTable
CREATE TABLE "site_settings" (
"id" TEXT NOT NULL,
"organizationName" TEXT NOT NULL DEFAULT 'Changemaker Lite',
"organizationShortName" TEXT NOT NULL DEFAULT 'CML',
"organizationLogoUrl" TEXT,
"organizationFaviconUrl" TEXT,
"adminColorPrimary" TEXT NOT NULL DEFAULT '#9d4edd',
"adminColorBgBase" TEXT NOT NULL DEFAULT '#1a1025',
"publicColorPrimary" TEXT NOT NULL DEFAULT '#3498db',
"publicColorBgBase" TEXT NOT NULL DEFAULT '#0d1b2a',
"publicColorBgContainer" TEXT NOT NULL DEFAULT '#1b2838',
"publicHeaderGradient" TEXT NOT NULL DEFAULT 'linear-gradient(135deg, #005a9c 0%, #007acc 100%)',
"footerText" TEXT NOT NULL DEFAULT 'Powered by Changemaker Lite',
"loginSubtitle" TEXT NOT NULL DEFAULT 'Admin',
"emailFromName" TEXT NOT NULL DEFAULT 'Changemaker Lite',
"enableInfluence" BOOLEAN NOT NULL DEFAULT true,
"enableMap" BOOLEAN NOT NULL DEFAULT true,
"enableNewsletter" BOOLEAN NOT NULL DEFAULT true,
"enableLandingPages" BOOLEAN NOT NULL DEFAULT true,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "site_settings_pkey" PRIMARY KEY ("id")
);