targo-backend/prisma/generated/mariadb/models/product_profile.ts

1098 lines
39 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `product_profile` 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"
import type * as Prisma from "../internal/prismaNamespace"
/**
* Model product_profile
*
*/
export type product_profileModel = runtime.Types.Result.DefaultSelection<Prisma.$product_profilePayload>
export type AggregateProduct_profile = {
_count: Product_profileCountAggregateOutputType | null
_avg: Product_profileAvgAggregateOutputType | null
_sum: Product_profileSumAggregateOutputType | null
_min: Product_profileMinAggregateOutputType | null
_max: Product_profileMaxAggregateOutputType | null
}
export type Product_profileAvgAggregateOutputType = {
id: number | null
product_id: number | null
line_profile: number | null
service_profile: number | null
}
export type Product_profileSumAggregateOutputType = {
id: number | null
product_id: number | null
line_profile: number | null
service_profile: number | null
}
export type Product_profileMinAggregateOutputType = {
id: number | null
product_id: number | null
device_type: string | null
line_profile: number | null
service_profile: number | null
}
export type Product_profileMaxAggregateOutputType = {
id: number | null
product_id: number | null
device_type: string | null
line_profile: number | null
service_profile: number | null
}
export type Product_profileCountAggregateOutputType = {
id: number
product_id: number
device_type: number
line_profile: number
service_profile: number
_all: number
}
export type Product_profileAvgAggregateInputType = {
id?: true
product_id?: true
line_profile?: true
service_profile?: true
}
export type Product_profileSumAggregateInputType = {
id?: true
product_id?: true
line_profile?: true
service_profile?: true
}
export type Product_profileMinAggregateInputType = {
id?: true
product_id?: true
device_type?: true
line_profile?: true
service_profile?: true
}
export type Product_profileMaxAggregateInputType = {
id?: true
product_id?: true
device_type?: true
line_profile?: true
service_profile?: true
}
export type Product_profileCountAggregateInputType = {
id?: true
product_id?: true
device_type?: true
line_profile?: true
service_profile?: true
_all?: true
}
export type Product_profileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which product_profile to aggregate.
*/
where?: Prisma.product_profileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of product_profiles to fetch.
*/
orderBy?: Prisma.product_profileOrderByWithRelationInput | Prisma.product_profileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.product_profileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` product_profiles 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` product_profiles.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned product_profiles
**/
_count?: true | Product_profileCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Product_profileAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Product_profileSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Product_profileMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Product_profileMaxAggregateInputType
}
export type GetProduct_profileAggregateType<T extends Product_profileAggregateArgs> = {
[P in keyof T & keyof AggregateProduct_profile]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateProduct_profile[P]>
: Prisma.GetScalarType<T[P], AggregateProduct_profile[P]>
}
export type product_profileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.product_profileWhereInput
orderBy?: Prisma.product_profileOrderByWithAggregationInput | Prisma.product_profileOrderByWithAggregationInput[]
by: Prisma.Product_profileScalarFieldEnum[] | Prisma.Product_profileScalarFieldEnum
having?: Prisma.product_profileScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Product_profileCountAggregateInputType | true
_avg?: Product_profileAvgAggregateInputType
_sum?: Product_profileSumAggregateInputType
_min?: Product_profileMinAggregateInputType
_max?: Product_profileMaxAggregateInputType
}
export type Product_profileGroupByOutputType = {
id: number
product_id: number
device_type: string
line_profile: number
service_profile: number
_count: Product_profileCountAggregateOutputType | null
_avg: Product_profileAvgAggregateOutputType | null
_sum: Product_profileSumAggregateOutputType | null
_min: Product_profileMinAggregateOutputType | null
_max: Product_profileMaxAggregateOutputType | null
}
type GetProduct_profileGroupByPayload<T extends product_profileGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Product_profileGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Product_profileGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Product_profileGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Product_profileGroupByOutputType[P]>
}
>
>
export type product_profileWhereInput = {
AND?: Prisma.product_profileWhereInput | Prisma.product_profileWhereInput[]
OR?: Prisma.product_profileWhereInput[]
NOT?: Prisma.product_profileWhereInput | Prisma.product_profileWhereInput[]
id?: Prisma.IntFilter<"product_profile"> | number
product_id?: Prisma.IntFilter<"product_profile"> | number
device_type?: Prisma.StringFilter<"product_profile"> | string
line_profile?: Prisma.IntFilter<"product_profile"> | number
service_profile?: Prisma.IntFilter<"product_profile"> | number
}
export type product_profileOrderByWithRelationInput = {
id?: Prisma.SortOrder
product_id?: Prisma.SortOrder
device_type?: Prisma.SortOrder
line_profile?: Prisma.SortOrder
service_profile?: Prisma.SortOrder
_relevance?: Prisma.product_profileOrderByRelevanceInput
}
export type product_profileWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.product_profileWhereInput | Prisma.product_profileWhereInput[]
OR?: Prisma.product_profileWhereInput[]
NOT?: Prisma.product_profileWhereInput | Prisma.product_profileWhereInput[]
product_id?: Prisma.IntFilter<"product_profile"> | number
device_type?: Prisma.StringFilter<"product_profile"> | string
line_profile?: Prisma.IntFilter<"product_profile"> | number
service_profile?: Prisma.IntFilter<"product_profile"> | number
}, "id">
export type product_profileOrderByWithAggregationInput = {
id?: Prisma.SortOrder
product_id?: Prisma.SortOrder
device_type?: Prisma.SortOrder
line_profile?: Prisma.SortOrder
service_profile?: Prisma.SortOrder
_count?: Prisma.product_profileCountOrderByAggregateInput
_avg?: Prisma.product_profileAvgOrderByAggregateInput
_max?: Prisma.product_profileMaxOrderByAggregateInput
_min?: Prisma.product_profileMinOrderByAggregateInput
_sum?: Prisma.product_profileSumOrderByAggregateInput
}
export type product_profileScalarWhereWithAggregatesInput = {
AND?: Prisma.product_profileScalarWhereWithAggregatesInput | Prisma.product_profileScalarWhereWithAggregatesInput[]
OR?: Prisma.product_profileScalarWhereWithAggregatesInput[]
NOT?: Prisma.product_profileScalarWhereWithAggregatesInput | Prisma.product_profileScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"product_profile"> | number
product_id?: Prisma.IntWithAggregatesFilter<"product_profile"> | number
device_type?: Prisma.StringWithAggregatesFilter<"product_profile"> | string
line_profile?: Prisma.IntWithAggregatesFilter<"product_profile"> | number
service_profile?: Prisma.IntWithAggregatesFilter<"product_profile"> | number
}
export type product_profileCreateInput = {
product_id: number
device_type: string
line_profile: number
service_profile: number
}
export type product_profileUncheckedCreateInput = {
id?: number
product_id: number
device_type: string
line_profile: number
service_profile: number
}
export type product_profileUpdateInput = {
product_id?: Prisma.IntFieldUpdateOperationsInput | number
device_type?: Prisma.StringFieldUpdateOperationsInput | string
line_profile?: Prisma.IntFieldUpdateOperationsInput | number
service_profile?: Prisma.IntFieldUpdateOperationsInput | number
}
export type product_profileUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
product_id?: Prisma.IntFieldUpdateOperationsInput | number
device_type?: Prisma.StringFieldUpdateOperationsInput | string
line_profile?: Prisma.IntFieldUpdateOperationsInput | number
service_profile?: Prisma.IntFieldUpdateOperationsInput | number
}
export type product_profileCreateManyInput = {
id?: number
product_id: number
device_type: string
line_profile: number
service_profile: number
}
export type product_profileUpdateManyMutationInput = {
product_id?: Prisma.IntFieldUpdateOperationsInput | number
device_type?: Prisma.StringFieldUpdateOperationsInput | string
line_profile?: Prisma.IntFieldUpdateOperationsInput | number
service_profile?: Prisma.IntFieldUpdateOperationsInput | number
}
export type product_profileUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
product_id?: Prisma.IntFieldUpdateOperationsInput | number
device_type?: Prisma.StringFieldUpdateOperationsInput | string
line_profile?: Prisma.IntFieldUpdateOperationsInput | number
service_profile?: Prisma.IntFieldUpdateOperationsInput | number
}
export type product_profileOrderByRelevanceInput = {
fields: Prisma.product_profileOrderByRelevanceFieldEnum | Prisma.product_profileOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type product_profileCountOrderByAggregateInput = {
id?: Prisma.SortOrder
product_id?: Prisma.SortOrder
device_type?: Prisma.SortOrder
line_profile?: Prisma.SortOrder
service_profile?: Prisma.SortOrder
}
export type product_profileAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
product_id?: Prisma.SortOrder
line_profile?: Prisma.SortOrder
service_profile?: Prisma.SortOrder
}
export type product_profileMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
product_id?: Prisma.SortOrder
device_type?: Prisma.SortOrder
line_profile?: Prisma.SortOrder
service_profile?: Prisma.SortOrder
}
export type product_profileMinOrderByAggregateInput = {
id?: Prisma.SortOrder
product_id?: Prisma.SortOrder
device_type?: Prisma.SortOrder
line_profile?: Prisma.SortOrder
service_profile?: Prisma.SortOrder
}
export type product_profileSumOrderByAggregateInput = {
id?: Prisma.SortOrder
product_id?: Prisma.SortOrder
line_profile?: Prisma.SortOrder
service_profile?: Prisma.SortOrder
}
export type product_profileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
product_id?: boolean
device_type?: boolean
line_profile?: boolean
service_profile?: boolean
}, ExtArgs["result"]["product_profile"]>
export type product_profileSelectScalar = {
id?: boolean
product_id?: boolean
device_type?: boolean
line_profile?: boolean
service_profile?: boolean
}
export type product_profileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "product_id" | "device_type" | "line_profile" | "service_profile", ExtArgs["result"]["product_profile"]>
export type $product_profilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "product_profile"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
product_id: number
device_type: string
line_profile: number
service_profile: number
}, ExtArgs["result"]["product_profile"]>
composites: {}
}
export type product_profileGetPayload<S extends boolean | null | undefined | product_profileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$product_profilePayload, S>
export type product_profileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<product_profileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Product_profileCountAggregateInputType | true
}
export interface product_profileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['product_profile'], meta: { name: 'product_profile' } }
/**
* Find zero or one Product_profile that matches the filter.
* @param {product_profileFindUniqueArgs} args - Arguments to find a Product_profile
* @example
* // Get one Product_profile
* const product_profile = await prisma.product_profile.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends product_profileFindUniqueArgs>(args: Prisma.SelectSubset<T, product_profileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__product_profileClient<runtime.Types.Result.GetResult<Prisma.$product_profilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Product_profile that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {product_profileFindUniqueOrThrowArgs} args - Arguments to find a Product_profile
* @example
* // Get one Product_profile
* const product_profile = await prisma.product_profile.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends product_profileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, product_profileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__product_profileClient<runtime.Types.Result.GetResult<Prisma.$product_profilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Product_profile 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 {product_profileFindFirstArgs} args - Arguments to find a Product_profile
* @example
* // Get one Product_profile
* const product_profile = await prisma.product_profile.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends product_profileFindFirstArgs>(args?: Prisma.SelectSubset<T, product_profileFindFirstArgs<ExtArgs>>): Prisma.Prisma__product_profileClient<runtime.Types.Result.GetResult<Prisma.$product_profilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Product_profile 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 {product_profileFindFirstOrThrowArgs} args - Arguments to find a Product_profile
* @example
* // Get one Product_profile
* const product_profile = await prisma.product_profile.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends product_profileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, product_profileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__product_profileClient<runtime.Types.Result.GetResult<Prisma.$product_profilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Product_profiles 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 {product_profileFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Product_profiles
* const product_profiles = await prisma.product_profile.findMany()
*
* // Get first 10 Product_profiles
* const product_profiles = await prisma.product_profile.findMany({ take: 10 })
*
* // Only select the `id`
* const product_profileWithIdOnly = await prisma.product_profile.findMany({ select: { id: true } })
*
*/
findMany<T extends product_profileFindManyArgs>(args?: Prisma.SelectSubset<T, product_profileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$product_profilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Product_profile.
* @param {product_profileCreateArgs} args - Arguments to create a Product_profile.
* @example
* // Create one Product_profile
* const Product_profile = await prisma.product_profile.create({
* data: {
* // ... data to create a Product_profile
* }
* })
*
*/
create<T extends product_profileCreateArgs>(args: Prisma.SelectSubset<T, product_profileCreateArgs<ExtArgs>>): Prisma.Prisma__product_profileClient<runtime.Types.Result.GetResult<Prisma.$product_profilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Product_profiles.
* @param {product_profileCreateManyArgs} args - Arguments to create many Product_profiles.
* @example
* // Create many Product_profiles
* const product_profile = await prisma.product_profile.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends product_profileCreateManyArgs>(args?: Prisma.SelectSubset<T, product_profileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Product_profile.
* @param {product_profileDeleteArgs} args - Arguments to delete one Product_profile.
* @example
* // Delete one Product_profile
* const Product_profile = await prisma.product_profile.delete({
* where: {
* // ... filter to delete one Product_profile
* }
* })
*
*/
delete<T extends product_profileDeleteArgs>(args: Prisma.SelectSubset<T, product_profileDeleteArgs<ExtArgs>>): Prisma.Prisma__product_profileClient<runtime.Types.Result.GetResult<Prisma.$product_profilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Product_profile.
* @param {product_profileUpdateArgs} args - Arguments to update one Product_profile.
* @example
* // Update one Product_profile
* const product_profile = await prisma.product_profile.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends product_profileUpdateArgs>(args: Prisma.SelectSubset<T, product_profileUpdateArgs<ExtArgs>>): Prisma.Prisma__product_profileClient<runtime.Types.Result.GetResult<Prisma.$product_profilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Product_profiles.
* @param {product_profileDeleteManyArgs} args - Arguments to filter Product_profiles to delete.
* @example
* // Delete a few Product_profiles
* const { count } = await prisma.product_profile.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends product_profileDeleteManyArgs>(args?: Prisma.SelectSubset<T, product_profileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Product_profiles.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {product_profileUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Product_profiles
* const product_profile = await prisma.product_profile.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends product_profileUpdateManyArgs>(args: Prisma.SelectSubset<T, product_profileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Product_profile.
* @param {product_profileUpsertArgs} args - Arguments to update or create a Product_profile.
* @example
* // Update or create a Product_profile
* const product_profile = await prisma.product_profile.upsert({
* create: {
* // ... data to create a Product_profile
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Product_profile we want to update
* }
* })
*/
upsert<T extends product_profileUpsertArgs>(args: Prisma.SelectSubset<T, product_profileUpsertArgs<ExtArgs>>): Prisma.Prisma__product_profileClient<runtime.Types.Result.GetResult<Prisma.$product_profilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Product_profiles.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {product_profileCountArgs} args - Arguments to filter Product_profiles to count.
* @example
* // Count the number of Product_profiles
* const count = await prisma.product_profile.count({
* where: {
* // ... the filter for the Product_profiles we want to count
* }
* })
**/
count<T extends product_profileCountArgs>(
args?: Prisma.Subset<T, product_profileCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Product_profileCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Product_profile.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Product_profileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends Product_profileAggregateArgs>(args: Prisma.Subset<T, Product_profileAggregateArgs>): Prisma.PrismaPromise<GetProduct_profileAggregateType<T>>
/**
* Group by Product_profile.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {product_profileGroupByArgs} 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 product_profileGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: product_profileGroupByArgs['orderBy'] }
: { orderBy?: product_profileGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, product_profileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProduct_profileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the product_profile model
*/
readonly fields: product_profileFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for product_profile.
* 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__product_profileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the product_profile model
*/
export interface product_profileFieldRefs {
readonly id: Prisma.FieldRef<"product_profile", 'Int'>
readonly product_id: Prisma.FieldRef<"product_profile", 'Int'>
readonly device_type: Prisma.FieldRef<"product_profile", 'String'>
readonly line_profile: Prisma.FieldRef<"product_profile", 'Int'>
readonly service_profile: Prisma.FieldRef<"product_profile", 'Int'>
}
// Custom InputTypes
/**
* product_profile findUnique
*/
export type product_profileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
/**
* Filter, which product_profile to fetch.
*/
where: Prisma.product_profileWhereUniqueInput
}
/**
* product_profile findUniqueOrThrow
*/
export type product_profileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
/**
* Filter, which product_profile to fetch.
*/
where: Prisma.product_profileWhereUniqueInput
}
/**
* product_profile findFirst
*/
export type product_profileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
/**
* Filter, which product_profile to fetch.
*/
where?: Prisma.product_profileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of product_profiles to fetch.
*/
orderBy?: Prisma.product_profileOrderByWithRelationInput | Prisma.product_profileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for product_profiles.
*/
cursor?: Prisma.product_profileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` product_profiles 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` product_profiles.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of product_profiles.
*/
distinct?: Prisma.Product_profileScalarFieldEnum | Prisma.Product_profileScalarFieldEnum[]
}
/**
* product_profile findFirstOrThrow
*/
export type product_profileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
/**
* Filter, which product_profile to fetch.
*/
where?: Prisma.product_profileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of product_profiles to fetch.
*/
orderBy?: Prisma.product_profileOrderByWithRelationInput | Prisma.product_profileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for product_profiles.
*/
cursor?: Prisma.product_profileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` product_profiles 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` product_profiles.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of product_profiles.
*/
distinct?: Prisma.Product_profileScalarFieldEnum | Prisma.Product_profileScalarFieldEnum[]
}
/**
* product_profile findMany
*/
export type product_profileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
/**
* Filter, which product_profiles to fetch.
*/
where?: Prisma.product_profileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of product_profiles to fetch.
*/
orderBy?: Prisma.product_profileOrderByWithRelationInput | Prisma.product_profileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing product_profiles.
*/
cursor?: Prisma.product_profileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` product_profiles 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` product_profiles.
*/
skip?: number
distinct?: Prisma.Product_profileScalarFieldEnum | Prisma.Product_profileScalarFieldEnum[]
}
/**
* product_profile create
*/
export type product_profileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
/**
* The data needed to create a product_profile.
*/
data: Prisma.XOR<Prisma.product_profileCreateInput, Prisma.product_profileUncheckedCreateInput>
}
/**
* product_profile createMany
*/
export type product_profileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many product_profiles.
*/
data: Prisma.product_profileCreateManyInput | Prisma.product_profileCreateManyInput[]
skipDuplicates?: boolean
}
/**
* product_profile update
*/
export type product_profileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
/**
* The data needed to update a product_profile.
*/
data: Prisma.XOR<Prisma.product_profileUpdateInput, Prisma.product_profileUncheckedUpdateInput>
/**
* Choose, which product_profile to update.
*/
where: Prisma.product_profileWhereUniqueInput
}
/**
* product_profile updateMany
*/
export type product_profileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update product_profiles.
*/
data: Prisma.XOR<Prisma.product_profileUpdateManyMutationInput, Prisma.product_profileUncheckedUpdateManyInput>
/**
* Filter which product_profiles to update
*/
where?: Prisma.product_profileWhereInput
/**
* Limit how many product_profiles to update.
*/
limit?: number
}
/**
* product_profile upsert
*/
export type product_profileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
/**
* The filter to search for the product_profile to update in case it exists.
*/
where: Prisma.product_profileWhereUniqueInput
/**
* In case the product_profile found by the `where` argument doesn't exist, create a new product_profile with this data.
*/
create: Prisma.XOR<Prisma.product_profileCreateInput, Prisma.product_profileUncheckedCreateInput>
/**
* In case the product_profile was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.product_profileUpdateInput, Prisma.product_profileUncheckedUpdateInput>
}
/**
* product_profile delete
*/
export type product_profileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
/**
* Filter which product_profile to delete.
*/
where: Prisma.product_profileWhereUniqueInput
}
/**
* product_profile deleteMany
*/
export type product_profileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which product_profiles to delete
*/
where?: Prisma.product_profileWhereInput
/**
* Limit how many product_profiles to delete.
*/
limit?: number
}
/**
* product_profile without action
*/
export type product_profileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_profile
*/
select?: Prisma.product_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the product_profile
*/
omit?: Prisma.product_profileOmit<ExtArgs> | null
}