Fix/user creds (#8393)
* fix-user-creds * Type fixes * Type fixes * Type fixes --------- Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
c1c95f711b
commit
fe996b4e41
13 files changed
+92
-39
No files matched your search
@@ -1,16 +1,15 @@
|
||||
import { Prisma } from "@prisma/client";
|
||||
|
||||
export const availabilityUserSelect = Prisma.validator<Prisma.UserSelect>()({
|
||||
credentials: true,
|
||||
id: true,
|
||||
timeZone: true,
|
||||
bufferTime: true,
|
||||
availability: true,
|
||||
id: true,
|
||||
startTime: true,
|
||||
username: true,
|
||||
endTime: true,
|
||||
selectedCalendars: true,
|
||||
timeFormat: true,
|
||||
defaultScheduleId: true,
|
||||
// Relationships
|
||||
schedules: {
|
||||
select: {
|
||||
availability: true,
|
||||
@@ -18,7 +17,8 @@ export const availabilityUserSelect = Prisma.validator<Prisma.UserSelect>()({
|
||||
id: true,
|
||||
},
|
||||
},
|
||||
defaultScheduleId: true,
|
||||
availability: true,
|
||||
selectedCalendars: true,
|
||||
});
|
||||
|
||||
export const baseUserSelect = Prisma.validator<Prisma.UserSelect>()({
|
||||
|
||||
Reference in new issue
Block a user