Files
psp_api/src/generated/prisma/models/GoodCategory.ts
T
2026-02-04 13:49:07 +03:30

1316 lines
47 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 `GoodCategory` 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.js"
import type * as Prisma from "../internal/prismaNamespace.js"
/**
* Model GoodCategory
*
*/
export type GoodCategoryModel = runtime.Types.Result.DefaultSelection<Prisma.$GoodCategoryPayload>
export type AggregateGoodCategory = {
_count: GoodCategoryCountAggregateOutputType | null
_avg: GoodCategoryAvgAggregateOutputType | null
_sum: GoodCategorySumAggregateOutputType | null
_min: GoodCategoryMinAggregateOutputType | null
_max: GoodCategoryMaxAggregateOutputType | null
}
export type GoodCategoryAvgAggregateOutputType = {
id: number | null
}
export type GoodCategorySumAggregateOutputType = {
id: number | null
}
export type GoodCategoryMinAggregateOutputType = {
id: number | null
name: string | null
description: string | null
imageUrl: string | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
}
export type GoodCategoryMaxAggregateOutputType = {
id: number | null
name: string | null
description: string | null
imageUrl: string | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
}
export type GoodCategoryCountAggregateOutputType = {
id: number
name: number
description: number
imageUrl: number
createdAt: number
updatedAt: number
deletedAt: number
_all: number
}
export type GoodCategoryAvgAggregateInputType = {
id?: true
}
export type GoodCategorySumAggregateInputType = {
id?: true
}
export type GoodCategoryMinAggregateInputType = {
id?: true
name?: true
description?: true
imageUrl?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
}
export type GoodCategoryMaxAggregateInputType = {
id?: true
name?: true
description?: true
imageUrl?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
}
export type GoodCategoryCountAggregateInputType = {
id?: true
name?: true
description?: true
imageUrl?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
_all?: true
}
export type GoodCategoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which GoodCategory to aggregate.
*/
where?: Prisma.GoodCategoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GoodCategories to fetch.
*/
orderBy?: Prisma.GoodCategoryOrderByWithRelationInput | Prisma.GoodCategoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.GoodCategoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GoodCategories 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` GoodCategories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned GoodCategories
**/
_count?: true | GoodCategoryCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: GoodCategoryAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: GoodCategorySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: GoodCategoryMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: GoodCategoryMaxAggregateInputType
}
export type GetGoodCategoryAggregateType<T extends GoodCategoryAggregateArgs> = {
[P in keyof T & keyof AggregateGoodCategory]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateGoodCategory[P]>
: Prisma.GetScalarType<T[P], AggregateGoodCategory[P]>
}
export type GoodCategoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.GoodCategoryWhereInput
orderBy?: Prisma.GoodCategoryOrderByWithAggregationInput | Prisma.GoodCategoryOrderByWithAggregationInput[]
by: Prisma.GoodCategoryScalarFieldEnum[] | Prisma.GoodCategoryScalarFieldEnum
having?: Prisma.GoodCategoryScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: GoodCategoryCountAggregateInputType | true
_avg?: GoodCategoryAvgAggregateInputType
_sum?: GoodCategorySumAggregateInputType
_min?: GoodCategoryMinAggregateInputType
_max?: GoodCategoryMaxAggregateInputType
}
export type GoodCategoryGroupByOutputType = {
id: number
name: string
description: string | null
imageUrl: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
_count: GoodCategoryCountAggregateOutputType | null
_avg: GoodCategoryAvgAggregateOutputType | null
_sum: GoodCategorySumAggregateOutputType | null
_min: GoodCategoryMinAggregateOutputType | null
_max: GoodCategoryMaxAggregateOutputType | null
}
type GetGoodCategoryGroupByPayload<T extends GoodCategoryGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<GoodCategoryGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof GoodCategoryGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], GoodCategoryGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], GoodCategoryGroupByOutputType[P]>
}
>
>
export type GoodCategoryWhereInput = {
AND?: Prisma.GoodCategoryWhereInput | Prisma.GoodCategoryWhereInput[]
OR?: Prisma.GoodCategoryWhereInput[]
NOT?: Prisma.GoodCategoryWhereInput | Prisma.GoodCategoryWhereInput[]
id?: Prisma.IntFilter<"GoodCategory"> | number
name?: Prisma.StringFilter<"GoodCategory"> | string
description?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
imageUrl?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
createdAt?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"GoodCategory"> | Date | string | null
goods?: Prisma.GoodListRelationFilter
}
export type GoodCategoryOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
imageUrl?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
goods?: Prisma.GoodOrderByRelationAggregateInput
_relevance?: Prisma.GoodCategoryOrderByRelevanceInput
}
export type GoodCategoryWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.GoodCategoryWhereInput | Prisma.GoodCategoryWhereInput[]
OR?: Prisma.GoodCategoryWhereInput[]
NOT?: Prisma.GoodCategoryWhereInput | Prisma.GoodCategoryWhereInput[]
name?: Prisma.StringFilter<"GoodCategory"> | string
description?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
imageUrl?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
createdAt?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"GoodCategory"> | Date | string | null
goods?: Prisma.GoodListRelationFilter
}, "id">
export type GoodCategoryOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
imageUrl?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.GoodCategoryCountOrderByAggregateInput
_avg?: Prisma.GoodCategoryAvgOrderByAggregateInput
_max?: Prisma.GoodCategoryMaxOrderByAggregateInput
_min?: Prisma.GoodCategoryMinOrderByAggregateInput
_sum?: Prisma.GoodCategorySumOrderByAggregateInput
}
export type GoodCategoryScalarWhereWithAggregatesInput = {
AND?: Prisma.GoodCategoryScalarWhereWithAggregatesInput | Prisma.GoodCategoryScalarWhereWithAggregatesInput[]
OR?: Prisma.GoodCategoryScalarWhereWithAggregatesInput[]
NOT?: Prisma.GoodCategoryScalarWhereWithAggregatesInput | Prisma.GoodCategoryScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"GoodCategory"> | number
name?: Prisma.StringWithAggregatesFilter<"GoodCategory"> | string
description?: Prisma.StringNullableWithAggregatesFilter<"GoodCategory"> | string | null
imageUrl?: Prisma.StringNullableWithAggregatesFilter<"GoodCategory"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"GoodCategory"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"GoodCategory"> | Date | string
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"GoodCategory"> | Date | string | null
}
export type GoodCategoryCreateInput = {
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
goods?: Prisma.GoodCreateNestedManyWithoutCategoryInput
}
export type GoodCategoryUncheckedCreateInput = {
id?: number
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutCategoryInput
}
export type GoodCategoryUpdateInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
goods?: Prisma.GoodUpdateManyWithoutCategoryNestedInput
}
export type GoodCategoryUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
goods?: Prisma.GoodUncheckedUpdateManyWithoutCategoryNestedInput
}
export type GoodCategoryCreateManyInput = {
id?: number
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
}
export type GoodCategoryUpdateManyMutationInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type GoodCategoryUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type GoodCategoryNullableScalarRelationFilter = {
is?: Prisma.GoodCategoryWhereInput | null
isNot?: Prisma.GoodCategoryWhereInput | null
}
export type GoodCategoryOrderByRelevanceInput = {
fields: Prisma.GoodCategoryOrderByRelevanceFieldEnum | Prisma.GoodCategoryOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type GoodCategoryCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
imageUrl?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type GoodCategoryAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type GoodCategoryMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
imageUrl?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type GoodCategoryMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
imageUrl?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type GoodCategorySumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type GoodCategoryCreateNestedOneWithoutGoodsInput = {
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGoodsInput, Prisma.GoodCategoryUncheckedCreateWithoutGoodsInput>
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGoodsInput
connect?: Prisma.GoodCategoryWhereUniqueInput
}
export type GoodCategoryUpdateOneWithoutGoodsNestedInput = {
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGoodsInput, Prisma.GoodCategoryUncheckedCreateWithoutGoodsInput>
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGoodsInput
upsert?: Prisma.GoodCategoryUpsertWithoutGoodsInput
disconnect?: Prisma.GoodCategoryWhereInput | boolean
delete?: Prisma.GoodCategoryWhereInput | boolean
connect?: Prisma.GoodCategoryWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.GoodCategoryUpdateToOneWithWhereWithoutGoodsInput, Prisma.GoodCategoryUpdateWithoutGoodsInput>, Prisma.GoodCategoryUncheckedUpdateWithoutGoodsInput>
}
export type GoodCategoryCreateWithoutGoodsInput = {
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
}
export type GoodCategoryUncheckedCreateWithoutGoodsInput = {
id?: number
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
}
export type GoodCategoryCreateOrConnectWithoutGoodsInput = {
where: Prisma.GoodCategoryWhereUniqueInput
create: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGoodsInput, Prisma.GoodCategoryUncheckedCreateWithoutGoodsInput>
}
export type GoodCategoryUpsertWithoutGoodsInput = {
update: Prisma.XOR<Prisma.GoodCategoryUpdateWithoutGoodsInput, Prisma.GoodCategoryUncheckedUpdateWithoutGoodsInput>
create: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGoodsInput, Prisma.GoodCategoryUncheckedCreateWithoutGoodsInput>
where?: Prisma.GoodCategoryWhereInput
}
export type GoodCategoryUpdateToOneWithWhereWithoutGoodsInput = {
where?: Prisma.GoodCategoryWhereInput
data: Prisma.XOR<Prisma.GoodCategoryUpdateWithoutGoodsInput, Prisma.GoodCategoryUncheckedUpdateWithoutGoodsInput>
}
export type GoodCategoryUpdateWithoutGoodsInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type GoodCategoryUncheckedUpdateWithoutGoodsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
/**
* Count Type GoodCategoryCountOutputType
*/
export type GoodCategoryCountOutputType = {
goods: number
}
export type GoodCategoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
goods?: boolean | GoodCategoryCountOutputTypeCountGoodsArgs
}
/**
* GoodCategoryCountOutputType without action
*/
export type GoodCategoryCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategoryCountOutputType
*/
select?: Prisma.GoodCategoryCountOutputTypeSelect<ExtArgs> | null
}
/**
* GoodCategoryCountOutputType without action
*/
export type GoodCategoryCountOutputTypeCountGoodsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.GoodWhereInput
}
export type GoodCategorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
imageUrl?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
goods?: boolean | Prisma.GoodCategory$goodsArgs<ExtArgs>
_count?: boolean | Prisma.GoodCategoryCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["goodCategory"]>
export type GoodCategorySelectScalar = {
id?: boolean
name?: boolean
description?: boolean
imageUrl?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
}
export type GoodCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "imageUrl" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["goodCategory"]>
export type GoodCategoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
goods?: boolean | Prisma.GoodCategory$goodsArgs<ExtArgs>
_count?: boolean | Prisma.GoodCategoryCountOutputTypeDefaultArgs<ExtArgs>
}
export type $GoodCategoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "GoodCategory"
objects: {
goods: Prisma.$GoodPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
name: string
description: string | null
imageUrl: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
}, ExtArgs["result"]["goodCategory"]>
composites: {}
}
export type GoodCategoryGetPayload<S extends boolean | null | undefined | GoodCategoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload, S>
export type GoodCategoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<GoodCategoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: GoodCategoryCountAggregateInputType | true
}
export interface GoodCategoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['GoodCategory'], meta: { name: 'GoodCategory' } }
/**
* Find zero or one GoodCategory that matches the filter.
* @param {GoodCategoryFindUniqueArgs} args - Arguments to find a GoodCategory
* @example
* // Get one GoodCategory
* const goodCategory = await prisma.goodCategory.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends GoodCategoryFindUniqueArgs>(args: Prisma.SelectSubset<T, GoodCategoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one GoodCategory that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {GoodCategoryFindUniqueOrThrowArgs} args - Arguments to find a GoodCategory
* @example
* // Get one GoodCategory
* const goodCategory = await prisma.goodCategory.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends GoodCategoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, GoodCategoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first GoodCategory 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 {GoodCategoryFindFirstArgs} args - Arguments to find a GoodCategory
* @example
* // Get one GoodCategory
* const goodCategory = await prisma.goodCategory.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends GoodCategoryFindFirstArgs>(args?: Prisma.SelectSubset<T, GoodCategoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first GoodCategory 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 {GoodCategoryFindFirstOrThrowArgs} args - Arguments to find a GoodCategory
* @example
* // Get one GoodCategory
* const goodCategory = await prisma.goodCategory.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends GoodCategoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, GoodCategoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more GoodCategories 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 {GoodCategoryFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all GoodCategories
* const goodCategories = await prisma.goodCategory.findMany()
*
* // Get first 10 GoodCategories
* const goodCategories = await prisma.goodCategory.findMany({ take: 10 })
*
* // Only select the `id`
* const goodCategoryWithIdOnly = await prisma.goodCategory.findMany({ select: { id: true } })
*
*/
findMany<T extends GoodCategoryFindManyArgs>(args?: Prisma.SelectSubset<T, GoodCategoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a GoodCategory.
* @param {GoodCategoryCreateArgs} args - Arguments to create a GoodCategory.
* @example
* // Create one GoodCategory
* const GoodCategory = await prisma.goodCategory.create({
* data: {
* // ... data to create a GoodCategory
* }
* })
*
*/
create<T extends GoodCategoryCreateArgs>(args: Prisma.SelectSubset<T, GoodCategoryCreateArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many GoodCategories.
* @param {GoodCategoryCreateManyArgs} args - Arguments to create many GoodCategories.
* @example
* // Create many GoodCategories
* const goodCategory = await prisma.goodCategory.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends GoodCategoryCreateManyArgs>(args?: Prisma.SelectSubset<T, GoodCategoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a GoodCategory.
* @param {GoodCategoryDeleteArgs} args - Arguments to delete one GoodCategory.
* @example
* // Delete one GoodCategory
* const GoodCategory = await prisma.goodCategory.delete({
* where: {
* // ... filter to delete one GoodCategory
* }
* })
*
*/
delete<T extends GoodCategoryDeleteArgs>(args: Prisma.SelectSubset<T, GoodCategoryDeleteArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one GoodCategory.
* @param {GoodCategoryUpdateArgs} args - Arguments to update one GoodCategory.
* @example
* // Update one GoodCategory
* const goodCategory = await prisma.goodCategory.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends GoodCategoryUpdateArgs>(args: Prisma.SelectSubset<T, GoodCategoryUpdateArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more GoodCategories.
* @param {GoodCategoryDeleteManyArgs} args - Arguments to filter GoodCategories to delete.
* @example
* // Delete a few GoodCategories
* const { count } = await prisma.goodCategory.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends GoodCategoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, GoodCategoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more GoodCategories.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GoodCategoryUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many GoodCategories
* const goodCategory = await prisma.goodCategory.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends GoodCategoryUpdateManyArgs>(args: Prisma.SelectSubset<T, GoodCategoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one GoodCategory.
* @param {GoodCategoryUpsertArgs} args - Arguments to update or create a GoodCategory.
* @example
* // Update or create a GoodCategory
* const goodCategory = await prisma.goodCategory.upsert({
* create: {
* // ... data to create a GoodCategory
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the GoodCategory we want to update
* }
* })
*/
upsert<T extends GoodCategoryUpsertArgs>(args: Prisma.SelectSubset<T, GoodCategoryUpsertArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of GoodCategories.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GoodCategoryCountArgs} args - Arguments to filter GoodCategories to count.
* @example
* // Count the number of GoodCategories
* const count = await prisma.goodCategory.count({
* where: {
* // ... the filter for the GoodCategories we want to count
* }
* })
**/
count<T extends GoodCategoryCountArgs>(
args?: Prisma.Subset<T, GoodCategoryCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], GoodCategoryCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a GoodCategory.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GoodCategoryAggregateArgs} 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 GoodCategoryAggregateArgs>(args: Prisma.Subset<T, GoodCategoryAggregateArgs>): Prisma.PrismaPromise<GetGoodCategoryAggregateType<T>>
/**
* Group by GoodCategory.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GoodCategoryGroupByArgs} 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 GoodCategoryGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: GoodCategoryGroupByArgs['orderBy'] }
: { orderBy?: GoodCategoryGroupByArgs['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, GoodCategoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGoodCategoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the GoodCategory model
*/
readonly fields: GoodCategoryFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for GoodCategory.
* 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__GoodCategoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
goods<T extends Prisma.GoodCategory$goodsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.GoodCategory$goodsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the GoodCategory model
*/
export interface GoodCategoryFieldRefs {
readonly id: Prisma.FieldRef<"GoodCategory", 'Int'>
readonly name: Prisma.FieldRef<"GoodCategory", 'String'>
readonly description: Prisma.FieldRef<"GoodCategory", 'String'>
readonly imageUrl: Prisma.FieldRef<"GoodCategory", 'String'>
readonly createdAt: Prisma.FieldRef<"GoodCategory", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"GoodCategory", 'DateTime'>
readonly deletedAt: Prisma.FieldRef<"GoodCategory", 'DateTime'>
}
// Custom InputTypes
/**
* GoodCategory findUnique
*/
export type GoodCategoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
/**
* Filter, which GoodCategory to fetch.
*/
where: Prisma.GoodCategoryWhereUniqueInput
}
/**
* GoodCategory findUniqueOrThrow
*/
export type GoodCategoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
/**
* Filter, which GoodCategory to fetch.
*/
where: Prisma.GoodCategoryWhereUniqueInput
}
/**
* GoodCategory findFirst
*/
export type GoodCategoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
/**
* Filter, which GoodCategory to fetch.
*/
where?: Prisma.GoodCategoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GoodCategories to fetch.
*/
orderBy?: Prisma.GoodCategoryOrderByWithRelationInput | Prisma.GoodCategoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GoodCategories.
*/
cursor?: Prisma.GoodCategoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GoodCategories 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` GoodCategories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GoodCategories.
*/
distinct?: Prisma.GoodCategoryScalarFieldEnum | Prisma.GoodCategoryScalarFieldEnum[]
}
/**
* GoodCategory findFirstOrThrow
*/
export type GoodCategoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
/**
* Filter, which GoodCategory to fetch.
*/
where?: Prisma.GoodCategoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GoodCategories to fetch.
*/
orderBy?: Prisma.GoodCategoryOrderByWithRelationInput | Prisma.GoodCategoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GoodCategories.
*/
cursor?: Prisma.GoodCategoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GoodCategories 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` GoodCategories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GoodCategories.
*/
distinct?: Prisma.GoodCategoryScalarFieldEnum | Prisma.GoodCategoryScalarFieldEnum[]
}
/**
* GoodCategory findMany
*/
export type GoodCategoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
/**
* Filter, which GoodCategories to fetch.
*/
where?: Prisma.GoodCategoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GoodCategories to fetch.
*/
orderBy?: Prisma.GoodCategoryOrderByWithRelationInput | Prisma.GoodCategoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing GoodCategories.
*/
cursor?: Prisma.GoodCategoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GoodCategories 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` GoodCategories.
*/
skip?: number
distinct?: Prisma.GoodCategoryScalarFieldEnum | Prisma.GoodCategoryScalarFieldEnum[]
}
/**
* GoodCategory create
*/
export type GoodCategoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
/**
* The data needed to create a GoodCategory.
*/
data: Prisma.XOR<Prisma.GoodCategoryCreateInput, Prisma.GoodCategoryUncheckedCreateInput>
}
/**
* GoodCategory createMany
*/
export type GoodCategoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many GoodCategories.
*/
data: Prisma.GoodCategoryCreateManyInput | Prisma.GoodCategoryCreateManyInput[]
skipDuplicates?: boolean
}
/**
* GoodCategory update
*/
export type GoodCategoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
/**
* The data needed to update a GoodCategory.
*/
data: Prisma.XOR<Prisma.GoodCategoryUpdateInput, Prisma.GoodCategoryUncheckedUpdateInput>
/**
* Choose, which GoodCategory to update.
*/
where: Prisma.GoodCategoryWhereUniqueInput
}
/**
* GoodCategory updateMany
*/
export type GoodCategoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update GoodCategories.
*/
data: Prisma.XOR<Prisma.GoodCategoryUpdateManyMutationInput, Prisma.GoodCategoryUncheckedUpdateManyInput>
/**
* Filter which GoodCategories to update
*/
where?: Prisma.GoodCategoryWhereInput
/**
* Limit how many GoodCategories to update.
*/
limit?: number
}
/**
* GoodCategory upsert
*/
export type GoodCategoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
/**
* The filter to search for the GoodCategory to update in case it exists.
*/
where: Prisma.GoodCategoryWhereUniqueInput
/**
* In case the GoodCategory found by the `where` argument doesn't exist, create a new GoodCategory with this data.
*/
create: Prisma.XOR<Prisma.GoodCategoryCreateInput, Prisma.GoodCategoryUncheckedCreateInput>
/**
* In case the GoodCategory was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.GoodCategoryUpdateInput, Prisma.GoodCategoryUncheckedUpdateInput>
}
/**
* GoodCategory delete
*/
export type GoodCategoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
/**
* Filter which GoodCategory to delete.
*/
where: Prisma.GoodCategoryWhereUniqueInput
}
/**
* GoodCategory deleteMany
*/
export type GoodCategoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which GoodCategories to delete
*/
where?: Prisma.GoodCategoryWhereInput
/**
* Limit how many GoodCategories to delete.
*/
limit?: number
}
/**
* GoodCategory.goods
*/
export type GoodCategory$goodsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Good
*/
select?: Prisma.GoodSelect<ExtArgs> | null
/**
* Omit specific fields from the Good
*/
omit?: Prisma.GoodOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodInclude<ExtArgs> | null
where?: Prisma.GoodWhereInput
orderBy?: Prisma.GoodOrderByWithRelationInput | Prisma.GoodOrderByWithRelationInput[]
cursor?: Prisma.GoodWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.GoodScalarFieldEnum | Prisma.GoodScalarFieldEnum[]
}
/**
* GoodCategory without action
*/
export type GoodCategoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GoodCategory
*/
select?: Prisma.GoodCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the GoodCategory
*/
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GoodCategoryInclude<ExtArgs> | null
}