/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Opportunity` 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 Opportunity * */ export type OpportunityModel = runtime.Types.Result.DefaultSelection export type AggregateOpportunity = { _count: OpportunityCountAggregateOutputType | null _avg: OpportunityAvgAggregateOutputType | null _sum: OpportunitySumAggregateOutputType | null _min: OpportunityMinAggregateOutputType | null _max: OpportunityMaxAggregateOutputType | null } export type OpportunityAvgAggregateOutputType = { id: number | null typeId: number | null stageId: number | null statusId: number | null taxCodeId: number | null probability: number | null companyId: number | null contactId: number | null siteId: number | null locationId: number | null departmentId: number | null productSequence: number | null } export type OpportunitySumAggregateOutputType = { id: number | null typeId: number | null stageId: number | null statusId: number | null taxCodeId: number | null probability: number | null companyId: number | null contactId: number | null siteId: number | null locationId: number | null departmentId: number | null productSequence: number[] } export type OpportunityMinAggregateOutputType = { id: number | null uid: string | null name: string | null notes: string | null oppNarrative: string | null typeId: number | null stageId: number | null statusId: number | null taxCodeId: number | null interest: $Enums.OpportunityInterest | null probability: number | null source: string | null primarySalesRepId: string | null secondarySalesRepId: string | null companyId: number | null contactId: number | null siteId: number | null customerPO: string | null locationId: number | null departmentId: number | null expectedCloseDate: Date | null pipelineChangeDate: Date | null dateBecameLead: Date | null closedDate: Date | null closedFlag: boolean | null closedById: string | null updatedBy: string | null eneteredBy: string | null createdAt: Date | null updatedAt: Date | null } export type OpportunityMaxAggregateOutputType = { id: number | null uid: string | null name: string | null notes: string | null oppNarrative: string | null typeId: number | null stageId: number | null statusId: number | null taxCodeId: number | null interest: $Enums.OpportunityInterest | null probability: number | null source: string | null primarySalesRepId: string | null secondarySalesRepId: string | null companyId: number | null contactId: number | null siteId: number | null customerPO: string | null locationId: number | null departmentId: number | null expectedCloseDate: Date | null pipelineChangeDate: Date | null dateBecameLead: Date | null closedDate: Date | null closedFlag: boolean | null closedById: string | null updatedBy: string | null eneteredBy: string | null createdAt: Date | null updatedAt: Date | null } export type OpportunityCountAggregateOutputType = { id: number uid: number name: number notes: number oppNarrative: number typeId: number stageId: number statusId: number taxCodeId: number interest: number probability: number source: number primarySalesRepId: number secondarySalesRepId: number companyId: number contactId: number siteId: number customerPO: number locationId: number departmentId: number expectedCloseDate: number pipelineChangeDate: number dateBecameLead: number closedDate: number closedFlag: number closedById: number productSequence: number updatedBy: number eneteredBy: number createdAt: number updatedAt: number _all: number } export type OpportunityAvgAggregateInputType = { id?: true typeId?: true stageId?: true statusId?: true taxCodeId?: true probability?: true companyId?: true contactId?: true siteId?: true locationId?: true departmentId?: true productSequence?: true } export type OpportunitySumAggregateInputType = { id?: true typeId?: true stageId?: true statusId?: true taxCodeId?: true probability?: true companyId?: true contactId?: true siteId?: true locationId?: true departmentId?: true productSequence?: true } export type OpportunityMinAggregateInputType = { id?: true uid?: true name?: true notes?: true oppNarrative?: true typeId?: true stageId?: true statusId?: true taxCodeId?: true interest?: true probability?: true source?: true primarySalesRepId?: true secondarySalesRepId?: true companyId?: true contactId?: true siteId?: true customerPO?: true locationId?: true departmentId?: true expectedCloseDate?: true pipelineChangeDate?: true dateBecameLead?: true closedDate?: true closedFlag?: true closedById?: true updatedBy?: true eneteredBy?: true createdAt?: true updatedAt?: true } export type OpportunityMaxAggregateInputType = { id?: true uid?: true name?: true notes?: true oppNarrative?: true typeId?: true stageId?: true statusId?: true taxCodeId?: true interest?: true probability?: true source?: true primarySalesRepId?: true secondarySalesRepId?: true companyId?: true contactId?: true siteId?: true customerPO?: true locationId?: true departmentId?: true expectedCloseDate?: true pipelineChangeDate?: true dateBecameLead?: true closedDate?: true closedFlag?: true closedById?: true updatedBy?: true eneteredBy?: true createdAt?: true updatedAt?: true } export type OpportunityCountAggregateInputType = { id?: true uid?: true name?: true notes?: true oppNarrative?: true typeId?: true stageId?: true statusId?: true taxCodeId?: true interest?: true probability?: true source?: true primarySalesRepId?: true secondarySalesRepId?: true companyId?: true contactId?: true siteId?: true customerPO?: true locationId?: true departmentId?: true expectedCloseDate?: true pipelineChangeDate?: true dateBecameLead?: true closedDate?: true closedFlag?: true closedById?: true productSequence?: true updatedBy?: true eneteredBy?: true createdAt?: true updatedAt?: true _all?: true } export type OpportunityAggregateArgs = { /** * Filter which Opportunity to aggregate. */ where?: Prisma.OpportunityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Opportunities to fetch. */ orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.OpportunityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Opportunities 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` Opportunities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Opportunities **/ _count?: true | OpportunityCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: OpportunityAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: OpportunitySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OpportunityMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OpportunityMaxAggregateInputType } export type GetOpportunityAggregateType = { [P in keyof T & keyof AggregateOpportunity]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type OpportunityGroupByArgs = { where?: Prisma.OpportunityWhereInput orderBy?: Prisma.OpportunityOrderByWithAggregationInput | Prisma.OpportunityOrderByWithAggregationInput[] by: Prisma.OpportunityScalarFieldEnum[] | Prisma.OpportunityScalarFieldEnum having?: Prisma.OpportunityScalarWhereWithAggregatesInput take?: number skip?: number _count?: OpportunityCountAggregateInputType | true _avg?: OpportunityAvgAggregateInputType _sum?: OpportunitySumAggregateInputType _min?: OpportunityMinAggregateInputType _max?: OpportunityMaxAggregateInputType } export type OpportunityGroupByOutputType = { id: number uid: string name: string notes: string | null oppNarrative: string | null typeId: number stageId: number | null statusId: number | null taxCodeId: number | null interest: $Enums.OpportunityInterest | null probability: number source: string | null primarySalesRepId: string | null secondarySalesRepId: string | null companyId: number | null contactId: number | null siteId: number | null customerPO: string | null locationId: number | null departmentId: number | null expectedCloseDate: Date | null pipelineChangeDate: Date | null dateBecameLead: Date | null closedDate: Date | null closedFlag: boolean closedById: string | null productSequence: number[] updatedBy: string eneteredBy: string createdAt: Date updatedAt: Date _count: OpportunityCountAggregateOutputType | null _avg: OpportunityAvgAggregateOutputType | null _sum: OpportunitySumAggregateOutputType | null _min: OpportunityMinAggregateOutputType | null _max: OpportunityMaxAggregateOutputType | null } type GetOpportunityGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof OpportunityGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type OpportunityWhereInput = { AND?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[] OR?: Prisma.OpportunityWhereInput[] NOT?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[] id?: Prisma.IntFilter<"Opportunity"> | number uid?: Prisma.StringFilter<"Opportunity"> | string name?: Prisma.StringFilter<"Opportunity"> | string notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null oppNarrative?: Prisma.StringNullableFilter<"Opportunity"> | string | null typeId?: Prisma.IntFilter<"Opportunity"> | number stageId?: Prisma.IntNullableFilter<"Opportunity"> | number | null statusId?: Prisma.IntNullableFilter<"Opportunity"> | number | null taxCodeId?: Prisma.IntNullableFilter<"Opportunity"> | number | null interest?: Prisma.EnumOpportunityInterestNullableFilter<"Opportunity"> | $Enums.OpportunityInterest | null probability?: Prisma.FloatFilter<"Opportunity"> | number source?: Prisma.StringNullableFilter<"Opportunity"> | string | null primarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null secondarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null companyId?: Prisma.IntNullableFilter<"Opportunity"> | number | null contactId?: Prisma.IntNullableFilter<"Opportunity"> | number | null siteId?: Prisma.IntNullableFilter<"Opportunity"> | number | null customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null locationId?: Prisma.IntNullableFilter<"Opportunity"> | number | null departmentId?: Prisma.IntNullableFilter<"Opportunity"> | number | null expectedCloseDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null pipelineChangeDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null dateBecameLead?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedFlag?: Prisma.BoolFilter<"Opportunity"> | boolean closedById?: Prisma.StringNullableFilter<"Opportunity"> | string | null productSequence?: Prisma.IntNullableListFilter<"Opportunity"> updatedBy?: Prisma.StringFilter<"Opportunity"> | string eneteredBy?: Prisma.StringFilter<"Opportunity"> | string createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter type?: Prisma.XOR stage?: Prisma.XOR | null status?: Prisma.XOR | null taxCode?: Prisma.XOR | null primarySalesRep?: Prisma.XOR | null secondarySalesRep?: Prisma.XOR | null company?: Prisma.XOR | null contact?: Prisma.XOR | null site?: Prisma.XOR | null location?: Prisma.XOR | null department?: Prisma.XOR | null products?: Prisma.ProductDataListRelationFilter } export type OpportunityOrderByWithRelationInput = { id?: Prisma.SortOrder uid?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrderInput | Prisma.SortOrder oppNarrative?: Prisma.SortOrderInput | Prisma.SortOrder typeId?: Prisma.SortOrder stageId?: Prisma.SortOrderInput | Prisma.SortOrder statusId?: Prisma.SortOrderInput | Prisma.SortOrder taxCodeId?: Prisma.SortOrderInput | Prisma.SortOrder interest?: Prisma.SortOrderInput | Prisma.SortOrder probability?: Prisma.SortOrder source?: Prisma.SortOrderInput | Prisma.SortOrder primarySalesRepId?: Prisma.SortOrderInput | Prisma.SortOrder secondarySalesRepId?: Prisma.SortOrderInput | Prisma.SortOrder companyId?: Prisma.SortOrderInput | Prisma.SortOrder contactId?: Prisma.SortOrderInput | Prisma.SortOrder siteId?: Prisma.SortOrderInput | Prisma.SortOrder customerPO?: Prisma.SortOrderInput | Prisma.SortOrder locationId?: Prisma.SortOrderInput | Prisma.SortOrder departmentId?: Prisma.SortOrderInput | Prisma.SortOrder expectedCloseDate?: Prisma.SortOrderInput | Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrderInput | Prisma.SortOrder dateBecameLead?: Prisma.SortOrderInput | Prisma.SortOrder closedDate?: Prisma.SortOrderInput | Prisma.SortOrder closedFlag?: Prisma.SortOrder closedById?: Prisma.SortOrderInput | Prisma.SortOrder productSequence?: Prisma.SortOrder updatedBy?: Prisma.SortOrder eneteredBy?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder generatedQuotes?: Prisma.GeneratedQuotesOrderByRelationAggregateInput type?: Prisma.OpportunityTypeOrderByWithRelationInput stage?: Prisma.OpportunityStageOrderByWithRelationInput status?: Prisma.OpportunityStatusOrderByWithRelationInput taxCode?: Prisma.TaxCodeOrderByWithRelationInput primarySalesRep?: Prisma.UserOrderByWithRelationInput secondarySalesRep?: Prisma.UserOrderByWithRelationInput company?: Prisma.CompanyOrderByWithRelationInput contact?: Prisma.ContactOrderByWithRelationInput site?: Prisma.CompanyAddressOrderByWithRelationInput location?: Prisma.CorporateLocationOrderByWithRelationInput department?: Prisma.InternalDepartmentOrderByWithRelationInput products?: Prisma.ProductDataOrderByRelationAggregateInput } export type OpportunityWhereUniqueInput = Prisma.AtLeast<{ id?: number uid?: string AND?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[] OR?: Prisma.OpportunityWhereInput[] NOT?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[] name?: Prisma.StringFilter<"Opportunity"> | string notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null oppNarrative?: Prisma.StringNullableFilter<"Opportunity"> | string | null typeId?: Prisma.IntFilter<"Opportunity"> | number stageId?: Prisma.IntNullableFilter<"Opportunity"> | number | null statusId?: Prisma.IntNullableFilter<"Opportunity"> | number | null taxCodeId?: Prisma.IntNullableFilter<"Opportunity"> | number | null interest?: Prisma.EnumOpportunityInterestNullableFilter<"Opportunity"> | $Enums.OpportunityInterest | null probability?: Prisma.FloatFilter<"Opportunity"> | number source?: Prisma.StringNullableFilter<"Opportunity"> | string | null primarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null secondarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null companyId?: Prisma.IntNullableFilter<"Opportunity"> | number | null contactId?: Prisma.IntNullableFilter<"Opportunity"> | number | null siteId?: Prisma.IntNullableFilter<"Opportunity"> | number | null customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null locationId?: Prisma.IntNullableFilter<"Opportunity"> | number | null departmentId?: Prisma.IntNullableFilter<"Opportunity"> | number | null expectedCloseDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null pipelineChangeDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null dateBecameLead?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedFlag?: Prisma.BoolFilter<"Opportunity"> | boolean closedById?: Prisma.StringNullableFilter<"Opportunity"> | string | null productSequence?: Prisma.IntNullableListFilter<"Opportunity"> updatedBy?: Prisma.StringFilter<"Opportunity"> | string eneteredBy?: Prisma.StringFilter<"Opportunity"> | string createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter type?: Prisma.XOR stage?: Prisma.XOR | null status?: Prisma.XOR | null taxCode?: Prisma.XOR | null primarySalesRep?: Prisma.XOR | null secondarySalesRep?: Prisma.XOR | null company?: Prisma.XOR | null contact?: Prisma.XOR | null site?: Prisma.XOR | null location?: Prisma.XOR | null department?: Prisma.XOR | null products?: Prisma.ProductDataListRelationFilter }, "uid" | "id"> export type OpportunityOrderByWithAggregationInput = { id?: Prisma.SortOrder uid?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrderInput | Prisma.SortOrder oppNarrative?: Prisma.SortOrderInput | Prisma.SortOrder typeId?: Prisma.SortOrder stageId?: Prisma.SortOrderInput | Prisma.SortOrder statusId?: Prisma.SortOrderInput | Prisma.SortOrder taxCodeId?: Prisma.SortOrderInput | Prisma.SortOrder interest?: Prisma.SortOrderInput | Prisma.SortOrder probability?: Prisma.SortOrder source?: Prisma.SortOrderInput | Prisma.SortOrder primarySalesRepId?: Prisma.SortOrderInput | Prisma.SortOrder secondarySalesRepId?: Prisma.SortOrderInput | Prisma.SortOrder companyId?: Prisma.SortOrderInput | Prisma.SortOrder contactId?: Prisma.SortOrderInput | Prisma.SortOrder siteId?: Prisma.SortOrderInput | Prisma.SortOrder customerPO?: Prisma.SortOrderInput | Prisma.SortOrder locationId?: Prisma.SortOrderInput | Prisma.SortOrder departmentId?: Prisma.SortOrderInput | Prisma.SortOrder expectedCloseDate?: Prisma.SortOrderInput | Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrderInput | Prisma.SortOrder dateBecameLead?: Prisma.SortOrderInput | Prisma.SortOrder closedDate?: Prisma.SortOrderInput | Prisma.SortOrder closedFlag?: Prisma.SortOrder closedById?: Prisma.SortOrderInput | Prisma.SortOrder productSequence?: Prisma.SortOrder updatedBy?: Prisma.SortOrder eneteredBy?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.OpportunityCountOrderByAggregateInput _avg?: Prisma.OpportunityAvgOrderByAggregateInput _max?: Prisma.OpportunityMaxOrderByAggregateInput _min?: Prisma.OpportunityMinOrderByAggregateInput _sum?: Prisma.OpportunitySumOrderByAggregateInput } export type OpportunityScalarWhereWithAggregatesInput = { AND?: Prisma.OpportunityScalarWhereWithAggregatesInput | Prisma.OpportunityScalarWhereWithAggregatesInput[] OR?: Prisma.OpportunityScalarWhereWithAggregatesInput[] NOT?: Prisma.OpportunityScalarWhereWithAggregatesInput | Prisma.OpportunityScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"Opportunity"> | number uid?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string name?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string notes?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null oppNarrative?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null typeId?: Prisma.IntWithAggregatesFilter<"Opportunity"> | number stageId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null statusId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null taxCodeId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null interest?: Prisma.EnumOpportunityInterestNullableWithAggregatesFilter<"Opportunity"> | $Enums.OpportunityInterest | null probability?: Prisma.FloatWithAggregatesFilter<"Opportunity"> | number source?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null primarySalesRepId?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null secondarySalesRepId?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null companyId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null contactId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null siteId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null customerPO?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null locationId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null departmentId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null expectedCloseDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null pipelineChangeDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null dateBecameLead?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null closedDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null closedFlag?: Prisma.BoolWithAggregatesFilter<"Opportunity"> | boolean closedById?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null productSequence?: Prisma.IntNullableListFilter<"Opportunity"> updatedBy?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string eneteredBy?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Opportunity"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Opportunity"> | Date | string } export type OpportunityCreateInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityCreateManyInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateManyMutationInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityListRelationFilter = { every?: Prisma.OpportunityWhereInput some?: Prisma.OpportunityWhereInput none?: Prisma.OpportunityWhereInput } export type OpportunityOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type OpportunityNullableScalarRelationFilter = { is?: Prisma.OpportunityWhereInput | null isNot?: Prisma.OpportunityWhereInput | null } export type IntNullableListFilter<$PrismaModel = never> = { equals?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null has?: number | Prisma.IntFieldRefInput<$PrismaModel> | null hasEvery?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> hasSome?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> isEmpty?: boolean } export type OpportunityCountOrderByAggregateInput = { id?: Prisma.SortOrder uid?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrder oppNarrative?: Prisma.SortOrder typeId?: Prisma.SortOrder stageId?: Prisma.SortOrder statusId?: Prisma.SortOrder taxCodeId?: Prisma.SortOrder interest?: Prisma.SortOrder probability?: Prisma.SortOrder source?: Prisma.SortOrder primarySalesRepId?: Prisma.SortOrder secondarySalesRepId?: Prisma.SortOrder companyId?: Prisma.SortOrder contactId?: Prisma.SortOrder siteId?: Prisma.SortOrder customerPO?: Prisma.SortOrder locationId?: Prisma.SortOrder departmentId?: Prisma.SortOrder expectedCloseDate?: Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrder dateBecameLead?: Prisma.SortOrder closedDate?: Prisma.SortOrder closedFlag?: Prisma.SortOrder closedById?: Prisma.SortOrder productSequence?: Prisma.SortOrder updatedBy?: Prisma.SortOrder eneteredBy?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OpportunityAvgOrderByAggregateInput = { id?: Prisma.SortOrder typeId?: Prisma.SortOrder stageId?: Prisma.SortOrder statusId?: Prisma.SortOrder taxCodeId?: Prisma.SortOrder probability?: Prisma.SortOrder companyId?: Prisma.SortOrder contactId?: Prisma.SortOrder siteId?: Prisma.SortOrder locationId?: Prisma.SortOrder departmentId?: Prisma.SortOrder productSequence?: Prisma.SortOrder } export type OpportunityMaxOrderByAggregateInput = { id?: Prisma.SortOrder uid?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrder oppNarrative?: Prisma.SortOrder typeId?: Prisma.SortOrder stageId?: Prisma.SortOrder statusId?: Prisma.SortOrder taxCodeId?: Prisma.SortOrder interest?: Prisma.SortOrder probability?: Prisma.SortOrder source?: Prisma.SortOrder primarySalesRepId?: Prisma.SortOrder secondarySalesRepId?: Prisma.SortOrder companyId?: Prisma.SortOrder contactId?: Prisma.SortOrder siteId?: Prisma.SortOrder customerPO?: Prisma.SortOrder locationId?: Prisma.SortOrder departmentId?: Prisma.SortOrder expectedCloseDate?: Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrder dateBecameLead?: Prisma.SortOrder closedDate?: Prisma.SortOrder closedFlag?: Prisma.SortOrder closedById?: Prisma.SortOrder updatedBy?: Prisma.SortOrder eneteredBy?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OpportunityMinOrderByAggregateInput = { id?: Prisma.SortOrder uid?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrder oppNarrative?: Prisma.SortOrder typeId?: Prisma.SortOrder stageId?: Prisma.SortOrder statusId?: Prisma.SortOrder taxCodeId?: Prisma.SortOrder interest?: Prisma.SortOrder probability?: Prisma.SortOrder source?: Prisma.SortOrder primarySalesRepId?: Prisma.SortOrder secondarySalesRepId?: Prisma.SortOrder companyId?: Prisma.SortOrder contactId?: Prisma.SortOrder siteId?: Prisma.SortOrder customerPO?: Prisma.SortOrder locationId?: Prisma.SortOrder departmentId?: Prisma.SortOrder expectedCloseDate?: Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrder dateBecameLead?: Prisma.SortOrder closedDate?: Prisma.SortOrder closedFlag?: Prisma.SortOrder closedById?: Prisma.SortOrder updatedBy?: Prisma.SortOrder eneteredBy?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OpportunitySumOrderByAggregateInput = { id?: Prisma.SortOrder typeId?: Prisma.SortOrder stageId?: Prisma.SortOrder statusId?: Prisma.SortOrder taxCodeId?: Prisma.SortOrder probability?: Prisma.SortOrder companyId?: Prisma.SortOrder contactId?: Prisma.SortOrder siteId?: Prisma.SortOrder locationId?: Prisma.SortOrder departmentId?: Prisma.SortOrder productSequence?: Prisma.SortOrder } export type OpportunityScalarRelationFilter = { is?: Prisma.OpportunityWhereInput isNot?: Prisma.OpportunityWhereInput } export type OpportunityCreateNestedManyWithoutPrimarySalesRepInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutPrimarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput[] createMany?: Prisma.OpportunityCreateManyPrimarySalesRepInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityCreateNestedManyWithoutSecondarySalesRepInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutSecondarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput[] createMany?: Prisma.OpportunityCreateManySecondarySalesRepInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutPrimarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput[] createMany?: Prisma.OpportunityCreateManyPrimarySalesRepInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutSecondarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput[] createMany?: Prisma.OpportunityCreateManySecondarySalesRepInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutPrimarySalesRepNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutPrimarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput[] createMany?: Prisma.OpportunityCreateManyPrimarySalesRepInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput | Prisma.OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUpdateManyWithoutSecondarySalesRepNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutSecondarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput[] createMany?: Prisma.OpportunityCreateManySecondarySalesRepInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput | Prisma.OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutPrimarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput[] createMany?: Prisma.OpportunityCreateManyPrimarySalesRepInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput | Prisma.OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutSecondarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput[] createMany?: Prisma.OpportunityCreateManySecondarySalesRepInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput | Prisma.OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateNestedManyWithoutLocationInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutLocationInput[] | Prisma.OpportunityUncheckedCreateWithoutLocationInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutLocationInput | Prisma.OpportunityCreateOrConnectWithoutLocationInput[] createMany?: Prisma.OpportunityCreateManyLocationInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutLocationInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutLocationInput[] | Prisma.OpportunityUncheckedCreateWithoutLocationInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutLocationInput | Prisma.OpportunityCreateOrConnectWithoutLocationInput[] createMany?: Prisma.OpportunityCreateManyLocationInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutLocationNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutLocationInput[] | Prisma.OpportunityUncheckedCreateWithoutLocationInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutLocationInput | Prisma.OpportunityCreateOrConnectWithoutLocationInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutLocationInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutLocationInput[] createMany?: Prisma.OpportunityCreateManyLocationInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutLocationInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutLocationInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutLocationInput | Prisma.OpportunityUpdateManyWithWhereWithoutLocationInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutLocationNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutLocationInput[] | Prisma.OpportunityUncheckedCreateWithoutLocationInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutLocationInput | Prisma.OpportunityCreateOrConnectWithoutLocationInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutLocationInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutLocationInput[] createMany?: Prisma.OpportunityCreateManyLocationInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutLocationInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutLocationInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutLocationInput | Prisma.OpportunityUpdateManyWithWhereWithoutLocationInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateNestedManyWithoutDepartmentInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutDepartmentInput[] | Prisma.OpportunityUncheckedCreateWithoutDepartmentInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutDepartmentInput | Prisma.OpportunityCreateOrConnectWithoutDepartmentInput[] createMany?: Prisma.OpportunityCreateManyDepartmentInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutDepartmentInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutDepartmentInput[] | Prisma.OpportunityUncheckedCreateWithoutDepartmentInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutDepartmentInput | Prisma.OpportunityCreateOrConnectWithoutDepartmentInput[] createMany?: Prisma.OpportunityCreateManyDepartmentInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutDepartmentNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutDepartmentInput[] | Prisma.OpportunityUncheckedCreateWithoutDepartmentInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutDepartmentInput | Prisma.OpportunityCreateOrConnectWithoutDepartmentInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutDepartmentInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutDepartmentInput[] createMany?: Prisma.OpportunityCreateManyDepartmentInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutDepartmentInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutDepartmentInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutDepartmentInput | Prisma.OpportunityUpdateManyWithWhereWithoutDepartmentInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutDepartmentNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutDepartmentInput[] | Prisma.OpportunityUncheckedCreateWithoutDepartmentInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutDepartmentInput | Prisma.OpportunityCreateOrConnectWithoutDepartmentInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutDepartmentInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutDepartmentInput[] createMany?: Prisma.OpportunityCreateManyDepartmentInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutDepartmentInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutDepartmentInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutDepartmentInput | Prisma.OpportunityUpdateManyWithWhereWithoutDepartmentInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateNestedManyWithoutCompanyInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[] createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutCompanyInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[] createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutCompanyNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput[] createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput | Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutCompanyNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput[] createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput | Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateNestedManyWithoutSiteInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutSiteInput[] | Prisma.OpportunityUncheckedCreateWithoutSiteInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSiteInput | Prisma.OpportunityCreateOrConnectWithoutSiteInput[] createMany?: Prisma.OpportunityCreateManySiteInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutSiteInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutSiteInput[] | Prisma.OpportunityUncheckedCreateWithoutSiteInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSiteInput | Prisma.OpportunityCreateOrConnectWithoutSiteInput[] createMany?: Prisma.OpportunityCreateManySiteInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutSiteNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutSiteInput[] | Prisma.OpportunityUncheckedCreateWithoutSiteInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSiteInput | Prisma.OpportunityCreateOrConnectWithoutSiteInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutSiteInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutSiteInput[] createMany?: Prisma.OpportunityCreateManySiteInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutSiteInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutSiteInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutSiteInput | Prisma.OpportunityUpdateManyWithWhereWithoutSiteInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutSiteNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutSiteInput[] | Prisma.OpportunityUncheckedCreateWithoutSiteInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSiteInput | Prisma.OpportunityCreateOrConnectWithoutSiteInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutSiteInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutSiteInput[] createMany?: Prisma.OpportunityCreateManySiteInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutSiteInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutSiteInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutSiteInput | Prisma.OpportunityUpdateManyWithWhereWithoutSiteInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateNestedManyWithoutContactInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutContactInput[] | Prisma.OpportunityUncheckedCreateWithoutContactInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutContactInput | Prisma.OpportunityCreateOrConnectWithoutContactInput[] createMany?: Prisma.OpportunityCreateManyContactInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutContactInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutContactInput[] | Prisma.OpportunityUncheckedCreateWithoutContactInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutContactInput | Prisma.OpportunityCreateOrConnectWithoutContactInput[] createMany?: Prisma.OpportunityCreateManyContactInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutContactNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutContactInput[] | Prisma.OpportunityUncheckedCreateWithoutContactInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutContactInput | Prisma.OpportunityCreateOrConnectWithoutContactInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutContactInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutContactInput[] createMany?: Prisma.OpportunityCreateManyContactInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutContactInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutContactInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutContactInput | Prisma.OpportunityUpdateManyWithWhereWithoutContactInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutContactNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutContactInput[] | Prisma.OpportunityUncheckedCreateWithoutContactInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutContactInput | Prisma.OpportunityCreateOrConnectWithoutContactInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutContactInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutContactInput[] createMany?: Prisma.OpportunityCreateManyContactInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutContactInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutContactInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutContactInput | Prisma.OpportunityUpdateManyWithWhereWithoutContactInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateNestedOneWithoutProductsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutProductsInput connect?: Prisma.OpportunityWhereUniqueInput } export type OpportunityUpdateOneWithoutProductsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutProductsInput upsert?: Prisma.OpportunityUpsertWithoutProductsInput disconnect?: Prisma.OpportunityWhereInput | boolean delete?: Prisma.OpportunityWhereInput | boolean connect?: Prisma.OpportunityWhereUniqueInput update?: Prisma.XOR, Prisma.OpportunityUncheckedUpdateWithoutProductsInput> } export type OpportunityCreateNestedManyWithoutStageInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutStageInput[] | Prisma.OpportunityUncheckedCreateWithoutStageInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStageInput | Prisma.OpportunityCreateOrConnectWithoutStageInput[] createMany?: Prisma.OpportunityCreateManyStageInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutStageInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutStageInput[] | Prisma.OpportunityUncheckedCreateWithoutStageInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStageInput | Prisma.OpportunityCreateOrConnectWithoutStageInput[] createMany?: Prisma.OpportunityCreateManyStageInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutStageNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutStageInput[] | Prisma.OpportunityUncheckedCreateWithoutStageInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStageInput | Prisma.OpportunityCreateOrConnectWithoutStageInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutStageInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutStageInput[] createMany?: Prisma.OpportunityCreateManyStageInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutStageInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutStageInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutStageInput | Prisma.OpportunityUpdateManyWithWhereWithoutStageInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutStageNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutStageInput[] | Prisma.OpportunityUncheckedCreateWithoutStageInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStageInput | Prisma.OpportunityCreateOrConnectWithoutStageInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutStageInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutStageInput[] createMany?: Prisma.OpportunityCreateManyStageInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutStageInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutStageInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutStageInput | Prisma.OpportunityUpdateManyWithWhereWithoutStageInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateNestedManyWithoutTypeInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutTypeInput[] | Prisma.OpportunityUncheckedCreateWithoutTypeInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTypeInput | Prisma.OpportunityCreateOrConnectWithoutTypeInput[] createMany?: Prisma.OpportunityCreateManyTypeInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutTypeInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutTypeInput[] | Prisma.OpportunityUncheckedCreateWithoutTypeInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTypeInput | Prisma.OpportunityCreateOrConnectWithoutTypeInput[] createMany?: Prisma.OpportunityCreateManyTypeInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutTypeNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutTypeInput[] | Prisma.OpportunityUncheckedCreateWithoutTypeInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTypeInput | Prisma.OpportunityCreateOrConnectWithoutTypeInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutTypeInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutTypeInput[] createMany?: Prisma.OpportunityCreateManyTypeInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutTypeInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutTypeInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutTypeInput | Prisma.OpportunityUpdateManyWithWhereWithoutTypeInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutTypeNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutTypeInput[] | Prisma.OpportunityUncheckedCreateWithoutTypeInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTypeInput | Prisma.OpportunityCreateOrConnectWithoutTypeInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutTypeInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutTypeInput[] createMany?: Prisma.OpportunityCreateManyTypeInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutTypeInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutTypeInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutTypeInput | Prisma.OpportunityUpdateManyWithWhereWithoutTypeInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateNestedManyWithoutStatusInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutStatusInput[] | Prisma.OpportunityUncheckedCreateWithoutStatusInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStatusInput | Prisma.OpportunityCreateOrConnectWithoutStatusInput[] createMany?: Prisma.OpportunityCreateManyStatusInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutStatusInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutStatusInput[] | Prisma.OpportunityUncheckedCreateWithoutStatusInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStatusInput | Prisma.OpportunityCreateOrConnectWithoutStatusInput[] createMany?: Prisma.OpportunityCreateManyStatusInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutStatusNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutStatusInput[] | Prisma.OpportunityUncheckedCreateWithoutStatusInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStatusInput | Prisma.OpportunityCreateOrConnectWithoutStatusInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutStatusInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutStatusInput[] createMany?: Prisma.OpportunityCreateManyStatusInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutStatusInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutStatusInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutStatusInput | Prisma.OpportunityUpdateManyWithWhereWithoutStatusInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutStatusNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutStatusInput[] | Prisma.OpportunityUncheckedCreateWithoutStatusInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStatusInput | Prisma.OpportunityCreateOrConnectWithoutStatusInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutStatusInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutStatusInput[] createMany?: Prisma.OpportunityCreateManyStatusInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutStatusInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutStatusInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutStatusInput | Prisma.OpportunityUpdateManyWithWhereWithoutStatusInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateproductSequenceInput = { set: number[] } export type NullableEnumOpportunityInterestFieldUpdateOperationsInput = { set?: $Enums.OpportunityInterest | null } export type OpportunityUpdateproductSequenceInput = { set?: number[] push?: number | number[] } export type OpportunityCreateNestedOneWithoutGeneratedQuotesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutGeneratedQuotesInput connect?: Prisma.OpportunityWhereUniqueInput } export type OpportunityUpdateOneRequiredWithoutGeneratedQuotesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutGeneratedQuotesInput upsert?: Prisma.OpportunityUpsertWithoutGeneratedQuotesInput connect?: Prisma.OpportunityWhereUniqueInput update?: Prisma.XOR, Prisma.OpportunityUncheckedUpdateWithoutGeneratedQuotesInput> } export type OpportunityCreateNestedManyWithoutTaxCodeInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutTaxCodeInput[] | Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput | Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput[] createMany?: Prisma.OpportunityCreateManyTaxCodeInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutTaxCodeInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutTaxCodeInput[] | Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput | Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput[] createMany?: Prisma.OpportunityCreateManyTaxCodeInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUpdateManyWithoutTaxCodeNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutTaxCodeInput[] | Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput | Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput[] createMany?: Prisma.OpportunityCreateManyTaxCodeInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutTaxCodeInput | Prisma.OpportunityUpdateManyWithWhereWithoutTaxCodeInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityUncheckedUpdateManyWithoutTaxCodeNestedInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutTaxCodeInput[] | Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput | Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput[] createMany?: Prisma.OpportunityCreateManyTaxCodeInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutTaxCodeInput | Prisma.OpportunityUpdateManyWithWhereWithoutTaxCodeInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateWithoutPrimarySalesRepInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutPrimarySalesRepInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutPrimarySalesRepInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyPrimarySalesRepInputEnvelope = { data: Prisma.OpportunityCreateManyPrimarySalesRepInput | Prisma.OpportunityCreateManyPrimarySalesRepInput[] skipDuplicates?: boolean } export type OpportunityCreateWithoutSecondarySalesRepInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutSecondarySalesRepInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutSecondarySalesRepInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManySecondarySalesRepInputEnvelope = { data: Prisma.OpportunityCreateManySecondarySalesRepInput | Prisma.OpportunityCreateManySecondarySalesRepInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityScalarWhereInput = { AND?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] OR?: Prisma.OpportunityScalarWhereInput[] NOT?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] id?: Prisma.IntFilter<"Opportunity"> | number uid?: Prisma.StringFilter<"Opportunity"> | string name?: Prisma.StringFilter<"Opportunity"> | string notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null oppNarrative?: Prisma.StringNullableFilter<"Opportunity"> | string | null typeId?: Prisma.IntFilter<"Opportunity"> | number stageId?: Prisma.IntNullableFilter<"Opportunity"> | number | null statusId?: Prisma.IntNullableFilter<"Opportunity"> | number | null taxCodeId?: Prisma.IntNullableFilter<"Opportunity"> | number | null interest?: Prisma.EnumOpportunityInterestNullableFilter<"Opportunity"> | $Enums.OpportunityInterest | null probability?: Prisma.FloatFilter<"Opportunity"> | number source?: Prisma.StringNullableFilter<"Opportunity"> | string | null primarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null secondarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null companyId?: Prisma.IntNullableFilter<"Opportunity"> | number | null contactId?: Prisma.IntNullableFilter<"Opportunity"> | number | null siteId?: Prisma.IntNullableFilter<"Opportunity"> | number | null customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null locationId?: Prisma.IntNullableFilter<"Opportunity"> | number | null departmentId?: Prisma.IntNullableFilter<"Opportunity"> | number | null expectedCloseDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null pipelineChangeDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null dateBecameLead?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedFlag?: Prisma.BoolFilter<"Opportunity"> | boolean closedById?: Prisma.StringNullableFilter<"Opportunity"> | string | null productSequence?: Prisma.IntNullableListFilter<"Opportunity"> updatedBy?: Prisma.StringFilter<"Opportunity"> | string eneteredBy?: Prisma.StringFilter<"Opportunity"> | string createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string } export type OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateWithoutLocationInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutLocationInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutLocationInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyLocationInputEnvelope = { data: Prisma.OpportunityCreateManyLocationInput | Prisma.OpportunityCreateManyLocationInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutLocationInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutLocationInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutLocationInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateWithoutDepartmentInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutDepartmentInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutDepartmentInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyDepartmentInputEnvelope = { data: Prisma.OpportunityCreateManyDepartmentInput | Prisma.OpportunityCreateManyDepartmentInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutDepartmentInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutDepartmentInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutDepartmentInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateWithoutCompanyInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutCompanyInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutCompanyInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyCompanyInputEnvelope = { data: Prisma.OpportunityCreateManyCompanyInput | Prisma.OpportunityCreateManyCompanyInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutCompanyInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutCompanyInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutCompanyInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateWithoutSiteInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutSiteInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutSiteInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManySiteInputEnvelope = { data: Prisma.OpportunityCreateManySiteInput | Prisma.OpportunityCreateManySiteInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutSiteInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutSiteInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutSiteInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateWithoutContactInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutContactInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutContactInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyContactInputEnvelope = { data: Prisma.OpportunityCreateManyContactInput | Prisma.OpportunityCreateManyContactInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutContactInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutContactInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutContactInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateWithoutProductsInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput } export type OpportunityUncheckedCreateWithoutProductsInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutProductsInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityUpsertWithoutProductsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.OpportunityWhereInput } export type OpportunityUpdateToOneWithWhereWithoutProductsInput = { where?: Prisma.OpportunityWhereInput data: Prisma.XOR } export type OpportunityUpdateWithoutProductsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput } export type OpportunityUncheckedUpdateWithoutProductsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityCreateWithoutStageInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutStageInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutStageInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyStageInputEnvelope = { data: Prisma.OpportunityCreateManyStageInput | Prisma.OpportunityCreateManyStageInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutStageInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutStageInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutStageInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateWithoutTypeInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutTypeInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutTypeInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyTypeInputEnvelope = { data: Prisma.OpportunityCreateManyTypeInput | Prisma.OpportunityCreateManyTypeInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutTypeInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutTypeInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutTypeInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateWithoutStatusInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutStatusInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutStatusInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyStatusInputEnvelope = { data: Prisma.OpportunityCreateManyStatusInput | Prisma.OpportunityCreateManyStatusInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutStatusInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutStatusInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutStatusInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateWithoutGeneratedQuotesInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutGeneratedQuotesInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutGeneratedQuotesInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityUpsertWithoutGeneratedQuotesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.OpportunityWhereInput } export type OpportunityUpdateToOneWithWhereWithoutGeneratedQuotesInput = { where?: Prisma.OpportunityWhereInput data: Prisma.XOR } export type OpportunityUpdateWithoutGeneratedQuotesInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutGeneratedQuotesInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityCreateWithoutTaxCodeInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null customerPO?: string | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput type: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutTaxCodeInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutTaxCodeInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyTaxCodeInputEnvelope = { data: Prisma.OpportunityCreateManyTaxCodeInput | Prisma.OpportunityCreateManyTaxCodeInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutTaxCodeInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityCreateManyPrimarySalesRepInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityCreateManySecondarySalesRepInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutPrimarySalesRepInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutPrimarySalesRepInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutPrimarySalesRepInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityUpdateWithoutSecondarySalesRepInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutSecondarySalesRepInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutSecondarySalesRepInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManyLocationInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutLocationInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutLocationInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutLocationInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManyDepartmentInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutDepartmentInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutDepartmentInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutDepartmentInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManyCompanyInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutCompanyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutCompanyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutCompanyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManySiteInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutSiteInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutSiteInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutSiteInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManyContactInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutContactInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutContactInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutContactInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManyStageInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutStageInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutStageInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutStageInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManyTypeInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null stageId?: number | null statusId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutTypeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutTypeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutTypeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManyStatusInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null taxCodeId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutStatusInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutStatusInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutStatusInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManyTaxCodeInput = { id: number uid?: string name: string notes?: string | null oppNarrative?: string | null typeId: number stageId?: number | null statusId?: number | null interest?: $Enums.OpportunityInterest | null probability?: number source?: string | null primarySalesRepId?: string | null secondarySalesRepId?: string | null companyId?: number | null contactId?: number | null siteId?: number | null customerPO?: string | null locationId?: number | null departmentId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedById?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] updatedBy: string eneteredBy: string createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutTaxCodeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput type?: Prisma.OpportunityTypeUpdateOneRequiredWithoutOpportunitiesNestedInput stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutTaxCodeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutTaxCodeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeId?: Prisma.IntFieldUpdateOperationsInput | number stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null probability?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] updatedBy?: Prisma.StringFieldUpdateOperationsInput | string eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type OpportunityCountOutputType */ export type OpportunityCountOutputType = { generatedQuotes: number products: number } export type OpportunityCountOutputTypeSelect = { generatedQuotes?: boolean | OpportunityCountOutputTypeCountGeneratedQuotesArgs products?: boolean | OpportunityCountOutputTypeCountProductsArgs } /** * OpportunityCountOutputType without action */ export type OpportunityCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the OpportunityCountOutputType */ select?: Prisma.OpportunityCountOutputTypeSelect | null } /** * OpportunityCountOutputType without action */ export type OpportunityCountOutputTypeCountGeneratedQuotesArgs = { where?: Prisma.GeneratedQuotesWhereInput } /** * OpportunityCountOutputType without action */ export type OpportunityCountOutputTypeCountProductsArgs = { where?: Prisma.ProductDataWhereInput } export type OpportunitySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean uid?: boolean name?: boolean notes?: boolean oppNarrative?: boolean typeId?: boolean stageId?: boolean statusId?: boolean taxCodeId?: boolean interest?: boolean probability?: boolean source?: boolean primarySalesRepId?: boolean secondarySalesRepId?: boolean companyId?: boolean contactId?: boolean siteId?: boolean customerPO?: boolean locationId?: boolean departmentId?: boolean expectedCloseDate?: boolean pipelineChangeDate?: boolean dateBecameLead?: boolean closedDate?: boolean closedFlag?: boolean closedById?: boolean productSequence?: boolean updatedBy?: boolean eneteredBy?: boolean createdAt?: boolean updatedAt?: boolean generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs type?: boolean | Prisma.OpportunityTypeDefaultArgs stage?: boolean | Prisma.Opportunity$stageArgs status?: boolean | Prisma.Opportunity$statusArgs taxCode?: boolean | Prisma.Opportunity$taxCodeArgs primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs company?: boolean | Prisma.Opportunity$companyArgs contact?: boolean | Prisma.Opportunity$contactArgs site?: boolean | Prisma.Opportunity$siteArgs location?: boolean | Prisma.Opportunity$locationArgs department?: boolean | Prisma.Opportunity$departmentArgs products?: boolean | Prisma.Opportunity$productsArgs _count?: boolean | Prisma.OpportunityCountOutputTypeDefaultArgs }, ExtArgs["result"]["opportunity"]> export type OpportunitySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean uid?: boolean name?: boolean notes?: boolean oppNarrative?: boolean typeId?: boolean stageId?: boolean statusId?: boolean taxCodeId?: boolean interest?: boolean probability?: boolean source?: boolean primarySalesRepId?: boolean secondarySalesRepId?: boolean companyId?: boolean contactId?: boolean siteId?: boolean customerPO?: boolean locationId?: boolean departmentId?: boolean expectedCloseDate?: boolean pipelineChangeDate?: boolean dateBecameLead?: boolean closedDate?: boolean closedFlag?: boolean closedById?: boolean productSequence?: boolean updatedBy?: boolean eneteredBy?: boolean createdAt?: boolean updatedAt?: boolean type?: boolean | Prisma.OpportunityTypeDefaultArgs stage?: boolean | Prisma.Opportunity$stageArgs status?: boolean | Prisma.Opportunity$statusArgs taxCode?: boolean | Prisma.Opportunity$taxCodeArgs primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs company?: boolean | Prisma.Opportunity$companyArgs contact?: boolean | Prisma.Opportunity$contactArgs site?: boolean | Prisma.Opportunity$siteArgs location?: boolean | Prisma.Opportunity$locationArgs department?: boolean | Prisma.Opportunity$departmentArgs }, ExtArgs["result"]["opportunity"]> export type OpportunitySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean uid?: boolean name?: boolean notes?: boolean oppNarrative?: boolean typeId?: boolean stageId?: boolean statusId?: boolean taxCodeId?: boolean interest?: boolean probability?: boolean source?: boolean primarySalesRepId?: boolean secondarySalesRepId?: boolean companyId?: boolean contactId?: boolean siteId?: boolean customerPO?: boolean locationId?: boolean departmentId?: boolean expectedCloseDate?: boolean pipelineChangeDate?: boolean dateBecameLead?: boolean closedDate?: boolean closedFlag?: boolean closedById?: boolean productSequence?: boolean updatedBy?: boolean eneteredBy?: boolean createdAt?: boolean updatedAt?: boolean type?: boolean | Prisma.OpportunityTypeDefaultArgs stage?: boolean | Prisma.Opportunity$stageArgs status?: boolean | Prisma.Opportunity$statusArgs taxCode?: boolean | Prisma.Opportunity$taxCodeArgs primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs company?: boolean | Prisma.Opportunity$companyArgs contact?: boolean | Prisma.Opportunity$contactArgs site?: boolean | Prisma.Opportunity$siteArgs location?: boolean | Prisma.Opportunity$locationArgs department?: boolean | Prisma.Opportunity$departmentArgs }, ExtArgs["result"]["opportunity"]> export type OpportunitySelectScalar = { id?: boolean uid?: boolean name?: boolean notes?: boolean oppNarrative?: boolean typeId?: boolean stageId?: boolean statusId?: boolean taxCodeId?: boolean interest?: boolean probability?: boolean source?: boolean primarySalesRepId?: boolean secondarySalesRepId?: boolean companyId?: boolean contactId?: boolean siteId?: boolean customerPO?: boolean locationId?: boolean departmentId?: boolean expectedCloseDate?: boolean pipelineChangeDate?: boolean dateBecameLead?: boolean closedDate?: boolean closedFlag?: boolean closedById?: boolean productSequence?: boolean updatedBy?: boolean eneteredBy?: boolean createdAt?: boolean updatedAt?: boolean } export type OpportunityOmit = runtime.Types.Extensions.GetOmit<"id" | "uid" | "name" | "notes" | "oppNarrative" | "typeId" | "stageId" | "statusId" | "taxCodeId" | "interest" | "probability" | "source" | "primarySalesRepId" | "secondarySalesRepId" | "companyId" | "contactId" | "siteId" | "customerPO" | "locationId" | "departmentId" | "expectedCloseDate" | "pipelineChangeDate" | "dateBecameLead" | "closedDate" | "closedFlag" | "closedById" | "productSequence" | "updatedBy" | "eneteredBy" | "createdAt" | "updatedAt", ExtArgs["result"]["opportunity"]> export type OpportunityInclude = { generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs type?: boolean | Prisma.OpportunityTypeDefaultArgs stage?: boolean | Prisma.Opportunity$stageArgs status?: boolean | Prisma.Opportunity$statusArgs taxCode?: boolean | Prisma.Opportunity$taxCodeArgs primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs company?: boolean | Prisma.Opportunity$companyArgs contact?: boolean | Prisma.Opportunity$contactArgs site?: boolean | Prisma.Opportunity$siteArgs location?: boolean | Prisma.Opportunity$locationArgs department?: boolean | Prisma.Opportunity$departmentArgs products?: boolean | Prisma.Opportunity$productsArgs _count?: boolean | Prisma.OpportunityCountOutputTypeDefaultArgs } export type OpportunityIncludeCreateManyAndReturn = { type?: boolean | Prisma.OpportunityTypeDefaultArgs stage?: boolean | Prisma.Opportunity$stageArgs status?: boolean | Prisma.Opportunity$statusArgs taxCode?: boolean | Prisma.Opportunity$taxCodeArgs primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs company?: boolean | Prisma.Opportunity$companyArgs contact?: boolean | Prisma.Opportunity$contactArgs site?: boolean | Prisma.Opportunity$siteArgs location?: boolean | Prisma.Opportunity$locationArgs department?: boolean | Prisma.Opportunity$departmentArgs } export type OpportunityIncludeUpdateManyAndReturn = { type?: boolean | Prisma.OpportunityTypeDefaultArgs stage?: boolean | Prisma.Opportunity$stageArgs status?: boolean | Prisma.Opportunity$statusArgs taxCode?: boolean | Prisma.Opportunity$taxCodeArgs primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs company?: boolean | Prisma.Opportunity$companyArgs contact?: boolean | Prisma.Opportunity$contactArgs site?: boolean | Prisma.Opportunity$siteArgs location?: boolean | Prisma.Opportunity$locationArgs department?: boolean | Prisma.Opportunity$departmentArgs } export type $OpportunityPayload = { name: "Opportunity" objects: { generatedQuotes: Prisma.$GeneratedQuotesPayload[] type: Prisma.$OpportunityTypePayload stage: Prisma.$OpportunityStagePayload | null status: Prisma.$OpportunityStatusPayload | null taxCode: Prisma.$TaxCodePayload | null primarySalesRep: Prisma.$UserPayload | null secondarySalesRep: Prisma.$UserPayload | null company: Prisma.$CompanyPayload | null contact: Prisma.$ContactPayload | null site: Prisma.$CompanyAddressPayload | null location: Prisma.$CorporateLocationPayload | null department: Prisma.$InternalDepartmentPayload | null products: Prisma.$ProductDataPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number uid: string name: string notes: string | null oppNarrative: string | null typeId: number stageId: number | null statusId: number | null taxCodeId: number | null interest: $Enums.OpportunityInterest | null probability: number source: string | null primarySalesRepId: string | null secondarySalesRepId: string | null companyId: number | null contactId: number | null siteId: number | null customerPO: string | null locationId: number | null departmentId: number | null expectedCloseDate: Date | null pipelineChangeDate: Date | null dateBecameLead: Date | null closedDate: Date | null closedFlag: boolean closedById: string | null productSequence: number[] updatedBy: string eneteredBy: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["opportunity"]> composites: {} } export type OpportunityGetPayload = runtime.Types.Result.GetResult export type OpportunityCountArgs = Omit & { select?: OpportunityCountAggregateInputType | true } export interface OpportunityDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Opportunity'], meta: { name: 'Opportunity' } } /** * Find zero or one Opportunity that matches the filter. * @param {OpportunityFindUniqueArgs} args - Arguments to find a Opportunity * @example * // Get one Opportunity * const opportunity = await prisma.opportunity.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Opportunity that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OpportunityFindUniqueOrThrowArgs} args - Arguments to find a Opportunity * @example * // Get one Opportunity * const opportunity = await prisma.opportunity.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Opportunity 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 {OpportunityFindFirstArgs} args - Arguments to find a Opportunity * @example * // Get one Opportunity * const opportunity = await prisma.opportunity.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Opportunity 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 {OpportunityFindFirstOrThrowArgs} args - Arguments to find a Opportunity * @example * // Get one Opportunity * const opportunity = await prisma.opportunity.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Opportunities 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 {OpportunityFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Opportunities * const opportunities = await prisma.opportunity.findMany() * * // Get first 10 Opportunities * const opportunities = await prisma.opportunity.findMany({ take: 10 }) * * // Only select the `id` * const opportunityWithIdOnly = await prisma.opportunity.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Opportunity. * @param {OpportunityCreateArgs} args - Arguments to create a Opportunity. * @example * // Create one Opportunity * const Opportunity = await prisma.opportunity.create({ * data: { * // ... data to create a Opportunity * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Opportunities. * @param {OpportunityCreateManyArgs} args - Arguments to create many Opportunities. * @example * // Create many Opportunities * const opportunity = await prisma.opportunity.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Opportunities and returns the data saved in the database. * @param {OpportunityCreateManyAndReturnArgs} args - Arguments to create many Opportunities. * @example * // Create many Opportunities * const opportunity = await prisma.opportunity.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Opportunities and only return the `id` * const opportunityWithIdOnly = await prisma.opportunity.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 Opportunity. * @param {OpportunityDeleteArgs} args - Arguments to delete one Opportunity. * @example * // Delete one Opportunity * const Opportunity = await prisma.opportunity.delete({ * where: { * // ... filter to delete one Opportunity * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Opportunity. * @param {OpportunityUpdateArgs} args - Arguments to update one Opportunity. * @example * // Update one Opportunity * const opportunity = await prisma.opportunity.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Opportunities. * @param {OpportunityDeleteManyArgs} args - Arguments to filter Opportunities to delete. * @example * // Delete a few Opportunities * const { count } = await prisma.opportunity.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Opportunities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OpportunityUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Opportunities * const opportunity = await prisma.opportunity.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Opportunities and returns the data updated in the database. * @param {OpportunityUpdateManyAndReturnArgs} args - Arguments to update many Opportunities. * @example * // Update many Opportunities * const opportunity = await prisma.opportunity.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Opportunities and only return the `id` * const opportunityWithIdOnly = await prisma.opportunity.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 Opportunity. * @param {OpportunityUpsertArgs} args - Arguments to update or create a Opportunity. * @example * // Update or create a Opportunity * const opportunity = await prisma.opportunity.upsert({ * create: { * // ... data to create a Opportunity * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Opportunity we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Opportunities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OpportunityCountArgs} args - Arguments to filter Opportunities to count. * @example * // Count the number of Opportunities * const count = await prisma.opportunity.count({ * where: { * // ... the filter for the Opportunities 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 Opportunity. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OpportunityAggregateArgs} 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 Opportunity. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OpportunityGroupByArgs} 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 OpportunityGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: OpportunityGroupByArgs['orderBy'] } : { orderBy?: OpportunityGroupByArgs['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 ? GetOpportunityGroupByPayload : Prisma.PrismaPromise /** * Fields of the Opportunity model */ readonly fields: OpportunityFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Opportunity. * 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__OpportunityClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" generatedQuotes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> type = {}>(args?: Prisma.Subset>): Prisma.Prisma__OpportunityTypeClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> stage = {}>(args?: Prisma.Subset>): Prisma.Prisma__OpportunityStageClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> status = {}>(args?: Prisma.Subset>): Prisma.Prisma__OpportunityStatusClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> taxCode = {}>(args?: Prisma.Subset>): Prisma.Prisma__TaxCodeClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> primarySalesRep = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> secondarySalesRep = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> company = {}>(args?: Prisma.Subset>): Prisma.Prisma__CompanyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> contact = {}>(args?: Prisma.Subset>): Prisma.Prisma__ContactClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> site = {}>(args?: Prisma.Subset>): Prisma.Prisma__CompanyAddressClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> location = {}>(args?: Prisma.Subset>): Prisma.Prisma__CorporateLocationClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> department = {}>(args?: Prisma.Subset>): Prisma.Prisma__InternalDepartmentClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> products = {}>(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 Opportunity model */ export interface OpportunityFieldRefs { readonly id: Prisma.FieldRef<"Opportunity", 'Int'> readonly uid: Prisma.FieldRef<"Opportunity", 'String'> readonly name: Prisma.FieldRef<"Opportunity", 'String'> readonly notes: Prisma.FieldRef<"Opportunity", 'String'> readonly oppNarrative: Prisma.FieldRef<"Opportunity", 'String'> readonly typeId: Prisma.FieldRef<"Opportunity", 'Int'> readonly stageId: Prisma.FieldRef<"Opportunity", 'Int'> readonly statusId: Prisma.FieldRef<"Opportunity", 'Int'> readonly taxCodeId: Prisma.FieldRef<"Opportunity", 'Int'> readonly interest: Prisma.FieldRef<"Opportunity", 'OpportunityInterest'> readonly probability: Prisma.FieldRef<"Opportunity", 'Float'> readonly source: Prisma.FieldRef<"Opportunity", 'String'> readonly primarySalesRepId: Prisma.FieldRef<"Opportunity", 'String'> readonly secondarySalesRepId: Prisma.FieldRef<"Opportunity", 'String'> readonly companyId: Prisma.FieldRef<"Opportunity", 'Int'> readonly contactId: Prisma.FieldRef<"Opportunity", 'Int'> readonly siteId: Prisma.FieldRef<"Opportunity", 'Int'> readonly customerPO: Prisma.FieldRef<"Opportunity", 'String'> readonly locationId: Prisma.FieldRef<"Opportunity", 'Int'> readonly departmentId: Prisma.FieldRef<"Opportunity", 'Int'> readonly expectedCloseDate: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly pipelineChangeDate: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly dateBecameLead: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly closedDate: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly closedFlag: Prisma.FieldRef<"Opportunity", 'Boolean'> readonly closedById: Prisma.FieldRef<"Opportunity", 'String'> readonly productSequence: Prisma.FieldRef<"Opportunity", 'Int[]'> readonly updatedBy: Prisma.FieldRef<"Opportunity", 'String'> readonly eneteredBy: Prisma.FieldRef<"Opportunity", 'String'> readonly createdAt: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Opportunity", 'DateTime'> } // Custom InputTypes /** * Opportunity findUnique */ export type OpportunityFindUniqueArgs = { /** * 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 /** * Filter, which Opportunity to fetch. */ where: Prisma.OpportunityWhereUniqueInput } /** * Opportunity findUniqueOrThrow */ export type OpportunityFindUniqueOrThrowArgs = { /** * 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 /** * Filter, which Opportunity to fetch. */ where: Prisma.OpportunityWhereUniqueInput } /** * Opportunity findFirst */ export type OpportunityFindFirstArgs = { /** * 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 /** * Filter, which Opportunity to fetch. */ where?: Prisma.OpportunityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Opportunities to fetch. */ orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Opportunities. */ cursor?: Prisma.OpportunityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Opportunities 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` Opportunities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Opportunities. */ distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[] } /** * Opportunity findFirstOrThrow */ export type OpportunityFindFirstOrThrowArgs = { /** * 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 /** * Filter, which Opportunity to fetch. */ where?: Prisma.OpportunityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Opportunities to fetch. */ orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Opportunities. */ cursor?: Prisma.OpportunityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Opportunities 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` Opportunities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Opportunities. */ distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[] } /** * Opportunity findMany */ export type OpportunityFindManyArgs = { /** * 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 /** * Filter, which Opportunities to fetch. */ where?: Prisma.OpportunityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Opportunities to fetch. */ orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Opportunities. */ cursor?: Prisma.OpportunityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Opportunities 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` Opportunities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Opportunities. */ distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[] } /** * Opportunity create */ export type OpportunityCreateArgs = { /** * 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 /** * The data needed to create a Opportunity. */ data: Prisma.XOR } /** * Opportunity createMany */ export type OpportunityCreateManyArgs = { /** * The data used to create many Opportunities. */ data: Prisma.OpportunityCreateManyInput | Prisma.OpportunityCreateManyInput[] skipDuplicates?: boolean } /** * Opportunity createManyAndReturn */ export type OpportunityCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelectCreateManyAndReturn | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * The data used to create many Opportunities. */ data: Prisma.OpportunityCreateManyInput | Prisma.OpportunityCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityIncludeCreateManyAndReturn | null } /** * Opportunity update */ export type OpportunityUpdateArgs = { /** * 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 /** * The data needed to update a Opportunity. */ data: Prisma.XOR /** * Choose, which Opportunity to update. */ where: Prisma.OpportunityWhereUniqueInput } /** * Opportunity updateMany */ export type OpportunityUpdateManyArgs = { /** * The data used to update Opportunities. */ data: Prisma.XOR /** * Filter which Opportunities to update */ where?: Prisma.OpportunityWhereInput /** * Limit how many Opportunities to update. */ limit?: number } /** * Opportunity updateManyAndReturn */ export type OpportunityUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelectUpdateManyAndReturn | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * The data used to update Opportunities. */ data: Prisma.XOR /** * Filter which Opportunities to update */ where?: Prisma.OpportunityWhereInput /** * Limit how many Opportunities to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityIncludeUpdateManyAndReturn | null } /** * Opportunity upsert */ export type OpportunityUpsertArgs = { /** * 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 /** * The filter to search for the Opportunity to update in case it exists. */ where: Prisma.OpportunityWhereUniqueInput /** * In case the Opportunity found by the `where` argument doesn't exist, create a new Opportunity with this data. */ create: Prisma.XOR /** * In case the Opportunity was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Opportunity delete */ export type OpportunityDeleteArgs = { /** * 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 /** * Filter which Opportunity to delete. */ where: Prisma.OpportunityWhereUniqueInput } /** * Opportunity deleteMany */ export type OpportunityDeleteManyArgs = { /** * Filter which Opportunities to delete */ where?: Prisma.OpportunityWhereInput /** * Limit how many Opportunities to delete. */ limit?: number } /** * Opportunity.generatedQuotes */ export type Opportunity$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[] } /** * Opportunity.stage */ export type Opportunity$stageArgs = { /** * Select specific fields to fetch from the OpportunityStage */ select?: Prisma.OpportunityStageSelect | null /** * Omit specific fields from the OpportunityStage */ omit?: Prisma.OpportunityStageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityStageInclude | null where?: Prisma.OpportunityStageWhereInput } /** * Opportunity.status */ export type Opportunity$statusArgs = { /** * Select specific fields to fetch from the OpportunityStatus */ select?: Prisma.OpportunityStatusSelect | null /** * Omit specific fields from the OpportunityStatus */ omit?: Prisma.OpportunityStatusOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityStatusInclude | null where?: Prisma.OpportunityStatusWhereInput } /** * Opportunity.taxCode */ export type Opportunity$taxCodeArgs = { /** * Select specific fields to fetch from the TaxCode */ select?: Prisma.TaxCodeSelect | null /** * Omit specific fields from the TaxCode */ omit?: Prisma.TaxCodeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaxCodeInclude | null where?: Prisma.TaxCodeWhereInput } /** * Opportunity.primarySalesRep */ export type Opportunity$primarySalesRepArgs = { /** * 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 where?: Prisma.UserWhereInput } /** * Opportunity.secondarySalesRep */ export type Opportunity$secondarySalesRepArgs = { /** * 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 where?: Prisma.UserWhereInput } /** * Opportunity.company */ export type Opportunity$companyArgs = { /** * 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 } /** * Opportunity.contact */ export type Opportunity$contactArgs = { /** * Select specific fields to fetch from the Contact */ select?: Prisma.ContactSelect | null /** * Omit specific fields from the Contact */ omit?: Prisma.ContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ContactInclude | null where?: Prisma.ContactWhereInput } /** * Opportunity.site */ export type Opportunity$siteArgs = { /** * 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 } /** * Opportunity.location */ export type Opportunity$locationArgs = { /** * Select specific fields to fetch from the CorporateLocation */ select?: Prisma.CorporateLocationSelect | null /** * Omit specific fields from the CorporateLocation */ omit?: Prisma.CorporateLocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CorporateLocationInclude | null where?: Prisma.CorporateLocationWhereInput } /** * Opportunity.department */ export type Opportunity$departmentArgs = { /** * Select specific fields to fetch from the InternalDepartment */ select?: Prisma.InternalDepartmentSelect | null /** * Omit specific fields from the InternalDepartment */ omit?: Prisma.InternalDepartmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InternalDepartmentInclude | null where?: Prisma.InternalDepartmentWhereInput } /** * Opportunity.products */ export type Opportunity$productsArgs = { /** * Select specific fields to fetch from the ProductData */ select?: Prisma.ProductDataSelect | null /** * Omit specific fields from the ProductData */ omit?: Prisma.ProductDataOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductDataInclude | null where?: Prisma.ProductDataWhereInput orderBy?: Prisma.ProductDataOrderByWithRelationInput | Prisma.ProductDataOrderByWithRelationInput[] cursor?: Prisma.ProductDataWhereUniqueInput take?: number skip?: number distinct?: Prisma.ProductDataScalarFieldEnum | Prisma.ProductDataScalarFieldEnum[] } /** * Opportunity without action */ export type OpportunityDefaultArgs = { /** * 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 }