/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateGoodCategory]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type GoodCategoryGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof GoodCategoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGoodsInput connect?: Prisma.GoodCategoryWhereUniqueInput } export type GoodCategoryUpdateOneWithoutGoodsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGoodsInput upsert?: Prisma.GoodCategoryUpsertWithoutGoodsInput disconnect?: Prisma.GoodCategoryWhereInput | boolean delete?: Prisma.GoodCategoryWhereInput | boolean connect?: Prisma.GoodCategoryWhereUniqueInput update?: Prisma.XOR, 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 } export type GoodCategoryUpsertWithoutGoodsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.GoodCategoryWhereInput } export type GoodCategoryUpdateToOneWithWhereWithoutGoodsInput = { where?: Prisma.GoodCategoryWhereInput data: Prisma.XOR } 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 = { goods?: boolean | GoodCategoryCountOutputTypeCountGoodsArgs } /** * GoodCategoryCountOutputType without action */ export type GoodCategoryCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the GoodCategoryCountOutputType */ select?: Prisma.GoodCategoryCountOutputTypeSelect | null } /** * GoodCategoryCountOutputType without action */ export type GoodCategoryCountOutputTypeCountGoodsArgs = { where?: Prisma.GoodWhereInput } export type GoodCategorySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean description?: boolean imageUrl?: boolean createdAt?: boolean updatedAt?: boolean deletedAt?: boolean goods?: boolean | Prisma.GoodCategory$goodsArgs _count?: boolean | Prisma.GoodCategoryCountOutputTypeDefaultArgs }, ExtArgs["result"]["goodCategory"]> export type GoodCategorySelectScalar = { id?: boolean name?: boolean description?: boolean imageUrl?: boolean createdAt?: boolean updatedAt?: boolean deletedAt?: boolean } export type GoodCategoryOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "imageUrl" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["goodCategory"]> export type GoodCategoryInclude = { goods?: boolean | Prisma.GoodCategory$goodsArgs _count?: boolean | Prisma.GoodCategoryCountOutputTypeDefaultArgs } export type $GoodCategoryPayload = { name: "GoodCategory" objects: { goods: Prisma.$GoodPayload[] } 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 = runtime.Types.Result.GetResult export type GoodCategoryCountArgs = Omit & { select?: GoodCategoryCountAggregateInputType | true } export interface GoodCategoryDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__GoodCategoryClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__GoodCategoryClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__GoodCategoryClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__GoodCategoryClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__GoodCategoryClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__GoodCategoryClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__GoodCategoryClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__GoodCategoryClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: GoodCategoryGroupByArgs['orderBy'] } : { orderBy?: GoodCategoryGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetGoodCategoryGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" goods = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | null /** * Filter, which GoodCategory to fetch. */ where: Prisma.GoodCategoryWhereUniqueInput } /** * GoodCategory findUniqueOrThrow */ export type GoodCategoryFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | null /** * Filter, which GoodCategory to fetch. */ where: Prisma.GoodCategoryWhereUniqueInput } /** * GoodCategory findFirst */ export type GoodCategoryFindFirstArgs = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | 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 = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | 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 = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | 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 = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | null /** * The data needed to create a GoodCategory. */ data: Prisma.XOR } /** * GoodCategory createMany */ export type GoodCategoryCreateManyArgs = { /** * The data used to create many GoodCategories. */ data: Prisma.GoodCategoryCreateManyInput | Prisma.GoodCategoryCreateManyInput[] skipDuplicates?: boolean } /** * GoodCategory update */ export type GoodCategoryUpdateArgs = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | null /** * The data needed to update a GoodCategory. */ data: Prisma.XOR /** * Choose, which GoodCategory to update. */ where: Prisma.GoodCategoryWhereUniqueInput } /** * GoodCategory updateMany */ export type GoodCategoryUpdateManyArgs = { /** * The data used to update GoodCategories. */ data: Prisma.XOR /** * Filter which GoodCategories to update */ where?: Prisma.GoodCategoryWhereInput /** * Limit how many GoodCategories to update. */ limit?: number } /** * GoodCategory upsert */ export type GoodCategoryUpsertArgs = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | 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 /** * In case the GoodCategory was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * GoodCategory delete */ export type GoodCategoryDeleteArgs = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | null /** * Filter which GoodCategory to delete. */ where: Prisma.GoodCategoryWhereUniqueInput } /** * GoodCategory deleteMany */ export type GoodCategoryDeleteManyArgs = { /** * Filter which GoodCategories to delete */ where?: Prisma.GoodCategoryWhereInput /** * Limit how many GoodCategories to delete. */ limit?: number } /** * GoodCategory.goods */ export type GoodCategory$goodsArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | 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 = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | null }