/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `phone` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums" import type * as Prisma from "../internal/prismaNamespace" /** * Model phone * */ export type phoneModel = runtime.Types.Result.DefaultSelection export type AggregatePhone = { _count: PhoneCountAggregateOutputType | null _avg: PhoneAvgAggregateOutputType | null _sum: PhoneSumAggregateOutputType | null _min: PhoneMinAggregateOutputType | null _max: PhoneMaxAggregateOutputType | null } export type PhoneAvgAggregateOutputType = { id: number | null service_id: number | null } export type PhoneSumAggregateOutputType = { id: number | null service_id: number | null } export type PhoneMinAggregateOutputType = { id: number | null service_id: number | null phone_num: string | null note: string | null fournisseur: string | null } export type PhoneMaxAggregateOutputType = { id: number | null service_id: number | null phone_num: string | null note: string | null fournisseur: string | null } export type PhoneCountAggregateOutputType = { id: number service_id: number phone_num: number note: number fournisseur: number _all: number } export type PhoneAvgAggregateInputType = { id?: true service_id?: true } export type PhoneSumAggregateInputType = { id?: true service_id?: true } export type PhoneMinAggregateInputType = { id?: true service_id?: true phone_num?: true note?: true fournisseur?: true } export type PhoneMaxAggregateInputType = { id?: true service_id?: true phone_num?: true note?: true fournisseur?: true } export type PhoneCountAggregateInputType = { id?: true service_id?: true phone_num?: true note?: true fournisseur?: true _all?: true } export type PhoneAggregateArgs = { /** * Filter which phone to aggregate. */ where?: Prisma.phoneWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of phones to fetch. */ orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.phoneWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` phones 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` phones. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned phones **/ _count?: true | PhoneCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PhoneAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PhoneSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PhoneMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PhoneMaxAggregateInputType } export type GetPhoneAggregateType = { [P in keyof T & keyof AggregatePhone]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type phoneGroupByArgs = { where?: Prisma.phoneWhereInput orderBy?: Prisma.phoneOrderByWithAggregationInput | Prisma.phoneOrderByWithAggregationInput[] by: Prisma.PhoneScalarFieldEnum[] | Prisma.PhoneScalarFieldEnum having?: Prisma.phoneScalarWhereWithAggregatesInput take?: number skip?: number _count?: PhoneCountAggregateInputType | true _avg?: PhoneAvgAggregateInputType _sum?: PhoneSumAggregateInputType _min?: PhoneMinAggregateInputType _max?: PhoneMaxAggregateInputType } export type PhoneGroupByOutputType = { id: number service_id: number phone_num: string note: string | null fournisseur: string | null _count: PhoneCountAggregateOutputType | null _avg: PhoneAvgAggregateOutputType | null _sum: PhoneSumAggregateOutputType | null _min: PhoneMinAggregateOutputType | null _max: PhoneMaxAggregateOutputType | null } type GetPhoneGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PhoneGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type phoneWhereInput = { AND?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[] OR?: Prisma.phoneWhereInput[] NOT?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[] id?: Prisma.IntFilter<"phone"> | number service_id?: Prisma.IntFilter<"phone"> | number phone_num?: Prisma.StringFilter<"phone"> | string note?: Prisma.StringNullableFilter<"phone"> | string | null fournisseur?: Prisma.StringNullableFilter<"phone"> | string | null } export type phoneOrderByWithRelationInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone_num?: Prisma.SortOrder note?: Prisma.SortOrderInput | Prisma.SortOrder fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.phoneOrderByRelevanceInput } export type phoneWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[] OR?: Prisma.phoneWhereInput[] NOT?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[] service_id?: Prisma.IntFilter<"phone"> | number phone_num?: Prisma.StringFilter<"phone"> | string note?: Prisma.StringNullableFilter<"phone"> | string | null fournisseur?: Prisma.StringNullableFilter<"phone"> | string | null }, "id"> export type phoneOrderByWithAggregationInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone_num?: Prisma.SortOrder note?: Prisma.SortOrderInput | Prisma.SortOrder fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.phoneCountOrderByAggregateInput _avg?: Prisma.phoneAvgOrderByAggregateInput _max?: Prisma.phoneMaxOrderByAggregateInput _min?: Prisma.phoneMinOrderByAggregateInput _sum?: Prisma.phoneSumOrderByAggregateInput } export type phoneScalarWhereWithAggregatesInput = { AND?: Prisma.phoneScalarWhereWithAggregatesInput | Prisma.phoneScalarWhereWithAggregatesInput[] OR?: Prisma.phoneScalarWhereWithAggregatesInput[] NOT?: Prisma.phoneScalarWhereWithAggregatesInput | Prisma.phoneScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"phone"> | number service_id?: Prisma.IntWithAggregatesFilter<"phone"> | number phone_num?: Prisma.StringWithAggregatesFilter<"phone"> | string note?: Prisma.StringNullableWithAggregatesFilter<"phone"> | string | null fournisseur?: Prisma.StringNullableWithAggregatesFilter<"phone"> | string | null } export type phoneCreateInput = { service_id: number phone_num: string note?: string | null fournisseur?: string | null } export type phoneUncheckedCreateInput = { id?: number service_id: number phone_num: string note?: string | null fournisseur?: string | null } export type phoneUpdateInput = { service_id?: Prisma.IntFieldUpdateOperationsInput | number phone_num?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type phoneUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number phone_num?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type phoneCreateManyInput = { id?: number service_id: number phone_num: string note?: string | null fournisseur?: string | null } export type phoneUpdateManyMutationInput = { service_id?: Prisma.IntFieldUpdateOperationsInput | number phone_num?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type phoneUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number phone_num?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type phoneOrderByRelevanceInput = { fields: Prisma.phoneOrderByRelevanceFieldEnum | Prisma.phoneOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type phoneCountOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone_num?: Prisma.SortOrder note?: Prisma.SortOrder fournisseur?: Prisma.SortOrder } export type phoneAvgOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder } export type phoneMaxOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone_num?: Prisma.SortOrder note?: Prisma.SortOrder fournisseur?: Prisma.SortOrder } export type phoneMinOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone_num?: Prisma.SortOrder note?: Prisma.SortOrder fournisseur?: Prisma.SortOrder } export type phoneSumOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder } export type phoneSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean service_id?: boolean phone_num?: boolean note?: boolean fournisseur?: boolean }, ExtArgs["result"]["phone"]> export type phoneSelectScalar = { id?: boolean service_id?: boolean phone_num?: boolean note?: boolean fournisseur?: boolean } export type phoneOmit = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "phone_num" | "note" | "fournisseur", ExtArgs["result"]["phone"]> export type $phonePayload = { name: "phone" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number service_id: number phone_num: string note: string | null fournisseur: string | null }, ExtArgs["result"]["phone"]> composites: {} } export type phoneGetPayload = runtime.Types.Result.GetResult export type phoneCountArgs = Omit & { select?: PhoneCountAggregateInputType | true } export interface phoneDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['phone'], meta: { name: 'phone' } } /** * Find zero or one Phone that matches the filter. * @param {phoneFindUniqueArgs} args - Arguments to find a Phone * @example * // Get one Phone * const phone = await prisma.phone.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Phone that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {phoneFindUniqueOrThrowArgs} args - Arguments to find a Phone * @example * // Get one Phone * const phone = await prisma.phone.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Phone 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 {phoneFindFirstArgs} args - Arguments to find a Phone * @example * // Get one Phone * const phone = await prisma.phone.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Phone 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 {phoneFindFirstOrThrowArgs} args - Arguments to find a Phone * @example * // Get one Phone * const phone = await prisma.phone.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Phones 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 {phoneFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Phones * const phones = await prisma.phone.findMany() * * // Get first 10 Phones * const phones = await prisma.phone.findMany({ take: 10 }) * * // Only select the `id` * const phoneWithIdOnly = await prisma.phone.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Phone. * @param {phoneCreateArgs} args - Arguments to create a Phone. * @example * // Create one Phone * const Phone = await prisma.phone.create({ * data: { * // ... data to create a Phone * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Phones. * @param {phoneCreateManyArgs} args - Arguments to create many Phones. * @example * // Create many Phones * const phone = await prisma.phone.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Phone. * @param {phoneDeleteArgs} args - Arguments to delete one Phone. * @example * // Delete one Phone * const Phone = await prisma.phone.delete({ * where: { * // ... filter to delete one Phone * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Phone. * @param {phoneUpdateArgs} args - Arguments to update one Phone. * @example * // Update one Phone * const phone = await prisma.phone.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Phones. * @param {phoneDeleteManyArgs} args - Arguments to filter Phones to delete. * @example * // Delete a few Phones * const { count } = await prisma.phone.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Phones. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {phoneUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Phones * const phone = await prisma.phone.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Phone. * @param {phoneUpsertArgs} args - Arguments to update or create a Phone. * @example * // Update or create a Phone * const phone = await prisma.phone.upsert({ * create: { * // ... data to create a Phone * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Phone we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Phones. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {phoneCountArgs} args - Arguments to filter Phones to count. * @example * // Count the number of Phones * const count = await prisma.phone.count({ * where: { * // ... the filter for the Phones 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 Phone. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhoneAggregateArgs} 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 Phone. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {phoneGroupByArgs} 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 phoneGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: phoneGroupByArgs['orderBy'] } : { orderBy?: phoneGroupByArgs['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 ? GetPhoneGroupByPayload : Prisma.PrismaPromise /** * Fields of the phone model */ readonly fields: phoneFieldRefs; } /** * The delegate class that acts as a "Promise-like" for phone. * 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__phoneClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(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 phone model */ export interface phoneFieldRefs { readonly id: Prisma.FieldRef<"phone", 'Int'> readonly service_id: Prisma.FieldRef<"phone", 'Int'> readonly phone_num: Prisma.FieldRef<"phone", 'String'> readonly note: Prisma.FieldRef<"phone", 'String'> readonly fournisseur: Prisma.FieldRef<"phone", 'String'> } // Custom InputTypes /** * phone findUnique */ export type phoneFindUniqueArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null /** * Filter, which phone to fetch. */ where: Prisma.phoneWhereUniqueInput } /** * phone findUniqueOrThrow */ export type phoneFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null /** * Filter, which phone to fetch. */ where: Prisma.phoneWhereUniqueInput } /** * phone findFirst */ export type phoneFindFirstArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null /** * Filter, which phone to fetch. */ where?: Prisma.phoneWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of phones to fetch. */ orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for phones. */ cursor?: Prisma.phoneWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` phones 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` phones. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of phones. */ distinct?: Prisma.PhoneScalarFieldEnum | Prisma.PhoneScalarFieldEnum[] } /** * phone findFirstOrThrow */ export type phoneFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null /** * Filter, which phone to fetch. */ where?: Prisma.phoneWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of phones to fetch. */ orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for phones. */ cursor?: Prisma.phoneWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` phones 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` phones. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of phones. */ distinct?: Prisma.PhoneScalarFieldEnum | Prisma.PhoneScalarFieldEnum[] } /** * phone findMany */ export type phoneFindManyArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null /** * Filter, which phones to fetch. */ where?: Prisma.phoneWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of phones to fetch. */ orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing phones. */ cursor?: Prisma.phoneWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` phones 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` phones. */ skip?: number distinct?: Prisma.PhoneScalarFieldEnum | Prisma.PhoneScalarFieldEnum[] } /** * phone create */ export type phoneCreateArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null /** * The data needed to create a phone. */ data: Prisma.XOR } /** * phone createMany */ export type phoneCreateManyArgs = { /** * The data used to create many phones. */ data: Prisma.phoneCreateManyInput | Prisma.phoneCreateManyInput[] skipDuplicates?: boolean } /** * phone update */ export type phoneUpdateArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null /** * The data needed to update a phone. */ data: Prisma.XOR /** * Choose, which phone to update. */ where: Prisma.phoneWhereUniqueInput } /** * phone updateMany */ export type phoneUpdateManyArgs = { /** * The data used to update phones. */ data: Prisma.XOR /** * Filter which phones to update */ where?: Prisma.phoneWhereInput /** * Limit how many phones to update. */ limit?: number } /** * phone upsert */ export type phoneUpsertArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null /** * The filter to search for the phone to update in case it exists. */ where: Prisma.phoneWhereUniqueInput /** * In case the phone found by the `where` argument doesn't exist, create a new phone with this data. */ create: Prisma.XOR /** * In case the phone was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * phone delete */ export type phoneDeleteArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null /** * Filter which phone to delete. */ where: Prisma.phoneWhereUniqueInput } /** * phone deleteMany */ export type phoneDeleteManyArgs = { /** * Filter which phones to delete */ where?: Prisma.phoneWhereInput /** * Limit how many phones to delete. */ limit?: number } /** * phone without action */ export type phoneDefaultArgs = { /** * Select specific fields to fetch from the phone */ select?: Prisma.phoneSelect | null /** * Omit specific fields from the phone */ omit?: Prisma.phoneOmit | null }