Feat disable guests for events (#719)

* Abstracts CheckboxField

* Allows disabling the guests field while booking

Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
Omar LópezandBailey Pumfleet authored and GitHub committed 2021-09-22 12:04:32 +01:00
1 parent 1c2998fc13
commit e1f1386332
8 files changed
+104 -64

No files matched your search

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "EventType" ADD COLUMN "disableGuests" BOOLEAN NOT NULL DEFAULT false;
+1
View File
@@ -38,6 +38,7 @@ model EventType {
periodDays Int?
periodCountCalendarDays Boolean?
requiresConfirmation Boolean @default(false)
disableGuests Boolean @default(false)
minimumBookingNotice Int @default(120)
schedulingType SchedulingType?
Schedule Schedule[]