1129 lines
41 KiB
TypeScript
1129 lines
41 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `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<Prisma.$service_snapshotPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends Service_snapshotAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateService_snapshot]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateService_snapshot[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateService_snapshot[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type service_snapshotGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends service_snapshotGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Service_snapshotGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Service_snapshotGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Service_snapshotGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Service_snapshotGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date" | "account_id" | "service_id" | "quota_day" | "quota_night", ExtArgs["result"]["service_snapshot"]>
|
|
|
|
export type $service_snapshotPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<S extends boolean | null | undefined | service_snapshotDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload, S>
|
|
|
|
export type service_snapshotCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<service_snapshotFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Service_snapshotCountAggregateInputType | true
|
|
}
|
|
|
|
export interface service_snapshotDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends service_snapshotFindUniqueArgs>(args: Prisma.SelectSubset<T, service_snapshotFindUniqueArgs<ExtArgs>>): Prisma.Prisma__service_snapshotClient<runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload<ExtArgs>, 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<T extends service_snapshotFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, service_snapshotFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__service_snapshotClient<runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload<ExtArgs>, 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<T extends service_snapshotFindFirstArgs>(args?: Prisma.SelectSubset<T, service_snapshotFindFirstArgs<ExtArgs>>): Prisma.Prisma__service_snapshotClient<runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload<ExtArgs>, 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<T extends service_snapshotFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, service_snapshotFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__service_snapshotClient<runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload<ExtArgs>, 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<T extends service_snapshotFindManyArgs>(args?: Prisma.SelectSubset<T, service_snapshotFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload<ExtArgs>, 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<T extends service_snapshotCreateArgs>(args: Prisma.SelectSubset<T, service_snapshotCreateArgs<ExtArgs>>): Prisma.Prisma__service_snapshotClient<runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload<ExtArgs>, 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<T extends service_snapshotCreateManyArgs>(args?: Prisma.SelectSubset<T, service_snapshotCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends service_snapshotDeleteArgs>(args: Prisma.SelectSubset<T, service_snapshotDeleteArgs<ExtArgs>>): Prisma.Prisma__service_snapshotClient<runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload<ExtArgs>, 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<T extends service_snapshotUpdateArgs>(args: Prisma.SelectSubset<T, service_snapshotUpdateArgs<ExtArgs>>): Prisma.Prisma__service_snapshotClient<runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload<ExtArgs>, 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<T extends service_snapshotDeleteManyArgs>(args?: Prisma.SelectSubset<T, service_snapshotDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends service_snapshotUpdateManyArgs>(args: Prisma.SelectSubset<T, service_snapshotUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends service_snapshotUpsertArgs>(args: Prisma.SelectSubset<T, service_snapshotUpsertArgs<ExtArgs>>): Prisma.Prisma__service_snapshotClient<runtime.Types.Result.GetResult<Prisma.$service_snapshotPayload<ExtArgs>, 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<T extends service_snapshotCountArgs>(
|
|
args?: Prisma.Subset<T, service_snapshotCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Service_snapshotCountAggregateOutputType>
|
|
: 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<T extends Service_snapshotAggregateArgs>(args: Prisma.Subset<T, Service_snapshotAggregateArgs>): Prisma.PrismaPromise<GetService_snapshotAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: service_snapshotGroupByArgs['orderBy'] }
|
|
: { orderBy?: service_snapshotGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, service_snapshotGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetService_snapshotGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which service_snapshot to fetch.
|
|
*/
|
|
where: Prisma.service_snapshotWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* service_snapshot findUniqueOrThrow
|
|
*/
|
|
export type service_snapshotFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which service_snapshot to fetch.
|
|
*/
|
|
where: Prisma.service_snapshotWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* service_snapshot findFirst
|
|
*/
|
|
export type service_snapshotFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a service_snapshot.
|
|
*/
|
|
data: Prisma.XOR<Prisma.service_snapshotCreateInput, Prisma.service_snapshotUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* service_snapshot createMany
|
|
*/
|
|
export type service_snapshotCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many service_snapshots.
|
|
*/
|
|
data: Prisma.service_snapshotCreateManyInput | Prisma.service_snapshotCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* service_snapshot update
|
|
*/
|
|
export type service_snapshotUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a service_snapshot.
|
|
*/
|
|
data: Prisma.XOR<Prisma.service_snapshotUpdateInput, Prisma.service_snapshotUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which service_snapshot to update.
|
|
*/
|
|
where: Prisma.service_snapshotWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* service_snapshot updateMany
|
|
*/
|
|
export type service_snapshotUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update service_snapshots.
|
|
*/
|
|
data: Prisma.XOR<Prisma.service_snapshotUpdateManyMutationInput, Prisma.service_snapshotUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | 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<Prisma.service_snapshotCreateInput, Prisma.service_snapshotUncheckedCreateInput>
|
|
/**
|
|
* In case the service_snapshot was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.service_snapshotUpdateInput, Prisma.service_snapshotUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* service_snapshot delete
|
|
*/
|
|
export type service_snapshotDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which service_snapshot to delete.
|
|
*/
|
|
where: Prisma.service_snapshotWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* service_snapshot deleteMany
|
|
*/
|
|
export type service_snapshotDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the service_snapshot
|
|
*/
|
|
select?: Prisma.service_snapshotSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the service_snapshot
|
|
*/
|
|
omit?: Prisma.service_snapshotOmit<ExtArgs> | null
|
|
}
|