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

1792 lines
64 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` 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
*
*/
export type productModel = runtime.Types.Result.DefaultSelection<Prisma.$productPayload>
export type AggregateProduct = {
_count: ProductCountAggregateOutputType | null
_avg: ProductAvgAggregateOutputType | null
_sum: ProductSumAggregateOutputType | null
_min: ProductMinAggregateOutputType | null
_max: ProductMaxAggregateOutputType | null
}
export type ProductAvgAggregateOutputType = {
id: number | null
date_orig: number | null
active: number | null
price: number | null
price_recurr_type: number | null
price_recurr_weekday: number | null
price_recurr_week: number | null
price_recurr_schedule: number | null
download_speed: number | null
upload_speed: number | null
night_package: number | null
quota_day: number | null
quota_night: number | null
category: number | null
uniq_charge: number | null
inv_threshold: number | null
inv_qte: number | null
list_tech: number | null
type: number | null
combo_ready: number | null
}
export type ProductSumAggregateOutputType = {
id: number | null
date_orig: bigint | null
active: number | null
price: number | null
price_recurr_type: number | null
price_recurr_weekday: number | null
price_recurr_week: number | null
price_recurr_schedule: number | null
download_speed: bigint | null
upload_speed: bigint | null
night_package: number | null
quota_day: bigint | null
quota_night: bigint | null
category: number | null
uniq_charge: number | null
inv_threshold: number | null
inv_qte: number | null
list_tech: number | null
type: number | null
combo_ready: number | null
}
export type ProductMinAggregateOutputType = {
id: number | null
date_orig: bigint | null
sku: string | null
active: number | null
price: number | null
price_recurr_type: number | null
price_recurr_weekday: number | null
price_recurr_week: number | null
price_recurr_schedule: number | null
download_speed: bigint | null
upload_speed: bigint | null
night_package: number | null
quota_day: bigint | null
quota_night: bigint | null
category: number | null
uniq_charge: number | null
commercial: boolean | null
portal_hidden: boolean | null
inv_keep: boolean | null
inv_tag: string | null
inv_threshold: number | null
inv_qte: number | null
emplacement: string | null
list_tech: number | null
type: number | null
combo_ready: number | null
fibre_lineprofile: string | null
fibre_serviceprofile: string | null
}
export type ProductMaxAggregateOutputType = {
id: number | null
date_orig: bigint | null
sku: string | null
active: number | null
price: number | null
price_recurr_type: number | null
price_recurr_weekday: number | null
price_recurr_week: number | null
price_recurr_schedule: number | null
download_speed: bigint | null
upload_speed: bigint | null
night_package: number | null
quota_day: bigint | null
quota_night: bigint | null
category: number | null
uniq_charge: number | null
commercial: boolean | null
portal_hidden: boolean | null
inv_keep: boolean | null
inv_tag: string | null
inv_threshold: number | null
inv_qte: number | null
emplacement: string | null
list_tech: number | null
type: number | null
combo_ready: number | null
fibre_lineprofile: string | null
fibre_serviceprofile: string | null
}
export type ProductCountAggregateOutputType = {
id: number
date_orig: number
sku: number
active: number
price: number
price_recurr_type: number
price_recurr_weekday: number
price_recurr_week: number
price_recurr_schedule: number
download_speed: number
upload_speed: number
night_package: number
quota_day: number
quota_night: number
category: number
uniq_charge: number
commercial: number
portal_hidden: number
inv_keep: number
inv_tag: number
inv_threshold: number
inv_qte: number
emplacement: number
list_tech: number
type: number
combo_ready: number
fibre_lineprofile: number
fibre_serviceprofile: number
_all: number
}
export type ProductAvgAggregateInputType = {
id?: true
date_orig?: true
active?: true
price?: true
price_recurr_type?: true
price_recurr_weekday?: true
price_recurr_week?: true
price_recurr_schedule?: true
download_speed?: true
upload_speed?: true
night_package?: true
quota_day?: true
quota_night?: true
category?: true
uniq_charge?: true
inv_threshold?: true
inv_qte?: true
list_tech?: true
type?: true
combo_ready?: true
}
export type ProductSumAggregateInputType = {
id?: true
date_orig?: true
active?: true
price?: true
price_recurr_type?: true
price_recurr_weekday?: true
price_recurr_week?: true
price_recurr_schedule?: true
download_speed?: true
upload_speed?: true
night_package?: true
quota_day?: true
quota_night?: true
category?: true
uniq_charge?: true
inv_threshold?: true
inv_qte?: true
list_tech?: true
type?: true
combo_ready?: true
}
export type ProductMinAggregateInputType = {
id?: true
date_orig?: true
sku?: true
active?: true
price?: true
price_recurr_type?: true
price_recurr_weekday?: true
price_recurr_week?: true
price_recurr_schedule?: true
download_speed?: true
upload_speed?: true
night_package?: true
quota_day?: true
quota_night?: true
category?: true
uniq_charge?: true
commercial?: true
portal_hidden?: true
inv_keep?: true
inv_tag?: true
inv_threshold?: true
inv_qte?: true
emplacement?: true
list_tech?: true
type?: true
combo_ready?: true
fibre_lineprofile?: true
fibre_serviceprofile?: true
}
export type ProductMaxAggregateInputType = {
id?: true
date_orig?: true
sku?: true
active?: true
price?: true
price_recurr_type?: true
price_recurr_weekday?: true
price_recurr_week?: true
price_recurr_schedule?: true
download_speed?: true
upload_speed?: true
night_package?: true
quota_day?: true
quota_night?: true
category?: true
uniq_charge?: true
commercial?: true
portal_hidden?: true
inv_keep?: true
inv_tag?: true
inv_threshold?: true
inv_qte?: true
emplacement?: true
list_tech?: true
type?: true
combo_ready?: true
fibre_lineprofile?: true
fibre_serviceprofile?: true
}
export type ProductCountAggregateInputType = {
id?: true
date_orig?: true
sku?: true
active?: true
price?: true
price_recurr_type?: true
price_recurr_weekday?: true
price_recurr_week?: true
price_recurr_schedule?: true
download_speed?: true
upload_speed?: true
night_package?: true
quota_day?: true
quota_night?: true
category?: true
uniq_charge?: true
commercial?: true
portal_hidden?: true
inv_keep?: true
inv_tag?: true
inv_threshold?: true
inv_qte?: true
emplacement?: true
list_tech?: true
type?: true
combo_ready?: true
fibre_lineprofile?: true
fibre_serviceprofile?: true
_all?: true
}
export type ProductAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which product to aggregate.
*/
where?: Prisma.productWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of products to fetch.
*/
orderBy?: Prisma.productOrderByWithRelationInput | Prisma.productOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.productWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` products 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` products.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned products
**/
_count?: true | ProductCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ProductAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ProductSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ProductMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ProductMaxAggregateInputType
}
export type GetProductAggregateType<T extends ProductAggregateArgs> = {
[P in keyof T & keyof AggregateProduct]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateProduct[P]>
: Prisma.GetScalarType<T[P], AggregateProduct[P]>
}
export type productGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.productWhereInput
orderBy?: Prisma.productOrderByWithAggregationInput | Prisma.productOrderByWithAggregationInput[]
by: Prisma.ProductScalarFieldEnum[] | Prisma.ProductScalarFieldEnum
having?: Prisma.productScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ProductCountAggregateInputType | true
_avg?: ProductAvgAggregateInputType
_sum?: ProductSumAggregateInputType
_min?: ProductMinAggregateInputType
_max?: ProductMaxAggregateInputType
}
export type ProductGroupByOutputType = {
id: number
date_orig: bigint | null
sku: string | null
active: number | null
price: number | null
price_recurr_type: number | null
price_recurr_weekday: number | null
price_recurr_week: number | null
price_recurr_schedule: number | null
download_speed: bigint | null
upload_speed: bigint | null
night_package: number
quota_day: bigint | null
quota_night: bigint | null
category: number | null
uniq_charge: number
commercial: boolean
portal_hidden: boolean
inv_keep: boolean
inv_tag: string | null
inv_threshold: number
inv_qte: number
emplacement: string
list_tech: number
type: number
combo_ready: number
fibre_lineprofile: string | null
fibre_serviceprofile: string | null
_count: ProductCountAggregateOutputType | null
_avg: ProductAvgAggregateOutputType | null
_sum: ProductSumAggregateOutputType | null
_min: ProductMinAggregateOutputType | null
_max: ProductMaxAggregateOutputType | null
}
type GetProductGroupByPayload<T extends productGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<ProductGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ProductGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], ProductGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], ProductGroupByOutputType[P]>
}
>
>
export type productWhereInput = {
AND?: Prisma.productWhereInput | Prisma.productWhereInput[]
OR?: Prisma.productWhereInput[]
NOT?: Prisma.productWhereInput | Prisma.productWhereInput[]
id?: Prisma.IntFilter<"product"> | number
date_orig?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
sku?: Prisma.StringNullableFilter<"product"> | string | null
active?: Prisma.IntNullableFilter<"product"> | number | null
price?: Prisma.FloatNullableFilter<"product"> | number | null
price_recurr_type?: Prisma.IntNullableFilter<"product"> | number | null
price_recurr_weekday?: Prisma.IntNullableFilter<"product"> | number | null
price_recurr_week?: Prisma.IntNullableFilter<"product"> | number | null
price_recurr_schedule?: Prisma.IntNullableFilter<"product"> | number | null
download_speed?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
upload_speed?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
night_package?: Prisma.IntFilter<"product"> | number
quota_day?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
quota_night?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
category?: Prisma.IntNullableFilter<"product"> | number | null
uniq_charge?: Prisma.IntFilter<"product"> | number
commercial?: Prisma.BoolFilter<"product"> | boolean
portal_hidden?: Prisma.BoolFilter<"product"> | boolean
inv_keep?: Prisma.BoolFilter<"product"> | boolean
inv_tag?: Prisma.StringNullableFilter<"product"> | string | null
inv_threshold?: Prisma.IntFilter<"product"> | number
inv_qte?: Prisma.IntFilter<"product"> | number
emplacement?: Prisma.StringFilter<"product"> | string
list_tech?: Prisma.IntFilter<"product"> | number
type?: Prisma.IntFilter<"product"> | number
combo_ready?: Prisma.IntFilter<"product"> | number
fibre_lineprofile?: Prisma.StringNullableFilter<"product"> | string | null
fibre_serviceprofile?: Prisma.StringNullableFilter<"product"> | string | null
}
export type productOrderByWithRelationInput = {
id?: Prisma.SortOrder
date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
sku?: Prisma.SortOrderInput | Prisma.SortOrder
active?: Prisma.SortOrderInput | Prisma.SortOrder
price?: Prisma.SortOrderInput | Prisma.SortOrder
price_recurr_type?: Prisma.SortOrderInput | Prisma.SortOrder
price_recurr_weekday?: Prisma.SortOrderInput | Prisma.SortOrder
price_recurr_week?: Prisma.SortOrderInput | Prisma.SortOrder
price_recurr_schedule?: Prisma.SortOrderInput | Prisma.SortOrder
download_speed?: Prisma.SortOrderInput | Prisma.SortOrder
upload_speed?: Prisma.SortOrderInput | Prisma.SortOrder
night_package?: Prisma.SortOrder
quota_day?: Prisma.SortOrderInput | Prisma.SortOrder
quota_night?: Prisma.SortOrderInput | Prisma.SortOrder
category?: Prisma.SortOrderInput | Prisma.SortOrder
uniq_charge?: Prisma.SortOrder
commercial?: Prisma.SortOrder
portal_hidden?: Prisma.SortOrder
inv_keep?: Prisma.SortOrder
inv_tag?: Prisma.SortOrderInput | Prisma.SortOrder
inv_threshold?: Prisma.SortOrder
inv_qte?: Prisma.SortOrder
emplacement?: Prisma.SortOrder
list_tech?: Prisma.SortOrder
type?: Prisma.SortOrder
combo_ready?: Prisma.SortOrder
fibre_lineprofile?: Prisma.SortOrderInput | Prisma.SortOrder
fibre_serviceprofile?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.productOrderByRelevanceInput
}
export type productWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.productWhereInput | Prisma.productWhereInput[]
OR?: Prisma.productWhereInput[]
NOT?: Prisma.productWhereInput | Prisma.productWhereInput[]
date_orig?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
sku?: Prisma.StringNullableFilter<"product"> | string | null
active?: Prisma.IntNullableFilter<"product"> | number | null
price?: Prisma.FloatNullableFilter<"product"> | number | null
price_recurr_type?: Prisma.IntNullableFilter<"product"> | number | null
price_recurr_weekday?: Prisma.IntNullableFilter<"product"> | number | null
price_recurr_week?: Prisma.IntNullableFilter<"product"> | number | null
price_recurr_schedule?: Prisma.IntNullableFilter<"product"> | number | null
download_speed?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
upload_speed?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
night_package?: Prisma.IntFilter<"product"> | number
quota_day?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
quota_night?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null
category?: Prisma.IntNullableFilter<"product"> | number | null
uniq_charge?: Prisma.IntFilter<"product"> | number
commercial?: Prisma.BoolFilter<"product"> | boolean
portal_hidden?: Prisma.BoolFilter<"product"> | boolean
inv_keep?: Prisma.BoolFilter<"product"> | boolean
inv_tag?: Prisma.StringNullableFilter<"product"> | string | null
inv_threshold?: Prisma.IntFilter<"product"> | number
inv_qte?: Prisma.IntFilter<"product"> | number
emplacement?: Prisma.StringFilter<"product"> | string
list_tech?: Prisma.IntFilter<"product"> | number
type?: Prisma.IntFilter<"product"> | number
combo_ready?: Prisma.IntFilter<"product"> | number
fibre_lineprofile?: Prisma.StringNullableFilter<"product"> | string | null
fibre_serviceprofile?: Prisma.StringNullableFilter<"product"> | string | null
}, "id">
export type productOrderByWithAggregationInput = {
id?: Prisma.SortOrder
date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
sku?: Prisma.SortOrderInput | Prisma.SortOrder
active?: Prisma.SortOrderInput | Prisma.SortOrder
price?: Prisma.SortOrderInput | Prisma.SortOrder
price_recurr_type?: Prisma.SortOrderInput | Prisma.SortOrder
price_recurr_weekday?: Prisma.SortOrderInput | Prisma.SortOrder
price_recurr_week?: Prisma.SortOrderInput | Prisma.SortOrder
price_recurr_schedule?: Prisma.SortOrderInput | Prisma.SortOrder
download_speed?: Prisma.SortOrderInput | Prisma.SortOrder
upload_speed?: Prisma.SortOrderInput | Prisma.SortOrder
night_package?: Prisma.SortOrder
quota_day?: Prisma.SortOrderInput | Prisma.SortOrder
quota_night?: Prisma.SortOrderInput | Prisma.SortOrder
category?: Prisma.SortOrderInput | Prisma.SortOrder
uniq_charge?: Prisma.SortOrder
commercial?: Prisma.SortOrder
portal_hidden?: Prisma.SortOrder
inv_keep?: Prisma.SortOrder
inv_tag?: Prisma.SortOrderInput | Prisma.SortOrder
inv_threshold?: Prisma.SortOrder
inv_qte?: Prisma.SortOrder
emplacement?: Prisma.SortOrder
list_tech?: Prisma.SortOrder
type?: Prisma.SortOrder
combo_ready?: Prisma.SortOrder
fibre_lineprofile?: Prisma.SortOrderInput | Prisma.SortOrder
fibre_serviceprofile?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.productCountOrderByAggregateInput
_avg?: Prisma.productAvgOrderByAggregateInput
_max?: Prisma.productMaxOrderByAggregateInput
_min?: Prisma.productMinOrderByAggregateInput
_sum?: Prisma.productSumOrderByAggregateInput
}
export type productScalarWhereWithAggregatesInput = {
AND?: Prisma.productScalarWhereWithAggregatesInput | Prisma.productScalarWhereWithAggregatesInput[]
OR?: Prisma.productScalarWhereWithAggregatesInput[]
NOT?: Prisma.productScalarWhereWithAggregatesInput | Prisma.productScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"product"> | number
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null
sku?: Prisma.StringNullableWithAggregatesFilter<"product"> | string | null
active?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null
price?: Prisma.FloatNullableWithAggregatesFilter<"product"> | number | null
price_recurr_type?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null
price_recurr_weekday?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null
price_recurr_week?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null
price_recurr_schedule?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null
download_speed?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null
upload_speed?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null
night_package?: Prisma.IntWithAggregatesFilter<"product"> | number
quota_day?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null
quota_night?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null
category?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null
uniq_charge?: Prisma.IntWithAggregatesFilter<"product"> | number
commercial?: Prisma.BoolWithAggregatesFilter<"product"> | boolean
portal_hidden?: Prisma.BoolWithAggregatesFilter<"product"> | boolean
inv_keep?: Prisma.BoolWithAggregatesFilter<"product"> | boolean
inv_tag?: Prisma.StringNullableWithAggregatesFilter<"product"> | string | null
inv_threshold?: Prisma.IntWithAggregatesFilter<"product"> | number
inv_qte?: Prisma.IntWithAggregatesFilter<"product"> | number
emplacement?: Prisma.StringWithAggregatesFilter<"product"> | string
list_tech?: Prisma.IntWithAggregatesFilter<"product"> | number
type?: Prisma.IntWithAggregatesFilter<"product"> | number
combo_ready?: Prisma.IntWithAggregatesFilter<"product"> | number
fibre_lineprofile?: Prisma.StringNullableWithAggregatesFilter<"product"> | string | null
fibre_serviceprofile?: Prisma.StringNullableWithAggregatesFilter<"product"> | string | null
}
export type productCreateInput = {
date_orig?: bigint | number | null
sku?: string | null
active?: number | null
price?: number | null
price_recurr_type?: number | null
price_recurr_weekday?: number | null
price_recurr_week?: number | null
price_recurr_schedule?: number | null
download_speed?: bigint | number | null
upload_speed?: bigint | number | null
night_package?: number
quota_day?: bigint | number | null
quota_night?: bigint | number | null
category?: number | null
uniq_charge?: number
commercial?: boolean
portal_hidden?: boolean
inv_keep?: boolean
inv_tag?: string | null
inv_threshold?: number
inv_qte?: number
emplacement?: string
list_tech?: number
type?: number
combo_ready?: number
fibre_lineprofile?: string | null
fibre_serviceprofile?: string | null
}
export type productUncheckedCreateInput = {
id?: number
date_orig?: bigint | number | null
sku?: string | null
active?: number | null
price?: number | null
price_recurr_type?: number | null
price_recurr_weekday?: number | null
price_recurr_week?: number | null
price_recurr_schedule?: number | null
download_speed?: bigint | number | null
upload_speed?: bigint | number | null
night_package?: number
quota_day?: bigint | number | null
quota_night?: bigint | number | null
category?: number | null
uniq_charge?: number
commercial?: boolean
portal_hidden?: boolean
inv_keep?: boolean
inv_tag?: string | null
inv_threshold?: number
inv_qte?: number
emplacement?: string
list_tech?: number
type?: number
combo_ready?: number
fibre_lineprofile?: string | null
fibre_serviceprofile?: string | null
}
export type productUpdateInput = {
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
active?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
price_recurr_type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_weekday?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_week?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_schedule?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
night_package?: Prisma.IntFieldUpdateOperationsInput | number
quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
category?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
uniq_charge?: Prisma.IntFieldUpdateOperationsInput | number
commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean
portal_hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
inv_keep?: Prisma.BoolFieldUpdateOperationsInput | boolean
inv_tag?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inv_threshold?: Prisma.IntFieldUpdateOperationsInput | number
inv_qte?: Prisma.IntFieldUpdateOperationsInput | number
emplacement?: Prisma.StringFieldUpdateOperationsInput | string
list_tech?: Prisma.IntFieldUpdateOperationsInput | number
type?: Prisma.IntFieldUpdateOperationsInput | number
combo_ready?: Prisma.IntFieldUpdateOperationsInput | number
fibre_lineprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fibre_serviceprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type productUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
active?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
price_recurr_type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_weekday?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_week?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_schedule?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
night_package?: Prisma.IntFieldUpdateOperationsInput | number
quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
category?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
uniq_charge?: Prisma.IntFieldUpdateOperationsInput | number
commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean
portal_hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
inv_keep?: Prisma.BoolFieldUpdateOperationsInput | boolean
inv_tag?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inv_threshold?: Prisma.IntFieldUpdateOperationsInput | number
inv_qte?: Prisma.IntFieldUpdateOperationsInput | number
emplacement?: Prisma.StringFieldUpdateOperationsInput | string
list_tech?: Prisma.IntFieldUpdateOperationsInput | number
type?: Prisma.IntFieldUpdateOperationsInput | number
combo_ready?: Prisma.IntFieldUpdateOperationsInput | number
fibre_lineprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fibre_serviceprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type productCreateManyInput = {
id?: number
date_orig?: bigint | number | null
sku?: string | null
active?: number | null
price?: number | null
price_recurr_type?: number | null
price_recurr_weekday?: number | null
price_recurr_week?: number | null
price_recurr_schedule?: number | null
download_speed?: bigint | number | null
upload_speed?: bigint | number | null
night_package?: number
quota_day?: bigint | number | null
quota_night?: bigint | number | null
category?: number | null
uniq_charge?: number
commercial?: boolean
portal_hidden?: boolean
inv_keep?: boolean
inv_tag?: string | null
inv_threshold?: number
inv_qte?: number
emplacement?: string
list_tech?: number
type?: number
combo_ready?: number
fibre_lineprofile?: string | null
fibre_serviceprofile?: string | null
}
export type productUpdateManyMutationInput = {
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
active?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
price_recurr_type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_weekday?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_week?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_schedule?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
night_package?: Prisma.IntFieldUpdateOperationsInput | number
quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
category?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
uniq_charge?: Prisma.IntFieldUpdateOperationsInput | number
commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean
portal_hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
inv_keep?: Prisma.BoolFieldUpdateOperationsInput | boolean
inv_tag?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inv_threshold?: Prisma.IntFieldUpdateOperationsInput | number
inv_qte?: Prisma.IntFieldUpdateOperationsInput | number
emplacement?: Prisma.StringFieldUpdateOperationsInput | string
list_tech?: Prisma.IntFieldUpdateOperationsInput | number
type?: Prisma.IntFieldUpdateOperationsInput | number
combo_ready?: Prisma.IntFieldUpdateOperationsInput | number
fibre_lineprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fibre_serviceprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type productUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
active?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
price_recurr_type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_weekday?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_week?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
price_recurr_schedule?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
night_package?: Prisma.IntFieldUpdateOperationsInput | number
quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
category?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
uniq_charge?: Prisma.IntFieldUpdateOperationsInput | number
commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean
portal_hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
inv_keep?: Prisma.BoolFieldUpdateOperationsInput | boolean
inv_tag?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inv_threshold?: Prisma.IntFieldUpdateOperationsInput | number
inv_qte?: Prisma.IntFieldUpdateOperationsInput | number
emplacement?: Prisma.StringFieldUpdateOperationsInput | string
list_tech?: Prisma.IntFieldUpdateOperationsInput | number
type?: Prisma.IntFieldUpdateOperationsInput | number
combo_ready?: Prisma.IntFieldUpdateOperationsInput | number
fibre_lineprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fibre_serviceprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type productOrderByRelevanceInput = {
fields: Prisma.productOrderByRelevanceFieldEnum | Prisma.productOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type productCountOrderByAggregateInput = {
id?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
sku?: Prisma.SortOrder
active?: Prisma.SortOrder
price?: Prisma.SortOrder
price_recurr_type?: Prisma.SortOrder
price_recurr_weekday?: Prisma.SortOrder
price_recurr_week?: Prisma.SortOrder
price_recurr_schedule?: Prisma.SortOrder
download_speed?: Prisma.SortOrder
upload_speed?: Prisma.SortOrder
night_package?: Prisma.SortOrder
quota_day?: Prisma.SortOrder
quota_night?: Prisma.SortOrder
category?: Prisma.SortOrder
uniq_charge?: Prisma.SortOrder
commercial?: Prisma.SortOrder
portal_hidden?: Prisma.SortOrder
inv_keep?: Prisma.SortOrder
inv_tag?: Prisma.SortOrder
inv_threshold?: Prisma.SortOrder
inv_qte?: Prisma.SortOrder
emplacement?: Prisma.SortOrder
list_tech?: Prisma.SortOrder
type?: Prisma.SortOrder
combo_ready?: Prisma.SortOrder
fibre_lineprofile?: Prisma.SortOrder
fibre_serviceprofile?: Prisma.SortOrder
}
export type productAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
active?: Prisma.SortOrder
price?: Prisma.SortOrder
price_recurr_type?: Prisma.SortOrder
price_recurr_weekday?: Prisma.SortOrder
price_recurr_week?: Prisma.SortOrder
price_recurr_schedule?: Prisma.SortOrder
download_speed?: Prisma.SortOrder
upload_speed?: Prisma.SortOrder
night_package?: Prisma.SortOrder
quota_day?: Prisma.SortOrder
quota_night?: Prisma.SortOrder
category?: Prisma.SortOrder
uniq_charge?: Prisma.SortOrder
inv_threshold?: Prisma.SortOrder
inv_qte?: Prisma.SortOrder
list_tech?: Prisma.SortOrder
type?: Prisma.SortOrder
combo_ready?: Prisma.SortOrder
}
export type productMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
sku?: Prisma.SortOrder
active?: Prisma.SortOrder
price?: Prisma.SortOrder
price_recurr_type?: Prisma.SortOrder
price_recurr_weekday?: Prisma.SortOrder
price_recurr_week?: Prisma.SortOrder
price_recurr_schedule?: Prisma.SortOrder
download_speed?: Prisma.SortOrder
upload_speed?: Prisma.SortOrder
night_package?: Prisma.SortOrder
quota_day?: Prisma.SortOrder
quota_night?: Prisma.SortOrder
category?: Prisma.SortOrder
uniq_charge?: Prisma.SortOrder
commercial?: Prisma.SortOrder
portal_hidden?: Prisma.SortOrder
inv_keep?: Prisma.SortOrder
inv_tag?: Prisma.SortOrder
inv_threshold?: Prisma.SortOrder
inv_qte?: Prisma.SortOrder
emplacement?: Prisma.SortOrder
list_tech?: Prisma.SortOrder
type?: Prisma.SortOrder
combo_ready?: Prisma.SortOrder
fibre_lineprofile?: Prisma.SortOrder
fibre_serviceprofile?: Prisma.SortOrder
}
export type productMinOrderByAggregateInput = {
id?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
sku?: Prisma.SortOrder
active?: Prisma.SortOrder
price?: Prisma.SortOrder
price_recurr_type?: Prisma.SortOrder
price_recurr_weekday?: Prisma.SortOrder
price_recurr_week?: Prisma.SortOrder
price_recurr_schedule?: Prisma.SortOrder
download_speed?: Prisma.SortOrder
upload_speed?: Prisma.SortOrder
night_package?: Prisma.SortOrder
quota_day?: Prisma.SortOrder
quota_night?: Prisma.SortOrder
category?: Prisma.SortOrder
uniq_charge?: Prisma.SortOrder
commercial?: Prisma.SortOrder
portal_hidden?: Prisma.SortOrder
inv_keep?: Prisma.SortOrder
inv_tag?: Prisma.SortOrder
inv_threshold?: Prisma.SortOrder
inv_qte?: Prisma.SortOrder
emplacement?: Prisma.SortOrder
list_tech?: Prisma.SortOrder
type?: Prisma.SortOrder
combo_ready?: Prisma.SortOrder
fibre_lineprofile?: Prisma.SortOrder
fibre_serviceprofile?: Prisma.SortOrder
}
export type productSumOrderByAggregateInput = {
id?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
active?: Prisma.SortOrder
price?: Prisma.SortOrder
price_recurr_type?: Prisma.SortOrder
price_recurr_weekday?: Prisma.SortOrder
price_recurr_week?: Prisma.SortOrder
price_recurr_schedule?: Prisma.SortOrder
download_speed?: Prisma.SortOrder
upload_speed?: Prisma.SortOrder
night_package?: Prisma.SortOrder
quota_day?: Prisma.SortOrder
quota_night?: Prisma.SortOrder
category?: Prisma.SortOrder
uniq_charge?: Prisma.SortOrder
inv_threshold?: Prisma.SortOrder
inv_qte?: Prisma.SortOrder
list_tech?: Prisma.SortOrder
type?: Prisma.SortOrder
combo_ready?: Prisma.SortOrder
}
export type productSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
date_orig?: boolean
sku?: boolean
active?: boolean
price?: boolean
price_recurr_type?: boolean
price_recurr_weekday?: boolean
price_recurr_week?: boolean
price_recurr_schedule?: boolean
download_speed?: boolean
upload_speed?: boolean
night_package?: boolean
quota_day?: boolean
quota_night?: boolean
category?: boolean
uniq_charge?: boolean
commercial?: boolean
portal_hidden?: boolean
inv_keep?: boolean
inv_tag?: boolean
inv_threshold?: boolean
inv_qte?: boolean
emplacement?: boolean
list_tech?: boolean
type?: boolean
combo_ready?: boolean
fibre_lineprofile?: boolean
fibre_serviceprofile?: boolean
}, ExtArgs["result"]["product"]>
export type productSelectScalar = {
id?: boolean
date_orig?: boolean
sku?: boolean
active?: boolean
price?: boolean
price_recurr_type?: boolean
price_recurr_weekday?: boolean
price_recurr_week?: boolean
price_recurr_schedule?: boolean
download_speed?: boolean
upload_speed?: boolean
night_package?: boolean
quota_day?: boolean
quota_night?: boolean
category?: boolean
uniq_charge?: boolean
commercial?: boolean
portal_hidden?: boolean
inv_keep?: boolean
inv_tag?: boolean
inv_threshold?: boolean
inv_qte?: boolean
emplacement?: boolean
list_tech?: boolean
type?: boolean
combo_ready?: boolean
fibre_lineprofile?: boolean
fibre_serviceprofile?: boolean
}
export type productOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "sku" | "active" | "price" | "price_recurr_type" | "price_recurr_weekday" | "price_recurr_week" | "price_recurr_schedule" | "download_speed" | "upload_speed" | "night_package" | "quota_day" | "quota_night" | "category" | "uniq_charge" | "commercial" | "portal_hidden" | "inv_keep" | "inv_tag" | "inv_threshold" | "inv_qte" | "emplacement" | "list_tech" | "type" | "combo_ready" | "fibre_lineprofile" | "fibre_serviceprofile", ExtArgs["result"]["product"]>
export type $productPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "product"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
date_orig: bigint | null
sku: string | null
active: number | null
price: number | null
price_recurr_type: number | null
price_recurr_weekday: number | null
price_recurr_week: number | null
price_recurr_schedule: number | null
download_speed: bigint | null
upload_speed: bigint | null
night_package: number
quota_day: bigint | null
quota_night: bigint | null
category: number | null
uniq_charge: number
commercial: boolean
portal_hidden: boolean
inv_keep: boolean
inv_tag: string | null
inv_threshold: number
inv_qte: number
emplacement: string
list_tech: number
type: number
combo_ready: number
fibre_lineprofile: string | null
fibre_serviceprofile: string | null
}, ExtArgs["result"]["product"]>
composites: {}
}
export type productGetPayload<S extends boolean | null | undefined | productDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$productPayload, S>
export type productCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<productFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ProductCountAggregateInputType | true
}
export interface productDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['product'], meta: { name: 'product' } }
/**
* Find zero or one Product that matches the filter.
* @param {productFindUniqueArgs} args - Arguments to find a Product
* @example
* // Get one Product
* const product = await prisma.product.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends productFindUniqueArgs>(args: Prisma.SelectSubset<T, productFindUniqueArgs<ExtArgs>>): Prisma.Prisma__productClient<runtime.Types.Result.GetResult<Prisma.$productPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Product that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {productFindUniqueOrThrowArgs} args - Arguments to find a Product
* @example
* // Get one Product
* const product = await prisma.product.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends productFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, productFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__productClient<runtime.Types.Result.GetResult<Prisma.$productPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Product 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 {productFindFirstArgs} args - Arguments to find a Product
* @example
* // Get one Product
* const product = await prisma.product.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends productFindFirstArgs>(args?: Prisma.SelectSubset<T, productFindFirstArgs<ExtArgs>>): Prisma.Prisma__productClient<runtime.Types.Result.GetResult<Prisma.$productPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Product 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 {productFindFirstOrThrowArgs} args - Arguments to find a Product
* @example
* // Get one Product
* const product = await prisma.product.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends productFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, productFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__productClient<runtime.Types.Result.GetResult<Prisma.$productPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Products 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 {productFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Products
* const products = await prisma.product.findMany()
*
* // Get first 10 Products
* const products = await prisma.product.findMany({ take: 10 })
*
* // Only select the `id`
* const productWithIdOnly = await prisma.product.findMany({ select: { id: true } })
*
*/
findMany<T extends productFindManyArgs>(args?: Prisma.SelectSubset<T, productFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$productPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Product.
* @param {productCreateArgs} args - Arguments to create a Product.
* @example
* // Create one Product
* const Product = await prisma.product.create({
* data: {
* // ... data to create a Product
* }
* })
*
*/
create<T extends productCreateArgs>(args: Prisma.SelectSubset<T, productCreateArgs<ExtArgs>>): Prisma.Prisma__productClient<runtime.Types.Result.GetResult<Prisma.$productPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Products.
* @param {productCreateManyArgs} args - Arguments to create many Products.
* @example
* // Create many Products
* const product = await prisma.product.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends productCreateManyArgs>(args?: Prisma.SelectSubset<T, productCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Product.
* @param {productDeleteArgs} args - Arguments to delete one Product.
* @example
* // Delete one Product
* const Product = await prisma.product.delete({
* where: {
* // ... filter to delete one Product
* }
* })
*
*/
delete<T extends productDeleteArgs>(args: Prisma.SelectSubset<T, productDeleteArgs<ExtArgs>>): Prisma.Prisma__productClient<runtime.Types.Result.GetResult<Prisma.$productPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Product.
* @param {productUpdateArgs} args - Arguments to update one Product.
* @example
* // Update one Product
* const product = await prisma.product.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends productUpdateArgs>(args: Prisma.SelectSubset<T, productUpdateArgs<ExtArgs>>): Prisma.Prisma__productClient<runtime.Types.Result.GetResult<Prisma.$productPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Products.
* @param {productDeleteManyArgs} args - Arguments to filter Products to delete.
* @example
* // Delete a few Products
* const { count } = await prisma.product.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends productDeleteManyArgs>(args?: Prisma.SelectSubset<T, productDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Products.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {productUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Products
* const product = await prisma.product.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends productUpdateManyArgs>(args: Prisma.SelectSubset<T, productUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Product.
* @param {productUpsertArgs} args - Arguments to update or create a Product.
* @example
* // Update or create a Product
* const product = await prisma.product.upsert({
* create: {
* // ... data to create a Product
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Product we want to update
* }
* })
*/
upsert<T extends productUpsertArgs>(args: Prisma.SelectSubset<T, productUpsertArgs<ExtArgs>>): Prisma.Prisma__productClient<runtime.Types.Result.GetResult<Prisma.$productPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Products.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {productCountArgs} args - Arguments to filter Products to count.
* @example
* // Count the number of Products
* const count = await prisma.product.count({
* where: {
* // ... the filter for the Products we want to count
* }
* })
**/
count<T extends productCountArgs>(
args?: Prisma.Subset<T, productCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], ProductCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Product.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ProductAggregateArgs} 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 ProductAggregateArgs>(args: Prisma.Subset<T, ProductAggregateArgs>): Prisma.PrismaPromise<GetProductAggregateType<T>>
/**
* Group by Product.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {productGroupByArgs} 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 productGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: productGroupByArgs['orderBy'] }
: { orderBy?: productGroupByArgs['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, productGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the product model
*/
readonly fields: productFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for product.
* 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__productClient<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 model
*/
export interface productFieldRefs {
readonly id: Prisma.FieldRef<"product", 'Int'>
readonly date_orig: Prisma.FieldRef<"product", 'BigInt'>
readonly sku: Prisma.FieldRef<"product", 'String'>
readonly active: Prisma.FieldRef<"product", 'Int'>
readonly price: Prisma.FieldRef<"product", 'Float'>
readonly price_recurr_type: Prisma.FieldRef<"product", 'Int'>
readonly price_recurr_weekday: Prisma.FieldRef<"product", 'Int'>
readonly price_recurr_week: Prisma.FieldRef<"product", 'Int'>
readonly price_recurr_schedule: Prisma.FieldRef<"product", 'Int'>
readonly download_speed: Prisma.FieldRef<"product", 'BigInt'>
readonly upload_speed: Prisma.FieldRef<"product", 'BigInt'>
readonly night_package: Prisma.FieldRef<"product", 'Int'>
readonly quota_day: Prisma.FieldRef<"product", 'BigInt'>
readonly quota_night: Prisma.FieldRef<"product", 'BigInt'>
readonly category: Prisma.FieldRef<"product", 'Int'>
readonly uniq_charge: Prisma.FieldRef<"product", 'Int'>
readonly commercial: Prisma.FieldRef<"product", 'Boolean'>
readonly portal_hidden: Prisma.FieldRef<"product", 'Boolean'>
readonly inv_keep: Prisma.FieldRef<"product", 'Boolean'>
readonly inv_tag: Prisma.FieldRef<"product", 'String'>
readonly inv_threshold: Prisma.FieldRef<"product", 'Int'>
readonly inv_qte: Prisma.FieldRef<"product", 'Int'>
readonly emplacement: Prisma.FieldRef<"product", 'String'>
readonly list_tech: Prisma.FieldRef<"product", 'Int'>
readonly type: Prisma.FieldRef<"product", 'Int'>
readonly combo_ready: Prisma.FieldRef<"product", 'Int'>
readonly fibre_lineprofile: Prisma.FieldRef<"product", 'String'>
readonly fibre_serviceprofile: Prisma.FieldRef<"product", 'String'>
}
// Custom InputTypes
/**
* product findUnique
*/
export type productFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
/**
* Filter, which product to fetch.
*/
where: Prisma.productWhereUniqueInput
}
/**
* product findUniqueOrThrow
*/
export type productFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
/**
* Filter, which product to fetch.
*/
where: Prisma.productWhereUniqueInput
}
/**
* product findFirst
*/
export type productFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
/**
* Filter, which product to fetch.
*/
where?: Prisma.productWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of products to fetch.
*/
orderBy?: Prisma.productOrderByWithRelationInput | Prisma.productOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for products.
*/
cursor?: Prisma.productWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` products 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` products.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of products.
*/
distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[]
}
/**
* product findFirstOrThrow
*/
export type productFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
/**
* Filter, which product to fetch.
*/
where?: Prisma.productWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of products to fetch.
*/
orderBy?: Prisma.productOrderByWithRelationInput | Prisma.productOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for products.
*/
cursor?: Prisma.productWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` products 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` products.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of products.
*/
distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[]
}
/**
* product findMany
*/
export type productFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
/**
* Filter, which products to fetch.
*/
where?: Prisma.productWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of products to fetch.
*/
orderBy?: Prisma.productOrderByWithRelationInput | Prisma.productOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing products.
*/
cursor?: Prisma.productWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` products 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` products.
*/
skip?: number
distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[]
}
/**
* product create
*/
export type productCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
/**
* The data needed to create a product.
*/
data?: Prisma.XOR<Prisma.productCreateInput, Prisma.productUncheckedCreateInput>
}
/**
* product createMany
*/
export type productCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many products.
*/
data: Prisma.productCreateManyInput | Prisma.productCreateManyInput[]
skipDuplicates?: boolean
}
/**
* product update
*/
export type productUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
/**
* The data needed to update a product.
*/
data: Prisma.XOR<Prisma.productUpdateInput, Prisma.productUncheckedUpdateInput>
/**
* Choose, which product to update.
*/
where: Prisma.productWhereUniqueInput
}
/**
* product updateMany
*/
export type productUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update products.
*/
data: Prisma.XOR<Prisma.productUpdateManyMutationInput, Prisma.productUncheckedUpdateManyInput>
/**
* Filter which products to update
*/
where?: Prisma.productWhereInput
/**
* Limit how many products to update.
*/
limit?: number
}
/**
* product upsert
*/
export type productUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
/**
* The filter to search for the product to update in case it exists.
*/
where: Prisma.productWhereUniqueInput
/**
* In case the product found by the `where` argument doesn't exist, create a new product with this data.
*/
create: Prisma.XOR<Prisma.productCreateInput, Prisma.productUncheckedCreateInput>
/**
* In case the product was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.productUpdateInput, Prisma.productUncheckedUpdateInput>
}
/**
* product delete
*/
export type productDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
/**
* Filter which product to delete.
*/
where: Prisma.productWhereUniqueInput
}
/**
* product deleteMany
*/
export type productDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which products to delete
*/
where?: Prisma.productWhereInput
/**
* Limit how many products to delete.
*/
limit?: number
}
/**
* product without action
*/
export type productDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product
*/
select?: Prisma.productSelect<ExtArgs> | null
/**
* Omit specific fields from the product
*/
omit?: Prisma.productOmit<ExtArgs> | null
}