Removed isOverride boolean, renamed 'Schedule' to 'Availability'
parent
1eba242820
commit
52e68b682c
|
@ -21,7 +21,7 @@ model EventType {
|
||||||
user User? @relation(fields: [userId], references: [id])
|
user User? @relation(fields: [userId], references: [id])
|
||||||
userId Int?
|
userId Int?
|
||||||
bookings Booking[]
|
bookings Booking[]
|
||||||
availability Schedule[]
|
availability Availability[]
|
||||||
eventName String?
|
eventName String?
|
||||||
customInputs EventTypeCustomInput[]
|
customInputs EventTypeCustomInput[]
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ model User {
|
||||||
credentials Credential[]
|
credentials Credential[]
|
||||||
teams Membership[]
|
teams Membership[]
|
||||||
bookings Booking[]
|
bookings Booking[]
|
||||||
availability Schedule[]
|
availability Availability[]
|
||||||
selectedCalendars SelectedCalendar[]
|
selectedCalendars SelectedCalendar[]
|
||||||
|
|
||||||
@@map(name: "users")
|
@@map(name: "users")
|
||||||
|
@ -128,7 +128,7 @@ model Booking {
|
||||||
updatedAt DateTime?
|
updatedAt DateTime?
|
||||||
}
|
}
|
||||||
|
|
||||||
model Schedule {
|
model Availability {
|
||||||
id Int @default(autoincrement()) @id
|
id Int @default(autoincrement()) @id
|
||||||
label String?
|
label String?
|
||||||
user User? @relation(fields: [userId], references: [id])
|
user User? @relation(fields: [userId], references: [id])
|
||||||
|
@ -136,10 +136,9 @@ model Schedule {
|
||||||
eventType EventType? @relation(fields: [eventTypeId], references: [id])
|
eventType EventType? @relation(fields: [eventTypeId], references: [id])
|
||||||
eventTypeId Int?
|
eventTypeId Int?
|
||||||
days Int[]
|
days Int[]
|
||||||
startTime Int?
|
startTime Int
|
||||||
startDate DateTime? @db.Timestamptz(3)
|
endTime Int
|
||||||
length Int
|
date DateTime? @db.Date
|
||||||
isOverride Boolean @default(false)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
model SelectedCalendar {
|
model SelectedCalendar {
|
||||||
|
@ -159,11 +158,3 @@ model EventTypeCustomInput {
|
||||||
required Boolean
|
required Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
model ResetPasswordRequest {
|
|
||||||
id String @id @default(cuid())
|
|
||||||
createdAt DateTime @default(now())
|
|
||||||
updatedAt DateTime @updatedAt
|
|
||||||
email String
|
|
||||||
expires DateTime
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue