/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `service_snapshot` 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 service_snapshot * */ export type service_snapshotModel = runtime.Types.Result.DefaultSelection export type AggregateService_snapshot = { _count: Service_snapshotCountAggregateOutputType | null _avg: Service_snapshotAvgAggregateOutputType | null _sum: Service_snapshotSumAggregateOutputType | null _min: Service_snapshotMinAggregateOutputType | null _max: Service_snapshotMaxAggregateOutputType | null } export type Service_snapshotAvgAggregateOutputType = { id: number | null date: number | null account_id: number | null service_id: number | null quota_day: number | null quota_night: number | null } export type Service_snapshotSumAggregateOutputType = { id: number | null date: bigint | null account_id: number | null service_id: number | null quota_day: bigint | null quota_night: bigint | null } export type Service_snapshotMinAggregateOutputType = { id: number | null date: bigint | null account_id: number | null service_id: number | null quota_day: bigint | null quota_night: bigint | null } export type Service_snapshotMaxAggregateOutputType = { id: number | null date: bigint | null account_id: number | null service_id: number | null quota_day: bigint | null quota_night: bigint | null } export type Service_snapshotCountAggregateOutputType = { id: number date: number account_id: number service_id: number quota_day: number quota_night: number _all: number } export type Service_snapshotAvgAggregateInputType = { id?: true date?: true account_id?: true service_id?: true quota_day?: true quota_night?: true } export type Service_snapshotSumAggregateInputType = { id?: true date?: true account_id?: true service_id?: true quota_day?: true quota_night?: true } export type Service_snapshotMinAggregateInputType = { id?: true date?: true account_id?: true service_id?: true quota_day?: true quota_night?: true } export type Service_snapshotMaxAggregateInputType = { id?: true date?: true account_id?: true service_id?: true quota_day?: true quota_night?: true } export type Service_snapshotCountAggregateInputType = { id?: true date?: true account_id?: true service_id?: true quota_day?: true quota_night?: true _all?: true } export type Service_snapshotAggregateArgs = { /** * Filter which service_snapshot to aggregate. */ where?: Prisma.service_snapshotWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of service_snapshots to fetch. */ orderBy?: Prisma.service_snapshotOrderByWithRelationInput | Prisma.service_snapshotOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.service_snapshotWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` service_snapshots 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` service_snapshots. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned service_snapshots **/ _count?: true | Service_snapshotCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Service_snapshotAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Service_snapshotSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Service_snapshotMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Service_snapshotMaxAggregateInputType } export type GetService_snapshotAggregateType = { [P in keyof T & keyof AggregateService_snapshot]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type service_snapshotGroupByArgs = { where?: Prisma.service_snapshotWhereInput orderBy?: Prisma.service_snapshotOrderByWithAggregationInput | Prisma.service_snapshotOrderByWithAggregationInput[] by: Prisma.Service_snapshotScalarFieldEnum[] | Prisma.Service_snapshotScalarFieldEnum having?: Prisma.service_snapshotScalarWhereWithAggregatesInput take?: number skip?: number _count?: Service_snapshotCountAggregateInputType | true _avg?: Service_snapshotAvgAggregateInputType _sum?: Service_snapshotSumAggregateInputType _min?: Service_snapshotMinAggregateInputType _max?: Service_snapshotMaxAggregateInputType } export type Service_snapshotGroupByOutputType = { id: number date: bigint account_id: number service_id: number quota_day: bigint quota_night: bigint _count: Service_snapshotCountAggregateOutputType | null _avg: Service_snapshotAvgAggregateOutputType | null _sum: Service_snapshotSumAggregateOutputType | null _min: Service_snapshotMinAggregateOutputType | null _max: Service_snapshotMaxAggregateOutputType | null } type GetService_snapshotGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Service_snapshotGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type service_snapshotWhereInput = { AND?: Prisma.service_snapshotWhereInput | Prisma.service_snapshotWhereInput[] OR?: Prisma.service_snapshotWhereInput[] NOT?: Prisma.service_snapshotWhereInput | Prisma.service_snapshotWhereInput[] id?: Prisma.IntFilter<"service_snapshot"> | number date?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number account_id?: Prisma.IntFilter<"service_snapshot"> | number service_id?: Prisma.IntFilter<"service_snapshot"> | number quota_day?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number quota_night?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number } export type service_snapshotOrderByWithRelationInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder service_id?: Prisma.SortOrder quota_day?: Prisma.SortOrder quota_night?: Prisma.SortOrder } export type service_snapshotWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.service_snapshotWhereInput | Prisma.service_snapshotWhereInput[] OR?: Prisma.service_snapshotWhereInput[] NOT?: Prisma.service_snapshotWhereInput | Prisma.service_snapshotWhereInput[] date?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number account_id?: Prisma.IntFilter<"service_snapshot"> | number service_id?: Prisma.IntFilter<"service_snapshot"> | number quota_day?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number quota_night?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number }, "id"> export type service_snapshotOrderByWithAggregationInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder service_id?: Prisma.SortOrder quota_day?: Prisma.SortOrder quota_night?: Prisma.SortOrder _count?: Prisma.service_snapshotCountOrderByAggregateInput _avg?: Prisma.service_snapshotAvgOrderByAggregateInput _max?: Prisma.service_snapshotMaxOrderByAggregateInput _min?: Prisma.service_snapshotMinOrderByAggregateInput _sum?: Prisma.service_snapshotSumOrderByAggregateInput } export type service_snapshotScalarWhereWithAggregatesInput = { AND?: Prisma.service_snapshotScalarWhereWithAggregatesInput | Prisma.service_snapshotScalarWhereWithAggregatesInput[] OR?: Prisma.service_snapshotScalarWhereWithAggregatesInput[] NOT?: Prisma.service_snapshotScalarWhereWithAggregatesInput | Prisma.service_snapshotScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"service_snapshot"> | number date?: Prisma.BigIntWithAggregatesFilter<"service_snapshot"> | bigint | number account_id?: Prisma.IntWithAggregatesFilter<"service_snapshot"> | number service_id?: Prisma.IntWithAggregatesFilter<"service_snapshot"> | number quota_day?: Prisma.BigIntWithAggregatesFilter<"service_snapshot"> | bigint | number quota_night?: Prisma.BigIntWithAggregatesFilter<"service_snapshot"> | bigint | number } export type service_snapshotCreateInput = { date: bigint | number account_id: number service_id: number quota_day?: bigint | number quota_night?: bigint | number } export type service_snapshotUncheckedCreateInput = { id?: number date: bigint | number account_id: number service_id: number quota_day?: bigint | number quota_night?: bigint | number } export type service_snapshotUpdateInput = { date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number quota_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number quota_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type service_snapshotUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number quota_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number quota_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type service_snapshotCreateManyInput = { id?: number date: bigint | number account_id: number service_id: number quota_day?: bigint | number quota_night?: bigint | number } export type service_snapshotUpdateManyMutationInput = { date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number quota_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number quota_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type service_snapshotUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number quota_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number quota_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type service_snapshotCountOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder service_id?: Prisma.SortOrder quota_day?: Prisma.SortOrder quota_night?: Prisma.SortOrder } export type service_snapshotAvgOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder service_id?: Prisma.SortOrder quota_day?: Prisma.SortOrder quota_night?: Prisma.SortOrder } export type service_snapshotMaxOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder service_id?: Prisma.SortOrder quota_day?: Prisma.SortOrder quota_night?: Prisma.SortOrder } export type service_snapshotMinOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder service_id?: Prisma.SortOrder quota_day?: Prisma.SortOrder quota_night?: Prisma.SortOrder } export type service_snapshotSumOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder service_id?: Prisma.SortOrder quota_day?: Prisma.SortOrder quota_night?: Prisma.SortOrder } export type service_snapshotSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean date?: boolean account_id?: boolean service_id?: boolean quota_day?: boolean quota_night?: boolean }, ExtArgs["result"]["service_snapshot"]> export type service_snapshotSelectScalar = { id?: boolean date?: boolean account_id?: boolean service_id?: boolean quota_day?: boolean quota_night?: boolean } export type service_snapshotOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "account_id" | "service_id" | "quota_day" | "quota_night", ExtArgs["result"]["service_snapshot"]> export type $service_snapshotPayload = { name: "service_snapshot" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number date: bigint account_id: number service_id: number quota_day: bigint quota_night: bigint }, ExtArgs["result"]["service_snapshot"]> composites: {} } export type service_snapshotGetPayload = runtime.Types.Result.GetResult export type service_snapshotCountArgs = Omit & { select?: Service_snapshotCountAggregateInputType | true } export interface service_snapshotDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['service_snapshot'], meta: { name: 'service_snapshot' } } /** * Find zero or one Service_snapshot that matches the filter. * @param {service_snapshotFindUniqueArgs} args - Arguments to find a Service_snapshot * @example * // Get one Service_snapshot * const service_snapshot = await prisma.service_snapshot.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Service_snapshot that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {service_snapshotFindUniqueOrThrowArgs} args - Arguments to find a Service_snapshot * @example * // Get one Service_snapshot * const service_snapshot = await prisma.service_snapshot.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Service_snapshot 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 {service_snapshotFindFirstArgs} args - Arguments to find a Service_snapshot * @example * // Get one Service_snapshot * const service_snapshot = await prisma.service_snapshot.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Service_snapshot 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 {service_snapshotFindFirstOrThrowArgs} args - Arguments to find a Service_snapshot * @example * // Get one Service_snapshot * const service_snapshot = await prisma.service_snapshot.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Service_snapshots 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 {service_snapshotFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Service_snapshots * const service_snapshots = await prisma.service_snapshot.findMany() * * // Get first 10 Service_snapshots * const service_snapshots = await prisma.service_snapshot.findMany({ take: 10 }) * * // Only select the `id` * const service_snapshotWithIdOnly = await prisma.service_snapshot.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Service_snapshot. * @param {service_snapshotCreateArgs} args - Arguments to create a Service_snapshot. * @example * // Create one Service_snapshot * const Service_snapshot = await prisma.service_snapshot.create({ * data: { * // ... data to create a Service_snapshot * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Service_snapshots. * @param {service_snapshotCreateManyArgs} args - Arguments to create many Service_snapshots. * @example * // Create many Service_snapshots * const service_snapshot = await prisma.service_snapshot.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Service_snapshot. * @param {service_snapshotDeleteArgs} args - Arguments to delete one Service_snapshot. * @example * // Delete one Service_snapshot * const Service_snapshot = await prisma.service_snapshot.delete({ * where: { * // ... filter to delete one Service_snapshot * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Service_snapshot. * @param {service_snapshotUpdateArgs} args - Arguments to update one Service_snapshot. * @example * // Update one Service_snapshot * const service_snapshot = await prisma.service_snapshot.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Service_snapshots. * @param {service_snapshotDeleteManyArgs} args - Arguments to filter Service_snapshots to delete. * @example * // Delete a few Service_snapshots * const { count } = await prisma.service_snapshot.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Service_snapshots. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {service_snapshotUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Service_snapshots * const service_snapshot = await prisma.service_snapshot.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Service_snapshot. * @param {service_snapshotUpsertArgs} args - Arguments to update or create a Service_snapshot. * @example * // Update or create a Service_snapshot * const service_snapshot = await prisma.service_snapshot.upsert({ * create: { * // ... data to create a Service_snapshot * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Service_snapshot we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Service_snapshots. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {service_snapshotCountArgs} args - Arguments to filter Service_snapshots to count. * @example * // Count the number of Service_snapshots * const count = await prisma.service_snapshot.count({ * where: { * // ... the filter for the Service_snapshots 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 Service_snapshot. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Service_snapshotAggregateArgs} 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 Service_snapshot. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {service_snapshotGroupByArgs} 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 service_snapshotGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: service_snapshotGroupByArgs['orderBy'] } : { orderBy?: service_snapshotGroupByArgs['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 ? GetService_snapshotGroupByPayload : Prisma.PrismaPromise /** * Fields of the service_snapshot model */ readonly fields: service_snapshotFieldRefs; } /** * The delegate class that acts as a "Promise-like" for service_snapshot. * 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__service_snapshotClient 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 service_snapshot model */ export interface service_snapshotFieldRefs { readonly id: Prisma.FieldRef<"service_snapshot", 'Int'> readonly date: Prisma.FieldRef<"service_snapshot", 'BigInt'> readonly account_id: Prisma.FieldRef<"service_snapshot", 'Int'> readonly service_id: Prisma.FieldRef<"service_snapshot", 'Int'> readonly quota_day: Prisma.FieldRef<"service_snapshot", 'BigInt'> readonly quota_night: Prisma.FieldRef<"service_snapshot", 'BigInt'> } // Custom InputTypes /** * service_snapshot findUnique */ export type service_snapshotFindUniqueArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null /** * Filter, which service_snapshot to fetch. */ where: Prisma.service_snapshotWhereUniqueInput } /** * service_snapshot findUniqueOrThrow */ export type service_snapshotFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null /** * Filter, which service_snapshot to fetch. */ where: Prisma.service_snapshotWhereUniqueInput } /** * service_snapshot findFirst */ export type service_snapshotFindFirstArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null /** * Filter, which service_snapshot to fetch. */ where?: Prisma.service_snapshotWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of service_snapshots to fetch. */ orderBy?: Prisma.service_snapshotOrderByWithRelationInput | Prisma.service_snapshotOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for service_snapshots. */ cursor?: Prisma.service_snapshotWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` service_snapshots 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` service_snapshots. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of service_snapshots. */ distinct?: Prisma.Service_snapshotScalarFieldEnum | Prisma.Service_snapshotScalarFieldEnum[] } /** * service_snapshot findFirstOrThrow */ export type service_snapshotFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null /** * Filter, which service_snapshot to fetch. */ where?: Prisma.service_snapshotWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of service_snapshots to fetch. */ orderBy?: Prisma.service_snapshotOrderByWithRelationInput | Prisma.service_snapshotOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for service_snapshots. */ cursor?: Prisma.service_snapshotWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` service_snapshots 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` service_snapshots. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of service_snapshots. */ distinct?: Prisma.Service_snapshotScalarFieldEnum | Prisma.Service_snapshotScalarFieldEnum[] } /** * service_snapshot findMany */ export type service_snapshotFindManyArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null /** * Filter, which service_snapshots to fetch. */ where?: Prisma.service_snapshotWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of service_snapshots to fetch. */ orderBy?: Prisma.service_snapshotOrderByWithRelationInput | Prisma.service_snapshotOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing service_snapshots. */ cursor?: Prisma.service_snapshotWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` service_snapshots 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` service_snapshots. */ skip?: number distinct?: Prisma.Service_snapshotScalarFieldEnum | Prisma.Service_snapshotScalarFieldEnum[] } /** * service_snapshot create */ export type service_snapshotCreateArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null /** * The data needed to create a service_snapshot. */ data: Prisma.XOR } /** * service_snapshot createMany */ export type service_snapshotCreateManyArgs = { /** * The data used to create many service_snapshots. */ data: Prisma.service_snapshotCreateManyInput | Prisma.service_snapshotCreateManyInput[] skipDuplicates?: boolean } /** * service_snapshot update */ export type service_snapshotUpdateArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null /** * The data needed to update a service_snapshot. */ data: Prisma.XOR /** * Choose, which service_snapshot to update. */ where: Prisma.service_snapshotWhereUniqueInput } /** * service_snapshot updateMany */ export type service_snapshotUpdateManyArgs = { /** * The data used to update service_snapshots. */ data: Prisma.XOR /** * Filter which service_snapshots to update */ where?: Prisma.service_snapshotWhereInput /** * Limit how many service_snapshots to update. */ limit?: number } /** * service_snapshot upsert */ export type service_snapshotUpsertArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null /** * The filter to search for the service_snapshot to update in case it exists. */ where: Prisma.service_snapshotWhereUniqueInput /** * In case the service_snapshot found by the `where` argument doesn't exist, create a new service_snapshot with this data. */ create: Prisma.XOR /** * In case the service_snapshot was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * service_snapshot delete */ export type service_snapshotDeleteArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null /** * Filter which service_snapshot to delete. */ where: Prisma.service_snapshotWhereUniqueInput } /** * service_snapshot deleteMany */ export type service_snapshotDeleteManyArgs = { /** * Filter which service_snapshots to delete */ where?: Prisma.service_snapshotWhereInput /** * Limit how many service_snapshots to delete. */ limit?: number } /** * service_snapshot without action */ export type service_snapshotDefaultArgs = { /** * Select specific fields to fetch from the service_snapshot */ select?: Prisma.service_snapshotSelect | null /** * Omit specific fields from the service_snapshot */ omit?: Prisma.service_snapshotOmit | null }