/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type UserGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 | 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 | 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 connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput connect?: Prisma.UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutSessionsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput upsert?: Prisma.UserUpsertWithoutSessionsInput connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, 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[] connectOrCreate?: Prisma.UserCreateOrConnectWithoutRolesInput | Prisma.UserCreateOrConnectWithoutRolesInput[] connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] } export type UserUncheckedCreateNestedManyWithoutRolesInput = { create?: Prisma.XOR | Prisma.UserCreateWithoutRolesInput[] | Prisma.UserUncheckedCreateWithoutRolesInput[] connectOrCreate?: Prisma.UserCreateOrConnectWithoutRolesInput | Prisma.UserCreateOrConnectWithoutRolesInput[] connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] } export type UserUpdateManyWithoutRolesNestedInput = { create?: Prisma.XOR | 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[] 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 connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompaniesDeletedInput connect?: Prisma.UserWhereUniqueInput } export type UserCreateNestedOneWithoutCompaniesEnteredInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompaniesEnteredInput connect?: Prisma.UserWhereUniqueInput } export type UserUpdateOneWithoutCompaniesDeletedNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompaniesDeletedInput upsert?: Prisma.UserUpsertWithoutCompaniesDeletedInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutCompaniesDeletedInput> } export type UserUpdateOneWithoutCompaniesEnteredNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompaniesEnteredInput upsert?: Prisma.UserUpsertWithoutCompaniesEnteredInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutCompaniesEnteredInput> } export type UserCreateNestedOneWithoutCompanyAddressesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompanyAddressesInput connect?: Prisma.UserWhereUniqueInput } export type UserUpdateOneWithoutCompanyAddressesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompanyAddressesInput upsert?: Prisma.UserUpsertWithoutCompanyAddressesInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutCompanyAddressesInput> } export type UserCreateNestedOneWithoutServiceTicketsOwnedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsOwnedInput connect?: Prisma.UserWhereUniqueInput } export type UserCreateNestedOneWithoutServiceTicketsClosedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsClosedInput connect?: Prisma.UserWhereUniqueInput } export type UserCreateNestedOneWithoutServiceTicketsCreatedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsCreatedInput connect?: Prisma.UserWhereUniqueInput } export type UserCreateNestedOneWithoutServiceTicketsUpdatedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsUpdatedInput connect?: Prisma.UserWhereUniqueInput } export type UserUpdateOneWithoutServiceTicketsOwnedNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsOwnedInput upsert?: Prisma.UserUpsertWithoutServiceTicketsOwnedInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutServiceTicketsOwnedInput> } export type UserUpdateOneWithoutServiceTicketsClosedNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsClosedInput upsert?: Prisma.UserUpsertWithoutServiceTicketsClosedInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutServiceTicketsClosedInput> } export type UserUpdateOneWithoutServiceTicketsCreatedNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsCreatedInput upsert?: Prisma.UserUpsertWithoutServiceTicketsCreatedInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutServiceTicketsCreatedInput> } export type UserUpdateOneWithoutServiceTicketsUpdatedNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketsUpdatedInput upsert?: Prisma.UserUpsertWithoutServiceTicketsUpdatedInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutServiceTicketsUpdatedInput> } export type UserCreateNestedOneWithoutServiceTicketNotesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketNotesInput connect?: Prisma.UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutServiceTicketNotesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutServiceTicketNotesInput upsert?: Prisma.UserUpsertWithoutServiceTicketNotesInput connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutServiceTicketNotesInput> } export type UserCreateNestedOneWithoutOpportunitiesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutOpportunitiesInput connect?: Prisma.UserWhereUniqueInput } export type UserCreateNestedOneWithoutOpportunitiesSecondaryInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutOpportunitiesSecondaryInput connect?: Prisma.UserWhereUniqueInput } export type UserUpdateOneWithoutOpportunitiesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutOpportunitiesInput upsert?: Prisma.UserUpsertWithoutOpportunitiesInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutOpportunitiesInput> } export type UserUpdateOneWithoutOpportunitiesSecondaryNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutOpportunitiesSecondaryInput upsert?: Prisma.UserUpsertWithoutOpportunitiesSecondaryInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutOpportunitiesSecondaryInput> } export type UserCreateNestedOneWithoutGeneratedQuotesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutGeneratedQuotesInput connect?: Prisma.UserWhereUniqueInput } export type UserUpdateOneWithoutGeneratedQuotesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutGeneratedQuotesInput upsert?: Prisma.UserUpsertWithoutGeneratedQuotesInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutGeneratedQuotesInput> } export type UserCreateNestedOneWithoutCwMemberInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutCwMemberInput connect?: Prisma.UserWhereUniqueInput } export type UserUncheckedCreateNestedOneWithoutCwMemberInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutCwMemberInput connect?: Prisma.UserWhereUniqueInput } export type UserUpdateOneWithoutCwMemberNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutCwMemberInput upsert?: Prisma.UserUpsertWithoutCwMemberInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutCwMemberInput> } export type UserUncheckedUpdateOneWithoutCwMemberNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserCreateOrConnectWithoutCwMemberInput upsert?: Prisma.UserUpsertWithoutCwMemberInput disconnect?: Prisma.UserWhereInput | boolean delete?: Prisma.UserWhereInput | boolean connect?: Prisma.UserWhereUniqueInput update?: Prisma.XOR, 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 } export type UserUpsertWithoutSessionsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutSessionsInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 } export type UserUpsertWithWhereUniqueWithoutRolesInput = { where: Prisma.UserWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type UserUpdateWithWhereUniqueWithoutRolesInput = { where: Prisma.UserWhereUniqueInput data: Prisma.XOR } export type UserUpdateManyWithWhereWithoutRolesInput = { where: Prisma.UserScalarWhereInput data: Prisma.XOR } 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 } 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 } export type UserUpsertWithoutCompaniesDeletedInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutCompaniesDeletedInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutCompaniesEnteredInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 } export type UserUpsertWithoutCompanyAddressesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutCompanyAddressesInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 } 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 } 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 } 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 } export type UserUpsertWithoutServiceTicketsOwnedInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutServiceTicketsOwnedInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutServiceTicketsClosedInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutServiceTicketsCreatedInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutServiceTicketsUpdatedInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 } export type UserUpsertWithoutServiceTicketNotesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutServiceTicketNotesInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 } 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 } export type UserUpsertWithoutOpportunitiesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutOpportunitiesInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutOpportunitiesSecondaryInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 } export type UserUpsertWithoutGeneratedQuotesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutGeneratedQuotesInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 } export type UserUpsertWithoutCwMemberInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserWhereInput } export type UserUpdateToOneWithWhereWithoutCwMemberInput = { where?: Prisma.UserWhereInput data: Prisma.XOR } 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 = { 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 = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: Prisma.UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountRolesArgs = { where?: Prisma.RoleWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountSessionsArgs = { where?: Prisma.SessionWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCompaniesDeletedArgs = { where?: Prisma.CompanyWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCompaniesEnteredArgs = { where?: Prisma.CompanyWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountOpportunitiesArgs = { where?: Prisma.OpportunityWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountOpportunitiesSecondaryArgs = { where?: Prisma.OpportunityWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountGeneratedQuotesArgs = { where?: Prisma.GeneratedQuotesWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCompanyAddressesArgs = { where?: Prisma.CompanyAddressWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountServiceTicketsOwnedArgs = { where?: Prisma.ServiceTicketWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountServiceTicketsClosedArgs = { where?: Prisma.ServiceTicketWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountServiceTicketsCreatedArgs = { where?: Prisma.ServiceTicketWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountServiceTicketsUpdatedArgs = { where?: Prisma.ServiceTicketWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountServiceTicketNotesArgs = { where?: Prisma.ServiceTicketNoteWhereInput } export type UserSelect = 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 cwMember?: boolean | Prisma.User$cwMemberArgs sessions?: boolean | Prisma.User$sessionsArgs companiesDeleted?: boolean | Prisma.User$companiesDeletedArgs companiesEntered?: boolean | Prisma.User$companiesEnteredArgs opportunities?: boolean | Prisma.User$opportunitiesArgs opportunitiesSecondary?: boolean | Prisma.User$opportunitiesSecondaryArgs generatedQuotes?: boolean | Prisma.User$generatedQuotesArgs companyAddresses?: boolean | Prisma.User$companyAddressesArgs serviceTicketsOwned?: boolean | Prisma.User$serviceTicketsOwnedArgs serviceTicketsClosed?: boolean | Prisma.User$serviceTicketsClosedArgs serviceTicketsCreated?: boolean | Prisma.User$serviceTicketsCreatedArgs serviceTicketsUpdated?: boolean | Prisma.User$serviceTicketsUpdatedArgs serviceTicketNotes?: boolean | Prisma.User$serviceTicketNotesArgs _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = 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["result"]["user"]> export type UserSelectUpdateManyAndReturn = 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["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 = 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 = { roles?: boolean | Prisma.User$rolesArgs cwMember?: boolean | Prisma.User$cwMemberArgs sessions?: boolean | Prisma.User$sessionsArgs companiesDeleted?: boolean | Prisma.User$companiesDeletedArgs companiesEntered?: boolean | Prisma.User$companiesEnteredArgs opportunities?: boolean | Prisma.User$opportunitiesArgs opportunitiesSecondary?: boolean | Prisma.User$opportunitiesSecondaryArgs generatedQuotes?: boolean | Prisma.User$generatedQuotesArgs companyAddresses?: boolean | Prisma.User$companyAddressesArgs serviceTicketsOwned?: boolean | Prisma.User$serviceTicketsOwnedArgs serviceTicketsClosed?: boolean | Prisma.User$serviceTicketsClosedArgs serviceTicketsCreated?: boolean | Prisma.User$serviceTicketsCreatedArgs serviceTicketsUpdated?: boolean | Prisma.User$serviceTicketsUpdatedArgs serviceTicketNotes?: boolean | Prisma.User$serviceTicketNotesArgs _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = { cwMember?: boolean | Prisma.User$cwMemberArgs } export type UserIncludeUpdateManyAndReturn = { cwMember?: boolean | Prisma.User$cwMemberArgs } export type $UserPayload = { name: "User" objects: { roles: Prisma.$RolePayload[] cwMember: Prisma.$CwMemberPayload | null sessions: Prisma.$SessionPayload[] companiesDeleted: Prisma.$CompanyPayload[] companiesEntered: Prisma.$CompanyPayload[] opportunities: Prisma.$OpportunityPayload[] opportunitiesSecondary: Prisma.$OpportunityPayload[] generatedQuotes: Prisma.$GeneratedQuotesPayload[] companyAddresses: Prisma.$CompanyAddressPayload[] serviceTicketsOwned: Prisma.$ServiceTicketPayload[] serviceTicketsClosed: Prisma.$ServiceTicketPayload[] serviceTicketsCreated: Prisma.$ServiceTicketPayload[] serviceTicketsUpdated: Prisma.$ServiceTicketPayload[] serviceTicketNotes: Prisma.$ServiceTicketNotePayload[] } 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 = runtime.Types.Result.GetResult export type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" roles = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> cwMember = {}>(args?: Prisma.Subset>): Prisma.Prisma__CwMemberClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> sessions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> companiesDeleted = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> companiesEntered = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> opportunities = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> opportunitiesSecondary = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> generatedQuotes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> companyAddresses = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> serviceTicketsOwned = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> serviceTicketsClosed = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> serviceTicketsCreated = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> serviceTicketsUpdated = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> serviceTicketNotes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null /** * Filter, which User to fetch. */ where: Prisma.UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null /** * Filter, which User to fetch. */ where: Prisma.UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | 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 = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | 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 = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | 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 = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null /** * The data needed to create a User. */ data: Prisma.XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelectCreateManyAndReturn | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | 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 | null } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null /** * The data needed to update a User. */ data: Prisma.XOR /** * Choose, which User to update. */ where: Prisma.UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: Prisma.XOR /** * Filter which Users to update */ where?: Prisma.UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelectUpdateManyAndReturn | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * The data used to update Users. */ data: Prisma.XOR /** * 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 | null } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | 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 /** * In case the User was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null /** * Filter which User to delete. */ where: Prisma.UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: Prisma.UserWhereInput /** * Limit how many Users to delete. */ limit?: number } /** * User.roles */ export type User$rolesArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | 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 = { /** * Select specific fields to fetch from the CwMember */ select?: Prisma.CwMemberSelect | null /** * Omit specific fields from the CwMember */ omit?: Prisma.CwMemberOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CwMemberInclude | null where?: Prisma.CwMemberWhereInput } /** * User.sessions */ export type User$sessionsArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | 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 = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | 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 = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | 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 = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | 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 = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | 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 = { /** * Select specific fields to fetch from the GeneratedQuotes */ select?: Prisma.GeneratedQuotesSelect | null /** * Omit specific fields from the GeneratedQuotes */ omit?: Prisma.GeneratedQuotesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GeneratedQuotesInclude | 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 = { /** * Select specific fields to fetch from the CompanyAddress */ select?: Prisma.CompanyAddressSelect | null /** * Omit specific fields from the CompanyAddress */ omit?: Prisma.CompanyAddressOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyAddressInclude | 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 = { /** * Select specific fields to fetch from the ServiceTicket */ select?: Prisma.ServiceTicketSelect | null /** * Omit specific fields from the ServiceTicket */ omit?: Prisma.ServiceTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ServiceTicketInclude | 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 = { /** * Select specific fields to fetch from the ServiceTicket */ select?: Prisma.ServiceTicketSelect | null /** * Omit specific fields from the ServiceTicket */ omit?: Prisma.ServiceTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ServiceTicketInclude | 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 = { /** * Select specific fields to fetch from the ServiceTicket */ select?: Prisma.ServiceTicketSelect | null /** * Omit specific fields from the ServiceTicket */ omit?: Prisma.ServiceTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ServiceTicketInclude | 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 = { /** * Select specific fields to fetch from the ServiceTicket */ select?: Prisma.ServiceTicketSelect | null /** * Omit specific fields from the ServiceTicket */ omit?: Prisma.ServiceTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ServiceTicketInclude | 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 = { /** * Select specific fields to fetch from the ServiceTicketNote */ select?: Prisma.ServiceTicketNoteSelect | null /** * Omit specific fields from the ServiceTicketNote */ omit?: Prisma.ServiceTicketNoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ServiceTicketNoteInclude | 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 = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null }