Add seatsPerTimeSlot to event type schema
parent
9ed666a475
commit
03fabbe5a6
|
@ -0,0 +1,6 @@
|
|||
-- CreateEnum
|
||||
CREATE TYPE "BookingLimitType" AS ENUM ('month', 'day', 'week');
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "EventType" ADD COLUMN "seatsPerTimeSlot" INTEGER;
|
||||
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue