chris 2c78112a4f Initial commit: E-Invite, a self-hosted Evite-lite
Docker-ready Next.js + Prisma/Postgres e-invitation app: themed invite
pages, RSVP, comments, share links, email + SMS invites with
reply-to-RSVP-by-text, co-hosts, photo dropbox, and browser push
notifications.
2026-07-11 10:11:12 -04:00

24 lines
765 B
SQL

-- AlterTable
ALTER TABLE "Event" ADD COLUMN "photoCloseDate" TIMESTAMP(3),
ADD COLUMN "photosClosed" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "photosEnabled" BOOLEAN NOT NULL DEFAULT true;
-- CreateTable
CREATE TABLE "Photo" (
"id" TEXT NOT NULL,
"eventId" TEXT NOT NULL,
"filename" TEXT NOT NULL,
"uploaderName" TEXT NOT NULL DEFAULT '',
"hidden" BOOLEAN NOT NULL DEFAULT false,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "Photo_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE INDEX "Photo_eventId_idx" ON "Photo"("eventId");
-- AddForeignKey
ALTER TABLE "Photo" ADD CONSTRAINT "Photo_eventId_fkey" FOREIGN KEY ("eventId") REFERENCES "Event"("id") ON DELETE CASCADE ON UPDATE CASCADE;