Add seatsPerTimeSlot to event type schema

hotfix/special-characters-in-email-subject
Joe Au-Yeung 2022-04-13 13:40:14 -04:00
parent 9ed666a475
commit 03fabbe5a6
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,6 @@
-- CreateEnum
CREATE TYPE "BookingLimitType" AS ENUM ('month', 'day', 'week');
-- AlterTable
ALTER TABLE "EventType" ADD COLUMN "seatsPerTimeSlot" INTEGER;

View File

@ -29,6 +29,12 @@ enum PeriodType {
RANGE @map("range")
}
enum BookingLimitType {
MONTH @map("month")
DAY @map("day")
WEEK @map("week")
}
model EventType {
id Int @id @default(autoincrement())
/// @zod.nonempty()
@ -63,6 +69,7 @@ model EventType {
minimumBookingNotice Int @default(120)
beforeEventBuffer Int @default(0)
afterEventBuffer Int @default(0)
seatsPerTimeSlot Int?
schedulingType SchedulingType?
schedule Schedule?
price Int @default(0)