
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `User` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"

/**
 * Model User
 * 
 */
export type UserModel = runtime.Types.Result.DefaultSelection<Prisma.$UserPayload>

export type AggregateUser = {
  _count: UserCountAggregateOutputType | null
  _avg: UserAvgAggregateOutputType | null
  _sum: UserSumAggregateOutputType | null
  _min: UserMinAggregateOutputType | null
  _max: UserMaxAggregateOutputType | null
}

export type UserAvgAggregateOutputType = {
  cwMemberId: number | null
}

export type UserSumAggregateOutputType = {
  cwMemberId: number | null
}

export type UserMinAggregateOutputType = {
  id: string | null
  permissions: string | null
  login: string | null
  firstName: string | null
  lastName: string | null
  email: string | null
  image: string | null
  title: string | null
  active: boolean | null
  hidden: boolean | null
  cwIdentifier: string | null
  cwMemberId: number | null
  userId: string | null
  token: string | null
  updatedBy: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type UserMaxAggregateOutputType = {
  id: string | null
  permissions: string | null
  login: string | null
  firstName: string | null
  lastName: string | null
  email: string | null
  image: string | null
  title: string | null
  active: boolean | null
  hidden: boolean | null
  cwIdentifier: string | null
  cwMemberId: number | null
  userId: string | null
  token: string | null
  updatedBy: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type UserCountAggregateOutputType = {
  id: number
  permissions: number
  login: number
  firstName: number
  lastName: number
  email: number
  image: number
  title: number
  active: number
  hidden: number
  cwIdentifier: number
  cwMemberId: number
  userId: number
  token: number
  updatedBy: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type UserAvgAggregateInputType = {
  cwMemberId?: true
}

export type UserSumAggregateInputType = {
  cwMemberId?: true
}

export type UserMinAggregateInputType = {
  id?: true
  permissions?: true
  login?: true
  firstName?: true
  lastName?: true
  email?: true
  image?: true
  title?: true
  active?: true
  hidden?: true
  cwIdentifier?: true
  cwMemberId?: true
  userId?: true
  token?: true
  updatedBy?: true
  createdAt?: true
  updatedAt?: true
}

export type UserMaxAggregateInputType = {
  id?: true
  permissions?: true
  login?: true
  firstName?: true
  lastName?: true
  email?: true
  image?: true
  title?: true
  active?: true
  hidden?: true
  cwIdentifier?: true
  cwMemberId?: true
  userId?: true
  token?: true
  updatedBy?: true
  createdAt?: true
  updatedAt?: true
}

export type UserCountAggregateInputType = {
  id?: true
  permissions?: true
  login?: true
  firstName?: true
  lastName?: true
  email?: true
  image?: true
  title?: true
  active?: true
  hidden?: true
  cwIdentifier?: true
  cwMemberId?: true
  userId?: true
  token?: true
  updatedBy?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type UserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which User to aggregate.
   */
  where?: Prisma.UserWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Users to fetch.
   */
  orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.UserWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Users from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Users.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned Users
  **/
  _count?: true | UserCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: UserAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: UserSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: UserMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: UserMaxAggregateInputType
}

export type GetUserAggregateType<T extends UserAggregateArgs> = {
      [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateUser[P]>
    : Prisma.GetScalarType<T[P], AggregateUser[P]>
}




export type UserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.UserWhereInput
  orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[]
  by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum
  having?: Prisma.UserScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: UserCountAggregateInputType | true
  _avg?: UserAvgAggregateInputType
  _sum?: UserSumAggregateInputType
  _min?: UserMinAggregateInputType
  _max?: UserMaxAggregateInputType
}

export type UserGroupByOutputType = {
  id: string
  permissions: string | null
  login: string
  firstName: string | null
  lastName: string | null
  email: string
  image: string | null
  title: string | null
  active: boolean
  hidden: boolean
  cwIdentifier: string | null
  cwMemberId: number | null
  userId: string | null
  token: string | null
  updatedBy: string | null
  createdAt: Date
  updatedAt: Date
  _count: UserCountAggregateOutputType | null
  _avg: UserAvgAggregateOutputType | null
  _sum: UserSumAggregateOutputType | null
  _min: UserMinAggregateOutputType | null
  _max: UserMaxAggregateOutputType | null
}

type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<UserGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
      }
    >
  >



export type UserWhereInput = {
  AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
  OR?: Prisma.UserWhereInput[]
  NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
  id?: Prisma.StringFilter<"User"> | string
  permissions?: Prisma.StringNullableFilter<"User"> | string | null
  login?: Prisma.StringFilter<"User"> | string
  firstName?: Prisma.StringNullableFilter<"User"> | string | null
  lastName?: Prisma.StringNullableFilter<"User"> | string | null
  email?: Prisma.StringFilter<"User"> | string
  image?: Prisma.StringNullableFilter<"User"> | string | null
  title?: Prisma.StringNullableFilter<"User"> | string | null
  active?: Prisma.BoolFilter<"User"> | boolean
  hidden?: Prisma.BoolFilter<"User"> | boolean
  cwIdentifier?: Prisma.StringNullableFilter<"User"> | string | null
  cwMemberId?: Prisma.IntNullableFilter<"User"> | number | null
  userId?: Prisma.StringNullableFilter<"User"> | string | null
  token?: Prisma.StringNullableFilter<"User"> | string | null
  updatedBy?: Prisma.StringNullableFilter<"User"> | string | null
  createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
  roles?: Prisma.RoleListRelationFilter
  cwMember?: Prisma.XOR<Prisma.CwMemberNullableScalarRelationFilter, Prisma.CwMemberWhereInput> | null
  sessions?: Prisma.SessionListRelationFilter
  companiesDeleted?: Prisma.CompanyListRelationFilter
  companiesEntered?: Prisma.CompanyListRelationFilter
  opportunities?: Prisma.OpportunityListRelationFilter
  opportunitiesSecondary?: Prisma.OpportunityListRelationFilter
  generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter
  companyAddresses?: Prisma.CompanyAddressListRelationFilter
  serviceTicketsOwned?: Prisma.ServiceTicketListRelationFilter
  serviceTicketsClosed?: Prisma.ServiceTicketListRelationFilter
  serviceTicketsCreated?: Prisma.ServiceTicketListRelationFilter
  serviceTicketsUpdated?: Prisma.ServiceTicketListRelationFilter
  serviceTicketNotes?: Prisma.ServiceTicketNoteListRelationFilter
}

export type UserOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  permissions?: Prisma.SortOrderInput | Prisma.SortOrder
  login?: Prisma.SortOrder
  firstName?: Prisma.SortOrderInput | Prisma.SortOrder
  lastName?: Prisma.SortOrderInput | Prisma.SortOrder
  email?: Prisma.SortOrder
  image?: Prisma.SortOrderInput | Prisma.SortOrder
  title?: Prisma.SortOrderInput | Prisma.SortOrder
  active?: Prisma.SortOrder
  hidden?: Prisma.SortOrder
  cwIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder
  cwMemberId?: Prisma.SortOrderInput | Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  token?: Prisma.SortOrderInput | Prisma.SortOrder
  updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  roles?: Prisma.RoleOrderByRelationAggregateInput
  cwMember?: Prisma.CwMemberOrderByWithRelationInput
  sessions?: Prisma.SessionOrderByRelationAggregateInput
  companiesDeleted?: Prisma.CompanyOrderByRelationAggregateInput
  companiesEntered?: Prisma.CompanyOrderByRelationAggregateInput
  opportunities?: Prisma.OpportunityOrderByRelationAggregateInput
  opportunitiesSecondary?: Prisma.OpportunityOrderByRelationAggregateInput
  generatedQuotes?: Prisma.GeneratedQuotesOrderByRelationAggregateInput
  companyAddresses?: Prisma.CompanyAddressOrderByRelationAggregateInput
  serviceTicketsOwned?: Prisma.ServiceTicketOrderByRelationAggregateInput
  serviceTicketsClosed?: Prisma.ServiceTicketOrderByRelationAggregateInput
  serviceTicketsCreated?: Prisma.ServiceTicketOrderByRelationAggregateInput
  serviceTicketsUpdated?: Prisma.ServiceTicketOrderByRelationAggregateInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteOrderByRelationAggregateInput
}

export type UserWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  login?: string
  email?: string
  cwIdentifier?: string
  cwMemberId?: number
  userId?: string
  AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
  OR?: Prisma.UserWhereInput[]
  NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
  permissions?: Prisma.StringNullableFilter<"User"> | string | null
  firstName?: Prisma.StringNullableFilter<"User"> | string | null
  lastName?: Prisma.StringNullableFilter<"User"> | string | null
  image?: Prisma.StringNullableFilter<"User"> | string | null
  title?: Prisma.StringNullableFilter<"User"> | string | null
  active?: Prisma.BoolFilter<"User"> | boolean
  hidden?: Prisma.BoolFilter<"User"> | boolean
  token?: Prisma.StringNullableFilter<"User"> | string | null
  updatedBy?: Prisma.StringNullableFilter<"User"> | string | null
  createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
  roles?: Prisma.RoleListRelationFilter
  cwMember?: Prisma.XOR<Prisma.CwMemberNullableScalarRelationFilter, Prisma.CwMemberWhereInput> | null
  sessions?: Prisma.SessionListRelationFilter
  companiesDeleted?: Prisma.CompanyListRelationFilter
  companiesEntered?: Prisma.CompanyListRelationFilter
  opportunities?: Prisma.OpportunityListRelationFilter
  opportunitiesSecondary?: Prisma.OpportunityListRelationFilter
  generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter
  companyAddresses?: Prisma.CompanyAddressListRelationFilter
  serviceTicketsOwned?: Prisma.ServiceTicketListRelationFilter
  serviceTicketsClosed?: Prisma.ServiceTicketListRelationFilter
  serviceTicketsCreated?: Prisma.ServiceTicketListRelationFilter
  serviceTicketsUpdated?: Prisma.ServiceTicketListRelationFilter
  serviceTicketNotes?: Prisma.ServiceTicketNoteListRelationFilter
}, "id" | "login" | "email" | "cwIdentifier" | "cwMemberId" | "userId">

export type UserOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  permissions?: Prisma.SortOrderInput | Prisma.SortOrder
  login?: Prisma.SortOrder
  firstName?: Prisma.SortOrderInput | Prisma.SortOrder
  lastName?: Prisma.SortOrderInput | Prisma.SortOrder
  email?: Prisma.SortOrder
  image?: Prisma.SortOrderInput | Prisma.SortOrder
  title?: Prisma.SortOrderInput | Prisma.SortOrder
  active?: Prisma.SortOrder
  hidden?: Prisma.SortOrder
  cwIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder
  cwMemberId?: Prisma.SortOrderInput | Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  token?: Prisma.SortOrderInput | Prisma.SortOrder
  updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.UserCountOrderByAggregateInput
  _avg?: Prisma.UserAvgOrderByAggregateInput
  _max?: Prisma.UserMaxOrderByAggregateInput
  _min?: Prisma.UserMinOrderByAggregateInput
  _sum?: Prisma.UserSumOrderByAggregateInput
}

export type UserScalarWhereWithAggregatesInput = {
  AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
  OR?: Prisma.UserScalarWhereWithAggregatesInput[]
  NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"User"> | string
  permissions?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
  login?: Prisma.StringWithAggregatesFilter<"User"> | string
  firstName?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
  lastName?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
  email?: Prisma.StringWithAggregatesFilter<"User"> | string
  image?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
  title?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
  active?: Prisma.BoolWithAggregatesFilter<"User"> | boolean
  hidden?: Prisma.BoolWithAggregatesFilter<"User"> | boolean
  cwIdentifier?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
  cwMemberId?: Prisma.IntNullableWithAggregatesFilter<"User"> | number | null
  userId?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
  token?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
  updatedBy?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
}

export type UserCreateInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserCreateManyInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type UserUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type UserUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type UserScalarRelationFilter = {
  is?: Prisma.UserWhereInput
  isNot?: Prisma.UserWhereInput
}

export type UserCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  permissions?: Prisma.SortOrder
  login?: Prisma.SortOrder
  firstName?: Prisma.SortOrder
  lastName?: Prisma.SortOrder
  email?: Prisma.SortOrder
  image?: Prisma.SortOrder
  title?: Prisma.SortOrder
  active?: Prisma.SortOrder
  hidden?: Prisma.SortOrder
  cwIdentifier?: Prisma.SortOrder
  cwMemberId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  token?: Prisma.SortOrder
  updatedBy?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type UserAvgOrderByAggregateInput = {
  cwMemberId?: Prisma.SortOrder
}

export type UserMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  permissions?: Prisma.SortOrder
  login?: Prisma.SortOrder
  firstName?: Prisma.SortOrder
  lastName?: Prisma.SortOrder
  email?: Prisma.SortOrder
  image?: Prisma.SortOrder
  title?: Prisma.SortOrder
  active?: Prisma.SortOrder
  hidden?: Prisma.SortOrder
  cwIdentifier?: Prisma.SortOrder
  cwMemberId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  token?: Prisma.SortOrder
  updatedBy?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type UserMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  permissions?: Prisma.SortOrder
  login?: Prisma.SortOrder
  firstName?: Prisma.SortOrder
  lastName?: Prisma.SortOrder
  email?: Prisma.SortOrder
  image?: Prisma.SortOrder
  title?: Prisma.SortOrder
  active?: Prisma.SortOrder
  hidden?: Prisma.SortOrder
  cwIdentifier?: Prisma.SortOrder
  cwMemberId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  token?: Prisma.SortOrder
  updatedBy?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type UserSumOrderByAggregateInput = {
  cwMemberId?: Prisma.SortOrder
}

export type UserListRelationFilter = {
  every?: Prisma.UserWhereInput
  some?: Prisma.UserWhereInput
  none?: Prisma.UserWhereInput
}

export type UserOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type UserNullableScalarRelationFilter = {
  is?: Prisma.UserWhereInput | null
  isNot?: Prisma.UserWhereInput | null
}

export type UserCreateNestedOneWithoutSessionsInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput
  upsert?: Prisma.UserUpsertWithoutSessionsInput
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSessionsInput, Prisma.UserUpdateWithoutSessionsInput>, Prisma.UserUncheckedUpdateWithoutSessionsInput>
}

export type NullableIntFieldUpdateOperationsInput = {
  set?: number | null
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type UserCreateNestedManyWithoutRolesInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutRolesInput, Prisma.UserUncheckedCreateWithoutRolesInput> | Prisma.UserCreateWithoutRolesInput[] | Prisma.UserUncheckedCreateWithoutRolesInput[]
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutRolesInput | Prisma.UserCreateOrConnectWithoutRolesInput[]
  connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
}

export type UserUncheckedCreateNestedManyWithoutRolesInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutRolesInput, Prisma.UserUncheckedCreateWithoutRolesInput> | Prisma.UserCreateWithoutRolesInput[] | Prisma.UserUncheckedCreateWithoutRolesInput[]
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutRolesInput | Prisma.UserCreateOrConnectWithoutRolesInput[]
  connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
}

export type UserUpdateManyWithoutRolesNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutRolesInput, Prisma.UserUncheckedCreateWithoutRolesInput> | Prisma.UserCreateWithoutRolesInput[] | Prisma.UserUncheckedCreateWithoutRolesInput[]
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutRolesInput | Prisma.UserCreateOrConnectWithoutRolesInput[]
  upsert?: Prisma.UserUpsertWithWhereUniqueWithoutRolesInput | Prisma.UserUpsertWithWhereUniqueWithoutRolesInput[]
  set?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
  disconnect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
  delete?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
  connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
  update?: Prisma.UserUpdateWithWhereUniqueWithoutRolesInput | Prisma.UserUpdateWithWhereUniqueWithoutRolesInput[]
  updateMany?: Prisma.UserUpdateManyWithWhereWithoutRolesInput | Prisma.UserUpdateManyWithWhereWithoutRolesInput[]
  deleteMany?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[]
}

export type UserUncheckedUpdateManyWithoutRolesNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutRolesInput, Prisma.UserUncheckedCreateWithoutRolesInput> | Prisma.UserCreateWithoutRolesInput[] | Prisma.UserUncheckedCreateWithoutRolesInput[]
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutRolesInput | Prisma.UserCreateOrConnectWithoutRolesInput[]
  upsert?: Prisma.UserUpsertWithWhereUniqueWithoutRolesInput | Prisma.UserUpsertWithWhereUniqueWithoutRolesInput[]
  set?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
  disconnect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
  delete?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
  connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[]
  update?: Prisma.UserUpdateWithWhereUniqueWithoutRolesInput | Prisma.UserUpdateWithWhereUniqueWithoutRolesInput[]
  updateMany?: Prisma.UserUpdateManyWithWhereWithoutRolesInput | Prisma.UserUpdateManyWithWhereWithoutRolesInput[]
  deleteMany?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[]
}

export type UserCreateNestedOneWithoutCompaniesDeletedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCompaniesDeletedInput, Prisma.UserUncheckedCreateWithoutCompaniesDeletedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompaniesDeletedInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserCreateNestedOneWithoutCompaniesEnteredInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCompaniesEnteredInput, Prisma.UserUncheckedCreateWithoutCompaniesEnteredInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompaniesEnteredInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserUpdateOneWithoutCompaniesDeletedNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCompaniesDeletedInput, Prisma.UserUncheckedCreateWithoutCompaniesDeletedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompaniesDeletedInput
  upsert?: Prisma.UserUpsertWithoutCompaniesDeletedInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutCompaniesDeletedInput, Prisma.UserUpdateWithoutCompaniesDeletedInput>, Prisma.UserUncheckedUpdateWithoutCompaniesDeletedInput>
}

export type UserUpdateOneWithoutCompaniesEnteredNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCompaniesEnteredInput, Prisma.UserUncheckedCreateWithoutCompaniesEnteredInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompaniesEnteredInput
  upsert?: Prisma.UserUpsertWithoutCompaniesEnteredInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutCompaniesEnteredInput, Prisma.UserUpdateWithoutCompaniesEnteredInput>, Prisma.UserUncheckedUpdateWithoutCompaniesEnteredInput>
}

export type UserCreateNestedOneWithoutCompanyAddressesInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCompanyAddressesInput, Prisma.UserUncheckedCreateWithoutCompanyAddressesInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompanyAddressesInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserUpdateOneWithoutCompanyAddressesNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCompanyAddressesInput, Prisma.UserUncheckedCreateWithoutCompanyAddressesInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompanyAddressesInput
  upsert?: Prisma.UserUpsertWithoutCompanyAddressesInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutCompanyAddressesInput, Prisma.UserUpdateWithoutCompanyAddressesInput>, Prisma.UserUncheckedUpdateWithoutCompanyAddressesInput>
}

export type UserCreateNestedOneWithoutServiceTicketsOwnedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsOwnedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsOwnedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsOwnedInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserCreateNestedOneWithoutServiceTicketsClosedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsClosedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsClosedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsClosedInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserCreateNestedOneWithoutServiceTicketsCreatedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsCreatedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsCreatedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsCreatedInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserCreateNestedOneWithoutServiceTicketsUpdatedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsUpdatedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsUpdatedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsUpdatedInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserUpdateOneWithoutServiceTicketsOwnedNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsOwnedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsOwnedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsOwnedInput
  upsert?: Prisma.UserUpsertWithoutServiceTicketsOwnedInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutServiceTicketsOwnedInput, Prisma.UserUpdateWithoutServiceTicketsOwnedInput>, Prisma.UserUncheckedUpdateWithoutServiceTicketsOwnedInput>
}

export type UserUpdateOneWithoutServiceTicketsClosedNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsClosedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsClosedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsClosedInput
  upsert?: Prisma.UserUpsertWithoutServiceTicketsClosedInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutServiceTicketsClosedInput, Prisma.UserUpdateWithoutServiceTicketsClosedInput>, Prisma.UserUncheckedUpdateWithoutServiceTicketsClosedInput>
}

export type UserUpdateOneWithoutServiceTicketsCreatedNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsCreatedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsCreatedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsCreatedInput
  upsert?: Prisma.UserUpsertWithoutServiceTicketsCreatedInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutServiceTicketsCreatedInput, Prisma.UserUpdateWithoutServiceTicketsCreatedInput>, Prisma.UserUncheckedUpdateWithoutServiceTicketsCreatedInput>
}

export type UserUpdateOneWithoutServiceTicketsUpdatedNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsUpdatedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsUpdatedInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsUpdatedInput
  upsert?: Prisma.UserUpsertWithoutServiceTicketsUpdatedInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutServiceTicketsUpdatedInput, Prisma.UserUpdateWithoutServiceTicketsUpdatedInput>, Prisma.UserUncheckedUpdateWithoutServiceTicketsUpdatedInput>
}

export type UserCreateNestedOneWithoutServiceTicketNotesInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketNotesInput, Prisma.UserUncheckedCreateWithoutServiceTicketNotesInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketNotesInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserUpdateOneRequiredWithoutServiceTicketNotesNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketNotesInput, Prisma.UserUncheckedCreateWithoutServiceTicketNotesInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketNotesInput
  upsert?: Prisma.UserUpsertWithoutServiceTicketNotesInput
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutServiceTicketNotesInput, Prisma.UserUpdateWithoutServiceTicketNotesInput>, Prisma.UserUncheckedUpdateWithoutServiceTicketNotesInput>
}

export type UserCreateNestedOneWithoutOpportunitiesInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutOpportunitiesInput, Prisma.UserUncheckedCreateWithoutOpportunitiesInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutOpportunitiesInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserCreateNestedOneWithoutOpportunitiesSecondaryInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutOpportunitiesSecondaryInput, Prisma.UserUncheckedCreateWithoutOpportunitiesSecondaryInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutOpportunitiesSecondaryInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserUpdateOneWithoutOpportunitiesNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutOpportunitiesInput, Prisma.UserUncheckedCreateWithoutOpportunitiesInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutOpportunitiesInput
  upsert?: Prisma.UserUpsertWithoutOpportunitiesInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutOpportunitiesInput, Prisma.UserUpdateWithoutOpportunitiesInput>, Prisma.UserUncheckedUpdateWithoutOpportunitiesInput>
}

export type UserUpdateOneWithoutOpportunitiesSecondaryNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutOpportunitiesSecondaryInput, Prisma.UserUncheckedCreateWithoutOpportunitiesSecondaryInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutOpportunitiesSecondaryInput
  upsert?: Prisma.UserUpsertWithoutOpportunitiesSecondaryInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutOpportunitiesSecondaryInput, Prisma.UserUpdateWithoutOpportunitiesSecondaryInput>, Prisma.UserUncheckedUpdateWithoutOpportunitiesSecondaryInput>
}

export type UserCreateNestedOneWithoutGeneratedQuotesInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutGeneratedQuotesInput, Prisma.UserUncheckedCreateWithoutGeneratedQuotesInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutGeneratedQuotesInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserUpdateOneWithoutGeneratedQuotesNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutGeneratedQuotesInput, Prisma.UserUncheckedCreateWithoutGeneratedQuotesInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutGeneratedQuotesInput
  upsert?: Prisma.UserUpsertWithoutGeneratedQuotesInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutGeneratedQuotesInput, Prisma.UserUpdateWithoutGeneratedQuotesInput>, Prisma.UserUncheckedUpdateWithoutGeneratedQuotesInput>
}

export type UserCreateNestedOneWithoutCwMemberInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCwMemberInput, Prisma.UserUncheckedCreateWithoutCwMemberInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCwMemberInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserUncheckedCreateNestedOneWithoutCwMemberInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCwMemberInput, Prisma.UserUncheckedCreateWithoutCwMemberInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCwMemberInput
  connect?: Prisma.UserWhereUniqueInput
}

export type UserUpdateOneWithoutCwMemberNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCwMemberInput, Prisma.UserUncheckedCreateWithoutCwMemberInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCwMemberInput
  upsert?: Prisma.UserUpsertWithoutCwMemberInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutCwMemberInput, Prisma.UserUpdateWithoutCwMemberInput>, Prisma.UserUncheckedUpdateWithoutCwMemberInput>
}

export type UserUncheckedUpdateOneWithoutCwMemberNestedInput = {
  create?: Prisma.XOR<Prisma.UserCreateWithoutCwMemberInput, Prisma.UserUncheckedCreateWithoutCwMemberInput>
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutCwMemberInput
  upsert?: Prisma.UserUpsertWithoutCwMemberInput
  disconnect?: Prisma.UserWhereInput | boolean
  delete?: Prisma.UserWhereInput | boolean
  connect?: Prisma.UserWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutCwMemberInput, Prisma.UserUpdateWithoutCwMemberInput>, Prisma.UserUncheckedUpdateWithoutCwMemberInput>
}

export type UserCreateWithoutSessionsInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutSessionsInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutSessionsInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
}

export type UserUpsertWithoutSessionsInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutSessionsInput, Prisma.UserUncheckedUpdateWithoutSessionsInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutSessionsInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutSessionsInput, Prisma.UserUncheckedUpdateWithoutSessionsInput>
}

export type UserUpdateWithoutSessionsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutSessionsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserCreateWithoutRolesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutRolesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutRolesInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutRolesInput, Prisma.UserUncheckedCreateWithoutRolesInput>
}

export type UserUpsertWithWhereUniqueWithoutRolesInput = {
  where: Prisma.UserWhereUniqueInput
  update: Prisma.XOR<Prisma.UserUpdateWithoutRolesInput, Prisma.UserUncheckedUpdateWithoutRolesInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutRolesInput, Prisma.UserUncheckedCreateWithoutRolesInput>
}

export type UserUpdateWithWhereUniqueWithoutRolesInput = {
  where: Prisma.UserWhereUniqueInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutRolesInput, Prisma.UserUncheckedUpdateWithoutRolesInput>
}

export type UserUpdateManyWithWhereWithoutRolesInput = {
  where: Prisma.UserScalarWhereInput
  data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyWithoutRolesInput>
}

export type UserScalarWhereInput = {
  AND?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[]
  OR?: Prisma.UserScalarWhereInput[]
  NOT?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[]
  id?: Prisma.StringFilter<"User"> | string
  permissions?: Prisma.StringNullableFilter<"User"> | string | null
  login?: Prisma.StringFilter<"User"> | string
  firstName?: Prisma.StringNullableFilter<"User"> | string | null
  lastName?: Prisma.StringNullableFilter<"User"> | string | null
  email?: Prisma.StringFilter<"User"> | string
  image?: Prisma.StringNullableFilter<"User"> | string | null
  title?: Prisma.StringNullableFilter<"User"> | string | null
  active?: Prisma.BoolFilter<"User"> | boolean
  hidden?: Prisma.BoolFilter<"User"> | boolean
  cwIdentifier?: Prisma.StringNullableFilter<"User"> | string | null
  cwMemberId?: Prisma.IntNullableFilter<"User"> | number | null
  userId?: Prisma.StringNullableFilter<"User"> | string | null
  token?: Prisma.StringNullableFilter<"User"> | string | null
  updatedBy?: Prisma.StringNullableFilter<"User"> | string | null
  createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
}

export type UserCreateWithoutCompaniesDeletedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutCompaniesDeletedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutCompaniesDeletedInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutCompaniesDeletedInput, Prisma.UserUncheckedCreateWithoutCompaniesDeletedInput>
}

export type UserCreateWithoutCompaniesEnteredInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutCompaniesEnteredInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutCompaniesEnteredInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutCompaniesEnteredInput, Prisma.UserUncheckedCreateWithoutCompaniesEnteredInput>
}

export type UserUpsertWithoutCompaniesDeletedInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutCompaniesDeletedInput, Prisma.UserUncheckedUpdateWithoutCompaniesDeletedInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutCompaniesDeletedInput, Prisma.UserUncheckedCreateWithoutCompaniesDeletedInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutCompaniesDeletedInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutCompaniesDeletedInput, Prisma.UserUncheckedUpdateWithoutCompaniesDeletedInput>
}

export type UserUpdateWithoutCompaniesDeletedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutCompaniesDeletedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserUpsertWithoutCompaniesEnteredInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutCompaniesEnteredInput, Prisma.UserUncheckedUpdateWithoutCompaniesEnteredInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutCompaniesEnteredInput, Prisma.UserUncheckedCreateWithoutCompaniesEnteredInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutCompaniesEnteredInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutCompaniesEnteredInput, Prisma.UserUncheckedUpdateWithoutCompaniesEnteredInput>
}

export type UserUpdateWithoutCompaniesEnteredInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutCompaniesEnteredInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserCreateWithoutCompanyAddressesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutCompanyAddressesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutCompanyAddressesInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutCompanyAddressesInput, Prisma.UserUncheckedCreateWithoutCompanyAddressesInput>
}

export type UserUpsertWithoutCompanyAddressesInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutCompanyAddressesInput, Prisma.UserUncheckedUpdateWithoutCompanyAddressesInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutCompanyAddressesInput, Prisma.UserUncheckedCreateWithoutCompanyAddressesInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutCompanyAddressesInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutCompanyAddressesInput, Prisma.UserUncheckedUpdateWithoutCompanyAddressesInput>
}

export type UserUpdateWithoutCompanyAddressesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutCompanyAddressesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserCreateWithoutServiceTicketsOwnedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutServiceTicketsOwnedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutServiceTicketsOwnedInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsOwnedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsOwnedInput>
}

export type UserCreateWithoutServiceTicketsClosedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutServiceTicketsClosedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutServiceTicketsClosedInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsClosedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsClosedInput>
}

export type UserCreateWithoutServiceTicketsCreatedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutServiceTicketsCreatedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutServiceTicketsCreatedInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsCreatedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsCreatedInput>
}

export type UserCreateWithoutServiceTicketsUpdatedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutServiceTicketsUpdatedInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutServiceTicketsUpdatedInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsUpdatedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsUpdatedInput>
}

export type UserUpsertWithoutServiceTicketsOwnedInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketsOwnedInput, Prisma.UserUncheckedUpdateWithoutServiceTicketsOwnedInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsOwnedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsOwnedInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutServiceTicketsOwnedInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketsOwnedInput, Prisma.UserUncheckedUpdateWithoutServiceTicketsOwnedInput>
}

export type UserUpdateWithoutServiceTicketsOwnedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutServiceTicketsOwnedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserUpsertWithoutServiceTicketsClosedInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketsClosedInput, Prisma.UserUncheckedUpdateWithoutServiceTicketsClosedInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsClosedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsClosedInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutServiceTicketsClosedInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketsClosedInput, Prisma.UserUncheckedUpdateWithoutServiceTicketsClosedInput>
}

export type UserUpdateWithoutServiceTicketsClosedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutServiceTicketsClosedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserUpsertWithoutServiceTicketsCreatedInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketsCreatedInput, Prisma.UserUncheckedUpdateWithoutServiceTicketsCreatedInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsCreatedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsCreatedInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutServiceTicketsCreatedInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketsCreatedInput, Prisma.UserUncheckedUpdateWithoutServiceTicketsCreatedInput>
}

export type UserUpdateWithoutServiceTicketsCreatedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutServiceTicketsCreatedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserUpsertWithoutServiceTicketsUpdatedInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketsUpdatedInput, Prisma.UserUncheckedUpdateWithoutServiceTicketsUpdatedInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketsUpdatedInput, Prisma.UserUncheckedCreateWithoutServiceTicketsUpdatedInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutServiceTicketsUpdatedInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketsUpdatedInput, Prisma.UserUncheckedUpdateWithoutServiceTicketsUpdatedInput>
}

export type UserUpdateWithoutServiceTicketsUpdatedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutServiceTicketsUpdatedInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserCreateWithoutServiceTicketNotesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
}

export type UserUncheckedCreateWithoutServiceTicketNotesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
}

export type UserCreateOrConnectWithoutServiceTicketNotesInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketNotesInput, Prisma.UserUncheckedCreateWithoutServiceTicketNotesInput>
}

export type UserUpsertWithoutServiceTicketNotesInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketNotesInput, Prisma.UserUncheckedUpdateWithoutServiceTicketNotesInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutServiceTicketNotesInput, Prisma.UserUncheckedCreateWithoutServiceTicketNotesInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutServiceTicketNotesInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutServiceTicketNotesInput, Prisma.UserUncheckedUpdateWithoutServiceTicketNotesInput>
}

export type UserUpdateWithoutServiceTicketNotesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
}

export type UserUncheckedUpdateWithoutServiceTicketNotesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
}

export type UserCreateWithoutOpportunitiesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutOpportunitiesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutOpportunitiesInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutOpportunitiesInput, Prisma.UserUncheckedCreateWithoutOpportunitiesInput>
}

export type UserCreateWithoutOpportunitiesSecondaryInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutOpportunitiesSecondaryInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutOpportunitiesSecondaryInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutOpportunitiesSecondaryInput, Prisma.UserUncheckedCreateWithoutOpportunitiesSecondaryInput>
}

export type UserUpsertWithoutOpportunitiesInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutOpportunitiesInput, Prisma.UserUncheckedUpdateWithoutOpportunitiesInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutOpportunitiesInput, Prisma.UserUncheckedCreateWithoutOpportunitiesInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutOpportunitiesInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutOpportunitiesInput, Prisma.UserUncheckedUpdateWithoutOpportunitiesInput>
}

export type UserUpdateWithoutOpportunitiesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutOpportunitiesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserUpsertWithoutOpportunitiesSecondaryInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutOpportunitiesSecondaryInput, Prisma.UserUncheckedUpdateWithoutOpportunitiesSecondaryInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutOpportunitiesSecondaryInput, Prisma.UserUncheckedCreateWithoutOpportunitiesSecondaryInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutOpportunitiesSecondaryInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutOpportunitiesSecondaryInput, Prisma.UserUncheckedUpdateWithoutOpportunitiesSecondaryInput>
}

export type UserUpdateWithoutOpportunitiesSecondaryInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutOpportunitiesSecondaryInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserCreateWithoutGeneratedQuotesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  cwMember?: Prisma.CwMemberCreateNestedOneWithoutUserInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutGeneratedQuotesInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  cwMemberId?: number | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutGeneratedQuotesInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutGeneratedQuotesInput, Prisma.UserUncheckedCreateWithoutGeneratedQuotesInput>
}

export type UserUpsertWithoutGeneratedQuotesInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutGeneratedQuotesInput, Prisma.UserUncheckedUpdateWithoutGeneratedQuotesInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutGeneratedQuotesInput, Prisma.UserUncheckedCreateWithoutGeneratedQuotesInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutGeneratedQuotesInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutGeneratedQuotesInput, Prisma.UserUncheckedUpdateWithoutGeneratedQuotesInput>
}

export type UserUpdateWithoutGeneratedQuotesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutGeneratedQuotesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserCreateWithoutCwMemberInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteCreateNestedManyWithoutAuthorInput
}

export type UserUncheckedCreateWithoutCwMemberInput = {
  id?: string
  permissions?: string | null
  login: string
  firstName?: string | null
  lastName?: string | null
  email: string
  image?: string | null
  title?: string | null
  active?: boolean
  hidden?: boolean
  cwIdentifier?: string | null
  userId?: string | null
  token?: string | null
  updatedBy?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
  companiesDeleted?: Prisma.CompanyUncheckedCreateNestedManyWithoutDeletedByInput
  companiesEntered?: Prisma.CompanyUncheckedCreateNestedManyWithoutEnteredByInput
  opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
  companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutTicketOwnerInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutClosedByInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCreatedByInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutUpdatedByInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedCreateNestedManyWithoutAuthorInput
}

export type UserCreateOrConnectWithoutCwMemberInput = {
  where: Prisma.UserWhereUniqueInput
  create: Prisma.XOR<Prisma.UserCreateWithoutCwMemberInput, Prisma.UserUncheckedCreateWithoutCwMemberInput>
}

export type UserUpsertWithoutCwMemberInput = {
  update: Prisma.XOR<Prisma.UserUpdateWithoutCwMemberInput, Prisma.UserUncheckedUpdateWithoutCwMemberInput>
  create: Prisma.XOR<Prisma.UserCreateWithoutCwMemberInput, Prisma.UserUncheckedCreateWithoutCwMemberInput>
  where?: Prisma.UserWhereInput
}

export type UserUpdateToOneWithWhereWithoutCwMemberInput = {
  where?: Prisma.UserWhereInput
  data: Prisma.XOR<Prisma.UserUpdateWithoutCwMemberInput, Prisma.UserUncheckedUpdateWithoutCwMemberInput>
}

export type UserUpdateWithoutCwMemberInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutCwMemberInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserUpdateWithoutRolesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  cwMember?: Prisma.CwMemberUpdateOneWithoutUserNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateWithoutRolesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
  companiesDeleted?: Prisma.CompanyUncheckedUpdateManyWithoutDeletedByNestedInput
  companiesEntered?: Prisma.CompanyUncheckedUpdateManyWithoutEnteredByNestedInput
  opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput
  opportunitiesSecondary?: Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput
  generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
  companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketsOwned?: Prisma.ServiceTicketUncheckedUpdateManyWithoutTicketOwnerNestedInput
  serviceTicketsClosed?: Prisma.ServiceTicketUncheckedUpdateManyWithoutClosedByNestedInput
  serviceTicketsCreated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCreatedByNestedInput
  serviceTicketsUpdated?: Prisma.ServiceTicketUncheckedUpdateManyWithoutUpdatedByNestedInput
  serviceTicketNotes?: Prisma.ServiceTicketNoteUncheckedUpdateManyWithoutAuthorNestedInput
}

export type UserUncheckedUpdateManyWithoutRolesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  login?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  email?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
  cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwMemberId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type UserCountOutputType
 */

export type UserCountOutputType = {
  roles: number
  sessions: number
  companiesDeleted: number
  companiesEntered: number
  opportunities: number
  opportunitiesSecondary: number
  generatedQuotes: number
  companyAddresses: number
  serviceTicketsOwned: number
  serviceTicketsClosed: number
  serviceTicketsCreated: number
  serviceTicketsUpdated: number
  serviceTicketNotes: number
}

export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  roles?: boolean | UserCountOutputTypeCountRolesArgs
  sessions?: boolean | UserCountOutputTypeCountSessionsArgs
  companiesDeleted?: boolean | UserCountOutputTypeCountCompaniesDeletedArgs
  companiesEntered?: boolean | UserCountOutputTypeCountCompaniesEnteredArgs
  opportunities?: boolean | UserCountOutputTypeCountOpportunitiesArgs
  opportunitiesSecondary?: boolean | UserCountOutputTypeCountOpportunitiesSecondaryArgs
  generatedQuotes?: boolean | UserCountOutputTypeCountGeneratedQuotesArgs
  companyAddresses?: boolean | UserCountOutputTypeCountCompanyAddressesArgs
  serviceTicketsOwned?: boolean | UserCountOutputTypeCountServiceTicketsOwnedArgs
  serviceTicketsClosed?: boolean | UserCountOutputTypeCountServiceTicketsClosedArgs
  serviceTicketsCreated?: boolean | UserCountOutputTypeCountServiceTicketsCreatedArgs
  serviceTicketsUpdated?: boolean | UserCountOutputTypeCountServiceTicketsUpdatedArgs
  serviceTicketNotes?: boolean | UserCountOutputTypeCountServiceTicketNotesArgs
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserCountOutputType
   */
  select?: Prisma.UserCountOutputTypeSelect<ExtArgs> | null
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.RoleWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.SessionWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountCompaniesDeletedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CompanyWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountCompaniesEnteredArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CompanyWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountOpportunitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.OpportunityWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountOpportunitiesSecondaryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.OpportunityWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountGeneratedQuotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.GeneratedQuotesWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountCompanyAddressesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CompanyAddressWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountServiceTicketsOwnedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ServiceTicketWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountServiceTicketsClosedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ServiceTicketWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountServiceTicketsCreatedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ServiceTicketWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountServiceTicketsUpdatedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ServiceTicketWhereInput
}

/**
 * UserCountOutputType without action
 */
export type UserCountOutputTypeCountServiceTicketNotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ServiceTicketNoteWhereInput
}


export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  permissions?: boolean
  login?: boolean
  firstName?: boolean
  lastName?: boolean
  email?: boolean
  image?: boolean
  title?: boolean
  active?: boolean
  hidden?: boolean
  cwIdentifier?: boolean
  cwMemberId?: boolean
  userId?: boolean
  token?: boolean
  updatedBy?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  roles?: boolean | Prisma.User$rolesArgs<ExtArgs>
  cwMember?: boolean | Prisma.User$cwMemberArgs<ExtArgs>
  sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>
  companiesDeleted?: boolean | Prisma.User$companiesDeletedArgs<ExtArgs>
  companiesEntered?: boolean | Prisma.User$companiesEnteredArgs<ExtArgs>
  opportunities?: boolean | Prisma.User$opportunitiesArgs<ExtArgs>
  opportunitiesSecondary?: boolean | Prisma.User$opportunitiesSecondaryArgs<ExtArgs>
  generatedQuotes?: boolean | Prisma.User$generatedQuotesArgs<ExtArgs>
  companyAddresses?: boolean | Prisma.User$companyAddressesArgs<ExtArgs>
  serviceTicketsOwned?: boolean | Prisma.User$serviceTicketsOwnedArgs<ExtArgs>
  serviceTicketsClosed?: boolean | Prisma.User$serviceTicketsClosedArgs<ExtArgs>
  serviceTicketsCreated?: boolean | Prisma.User$serviceTicketsCreatedArgs<ExtArgs>
  serviceTicketsUpdated?: boolean | Prisma.User$serviceTicketsUpdatedArgs<ExtArgs>
  serviceTicketNotes?: boolean | Prisma.User$serviceTicketNotesArgs<ExtArgs>
  _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["user"]>

export type UserSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  permissions?: boolean
  login?: boolean
  firstName?: boolean
  lastName?: boolean
  email?: boolean
  image?: boolean
  title?: boolean
  active?: boolean
  hidden?: boolean
  cwIdentifier?: boolean
  cwMemberId?: boolean
  userId?: boolean
  token?: boolean
  updatedBy?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  cwMember?: boolean | Prisma.User$cwMemberArgs<ExtArgs>
}, ExtArgs["result"]["user"]>

export type UserSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  permissions?: boolean
  login?: boolean
  firstName?: boolean
  lastName?: boolean
  email?: boolean
  image?: boolean
  title?: boolean
  active?: boolean
  hidden?: boolean
  cwIdentifier?: boolean
  cwMemberId?: boolean
  userId?: boolean
  token?: boolean
  updatedBy?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  cwMember?: boolean | Prisma.User$cwMemberArgs<ExtArgs>
}, ExtArgs["result"]["user"]>

export type UserSelectScalar = {
  id?: boolean
  permissions?: boolean
  login?: boolean
  firstName?: boolean
  lastName?: boolean
  email?: boolean
  image?: boolean
  title?: boolean
  active?: boolean
  hidden?: boolean
  cwIdentifier?: boolean
  cwMemberId?: boolean
  userId?: boolean
  token?: boolean
  updatedBy?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "permissions" | "login" | "firstName" | "lastName" | "email" | "image" | "title" | "active" | "hidden" | "cwIdentifier" | "cwMemberId" | "userId" | "token" | "updatedBy" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]>
export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  roles?: boolean | Prisma.User$rolesArgs<ExtArgs>
  cwMember?: boolean | Prisma.User$cwMemberArgs<ExtArgs>
  sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>
  companiesDeleted?: boolean | Prisma.User$companiesDeletedArgs<ExtArgs>
  companiesEntered?: boolean | Prisma.User$companiesEnteredArgs<ExtArgs>
  opportunities?: boolean | Prisma.User$opportunitiesArgs<ExtArgs>
  opportunitiesSecondary?: boolean | Prisma.User$opportunitiesSecondaryArgs<ExtArgs>
  generatedQuotes?: boolean | Prisma.User$generatedQuotesArgs<ExtArgs>
  companyAddresses?: boolean | Prisma.User$companyAddressesArgs<ExtArgs>
  serviceTicketsOwned?: boolean | Prisma.User$serviceTicketsOwnedArgs<ExtArgs>
  serviceTicketsClosed?: boolean | Prisma.User$serviceTicketsClosedArgs<ExtArgs>
  serviceTicketsCreated?: boolean | Prisma.User$serviceTicketsCreatedArgs<ExtArgs>
  serviceTicketsUpdated?: boolean | Prisma.User$serviceTicketsUpdatedArgs<ExtArgs>
  serviceTicketNotes?: boolean | Prisma.User$serviceTicketNotesArgs<ExtArgs>
  _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
}
export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  cwMember?: boolean | Prisma.User$cwMemberArgs<ExtArgs>
}
export type UserIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  cwMember?: boolean | Prisma.User$cwMemberArgs<ExtArgs>
}

export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "User"
  objects: {
    roles: Prisma.$RolePayload<ExtArgs>[]
    cwMember: Prisma.$CwMemberPayload<ExtArgs> | null
    sessions: Prisma.$SessionPayload<ExtArgs>[]
    companiesDeleted: Prisma.$CompanyPayload<ExtArgs>[]
    companiesEntered: Prisma.$CompanyPayload<ExtArgs>[]
    opportunities: Prisma.$OpportunityPayload<ExtArgs>[]
    opportunitiesSecondary: Prisma.$OpportunityPayload<ExtArgs>[]
    generatedQuotes: Prisma.$GeneratedQuotesPayload<ExtArgs>[]
    companyAddresses: Prisma.$CompanyAddressPayload<ExtArgs>[]
    serviceTicketsOwned: Prisma.$ServiceTicketPayload<ExtArgs>[]
    serviceTicketsClosed: Prisma.$ServiceTicketPayload<ExtArgs>[]
    serviceTicketsCreated: Prisma.$ServiceTicketPayload<ExtArgs>[]
    serviceTicketsUpdated: Prisma.$ServiceTicketPayload<ExtArgs>[]
    serviceTicketNotes: Prisma.$ServiceTicketNotePayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    permissions: string | null
    login: string
    firstName: string | null
    lastName: string | null
    email: string
    image: string | null
    title: string | null
    active: boolean
    hidden: boolean
    cwIdentifier: string | null
    cwMemberId: number | null
    userId: string | null
    token: string | null
    updatedBy: string | null
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["user"]>
  composites: {}
}

export type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserPayload, S>

export type UserCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: UserCountAggregateInputType | true
  }

