/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `PropertyOption` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model PropertyOption * */ export type PropertyOptionModel = runtime.Types.Result.DefaultSelection export type AggregatePropertyOption = { _count: PropertyOptionCountAggregateOutputType | null _avg: PropertyOptionAvgAggregateOutputType | null _sum: PropertyOptionSumAggregateOutputType | null _min: PropertyOptionMinAggregateOutputType | null _max: PropertyOptionMaxAggregateOutputType | null } export type PropertyOptionAvgAggregateOutputType = { order: number | null color: number | null } export type PropertyOptionSumAggregateOutputType = { order: number | null color: number | null } export type PropertyOptionMinAggregateOutputType = { id: string | null propertyId: string | null order: number | null value: string | null name: string | null color: number | null } export type PropertyOptionMaxAggregateOutputType = { id: string | null propertyId: string | null order: number | null value: string | null name: string | null color: number | null } export type PropertyOptionCountAggregateOutputType = { id: number propertyId: number order: number value: number name: number color: number _all: number } export type PropertyOptionAvgAggregateInputType = { order?: true color?: true } export type PropertyOptionSumAggregateInputType = { order?: true color?: true } export type PropertyOptionMinAggregateInputType = { id?: true propertyId?: true order?: true value?: true name?: true color?: true } export type PropertyOptionMaxAggregateInputType = { id?: true propertyId?: true order?: true value?: true name?: true color?: true } export type PropertyOptionCountAggregateInputType = { id?: true propertyId?: true order?: true value?: true name?: true color?: true _all?: true } export type PropertyOptionAggregateArgs = { /** * Filter which PropertyOption to aggregate. */ where?: Prisma.PropertyOptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PropertyOptions to fetch. */ orderBy?: Prisma.PropertyOptionOrderByWithRelationInput | Prisma.PropertyOptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.PropertyOptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PropertyOptions 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` PropertyOptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PropertyOptions **/ _count?: true | PropertyOptionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PropertyOptionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PropertyOptionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PropertyOptionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PropertyOptionMaxAggregateInputType } export type GetPropertyOptionAggregateType = { [P in keyof T & keyof AggregatePropertyOption]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type PropertyOptionGroupByArgs = { where?: Prisma.PropertyOptionWhereInput orderBy?: Prisma.PropertyOptionOrderByWithAggregationInput | Prisma.PropertyOptionOrderByWithAggregationInput[] by: Prisma.PropertyOptionScalarFieldEnum[] | Prisma.PropertyOptionScalarFieldEnum having?: Prisma.PropertyOptionScalarWhereWithAggregatesInput take?: number skip?: number _count?: PropertyOptionCountAggregateInputType | true _avg?: PropertyOptionAvgAggregateInputType _sum?: PropertyOptionSumAggregateInputType _min?: PropertyOptionMinAggregateInputType _max?: PropertyOptionMaxAggregateInputType } export type PropertyOptionGroupByOutputType = { id: string propertyId: string order: number value: string name: string | null color: number _count: PropertyOptionCountAggregateOutputType | null _avg: PropertyOptionAvgAggregateOutputType | null _sum: PropertyOptionSumAggregateOutputType | null _min: PropertyOptionMinAggregateOutputType | null _max: PropertyOptionMaxAggregateOutputType | null } export type GetPropertyOptionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PropertyOptionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type PropertyOptionWhereInput = { AND?: Prisma.PropertyOptionWhereInput | Prisma.PropertyOptionWhereInput[] OR?: Prisma.PropertyOptionWhereInput[] NOT?: Prisma.PropertyOptionWhereInput | Prisma.PropertyOptionWhereInput[] id?: Prisma.StringFilter<"PropertyOption"> | string propertyId?: Prisma.StringFilter<"PropertyOption"> | string order?: Prisma.IntFilter<"PropertyOption"> | number value?: Prisma.StringFilter<"PropertyOption"> | string name?: Prisma.StringNullableFilter<"PropertyOption"> | string | null color?: Prisma.IntFilter<"PropertyOption"> | number property?: Prisma.XOR } export type PropertyOptionOrderByWithRelationInput = { id?: Prisma.SortOrder propertyId?: Prisma.SortOrder order?: Prisma.SortOrder value?: Prisma.SortOrder name?: Prisma.SortOrderInput | Prisma.SortOrder color?: Prisma.SortOrder property?: Prisma.PropertyOrderByWithRelationInput } export type PropertyOptionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.PropertyOptionWhereInput | Prisma.PropertyOptionWhereInput[] OR?: Prisma.PropertyOptionWhereInput[] NOT?: Prisma.PropertyOptionWhereInput | Prisma.PropertyOptionWhereInput[] propertyId?: Prisma.StringFilter<"PropertyOption"> | string order?: Prisma.IntFilter<"PropertyOption"> | number value?: Prisma.StringFilter<"PropertyOption"> | string name?: Prisma.StringNullableFilter<"PropertyOption"> | string | null color?: Prisma.IntFilter<"PropertyOption"> | number property?: Prisma.XOR }, "id"> export type PropertyOptionOrderByWithAggregationInput = { id?: Prisma.SortOrder propertyId?: Prisma.SortOrder order?: Prisma.SortOrder value?: Prisma.SortOrder name?: Prisma.SortOrderInput | Prisma.SortOrder color?: Prisma.SortOrder _count?: Prisma.PropertyOptionCountOrderByAggregateInput _avg?: Prisma.PropertyOptionAvgOrderByAggregateInput _max?: Prisma.PropertyOptionMaxOrderByAggregateInput _min?: Prisma.PropertyOptionMinOrderByAggregateInput _sum?: Prisma.PropertyOptionSumOrderByAggregateInput } export type PropertyOptionScalarWhereWithAggregatesInput = { AND?: Prisma.PropertyOptionScalarWhereWithAggregatesInput | Prisma.PropertyOptionScalarWhereWithAggregatesInput[] OR?: Prisma.PropertyOptionScalarWhereWithAggregatesInput[] NOT?: Prisma.PropertyOptionScalarWhereWithAggregatesInput | Prisma.PropertyOptionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"PropertyOption"> | string propertyId?: Prisma.StringWithAggregatesFilter<"PropertyOption"> | string order?: Prisma.IntWithAggregatesFilter<"PropertyOption"> | number value?: Prisma.StringWithAggregatesFilter<"PropertyOption"> | string name?: Prisma.StringNullableWithAggregatesFilter<"PropertyOption"> | string | null color?: Prisma.IntWithAggregatesFilter<"PropertyOption"> | number } export type PropertyOptionCreateInput = { id?: string order: number value: string name?: string | null color?: number property: Prisma.PropertyCreateNestedOneWithoutOptionsInput } export type PropertyOptionUncheckedCreateInput = { id?: string propertyId: string order: number value: string name?: string | null color?: number } export type PropertyOptionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number value?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.IntFieldUpdateOperationsInput | number property?: Prisma.PropertyUpdateOneRequiredWithoutOptionsNestedInput } export type PropertyOptionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string propertyId?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number value?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.IntFieldUpdateOperationsInput | number } export type PropertyOptionCreateManyInput = { id?: string propertyId: string order: number value: string name?: string | null color?: number } export type PropertyOptionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number value?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.IntFieldUpdateOperationsInput | number } export type PropertyOptionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string propertyId?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number value?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.IntFieldUpdateOperationsInput | number } export type PropertyOptionListRelationFilter = { every?: Prisma.PropertyOptionWhereInput some?: Prisma.PropertyOptionWhereInput none?: Prisma.PropertyOptionWhereInput } export type PropertyOptionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type PropertyOptionCountOrderByAggregateInput = { id?: Prisma.SortOrder propertyId?: Prisma.SortOrder order?: Prisma.SortOrder value?: Prisma.SortOrder name?: Prisma.SortOrder color?: Prisma.SortOrder } export type PropertyOptionAvgOrderByAggregateInput = { order?: Prisma.SortOrder color?: Prisma.SortOrder } export type PropertyOptionMaxOrderByAggregateInput = { id?: Prisma.SortOrder propertyId?: Prisma.SortOrder order?: Prisma.SortOrder value?: Prisma.SortOrder name?: Prisma.SortOrder color?: Prisma.SortOrder } export type PropertyOptionMinOrderByAggregateInput = { id?: Prisma.SortOrder propertyId?: Prisma.SortOrder order?: Prisma.SortOrder value?: Prisma.SortOrder name?: Prisma.SortOrder color?: Prisma.SortOrder } export type PropertyOptionSumOrderByAggregateInput = { order?: Prisma.SortOrder color?: Prisma.SortOrder } export type PropertyOptionCreateNestedManyWithoutPropertyInput = { create?: Prisma.XOR | Prisma.PropertyOptionCreateWithoutPropertyInput[] | Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput[] connectOrCreate?: Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput | Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput[] createMany?: Prisma.PropertyOptionCreateManyPropertyInputEnvelope connect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] } export type PropertyOptionUncheckedCreateNestedManyWithoutPropertyInput = { create?: Prisma.XOR | Prisma.PropertyOptionCreateWithoutPropertyInput[] | Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput[] connectOrCreate?: Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput | Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput[] createMany?: Prisma.PropertyOptionCreateManyPropertyInputEnvelope connect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] } export type PropertyOptionUpdateManyWithoutPropertyNestedInput = { create?: Prisma.XOR | Prisma.PropertyOptionCreateWithoutPropertyInput[] | Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput[] connectOrCreate?: Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput | Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput[] upsert?: Prisma.PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput | Prisma.PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput[] createMany?: Prisma.PropertyOptionCreateManyPropertyInputEnvelope set?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] disconnect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] delete?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] connect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] update?: Prisma.PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput | Prisma.PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput[] updateMany?: Prisma.PropertyOptionUpdateManyWithWhereWithoutPropertyInput | Prisma.PropertyOptionUpdateManyWithWhereWithoutPropertyInput[] deleteMany?: Prisma.PropertyOptionScalarWhereInput | Prisma.PropertyOptionScalarWhereInput[] } export type PropertyOptionUncheckedUpdateManyWithoutPropertyNestedInput = { create?: Prisma.XOR | Prisma.PropertyOptionCreateWithoutPropertyInput[] | Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput[] connectOrCreate?: Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput | Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput[] upsert?: Prisma.PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput | Prisma.PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput[] createMany?: Prisma.PropertyOptionCreateManyPropertyInputEnvelope set?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] disconnect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] delete?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] connect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[] update?: Prisma.PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput | Prisma.PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput[] updateMany?: Prisma.PropertyOptionUpdateManyWithWhereWithoutPropertyInput | Prisma.PropertyOptionUpdateManyWithWhereWithoutPropertyInput[] deleteMany?: Prisma.PropertyOptionScalarWhereInput | Prisma.PropertyOptionScalarWhereInput[] } export type PropertyOptionCreateWithoutPropertyInput = { id?: string order: number value: string name?: string | null color?: number } export type PropertyOptionUncheckedCreateWithoutPropertyInput = { id?: string order: number value: string name?: string | null color?: number } export type PropertyOptionCreateOrConnectWithoutPropertyInput = { where: Prisma.PropertyOptionWhereUniqueInput create: Prisma.XOR } export type PropertyOptionCreateManyPropertyInputEnvelope = { data: Prisma.PropertyOptionCreateManyPropertyInput | Prisma.PropertyOptionCreateManyPropertyInput[] skipDuplicates?: boolean } export type PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput = { where: Prisma.PropertyOptionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput = { where: Prisma.PropertyOptionWhereUniqueInput data: Prisma.XOR } export type PropertyOptionUpdateManyWithWhereWithoutPropertyInput = { where: Prisma.PropertyOptionScalarWhereInput data: Prisma.XOR } export type PropertyOptionScalarWhereInput = { AND?: Prisma.PropertyOptionScalarWhereInput | Prisma.PropertyOptionScalarWhereInput[] OR?: Prisma.PropertyOptionScalarWhereInput[] NOT?: Prisma.PropertyOptionScalarWhereInput | Prisma.PropertyOptionScalarWhereInput[] id?: Prisma.StringFilter<"PropertyOption"> | string propertyId?: Prisma.StringFilter<"PropertyOption"> | string order?: Prisma.IntFilter<"PropertyOption"> | number value?: Prisma.StringFilter<"PropertyOption"> | string name?: Prisma.StringNullableFilter<"PropertyOption"> | string | null color?: Prisma.IntFilter<"PropertyOption"> | number } export type PropertyOptionCreateManyPropertyInput = { id?: string order: number value: string name?: string | null color?: number } export type PropertyOptionUpdateWithoutPropertyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number value?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.IntFieldUpdateOperationsInput | number } export type PropertyOptionUncheckedUpdateWithoutPropertyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number value?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.IntFieldUpdateOperationsInput | number } export type PropertyOptionUncheckedUpdateManyWithoutPropertyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number value?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.IntFieldUpdateOperationsInput | number } export type PropertyOptionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean propertyId?: boolean order?: boolean value?: boolean name?: boolean color?: boolean property?: boolean | Prisma.PropertyDefaultArgs }, ExtArgs["result"]["propertyOption"]> export type PropertyOptionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean propertyId?: boolean order?: boolean value?: boolean name?: boolean color?: boolean property?: boolean | Prisma.PropertyDefaultArgs }, ExtArgs["result"]["propertyOption"]> export type PropertyOptionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean propertyId?: boolean order?: boolean value?: boolean name?: boolean color?: boolean property?: boolean | Prisma.PropertyDefaultArgs }, ExtArgs["result"]["propertyOption"]> export type PropertyOptionSelectScalar = { id?: boolean propertyId?: boolean order?: boolean value?: boolean name?: boolean color?: boolean } export type PropertyOptionOmit = runtime.Types.Extensions.GetOmit<"id" | "propertyId" | "order" | "value" | "name" | "color", ExtArgs["result"]["propertyOption"]> export type PropertyOptionInclude = { property?: boolean | Prisma.PropertyDefaultArgs } export type PropertyOptionIncludeCreateManyAndReturn = { property?: boolean | Prisma.PropertyDefaultArgs } export type PropertyOptionIncludeUpdateManyAndReturn = { property?: boolean | Prisma.PropertyDefaultArgs } export type $PropertyOptionPayload = { name: "PropertyOption" objects: { property: Prisma.$PropertyPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string propertyId: string order: number value: string name: string | null color: number }, ExtArgs["result"]["propertyOption"]> composites: {} } export type PropertyOptionGetPayload = runtime.Types.Result.GetResult export type PropertyOptionCountArgs = Omit & { select?: PropertyOptionCountAggregateInputType | true } export interface PropertyOptionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PropertyOption'], meta: { name: 'PropertyOption' } } /** * Find zero or one PropertyOption that matches the filter. * @param {PropertyOptionFindUniqueArgs} args - Arguments to find a PropertyOption * @example * // Get one PropertyOption * const propertyOption = await prisma.propertyOption.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PropertyOptionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PropertyOption that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PropertyOptionFindUniqueOrThrowArgs} args - Arguments to find a PropertyOption * @example * // Get one PropertyOption * const propertyOption = await prisma.propertyOption.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PropertyOptionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PropertyOption 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 {PropertyOptionFindFirstArgs} args - Arguments to find a PropertyOption * @example * // Get one PropertyOption * const propertyOption = await prisma.propertyOption.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PropertyOptionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PropertyOption 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 {PropertyOptionFindFirstOrThrowArgs} args - Arguments to find a PropertyOption * @example * // Get one PropertyOption * const propertyOption = await prisma.propertyOption.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PropertyOptionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PropertyOptions 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 {PropertyOptionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PropertyOptions * const propertyOptions = await prisma.propertyOption.findMany() * * // Get first 10 PropertyOptions * const propertyOptions = await prisma.propertyOption.findMany({ take: 10 }) * * // Only select the `id` * const propertyOptionWithIdOnly = await prisma.propertyOption.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a PropertyOption. * @param {PropertyOptionCreateArgs} args - Arguments to create a PropertyOption. * @example * // Create one PropertyOption * const PropertyOption = await prisma.propertyOption.create({ * data: { * // ... data to create a PropertyOption * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__PropertyOptionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PropertyOptions. * @param {PropertyOptionCreateManyArgs} args - Arguments to create many PropertyOptions. * @example * // Create many PropertyOptions * const propertyOption = await prisma.propertyOption.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many PropertyOptions and returns the data saved in the database. * @param {PropertyOptionCreateManyAndReturnArgs} args - Arguments to create many PropertyOptions. * @example * // Create many PropertyOptions * const propertyOption = await prisma.propertyOption.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PropertyOptions and only return the `id` * const propertyOptionWithIdOnly = await prisma.propertyOption.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a PropertyOption. * @param {PropertyOptionDeleteArgs} args - Arguments to delete one PropertyOption. * @example * // Delete one PropertyOption * const PropertyOption = await prisma.propertyOption.delete({ * where: { * // ... filter to delete one PropertyOption * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__PropertyOptionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PropertyOption. * @param {PropertyOptionUpdateArgs} args - Arguments to update one PropertyOption. * @example * // Update one PropertyOption * const propertyOption = await prisma.propertyOption.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__PropertyOptionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PropertyOptions. * @param {PropertyOptionDeleteManyArgs} args - Arguments to filter PropertyOptions to delete. * @example * // Delete a few PropertyOptions * const { count } = await prisma.propertyOption.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PropertyOptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PropertyOptionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PropertyOptions * const propertyOption = await prisma.propertyOption.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PropertyOptions and returns the data updated in the database. * @param {PropertyOptionUpdateManyAndReturnArgs} args - Arguments to update many PropertyOptions. * @example * // Update many PropertyOptions * const propertyOption = await prisma.propertyOption.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PropertyOptions and only return the `id` * const propertyOptionWithIdOnly = await prisma.propertyOption.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one PropertyOption. * @param {PropertyOptionUpsertArgs} args - Arguments to update or create a PropertyOption. * @example * // Update or create a PropertyOption * const propertyOption = await prisma.propertyOption.upsert({ * create: { * // ... data to create a PropertyOption * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PropertyOption we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PropertyOptionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PropertyOptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PropertyOptionCountArgs} args - Arguments to filter PropertyOptions to count. * @example * // Count the number of PropertyOptions * const count = await prisma.propertyOption.count({ * where: { * // ... the filter for the PropertyOptions 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 PropertyOption. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PropertyOptionAggregateArgs} 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 PropertyOption. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PropertyOptionGroupByArgs} 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 PropertyOptionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: PropertyOptionGroupByArgs['orderBy'] } : { orderBy?: PropertyOptionGroupByArgs['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 ? GetPropertyOptionGroupByPayload : Prisma.PrismaPromise /** * Fields of the PropertyOption model */ readonly fields: PropertyOptionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PropertyOption. * 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__PropertyOptionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" property = {}>(args?: Prisma.Subset>): Prisma.Prisma__PropertyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 PropertyOption model */ export interface PropertyOptionFieldRefs { readonly id: Prisma.FieldRef<"PropertyOption", 'String'> readonly propertyId: Prisma.FieldRef<"PropertyOption", 'String'> readonly order: Prisma.FieldRef<"PropertyOption", 'Int'> readonly value: Prisma.FieldRef<"PropertyOption", 'String'> readonly name: Prisma.FieldRef<"PropertyOption", 'String'> readonly color: Prisma.FieldRef<"PropertyOption", 'Int'> } // Custom InputTypes /** * PropertyOption findUnique */ export type PropertyOptionFindUniqueArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null /** * Filter, which PropertyOption to fetch. */ where: Prisma.PropertyOptionWhereUniqueInput } /** * PropertyOption findUniqueOrThrow */ export type PropertyOptionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null /** * Filter, which PropertyOption to fetch. */ where: Prisma.PropertyOptionWhereUniqueInput } /** * PropertyOption findFirst */ export type PropertyOptionFindFirstArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null /** * Filter, which PropertyOption to fetch. */ where?: Prisma.PropertyOptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PropertyOptions to fetch. */ orderBy?: Prisma.PropertyOptionOrderByWithRelationInput | Prisma.PropertyOptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PropertyOptions. */ cursor?: Prisma.PropertyOptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PropertyOptions 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` PropertyOptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PropertyOptions. */ distinct?: Prisma.PropertyOptionScalarFieldEnum | Prisma.PropertyOptionScalarFieldEnum[] } /** * PropertyOption findFirstOrThrow */ export type PropertyOptionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null /** * Filter, which PropertyOption to fetch. */ where?: Prisma.PropertyOptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PropertyOptions to fetch. */ orderBy?: Prisma.PropertyOptionOrderByWithRelationInput | Prisma.PropertyOptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PropertyOptions. */ cursor?: Prisma.PropertyOptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PropertyOptions 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` PropertyOptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PropertyOptions. */ distinct?: Prisma.PropertyOptionScalarFieldEnum | Prisma.PropertyOptionScalarFieldEnum[] } /** * PropertyOption findMany */ export type PropertyOptionFindManyArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null /** * Filter, which PropertyOptions to fetch. */ where?: Prisma.PropertyOptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PropertyOptions to fetch. */ orderBy?: Prisma.PropertyOptionOrderByWithRelationInput | Prisma.PropertyOptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PropertyOptions. */ cursor?: Prisma.PropertyOptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PropertyOptions 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` PropertyOptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PropertyOptions. */ distinct?: Prisma.PropertyOptionScalarFieldEnum | Prisma.PropertyOptionScalarFieldEnum[] } /** * PropertyOption create */ export type PropertyOptionCreateArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null /** * The data needed to create a PropertyOption. */ data: Prisma.XOR } /** * PropertyOption createMany */ export type PropertyOptionCreateManyArgs = { /** * The data used to create many PropertyOptions. */ data: Prisma.PropertyOptionCreateManyInput | Prisma.PropertyOptionCreateManyInput[] skipDuplicates?: boolean } /** * PropertyOption createManyAndReturn */ export type PropertyOptionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelectCreateManyAndReturn | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * The data used to create many PropertyOptions. */ data: Prisma.PropertyOptionCreateManyInput | Prisma.PropertyOptionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionIncludeCreateManyAndReturn | null } /** * PropertyOption update */ export type PropertyOptionUpdateArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null /** * The data needed to update a PropertyOption. */ data: Prisma.XOR /** * Choose, which PropertyOption to update. */ where: Prisma.PropertyOptionWhereUniqueInput } /** * PropertyOption updateMany */ export type PropertyOptionUpdateManyArgs = { /** * The data used to update PropertyOptions. */ data: Prisma.XOR /** * Filter which PropertyOptions to update */ where?: Prisma.PropertyOptionWhereInput /** * Limit how many PropertyOptions to update. */ limit?: number } /** * PropertyOption updateManyAndReturn */ export type PropertyOptionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelectUpdateManyAndReturn | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * The data used to update PropertyOptions. */ data: Prisma.XOR /** * Filter which PropertyOptions to update */ where?: Prisma.PropertyOptionWhereInput /** * Limit how many PropertyOptions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionIncludeUpdateManyAndReturn | null } /** * PropertyOption upsert */ export type PropertyOptionUpsertArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null /** * The filter to search for the PropertyOption to update in case it exists. */ where: Prisma.PropertyOptionWhereUniqueInput /** * In case the PropertyOption found by the `where` argument doesn't exist, create a new PropertyOption with this data. */ create: Prisma.XOR /** * In case the PropertyOption was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * PropertyOption delete */ export type PropertyOptionDeleteArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null /** * Filter which PropertyOption to delete. */ where: Prisma.PropertyOptionWhereUniqueInput } /** * PropertyOption deleteMany */ export type PropertyOptionDeleteManyArgs = { /** * Filter which PropertyOptions to delete */ where?: Prisma.PropertyOptionWhereInput /** * Limit how many PropertyOptions to delete. */ limit?: number } /** * PropertyOption without action */ export type PropertyOptionDefaultArgs = { /** * Select specific fields to fetch from the PropertyOption */ select?: Prisma.PropertyOptionSelect | null /** * Omit specific fields from the PropertyOption */ omit?: Prisma.PropertyOptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PropertyOptionInclude | null }