This reverts commit bcf20914d3
.
pull/898/head^2
parent
9ef4815ffb
commit
0927b86831
|
@ -16,12 +16,6 @@ enum SchedulingType {
|
||||||
COLLECTIVE @map("collective")
|
COLLECTIVE @map("collective")
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PeriodType {
|
|
||||||
unlimited
|
|
||||||
rolling
|
|
||||||
range
|
|
||||||
}
|
|
||||||
|
|
||||||
model EventType {
|
model EventType {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
title String
|
title String
|
||||||
|
@ -39,7 +33,7 @@ model EventType {
|
||||||
eventName String?
|
eventName String?
|
||||||
customInputs EventTypeCustomInput[]
|
customInputs EventTypeCustomInput[]
|
||||||
timeZone String?
|
timeZone String?
|
||||||
periodType PeriodType @default(unlimited) // unlimited | rolling | range
|
periodType String? @default("unlimited") // unlimited | rolling | range
|
||||||
periodStartDate DateTime?
|
periodStartDate DateTime?
|
||||||
periodEndDate DateTime?
|
periodEndDate DateTime?
|
||||||
periodDays Int?
|
periodDays Int?
|
||||||
|
@ -49,8 +43,8 @@ model EventType {
|
||||||
minimumBookingNotice Int @default(120)
|
minimumBookingNotice Int @default(120)
|
||||||
schedulingType SchedulingType?
|
schedulingType SchedulingType?
|
||||||
Schedule Schedule[]
|
Schedule Schedule[]
|
||||||
price Int @default(0)
|
price Int @default(0)
|
||||||
currency String @default("usd")
|
currency String @default("usd")
|
||||||
@@unique([userId, slug])
|
@@unique([userId, slug])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,13 +66,13 @@ model User {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
username String? @unique
|
username String? @unique
|
||||||
name String?
|
name String?
|
||||||
email String @unique
|
email String? @unique
|
||||||
emailVerified DateTime?
|
emailVerified DateTime?
|
||||||
password String?
|
password String?
|
||||||
bio String?
|
bio String?
|
||||||
avatar String?
|
avatar String?
|
||||||
timeZone String @default("Europe/London")
|
timeZone String @default("Europe/London")
|
||||||
weekStart String @default("Sunday")
|
weekStart String? @default("Sunday")
|
||||||
startTime Int @default(0)
|
startTime Int @default(0)
|
||||||
endTime Int @default(1440)
|
endTime Int @default(1440)
|
||||||
bufferTime Int @default(0)
|
bufferTime Int @default(0)
|
||||||
|
@ -91,7 +85,7 @@ model User {
|
||||||
bookings Booking[]
|
bookings Booking[]
|
||||||
availability Availability[]
|
availability Availability[]
|
||||||
selectedCalendars SelectedCalendar[]
|
selectedCalendars SelectedCalendar[]
|
||||||
completedOnboarding Boolean @default(false)
|
completedOnboarding Boolean? @default(false)
|
||||||
locale String?
|
locale String?
|
||||||
twoFactorSecret String?
|
twoFactorSecret String?
|
||||||
twoFactorEnabled Boolean @default(false)
|
twoFactorEnabled Boolean @default(false)
|
||||||
|
|
Loading…
Reference in New Issue