Implemented calendar selection for availability checking.

Also upgraded outlook integration to be able to check all calendars instead of only the default one.
This commit is contained in:
Malte Delfs committed 2021-06-14 19:45:24 +02:00
1 parent a231ee6c0d
commit d3b8431699
7 files changed
+359 -47

No files matched your search

+10 -1
View File
@@ -49,6 +49,7 @@ model User {
credentials Credential[]
teams Membership[]
bookings Booking[]
selectedCalendars SelectedCalendar[]
@@map(name: "users")
}
@@ -119,4 +120,12 @@ model Booking {
createdAt DateTime @default(now())
updatedAt DateTime?
}
}
model SelectedCalendar {
user User @relation(fields: [userId], references: [id])
userId Int
integration String
externalId String
@@id([userId,integration,externalId])
}