Skip to content

Commit

Permalink
Revert "Makes fields with default values non-optional (calcom#892)" (c…
Browse files Browse the repository at this point in the history
…alcom#899)

This reverts commit bcf2091.
  • Loading branch information
KATT authored Oct 11, 2021
1 parent 9ef4815 commit 0927b86
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ enum SchedulingType {
COLLECTIVE @map("collective")
}

enum PeriodType {
unlimited
rolling
range
}

model EventType {
id Int @id @default(autoincrement())
title String
Expand All @@ -39,7 +33,7 @@ model EventType {
eventName String?
customInputs EventTypeCustomInput[]
timeZone String?
periodType PeriodType @default(unlimited) // unlimited | rolling | range
periodType String? @default("unlimited") // unlimited | rolling | range
periodStartDate DateTime?
periodEndDate DateTime?
periodDays Int?
Expand All @@ -49,8 +43,8 @@ model EventType {
minimumBookingNotice Int @default(120)
schedulingType SchedulingType?
Schedule Schedule[]
price Int @default(0)
currency String @default("usd")
price Int @default(0)
currency String @default("usd")
@@unique([userId, slug])
}

Expand All @@ -72,13 +66,13 @@ model User {
id Int @id @default(autoincrement())
username String? @unique
name String?
email String @unique
email String? @unique
emailVerified DateTime?
password String?
bio String?
avatar String?
timeZone String @default("Europe/London")
weekStart String @default("Sunday")
weekStart String? @default("Sunday")
startTime Int @default(0)
endTime Int @default(1440)
bufferTime Int @default(0)
Expand All @@ -91,7 +85,7 @@ model User {
bookings Booking[]
availability Availability[]
selectedCalendars SelectedCalendar[]
completedOnboarding Boolean @default(false)
completedOnboarding Boolean? @default(false)
locale String?
twoFactorSecret String?
twoFactorEnabled Boolean @default(false)
Expand Down

0 comments on commit 0927b86

Please sign in to comment.