targo-backend/prisma/generated/mariadb/models/client_pwd.ts

1092 lines
36 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 `client_pwd` 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 client_pwd
*
*/
export type client_pwdModel = runtime.Types.Result.DefaultSelection<Prisma.$client_pwdPayload>
export type AggregateClient_pwd = {
_count: Client_pwdCountAggregateOutputType | null
_avg: Client_pwdAvgAggregateOutputType | null
_sum: Client_pwdSumAggregateOutputType | null
_min: Client_pwdMinAggregateOutputType | null
_max: Client_pwdMaxAggregateOutputType | null
}
export type Client_pwdAvgAggregateOutputType = {
id: number | null
account_id: number | null
date: number | null
}
export type Client_pwdSumAggregateOutputType = {
id: number | null
account_id: number | null
date: bigint | null
}
export type Client_pwdMinAggregateOutputType = {
id: number | null
account_id: number | null
date: bigint | null
uid: string | null
used: boolean | null
}
export type Client_pwdMaxAggregateOutputType = {
id: number | null
account_id: number | null
date: bigint | null
uid: string | null
used: boolean | null
}
export type Client_pwdCountAggregateOutputType = {
id: number
account_id: number
date: number
uid: number
used: number
_all: number
}
export type Client_pwdAvgAggregateInputType = {
id?: true
account_id?: true
date?: true
}
export type Client_pwdSumAggregateInputType = {
id?: true
account_id?: true
date?: true
}
export type Client_pwdMinAggregateInputType = {
id?: true
account_id?: true
date?: true
uid?: true
used?: true
}
export type Client_pwdMaxAggregateInputType = {
id?: true
account_id?: true
date?: true
uid?: true
used?: true
}
export type Client_pwdCountAggregateInputType = {
id?: true
account_id?: true
date?: true
uid?: true
used?: true
_all?: true
}
export type Client_pwdAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which client_pwd to aggregate.
*/
where?: Prisma.client_pwdWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of client_pwds to fetch.
*/
orderBy?: Prisma.client_pwdOrderByWithRelationInput | Prisma.client_pwdOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.client_pwdWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` client_pwds 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` client_pwds.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned client_pwds
**/
_count?: true | Client_pwdCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Client_pwdAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Client_pwdSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Client_pwdMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Client_pwdMaxAggregateInputType
}
export type GetClient_pwdAggregateType<T extends Client_pwdAggregateArgs> = {
[P in keyof T & keyof AggregateClient_pwd]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateClient_pwd[P]>
: Prisma.GetScalarType<T[P], AggregateClient_pwd[P]>
}
export type client_pwdGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.client_pwdWhereInput
orderBy?: Prisma.client_pwdOrderByWithAggregationInput | Prisma.client_pwdOrderByWithAggregationInput[]
by: Prisma.Client_pwdScalarFieldEnum[] | Prisma.Client_pwdScalarFieldEnum
having?: Prisma.client_pwdScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Client_pwdCountAggregateInputType | true
_avg?: Client_pwdAvgAggregateInputType
_sum?: Client_pwdSumAggregateInputType
_min?: Client_pwdMinAggregateInputType
_max?: Client_pwdMaxAggregateInputType
}
export type Client_pwdGroupByOutputType = {
id: number
account_id: number
date: bigint
uid: string
used: boolean
_count: Client_pwdCountAggregateOutputType | null
_avg: Client_pwdAvgAggregateOutputType | null
_sum: Client_pwdSumAggregateOutputType | null
_min: Client_pwdMinAggregateOutputType | null
_max: Client_pwdMaxAggregateOutputType | null
}
type GetClient_pwdGroupByPayload<T extends client_pwdGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Client_pwdGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Client_pwdGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Client_pwdGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Client_pwdGroupByOutputType[P]>
}
>
>
export type client_pwdWhereInput = {
AND?: Prisma.client_pwdWhereInput | Prisma.client_pwdWhereInput[]
OR?: Prisma.client_pwdWhereInput[]
NOT?: Prisma.client_pwdWhereInput | Prisma.client_pwdWhereInput[]
id?: Prisma.IntFilter<"client_pwd"> | number
account_id?: Prisma.IntFilter<"client_pwd"> | number
date?: Prisma.BigIntFilter<"client_pwd"> | bigint | number
uid?: Prisma.StringFilter<"client_pwd"> | string
used?: Prisma.BoolFilter<"client_pwd"> | boolean
}
export type client_pwdOrderByWithRelationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
uid?: Prisma.SortOrder
used?: Prisma.SortOrder
_relevance?: Prisma.client_pwdOrderByRelevanceInput
}
export type client_pwdWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.client_pwdWhereInput | Prisma.client_pwdWhereInput[]
OR?: Prisma.client_pwdWhereInput[]
NOT?: Prisma.client_pwdWhereInput | Prisma.client_pwdWhereInput[]
account_id?: Prisma.IntFilter<"client_pwd"> | number
date?: Prisma.BigIntFilter<"client_pwd"> | bigint | number
uid?: Prisma.StringFilter<"client_pwd"> | string
used?: Prisma.BoolFilter<"client_pwd"> | boolean
}, "id">
export type client_pwdOrderByWithAggregationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
uid?: Prisma.SortOrder
used?: Prisma.SortOrder
_count?: Prisma.client_pwdCountOrderByAggregateInput
_avg?: Prisma.client_pwdAvgOrderByAggregateInput
_max?: Prisma.client_pwdMaxOrderByAggregateInput
_min?: Prisma.client_pwdMinOrderByAggregateInput
_sum?: Prisma.client_pwdSumOrderByAggregateInput
}
export type client_pwdScalarWhereWithAggregatesInput = {
AND?: Prisma.client_pwdScalarWhereWithAggregatesInput | Prisma.client_pwdScalarWhereWithAggregatesInput[]
OR?: Prisma.client_pwdScalarWhereWithAggregatesInput[]
NOT?: Prisma.client_pwdScalarWhereWithAggregatesInput | Prisma.client_pwdScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"client_pwd"> | number
account_id?: Prisma.IntWithAggregatesFilter<"client_pwd"> | number
date?: Prisma.BigIntWithAggregatesFilter<"client_pwd"> | bigint | number
uid?: Prisma.StringWithAggregatesFilter<"client_pwd"> | string
used?: Prisma.BoolWithAggregatesFilter<"client_pwd"> | boolean
}
export type client_pwdCreateInput = {
account_id: number
date: bigint | number
uid: string
used?: boolean
}
export type client_pwdUncheckedCreateInput = {
id?: number
account_id: number
date: bigint | number
uid: string
used?: boolean
}
export type client_pwdUpdateInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
used?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type client_pwdUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
used?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type client_pwdCreateManyInput = {
id?: number
account_id: number
date: bigint | number
uid: string
used?: boolean
}
export type client_pwdUpdateManyMutationInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
used?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type client_pwdUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
used?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type client_pwdOrderByRelevanceInput = {
fields: Prisma.client_pwdOrderByRelevanceFieldEnum | Prisma.client_pwdOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type client_pwdCountOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
uid?: Prisma.SortOrder
used?: Prisma.SortOrder
}
export type client_pwdAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
}
export type client_pwdMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
uid?: Prisma.SortOrder
used?: Prisma.SortOrder
}
export type client_pwdMinOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
uid?: Prisma.SortOrder
used?: Prisma.SortOrder
}
export type client_pwdSumOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
}
export type client_pwdSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
account_id?: boolean
date?: boolean
uid?: boolean
used?: boolean
}, ExtArgs["result"]["client_pwd"]>
export type client_pwdSelectScalar = {
id?: boolean
account_id?: boolean
date?: boolean
uid?: boolean
used?: boolean
}
export type client_pwdOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "uid" | "used", ExtArgs["result"]["client_pwd"]>
export type $client_pwdPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "client_pwd"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
account_id: number
date: bigint
uid: string
used: boolean
}, ExtArgs["result"]["client_pwd"]>
composites: {}
}
export type client_pwdGetPayload<S extends boolean | null | undefined | client_pwdDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$client_pwdPayload, S>
export type client_pwdCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<client_pwdFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Client_pwdCountAggregateInputType | true
}
export interface client_pwdDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['client_pwd'], meta: { name: 'client_pwd' } }
/**
* Find zero or one Client_pwd that matches the filter.
* @param {client_pwdFindUniqueArgs} args - Arguments to find a Client_pwd
* @example
* // Get one Client_pwd
* const client_pwd = await prisma.client_pwd.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends client_pwdFindUniqueArgs>(args: Prisma.SelectSubset<T, client_pwdFindUniqueArgs<ExtArgs>>): Prisma.Prisma__client_pwdClient<runtime.Types.Result.GetResult<Prisma.$client_pwdPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Client_pwd that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {client_pwdFindUniqueOrThrowArgs} args - Arguments to find a Client_pwd
* @example
* // Get one Client_pwd
* const client_pwd = await prisma.client_pwd.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends client_pwdFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, client_pwdFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__client_pwdClient<runtime.Types.Result.GetResult<Prisma.$client_pwdPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Client_pwd 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 {client_pwdFindFirstArgs} args - Arguments to find a Client_pwd
* @example
* // Get one Client_pwd
* const client_pwd = await prisma.client_pwd.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends client_pwdFindFirstArgs>(args?: Prisma.SelectSubset<T, client_pwdFindFirstArgs<ExtArgs>>): Prisma.Prisma__client_pwdClient<runtime.Types.Result.GetResult<Prisma.$client_pwdPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Client_pwd 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 {client_pwdFindFirstOrThrowArgs} args - Arguments to find a Client_pwd
* @example
* // Get one Client_pwd
* const client_pwd = await prisma.client_pwd.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends client_pwdFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, client_pwdFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__client_pwdClient<runtime.Types.Result.GetResult<Prisma.$client_pwdPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Client_pwds 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 {client_pwdFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Client_pwds
* const client_pwds = await prisma.client_pwd.findMany()
*
* // Get first 10 Client_pwds
* const client_pwds = await prisma.client_pwd.findMany({ take: 10 })
*
* // Only select the `id`
* const client_pwdWithIdOnly = await prisma.client_pwd.findMany({ select: { id: true } })
*
*/
findMany<T extends client_pwdFindManyArgs>(args?: Prisma.SelectSubset<T, client_pwdFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$client_pwdPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Client_pwd.
* @param {client_pwdCreateArgs} args - Arguments to create a Client_pwd.
* @example
* // Create one Client_pwd
* const Client_pwd = await prisma.client_pwd.create({
* data: {
* // ... data to create a Client_pwd
* }
* })
*
*/
create<T extends client_pwdCreateArgs>(args: Prisma.SelectSubset<T, client_pwdCreateArgs<ExtArgs>>): Prisma.Prisma__client_pwdClient<runtime.Types.Result.GetResult<Prisma.$client_pwdPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Client_pwds.
* @param {client_pwdCreateManyArgs} args - Arguments to create many Client_pwds.
* @example
* // Create many Client_pwds
* const client_pwd = await prisma.client_pwd.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends client_pwdCreateManyArgs>(args?: Prisma.SelectSubset<T, client_pwdCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Client_pwd.
* @param {client_pwdDeleteArgs} args - Arguments to delete one Client_pwd.
* @example
* // Delete one Client_pwd
* const Client_pwd = await prisma.client_pwd.delete({
* where: {
* // ... filter to delete one Client_pwd
* }
* })
*
*/
delete<T extends client_pwdDeleteArgs>(args: Prisma.SelectSubset<T, client_pwdDeleteArgs<ExtArgs>>): Prisma.Prisma__client_pwdClient<runtime.Types.Result.GetResult<Prisma.$client_pwdPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Client_pwd.
* @param {client_pwdUpdateArgs} args - Arguments to update one Client_pwd.
* @example
* // Update one Client_pwd
* const client_pwd = await prisma.client_pwd.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends client_pwdUpdateArgs>(args: Prisma.SelectSubset<T, client_pwdUpdateArgs<ExtArgs>>): Prisma.Prisma__client_pwdClient<runtime.Types.Result.GetResult<Prisma.$client_pwdPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Client_pwds.
* @param {client_pwdDeleteManyArgs} args - Arguments to filter Client_pwds to delete.
* @example
* // Delete a few Client_pwds
* const { count } = await prisma.client_pwd.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends client_pwdDeleteManyArgs>(args?: Prisma.SelectSubset<T, client_pwdDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Client_pwds.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {client_pwdUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Client_pwds
* const client_pwd = await prisma.client_pwd.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends client_pwdUpdateManyArgs>(args: Prisma.SelectSubset<T, client_pwdUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Client_pwd.
* @param {client_pwdUpsertArgs} args - Arguments to update or create a Client_pwd.
* @example
* // Update or create a Client_pwd
* const client_pwd = await prisma.client_pwd.upsert({
* create: {
* // ... data to create a Client_pwd
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Client_pwd we want to update
* }
* })
*/
upsert<T extends client_pwdUpsertArgs>(args: Prisma.SelectSubset<T, client_pwdUpsertArgs<ExtArgs>>): Prisma.Prisma__client_pwdClient<runtime.Types.Result.GetResult<Prisma.$client_pwdPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Client_pwds.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {client_pwdCountArgs} args - Arguments to filter Client_pwds to count.
* @example
* // Count the number of Client_pwds
* const count = await prisma.client_pwd.count({
* where: {
* // ... the filter for the Client_pwds we want to count
* }
* })
**/
count<T extends client_pwdCountArgs>(
args?: Prisma.Subset<T, client_pwdCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Client_pwdCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Client_pwd.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Client_pwdAggregateArgs} 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 Client_pwdAggregateArgs>(args: Prisma.Subset<T, Client_pwdAggregateArgs>): Prisma.PrismaPromise<GetClient_pwdAggregateType<T>>
/**
* Group by Client_pwd.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {client_pwdGroupByArgs} 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 client_pwdGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: client_pwdGroupByArgs['orderBy'] }
: { orderBy?: client_pwdGroupByArgs['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, client_pwdGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetClient_pwdGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the client_pwd model
*/
readonly fields: client_pwdFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for client_pwd.
* 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__client_pwdClient<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 client_pwd model
*/
export interface client_pwdFieldRefs {
readonly id: Prisma.FieldRef<"client_pwd", 'Int'>
readonly account_id: Prisma.FieldRef<"client_pwd", 'Int'>
readonly date: Prisma.FieldRef<"client_pwd", 'BigInt'>
readonly uid: Prisma.FieldRef<"client_pwd", 'String'>
readonly used: Prisma.FieldRef<"client_pwd", 'Boolean'>
}
// Custom InputTypes
/**
* client_pwd findUnique
*/
export type client_pwdFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
/**
* Filter, which client_pwd to fetch.
*/
where: Prisma.client_pwdWhereUniqueInput
}
/**
* client_pwd findUniqueOrThrow
*/
export type client_pwdFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
/**
* Filter, which client_pwd to fetch.
*/
where: Prisma.client_pwdWhereUniqueInput
}
/**
* client_pwd findFirst
*/
export type client_pwdFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
/**
* Filter, which client_pwd to fetch.
*/
where?: Prisma.client_pwdWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of client_pwds to fetch.
*/
orderBy?: Prisma.client_pwdOrderByWithRelationInput | Prisma.client_pwdOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for client_pwds.
*/
cursor?: Prisma.client_pwdWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` client_pwds 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` client_pwds.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of client_pwds.
*/
distinct?: Prisma.Client_pwdScalarFieldEnum | Prisma.Client_pwdScalarFieldEnum[]
}
/**
* client_pwd findFirstOrThrow
*/
export type client_pwdFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
/**
* Filter, which client_pwd to fetch.
*/
where?: Prisma.client_pwdWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of client_pwds to fetch.
*/
orderBy?: Prisma.client_pwdOrderByWithRelationInput | Prisma.client_pwdOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for client_pwds.
*/
cursor?: Prisma.client_pwdWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` client_pwds 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` client_pwds.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of client_pwds.
*/
distinct?: Prisma.Client_pwdScalarFieldEnum | Prisma.Client_pwdScalarFieldEnum[]
}
/**
* client_pwd findMany
*/
export type client_pwdFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
/**
* Filter, which client_pwds to fetch.
*/
where?: Prisma.client_pwdWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of client_pwds to fetch.
*/
orderBy?: Prisma.client_pwdOrderByWithRelationInput | Prisma.client_pwdOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing client_pwds.
*/
cursor?: Prisma.client_pwdWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` client_pwds 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` client_pwds.
*/
skip?: number
distinct?: Prisma.Client_pwdScalarFieldEnum | Prisma.Client_pwdScalarFieldEnum[]
}
/**
* client_pwd create
*/
export type client_pwdCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
/**
* The data needed to create a client_pwd.
*/
data: Prisma.XOR<Prisma.client_pwdCreateInput, Prisma.client_pwdUncheckedCreateInput>
}
/**
* client_pwd createMany
*/
export type client_pwdCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many client_pwds.
*/
data: Prisma.client_pwdCreateManyInput | Prisma.client_pwdCreateManyInput[]
skipDuplicates?: boolean
}
/**
* client_pwd update
*/
export type client_pwdUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
/**
* The data needed to update a client_pwd.
*/
data: Prisma.XOR<Prisma.client_pwdUpdateInput, Prisma.client_pwdUncheckedUpdateInput>
/**
* Choose, which client_pwd to update.
*/
where: Prisma.client_pwdWhereUniqueInput
}
/**
* client_pwd updateMany
*/
export type client_pwdUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update client_pwds.
*/
data: Prisma.XOR<Prisma.client_pwdUpdateManyMutationInput, Prisma.client_pwdUncheckedUpdateManyInput>
/**
* Filter which client_pwds to update
*/
where?: Prisma.client_pwdWhereInput
/**
* Limit how many client_pwds to update.
*/
limit?: number
}
/**
* client_pwd upsert
*/
export type client_pwdUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
/**
* The filter to search for the client_pwd to update in case it exists.
*/
where: Prisma.client_pwdWhereUniqueInput
/**
* In case the client_pwd found by the `where` argument doesn't exist, create a new client_pwd with this data.
*/
create: Prisma.XOR<Prisma.client_pwdCreateInput, Prisma.client_pwdUncheckedCreateInput>
/**
* In case the client_pwd was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.client_pwdUpdateInput, Prisma.client_pwdUncheckedUpdateInput>
}
/**
* client_pwd delete
*/
export type client_pwdDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
/**
* Filter which client_pwd to delete.
*/
where: Prisma.client_pwdWhereUniqueInput
}
/**
* client_pwd deleteMany
*/
export type client_pwdDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which client_pwds to delete
*/
where?: Prisma.client_pwdWhereInput
/**
* Limit how many client_pwds to delete.
*/
limit?: number
}
/**
* client_pwd without action
*/
export type client_pwdDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the client_pwd
*/
select?: Prisma.client_pwdSelect<ExtArgs> | null
/**
* Omit specific fields from the client_pwd
*/
omit?: Prisma.client_pwdOmit<ExtArgs> | null
}