import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema';
import { PatientOrderByRelationAggregateInputObjectSchema as PatientOrderByRelationAggregateInputObjectSchema } from './PatientOrderByRelationAggregateInput.schema';
import { AppointmentOrderByRelationAggregateInputObjectSchema as AppointmentOrderByRelationAggregateInputObjectSchema } from './AppointmentOrderByRelationAggregateInput.schema';
import { StaffOrderByRelationAggregateInputObjectSchema as StaffOrderByRelationAggregateInputObjectSchema } from './StaffOrderByRelationAggregateInput.schema';
import { NpiProviderOrderByRelationAggregateInputObjectSchema as NpiProviderOrderByRelationAggregateInputObjectSchema } from './NpiProviderOrderByRelationAggregateInput.schema';
import { ClaimOrderByRelationAggregateInputObjectSchema as ClaimOrderByRelationAggregateInputObjectSchema } from './ClaimOrderByRelationAggregateInput.schema';
import { InsuranceCredentialOrderByRelationAggregateInputObjectSchema as InsuranceCredentialOrderByRelationAggregateInputObjectSchema } from './InsuranceCredentialOrderByRelationAggregateInput.schema';
import { ShoppingVendorOrderByRelationAggregateInputObjectSchema as ShoppingVendorOrderByRelationAggregateInputObjectSchema } from './ShoppingVendorOrderByRelationAggregateInput.schema';
import { PaymentOrderByRelationAggregateInputObjectSchema as PaymentOrderByRelationAggregateInputObjectSchema } from './PaymentOrderByRelationAggregateInput.schema';
import { DatabaseBackupOrderByRelationAggregateInputObjectSchema as DatabaseBackupOrderByRelationAggregateInputObjectSchema } from './DatabaseBackupOrderByRelationAggregateInput.schema';
import { BackupDestinationOrderByRelationAggregateInputObjectSchema as BackupDestinationOrderByRelationAggregateInputObjectSchema } from './BackupDestinationOrderByRelationAggregateInput.schema';
import { NotificationOrderByRelationAggregateInputObjectSchema as NotificationOrderByRelationAggregateInputObjectSchema } from './NotificationOrderByRelationAggregateInput.schema';
import { CloudFolderOrderByRelationAggregateInputObjectSchema as CloudFolderOrderByRelationAggregateInputObjectSchema } from './CloudFolderOrderByRelationAggregateInput.schema';
import { CloudFileOrderByRelationAggregateInputObjectSchema as CloudFileOrderByRelationAggregateInputObjectSchema } from './CloudFileOrderByRelationAggregateInput.schema';
import { CommunicationOrderByRelationAggregateInputObjectSchema as CommunicationOrderByRelationAggregateInputObjectSchema } from './CommunicationOrderByRelationAggregateInput.schema';
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './TwilioSettingsOrderByWithRelationInput.schema';
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './AiSettingsOrderByWithRelationInput.schema';
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './OfficeHoursOrderByWithRelationInput.schema';
import { OfficeContactOrderByWithRelationInputObjectSchema as OfficeContactOrderByWithRelationInputObjectSchema } from './OfficeContactOrderByWithRelationInput.schema';
import { ProcedureTimeslotOrderByWithRelationInputObjectSchema as ProcedureTimeslotOrderByWithRelationInputObjectSchema } from './ProcedureTimeslotOrderByWithRelationInput.schema';
import { InsuranceContactOrderByRelationAggregateInputObjectSchema as InsuranceContactOrderByRelationAggregateInputObjectSchema } from './InsuranceContactOrderByRelationAggregateInput.schema';
import { PatientConversationOrderByRelationAggregateInputObjectSchema as PatientConversationOrderByRelationAggregateInputObjectSchema } from './PatientConversationOrderByRelationAggregateInput.schema'

const makeSchema = () => z.object({
  id: SortOrderSchema.optional(),
  username: SortOrderSchema.optional(),
  password: SortOrderSchema.optional(),
  autoBackupEnabled: SortOrderSchema.optional(),
  usbBackupEnabled: SortOrderSchema.optional(),
  patients: z.lazy(() => PatientOrderByRelationAggregateInputObjectSchema).optional(),
  appointments: z.lazy(() => AppointmentOrderByRelationAggregateInputObjectSchema).optional(),
  staff: z.lazy(() => StaffOrderByRelationAggregateInputObjectSchema).optional(),
  npiProviders: z.lazy(() => NpiProviderOrderByRelationAggregateInputObjectSchema).optional(),
  claims: z.lazy(() => ClaimOrderByRelationAggregateInputObjectSchema).optional(),
  insuranceCredentials: z.lazy(() => InsuranceCredentialOrderByRelationAggregateInputObjectSchema).optional(),
  shoppingVendors: z.lazy(() => ShoppingVendorOrderByRelationAggregateInputObjectSchema).optional(),
  updatedPayments: z.lazy(() => PaymentOrderByRelationAggregateInputObjectSchema).optional(),
  backups: z.lazy(() => DatabaseBackupOrderByRelationAggregateInputObjectSchema).optional(),
  backupDestinations: z.lazy(() => BackupDestinationOrderByRelationAggregateInputObjectSchema).optional(),
  notifications: z.lazy(() => NotificationOrderByRelationAggregateInputObjectSchema).optional(),
  cloudFolders: z.lazy(() => CloudFolderOrderByRelationAggregateInputObjectSchema).optional(),
  cloudFiles: z.lazy(() => CloudFileOrderByRelationAggregateInputObjectSchema).optional(),
  communications: z.lazy(() => CommunicationOrderByRelationAggregateInputObjectSchema).optional(),
  twilioSettings: z.lazy(() => TwilioSettingsOrderByWithRelationInputObjectSchema).optional(),
  aiSettings: z.lazy(() => AiSettingsOrderByWithRelationInputObjectSchema).optional(),
  officeHours: z.lazy(() => OfficeHoursOrderByWithRelationInputObjectSchema).optional(),
  officeContact: z.lazy(() => OfficeContactOrderByWithRelationInputObjectSchema).optional(),
  procedureTimeslot: z.lazy(() => ProcedureTimeslotOrderByWithRelationInputObjectSchema).optional(),
  insuranceContacts: z.lazy(() => InsuranceContactOrderByRelationAggregateInputObjectSchema).optional(),
  patientConversations: z.lazy(() => PatientConversationOrderByRelationAggregateInputObjectSchema).optional()
}).strict();
export const UserOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.UserOrderByWithRelationInput> = makeSchema() as unknown as z.ZodType<Prisma.UserOrderByWithRelationInput>;
export const UserOrderByWithRelationInputObjectZodSchema = makeSchema();