export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
  /**
   * Find zero or one User that matches the filter.
   * @param {UserFindUniqueArgs} args - Arguments to find a User
   * @example
   * // Get one User
   * const user = await prisma.user.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends UserFindUniqueArgs>(args: Prisma.SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one User that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
   * @example
   * // Get one User
   * const user = await prisma.user.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first User that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserFindFirstArgs} args - Arguments to find a User
   * @example
   * // Get one User
   * const user = await prisma.user.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends UserFindFirstArgs>(args?: Prisma.SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first User that matches the filter or
   * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
   * @example
   * // Get one User
   * const user = await prisma.user.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more Users that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Users
   * const users = await prisma.user.findMany()
   * 
   * // Get first 10 Users
   * const users = await prisma.user.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends UserFindManyArgs>(args?: Prisma.SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a User.
   * @param {UserCreateArgs} args - Arguments to create a User.
   * @example
   * // Create one User
   * const User = await prisma.user.create({
   *   data: {
   *     // ... data to create a User
   *   }
   * })
   * 
   */
  create<T extends UserCreateArgs>(args: Prisma.SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many Users.
   * @param {UserCreateManyArgs} args - Arguments to create many Users.
   * @example
   * // Create many Users
   * const user = await prisma.user.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends UserCreateManyArgs>(args?: Prisma.SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many Users and returns the data saved in the database.
   * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
   * @example
   * // Create many Users
   * const user = await prisma.user.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Users and only return the `id`
   * const userWithIdOnly = await prisma.user.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a User.
   * @param {UserDeleteArgs} args - Arguments to delete one User.
   * @example
   * // Delete one User
   * const User = await prisma.user.delete({
   *   where: {
   *     // ... filter to delete one User
   *   }
   * })
   * 
   */
  delete<T extends UserDeleteArgs>(args: Prisma.SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one User.
   * @param {UserUpdateArgs} args - Arguments to update one User.
   * @example
   * // Update one User
   * const user = await prisma.user.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends UserUpdateArgs>(args: Prisma.SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more Users.
   * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
   * @example
   * // Delete a few Users
   * const { count } = await prisma.user.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends UserDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Users.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many Users
   * const user = await prisma.user.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends UserUpdateManyArgs>(args: Prisma.SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Users and returns the data updated in the database.
   * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
   * @example
   * // Update many Users
   * const user = await prisma.user.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Users and only return the `id`
   * const userWithIdOnly = await prisma.user.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one User.
   * @param {UserUpsertArgs} args - Arguments to update or create a User.
   * @example
   * // Update or create a User
   * const user = await prisma.user.upsert({
   *   create: {
   *     // ... data to create a User
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the User we want to update
   *   }
   * })
   */
  upsert<T extends UserUpsertArgs>(args: Prisma.SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of Users.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserCountArgs} args - Arguments to filter Users to count.
   * @example
   * // Count the number of Users
   * const count = await prisma.user.count({
   *   where: {
   *     // ... the filter for the Users we want to count
   *   }
   * })
  **/
  count<T extends UserCountArgs>(
    args?: Prisma.Subset<T, UserCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], UserCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a User.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
   * @example
   * // Ordered by age ascending
   * // Where email contains prisma.io
   * // Limited to the 10 users
   * const aggregations = await prisma.user.aggregate({
   *   _avg: {
   *     age: true,
   *   },
   *   where: {
   *     email: {
   *       contains: "prisma.io",
   *     },
   *   },
   *   orderBy: {
   *     age: "asc",
   *   },
   *   take: 10,
   * })
  **/
  aggregate<T extends UserAggregateArgs>(args: Prisma.Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>

  /**
   * Group by User.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserGroupByArgs} args - Group by arguments.
   * @example
   * // Group by city, order by createdAt, get count
   * const result = await prisma.user.groupBy({
   *   by: ['city', 'createdAt'],
   *   orderBy: {
   *     createdAt: true
   *   },
   *   _count: {
   *     _all: true
   *   },
   * })
   * 
  **/
  groupBy<
    T extends UserGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: UserGroupByArgs['orderBy'] }
      : { orderBy?: UserGroupByArgs['orderBy'] },
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
    InputErrors extends ByEmpty extends Prisma.True
    ? `Error: "by" must not be empty.`
    : HavingValid extends Prisma.False
    ? {
        [P in HavingFields]: P extends ByFields
          ? never
          : P extends string
          ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
          : [
              Error,
              'Field ',
              P,
              ` in "having" needs to be provided in "by"`,
            ]
      }[HavingFields]
    : 'take' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "take", you also need to provide "orderBy"'
    : 'skip' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "skip", you also need to provide "orderBy"'
    : ByValid extends Prisma.True
    ? {}
    : {
        [P in OrderFields]: P extends ByFields
          ? never
          : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
      }[OrderFields]
  >(args: Prisma.SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the User model
 */
readonly fields: UserFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for User.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  roles<T extends Prisma.User$rolesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$rolesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  cwMember<T extends Prisma.User$cwMemberArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$cwMemberArgs<ExtArgs>>): Prisma.Prisma__CwMemberClient<runtime.Types.Result.GetResult<Prisma.$CwMemberPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  sessions<T extends Prisma.User$sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  companiesDeleted<T extends Prisma.User$companiesDeletedArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$companiesDeletedArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  companiesEntered<T extends Prisma.User$companiesEnteredArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$companiesEnteredArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  opportunities<T extends Prisma.User$opportunitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$opportunitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  opportunitiesSecondary<T extends Prisma.User$opportunitiesSecondaryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$opportunitiesSecondaryArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  generatedQuotes<T extends Prisma.User$generatedQuotesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$generatedQuotesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GeneratedQuotesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  companyAddresses<T extends Prisma.User$companyAddressesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$companyAddressesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CompanyAddressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  serviceTicketsOwned<T extends Prisma.User$serviceTicketsOwnedArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$serviceTicketsOwnedArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceTicketPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  serviceTicketsClosed<T extends Prisma.User$serviceTicketsClosedArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$serviceTicketsClosedArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceTicketPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  serviceTicketsCreated<T extends Prisma.User$serviceTicketsCreatedArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$serviceTicketsCreatedArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceTicketPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  serviceTicketsUpdated<T extends Prisma.User$serviceTicketsUpdatedArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$serviceTicketsUpdatedArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceTicketPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  serviceTicketNotes<T extends Prisma.User$serviceTicketNotesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$serviceTicketNotesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceTicketNotePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the User model
 */
export interface UserFieldRefs {
  readonly id: Prisma.FieldRef<"User", 'String'>
  readonly permissions: Prisma.FieldRef<"User", 'String'>
  readonly login: Prisma.FieldRef<"User", 'String'>
  readonly firstName: Prisma.FieldRef<"User", 'String'>
  readonly lastName: Prisma.FieldRef<"User", 'String'>
  readonly email: Prisma.FieldRef<"User", 'String'>
  readonly image: Prisma.FieldRef<"User", 'String'>
  readonly title: Prisma.FieldRef<"User", 'String'>
  readonly active: Prisma.FieldRef<"User", 'Boolean'>
  readonly hidden: Prisma.FieldRef<"User", 'Boolean'>
  readonly cwIdentifier: Prisma.FieldRef<"User", 'String'>
  readonly cwMemberId: Prisma.FieldRef<"User", 'Int'>
  readonly userId: Prisma.FieldRef<"User", 'String'>
  readonly token: Prisma.FieldRef<"User", 'String'>
  readonly updatedBy: Prisma.FieldRef<"User", 'String'>
  readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'>
}
    

// Custom InputTypes
/**
 * User findUnique
 */
export type UserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  /**
   * Filter, which User to fetch.
   */
  where: Prisma.UserWhereUniqueInput
}

/**
 * User findUniqueOrThrow
 */
export type UserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  /**
   * Filter, which User to fetch.
   */
  where: Prisma.UserWhereUniqueInput
}

/**
 * User findFirst
 */
export type UserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  /**
   * Filter, which User to fetch.
   */
  where?: Prisma.UserWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Users to fetch.
   */
  orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for Users.
   */
  cursor?: Prisma.UserWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Users from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Users.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Users.
   */
  distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
}

/**
 * User findFirstOrThrow
 */
export type UserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  /**
   * Filter, which User to fetch.
   */
  where?: Prisma.UserWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Users to fetch.
   */
  orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for Users.
   */
  cursor?: Prisma.UserWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Users from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Users.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Users.
   */
  distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
}

/**
 * User findMany
 */
export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  /**
   * Filter, which Users to fetch.
   */
  where?: Prisma.UserWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Users to fetch.
   */
  orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing Users.
   */
  cursor?: Prisma.UserWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Users from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Users.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Users.
   */
  distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
}

/**
 * User create
 */
export type UserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  /**
   * The data needed to create a User.
   */
  data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
}

/**
 * User createMany
 */
export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many Users.
   */
  data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * User createManyAndReturn
 */
export type UserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * The data used to create many Users.
   */
  data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * User update
 */
export type UserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  /**
   * The data needed to update a User.
   */
  data: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
  /**
   * Choose, which User to update.
   */
  where: Prisma.UserWhereUniqueInput
}

