import { Prisma } from "@prisma/client"; export const availabilityUserSelect = Prisma.validator()({ id: true, timeZone: true, email: true, bufferTime: true, startTime: true, username: true, endTime: true, timeFormat: true, defaultScheduleId: true, // Relationships schedules: { select: { availability: true, timeZone: true, id: true, }, }, availability: true, selectedCalendars: true, }); export const baseUserSelect = Prisma.validator()({ name: true, destinationCalendar: true, locale: true, hideBranding: true, theme: true, brandColor: true, darkBrandColor: true, ...availabilityUserSelect, }); export const userSelect = Prisma.validator()({ select: { name: true, allowDynamicBooking: true, destinationCalendar: true, locale: true, hideBranding: true, theme: true, brandColor: true, darkBrandColor: true, metadata: true, organizationId: true, ...availabilityUserSelect, }, });