-- Site-wide settings to toggle features like contact visibility CREATE TABLE IF NOT EXISTS "SiteSettings" ( "id" TEXT NOT NULL, "requireLoginForContactDetails" BOOLEAN NOT NULL DEFAULT TRUE, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, CONSTRAINT "SiteSettings_pkey" PRIMARY KEY ("id") ); INSERT INTO "SiteSettings" ("id", "requireLoginForContactDetails") VALUES ('default', TRUE) ON CONFLICT ("id") DO NOTHING;