/**
 * User updateMany
 */
export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Users.
   */
  data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
  /**
   * Filter which Users to update
   */
  where?: Prisma.UserWhereInput
  /**
   * Limit how many Users to update.
   */
  limit?: number
}

/**
 * User updateManyAndReturn
 */
export type UserUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * The data used to update Users.
   */
  data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
  /**
   * Filter which Users to update
   */
  where?: Prisma.UserWhereInput
  /**
   * Limit how many Users to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * User upsert
 */
export type UserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  /**
   * The filter to search for the User to update in case it exists.
   */
  where: Prisma.UserWhereUniqueInput
  /**
   * In case the User found by the `where` argument doesn't exist, create a new User with this data.
   */
  create: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
  /**
   * In case the User was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
}

/**
 * User delete
 */
export type UserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  /**
   * Filter which User to delete.
   */
  where: Prisma.UserWhereUniqueInput
}

/**
 * User deleteMany
 */
export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Users to delete
   */
  where?: Prisma.UserWhereInput
  /**
   * Limit how many Users to delete.
   */
  limit?: number
}

/**
 * User.roles
 */
export type User$rolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Role
   */
  select?: Prisma.RoleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Role
   */
  omit?: Prisma.RoleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RoleInclude<ExtArgs> | null
  where?: Prisma.RoleWhereInput
  orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[]
  cursor?: Prisma.RoleWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[]
}

/**
 * User.cwMember
 */
export type User$cwMemberArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CwMember
   */
  select?: Prisma.CwMemberSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CwMember
   */
  omit?: Prisma.CwMemberOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CwMemberInclude<ExtArgs> | null
  where?: Prisma.CwMemberWhereInput
}

/**
 * User.sessions
 */
export type User$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Session
   */
  select?: Prisma.SessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Session
   */
  omit?: Prisma.SessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionInclude<ExtArgs> | null
  where?: Prisma.SessionWhereInput
  orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
  cursor?: Prisma.SessionWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
}

/**
 * User.companiesDeleted
 */
export type User$companiesDeletedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Company
   */
  select?: Prisma.CompanySelect<ExtArgs> | null
  /**
   * Omit specific fields from the Company
   */
  omit?: Prisma.CompanyOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CompanyInclude<ExtArgs> | null
  where?: Prisma.CompanyWhereInput
  orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[]
  cursor?: Prisma.CompanyWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[]
}

/**
 * User.companiesEntered
 */
export type User$companiesEnteredArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Company
   */
  select?: Prisma.CompanySelect<ExtArgs> | null
  /**
   * Omit specific fields from the Company
   */
  omit?: Prisma.CompanyOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CompanyInclude<ExtArgs> | null
  where?: Prisma.CompanyWhereInput
  orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[]
  cursor?: Prisma.CompanyWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[]
}

/**
 * User.opportunities
 */
export type User$opportunitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Opportunity
   */
  select?: Prisma.OpportunitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the Opportunity
   */
  omit?: Prisma.OpportunityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OpportunityInclude<ExtArgs> | null
  where?: Prisma.OpportunityWhereInput
  orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[]
  cursor?: Prisma.OpportunityWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[]
}

/**
 * User.opportunitiesSecondary
 */
export type User$opportunitiesSecondaryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Opportunity
   */
  select?: Prisma.OpportunitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the Opportunity
   */
  omit?: Prisma.OpportunityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OpportunityInclude<ExtArgs> | null
  where?: Prisma.OpportunityWhereInput
  orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[]
  cursor?: Prisma.OpportunityWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[]
}

/**
 * User.generatedQuotes
 */
export type User$generatedQuotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GeneratedQuotes
   */
  select?: Prisma.GeneratedQuotesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GeneratedQuotes
   */
  omit?: Prisma.GeneratedQuotesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.GeneratedQuotesInclude<ExtArgs> | null
  where?: Prisma.GeneratedQuotesWhereInput
  orderBy?: Prisma.GeneratedQuotesOrderByWithRelationInput | Prisma.GeneratedQuotesOrderByWithRelationInput[]
  cursor?: Prisma.GeneratedQuotesWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.GeneratedQuotesScalarFieldEnum | Prisma.GeneratedQuotesScalarFieldEnum[]
}

/**
 * User.companyAddresses
 */
export type User$companyAddressesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CompanyAddress
   */
  select?: Prisma.CompanyAddressSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CompanyAddress
   */
  omit?: Prisma.CompanyAddressOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CompanyAddressInclude<ExtArgs> | null
  where?: Prisma.CompanyAddressWhereInput
  orderBy?: Prisma.CompanyAddressOrderByWithRelationInput | Prisma.CompanyAddressOrderByWithRelationInput[]
  cursor?: Prisma.CompanyAddressWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.CompanyAddressScalarFieldEnum | Prisma.CompanyAddressScalarFieldEnum[]
}

/**
 * User.serviceTicketsOwned
 */
export type User$serviceTicketsOwnedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ServiceTicket
   */
  select?: Prisma.ServiceTicketSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ServiceTicket
   */
  omit?: Prisma.ServiceTicketOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ServiceTicketInclude<ExtArgs> | null
  where?: Prisma.ServiceTicketWhereInput
  orderBy?: Prisma.ServiceTicketOrderByWithRelationInput | Prisma.ServiceTicketOrderByWithRelationInput[]
  cursor?: Prisma.ServiceTicketWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ServiceTicketScalarFieldEnum | Prisma.ServiceTicketScalarFieldEnum[]
}

/**
 * User.serviceTicketsClosed
 */
export type User$serviceTicketsClosedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ServiceTicket
   */
  select?: Prisma.ServiceTicketSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ServiceTicket
   */
  omit?: Prisma.ServiceTicketOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ServiceTicketInclude<ExtArgs> | null
  where?: Prisma.ServiceTicketWhereInput
  orderBy?: Prisma.ServiceTicketOrderByWithRelationInput | Prisma.ServiceTicketOrderByWithRelationInput[]
  cursor?: Prisma.ServiceTicketWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ServiceTicketScalarFieldEnum | Prisma.ServiceTicketScalarFieldEnum[]
}

/**
 * User.serviceTicketsCreated
 */
export type User$serviceTicketsCreatedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ServiceTicket
   */
  select?: Prisma.ServiceTicketSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ServiceTicket
   */
  omit?: Prisma.ServiceTicketOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ServiceTicketInclude<ExtArgs> | null
  where?: Prisma.ServiceTicketWhereInput
  orderBy?: Prisma.ServiceTicketOrderByWithRelationInput | Prisma.ServiceTicketOrderByWithRelationInput[]
  cursor?: Prisma.ServiceTicketWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ServiceTicketScalarFieldEnum | Prisma.ServiceTicketScalarFieldEnum[]
}

/**
 * User.serviceTicketsUpdated
 */
export type User$serviceTicketsUpdatedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ServiceTicket
   */
  select?: Prisma.ServiceTicketSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ServiceTicket
   */
  omit?: Prisma.ServiceTicketOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ServiceTicketInclude<ExtArgs> | null
  where?: Prisma.ServiceTicketWhereInput
  orderBy?: Prisma.ServiceTicketOrderByWithRelationInput | Prisma.ServiceTicketOrderByWithRelationInput[]
  cursor?: Prisma.ServiceTicketWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ServiceTicketScalarFieldEnum | Prisma.ServiceTicketScalarFieldEnum[]
}

/**
 * User.serviceTicketNotes
 */
export type User$serviceTicketNotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ServiceTicketNote
   */
  select?: Prisma.ServiceTicketNoteSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ServiceTicketNote
   */
  omit?: Prisma.ServiceTicketNoteOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ServiceTicketNoteInclude<ExtArgs> | null
  where?: Prisma.ServiceTicketNoteWhereInput
  orderBy?: Prisma.ServiceTicketNoteOrderByWithRelationInput | Prisma.ServiceTicketNoteOrderByWithRelationInput[]
  cursor?: Prisma.ServiceTicketNoteWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ServiceTicketNoteScalarFieldEnum | Prisma.ServiceTicketNoteScalarFieldEnum[]
}

/**
 * User without action
 */
export type UserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
}
