Files
ed4b3f082a feat: cal video settings (#21347)
* feat: cal video settings

* fix: var names

* feat: finish setting

* chore: add enabled

* chore: remove logs

* feat: support redirect url on exit

* feat: finish settings

* refactor: improve UI

* chore: remove logs

* fix: type err

* fix: finish redirect url

* fix: add type

* chore: change schema

* fix: type error

* chore: improvements

* chore: remove index

* feat: add organizer

* chore: remove log

* chore: use safe parse

* fix: add nullable

* refactor: hide toggles if platorm

* chore: update description

---------

Co-authored-by: Alex van Andel <[email protected]>
Co-authored-by: supalarry <[email protected]>
2025-05-27 10:13:24 -04:00

15 lines
615 B
SQL

-- CreateTable
CREATE TABLE "CalVideoSettings" (
"eventTypeId" INTEGER NOT NULL,
"disableRecordingForOrganizer" BOOLEAN NOT NULL DEFAULT false,
"disableRecordingForGuests" BOOLEAN NOT NULL DEFAULT false,
"redirectUrlOnExit" TEXT,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "CalVideoSettings_pkey" PRIMARY KEY ("eventTypeId")
);
-- AddForeignKey
ALTER TABLE "CalVideoSettings" ADD CONSTRAINT "CalVideoSettings_eventTypeId_fkey" FOREIGN KEY ("eventTypeId") REFERENCES "EventType"("id") ON DELETE CASCADE ON UPDATE CASCADE;