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

1138 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 `account_profile` 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 account_profile
*
*/
export type account_profileModel = runtime.Types.Result.DefaultSelection<Prisma.$account_profilePayload>
export type AggregateAccount_profile = {
_count: Account_profileCountAggregateOutputType | null
_avg: Account_profileAvgAggregateOutputType | null
_sum: Account_profileSumAggregateOutputType | null
_min: Account_profileMinAggregateOutputType | null
_max: Account_profileMaxAggregateOutputType | null
}
export type Account_profileAvgAggregateOutputType = {
id: number | null
account_id: number | null
}
export type Account_profileSumAggregateOutputType = {
id: number | null
account_id: number | null
}
export type Account_profileMinAggregateOutputType = {
id: number | null
account_id: number | null
profile_id: string | null
address_id: string | null
card_id: string | null
token: string | null
initial_transaction: string | null
}
export type Account_profileMaxAggregateOutputType = {
id: number | null
account_id: number | null
profile_id: string | null
address_id: string | null
card_id: string | null
token: string | null
initial_transaction: string | null
}
export type Account_profileCountAggregateOutputType = {
id: number
account_id: number
profile_id: number
address_id: number
card_id: number
token: number
initial_transaction: number
_all: number
}
export type Account_profileAvgAggregateInputType = {
id?: true
account_id?: true
}
export type Account_profileSumAggregateInputType = {
id?: true
account_id?: true
}
export type Account_profileMinAggregateInputType = {
id?: true
account_id?: true
profile_id?: true
address_id?: true
card_id?: true
token?: true
initial_transaction?: true
}
export type Account_profileMaxAggregateInputType = {
id?: true
account_id?: true
profile_id?: true
address_id?: true
card_id?: true
token?: true
initial_transaction?: true
}
export type Account_profileCountAggregateInputType = {
id?: true
account_id?: true
profile_id?: true
address_id?: true
card_id?: true
token?: true
initial_transaction?: true
_all?: true
}
export type Account_profileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which account_profile to aggregate.
*/
where?: Prisma.account_profileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of account_profiles to fetch.
*/
orderBy?: Prisma.account_profileOrderByWithRelationInput | Prisma.account_profileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.account_profileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` account_profiles 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` account_profiles.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned account_profiles
**/
_count?: true | Account_profileCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Account_profileAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Account_profileSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Account_profileMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Account_profileMaxAggregateInputType
}
export type GetAccount_profileAggregateType<T extends Account_profileAggregateArgs> = {
[P in keyof T & keyof AggregateAccount_profile]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAccount_profile[P]>
: Prisma.GetScalarType<T[P], AggregateAccount_profile[P]>
}
export type account_profileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.account_profileWhereInput
orderBy?: Prisma.account_profileOrderByWithAggregationInput | Prisma.account_profileOrderByWithAggregationInput[]
by: Prisma.Account_profileScalarFieldEnum[] | Prisma.Account_profileScalarFieldEnum
having?: Prisma.account_profileScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Account_profileCountAggregateInputType | true
_avg?: Account_profileAvgAggregateInputType
_sum?: Account_profileSumAggregateInputType
_min?: Account_profileMinAggregateInputType
_max?: Account_profileMaxAggregateInputType
}
export type Account_profileGroupByOutputType = {
id: number
account_id: number
profile_id: string
address_id: string
card_id: string
token: string
initial_transaction: string
_count: Account_profileCountAggregateOutputType | null
_avg: Account_profileAvgAggregateOutputType | null
_sum: Account_profileSumAggregateOutputType | null
_min: Account_profileMinAggregateOutputType | null
_max: Account_profileMaxAggregateOutputType | null
}
type GetAccount_profileGroupByPayload<T extends account_profileGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Account_profileGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Account_profileGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Account_profileGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Account_profileGroupByOutputType[P]>
}
>
>
export type account_profileWhereInput = {
AND?: Prisma.account_profileWhereInput | Prisma.account_profileWhereInput[]
OR?: Prisma.account_profileWhereInput[]
NOT?: Prisma.account_profileWhereInput | Prisma.account_profileWhereInput[]
id?: Prisma.IntFilter<"account_profile"> | number
account_id?: Prisma.IntFilter<"account_profile"> | number
profile_id?: Prisma.StringFilter<"account_profile"> | string
address_id?: Prisma.StringFilter<"account_profile"> | string
card_id?: Prisma.StringFilter<"account_profile"> | string
token?: Prisma.StringFilter<"account_profile"> | string
initial_transaction?: Prisma.StringFilter<"account_profile"> | string
}
export type account_profileOrderByWithRelationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
profile_id?: Prisma.SortOrder
address_id?: Prisma.SortOrder
card_id?: Prisma.SortOrder
token?: Prisma.SortOrder
initial_transaction?: Prisma.SortOrder
_relevance?: Prisma.account_profileOrderByRelevanceInput
}
export type account_profileWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.account_profileWhereInput | Prisma.account_profileWhereInput[]
OR?: Prisma.account_profileWhereInput[]
NOT?: Prisma.account_profileWhereInput | Prisma.account_profileWhereInput[]
account_id?: Prisma.IntFilter<"account_profile"> | number
profile_id?: Prisma.StringFilter<"account_profile"> | string
address_id?: Prisma.StringFilter<"account_profile"> | string
card_id?: Prisma.StringFilter<"account_profile"> | string
token?: Prisma.StringFilter<"account_profile"> | string
initial_transaction?: Prisma.StringFilter<"account_profile"> | string
}, "id">
export type account_profileOrderByWithAggregationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
profile_id?: Prisma.SortOrder
address_id?: Prisma.SortOrder
card_id?: Prisma.SortOrder
token?: Prisma.SortOrder
initial_transaction?: Prisma.SortOrder
_count?: Prisma.account_profileCountOrderByAggregateInput
_avg?: Prisma.account_profileAvgOrderByAggregateInput
_max?: Prisma.account_profileMaxOrderByAggregateInput
_min?: Prisma.account_profileMinOrderByAggregateInput
_sum?: Prisma.account_profileSumOrderByAggregateInput
}
export type account_profileScalarWhereWithAggregatesInput = {
AND?: Prisma.account_profileScalarWhereWithAggregatesInput | Prisma.account_profileScalarWhereWithAggregatesInput[]
OR?: Prisma.account_profileScalarWhereWithAggregatesInput[]
NOT?: Prisma.account_profileScalarWhereWithAggregatesInput | Prisma.account_profileScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"account_profile"> | number
account_id?: Prisma.IntWithAggregatesFilter<"account_profile"> | number
profile_id?: Prisma.StringWithAggregatesFilter<"account_profile"> | string
address_id?: Prisma.StringWithAggregatesFilter<"account_profile"> | string
card_id?: Prisma.StringWithAggregatesFilter<"account_profile"> | string
token?: Prisma.StringWithAggregatesFilter<"account_profile"> | string
initial_transaction?: Prisma.StringWithAggregatesFilter<"account_profile"> | string
}
export type account_profileCreateInput = {
account_id: number
profile_id: string
address_id: string
card_id: string
token: string
initial_transaction: string
}
export type account_profileUncheckedCreateInput = {
id?: number
account_id: number
profile_id: string
address_id: string
card_id: string
token: string
initial_transaction: string
}
export type account_profileUpdateInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
profile_id?: Prisma.StringFieldUpdateOperationsInput | string
address_id?: Prisma.StringFieldUpdateOperationsInput | string
card_id?: Prisma.StringFieldUpdateOperationsInput | string
token?: Prisma.StringFieldUpdateOperationsInput | string
initial_transaction?: Prisma.StringFieldUpdateOperationsInput | string
}
export type account_profileUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
profile_id?: Prisma.StringFieldUpdateOperationsInput | string
address_id?: Prisma.StringFieldUpdateOperationsInput | string
card_id?: Prisma.StringFieldUpdateOperationsInput | string
token?: Prisma.StringFieldUpdateOperationsInput | string
initial_transaction?: Prisma.StringFieldUpdateOperationsInput | string
}
export type account_profileCreateManyInput = {
id?: number
account_id: number
profile_id: string
address_id: string
card_id: string
token: string
initial_transaction: string
}
export type account_profileUpdateManyMutationInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
profile_id?: Prisma.StringFieldUpdateOperationsInput | string
address_id?: Prisma.StringFieldUpdateOperationsInput | string
card_id?: Prisma.StringFieldUpdateOperationsInput | string
token?: Prisma.StringFieldUpdateOperationsInput | string
initial_transaction?: Prisma.StringFieldUpdateOperationsInput | string
}
export type account_profileUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
profile_id?: Prisma.StringFieldUpdateOperationsInput | string
address_id?: Prisma.StringFieldUpdateOperationsInput | string
card_id?: Prisma.StringFieldUpdateOperationsInput | string
token?: Prisma.StringFieldUpdateOperationsInput | string
initial_transaction?: Prisma.StringFieldUpdateOperationsInput | string
}
export type account_profileOrderByRelevanceInput = {
fields: Prisma.account_profileOrderByRelevanceFieldEnum | Prisma.account_profileOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type account_profileCountOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
profile_id?: Prisma.SortOrder
address_id?: Prisma.SortOrder
card_id?: Prisma.SortOrder
token?: Prisma.SortOrder
initial_transaction?: Prisma.SortOrder
}
export type account_profileAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
}
export type account_profileMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
profile_id?: Prisma.SortOrder
address_id?: Prisma.SortOrder
card_id?: Prisma.SortOrder
token?: Prisma.SortOrder
initial_transaction?: Prisma.SortOrder
}
export type account_profileMinOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
profile_id?: Prisma.SortOrder
address_id?: Prisma.SortOrder
card_id?: Prisma.SortOrder
token?: Prisma.SortOrder
initial_transaction?: Prisma.SortOrder
}
export type account_profileSumOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
}
export type account_profileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
account_id?: boolean
profile_id?: boolean
address_id?: boolean
card_id?: boolean
token?: boolean
initial_transaction?: boolean
}, ExtArgs["result"]["account_profile"]>
export type account_profileSelectScalar = {
id?: boolean
account_id?: boolean
profile_id?: boolean
address_id?: boolean
card_id?: boolean
token?: boolean
initial_transaction?: boolean
}
export type account_profileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "profile_id" | "address_id" | "card_id" | "token" | "initial_transaction", ExtArgs["result"]["account_profile"]>
export type $account_profilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "account_profile"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
account_id: number
profile_id: string
address_id: string
card_id: string
token: string
initial_transaction: string
}, ExtArgs["result"]["account_profile"]>
composites: {}
}
export type account_profileGetPayload<S extends boolean | null | undefined | account_profileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$account_profilePayload, S>
export type account_profileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<account_profileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Account_profileCountAggregateInputType | true
}
export interface account_profileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['account_profile'], meta: { name: 'account_profile' } }
/**
* Find zero or one Account_profile that matches the filter.
* @param {account_profileFindUniqueArgs} args - Arguments to find a Account_profile
* @example
* // Get one Account_profile
* const account_profile = await prisma.account_profile.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends account_profileFindUniqueArgs>(args: Prisma.SelectSubset<T, account_profileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__account_profileClient<runtime.Types.Result.GetResult<Prisma.$account_profilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Account_profile that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {account_profileFindUniqueOrThrowArgs} args - Arguments to find a Account_profile
* @example
* // Get one Account_profile
* const account_profile = await prisma.account_profile.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends account_profileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, account_profileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__account_profileClient<runtime.Types.Result.GetResult<Prisma.$account_profilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Account_profile 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 {account_profileFindFirstArgs} args - Arguments to find a Account_profile
* @example
* // Get one Account_profile
* const account_profile = await prisma.account_profile.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends account_profileFindFirstArgs>(args?: Prisma.SelectSubset<T, account_profileFindFirstArgs<ExtArgs>>): Prisma.Prisma__account_profileClient<runtime.Types.Result.GetResult<Prisma.$account_profilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Account_profile 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 {account_profileFindFirstOrThrowArgs} args - Arguments to find a Account_profile
* @example
* // Get one Account_profile
* const account_profile = await prisma.account_profile.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends account_profileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, account_profileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__account_profileClient<runtime.Types.Result.GetResult<Prisma.$account_profilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Account_profiles 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 {account_profileFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Account_profiles
* const account_profiles = await prisma.account_profile.findMany()
*
* // Get first 10 Account_profiles
* const account_profiles = await prisma.account_profile.findMany({ take: 10 })
*
* // Only select the `id`
* const account_profileWithIdOnly = await prisma.account_profile.findMany({ select: { id: true } })
*
*/
findMany<T extends account_profileFindManyArgs>(args?: Prisma.SelectSubset<T, account_profileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$account_profilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Account_profile.
* @param {account_profileCreateArgs} args - Arguments to create a Account_profile.
* @example
* // Create one Account_profile
* const Account_profile = await prisma.account_profile.create({
* data: {
* // ... data to create a Account_profile
* }
* })
*
*/
create<T extends account_profileCreateArgs>(args: Prisma.SelectSubset<T, account_profileCreateArgs<ExtArgs>>): Prisma.Prisma__account_profileClient<runtime.Types.Result.GetResult<Prisma.$account_profilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Account_profiles.
* @param {account_profileCreateManyArgs} args - Arguments to create many Account_profiles.
* @example
* // Create many Account_profiles
* const account_profile = await prisma.account_profile.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends account_profileCreateManyArgs>(args?: Prisma.SelectSubset<T, account_profileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Account_profile.
* @param {account_profileDeleteArgs} args - Arguments to delete one Account_profile.
* @example
* // Delete one Account_profile
* const Account_profile = await prisma.account_profile.delete({
* where: {
* // ... filter to delete one Account_profile
* }
* })
*
*/
delete<T extends account_profileDeleteArgs>(args: Prisma.SelectSubset<T, account_profileDeleteArgs<ExtArgs>>): Prisma.Prisma__account_profileClient<runtime.Types.Result.GetResult<Prisma.$account_profilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Account_profile.
* @param {account_profileUpdateArgs} args - Arguments to update one Account_profile.
* @example
* // Update one Account_profile
* const account_profile = await prisma.account_profile.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends account_profileUpdateArgs>(args: Prisma.SelectSubset<T, account_profileUpdateArgs<ExtArgs>>): Prisma.Prisma__account_profileClient<runtime.Types.Result.GetResult<Prisma.$account_profilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Account_profiles.
* @param {account_profileDeleteManyArgs} args - Arguments to filter Account_profiles to delete.
* @example
* // Delete a few Account_profiles
* const { count } = await prisma.account_profile.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends account_profileDeleteManyArgs>(args?: Prisma.SelectSubset<T, account_profileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Account_profiles.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {account_profileUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Account_profiles
* const account_profile = await prisma.account_profile.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends account_profileUpdateManyArgs>(args: Prisma.SelectSubset<T, account_profileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Account_profile.
* @param {account_profileUpsertArgs} args - Arguments to update or create a Account_profile.
* @example
* // Update or create a Account_profile
* const account_profile = await prisma.account_profile.upsert({
* create: {
* // ... data to create a Account_profile
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Account_profile we want to update
* }
* })
*/
upsert<T extends account_profileUpsertArgs>(args: Prisma.SelectSubset<T, account_profileUpsertArgs<ExtArgs>>): Prisma.Prisma__account_profileClient<runtime.Types.Result.GetResult<Prisma.$account_profilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Account_profiles.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {account_profileCountArgs} args - Arguments to filter Account_profiles to count.
* @example
* // Count the number of Account_profiles
* const count = await prisma.account_profile.count({
* where: {
* // ... the filter for the Account_profiles we want to count
* }
* })
**/
count<T extends account_profileCountArgs>(
args?: Prisma.Subset<T, account_profileCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Account_profileCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Account_profile.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Account_profileAggregateArgs} 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 Account_profileAggregateArgs>(args: Prisma.Subset<T, Account_profileAggregateArgs>): Prisma.PrismaPromise<GetAccount_profileAggregateType<T>>
/**
* Group by Account_profile.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {account_profileGroupByArgs} 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 account_profileGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: account_profileGroupByArgs['orderBy'] }
: { orderBy?: account_profileGroupByArgs['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, account_profileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccount_profileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the account_profile model
*/
readonly fields: account_profileFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for account_profile.
* 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__account_profileClient<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 account_profile model
*/
export interface account_profileFieldRefs {
readonly id: Prisma.FieldRef<"account_profile", 'Int'>
readonly account_id: Prisma.FieldRef<"account_profile", 'Int'>
readonly profile_id: Prisma.FieldRef<"account_profile", 'String'>
readonly address_id: Prisma.FieldRef<"account_profile", 'String'>
readonly card_id: Prisma.FieldRef<"account_profile", 'String'>
readonly token: Prisma.FieldRef<"account_profile", 'String'>
readonly initial_transaction: Prisma.FieldRef<"account_profile", 'String'>
}
// Custom InputTypes
/**
* account_profile findUnique
*/
export type account_profileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
/**
* Filter, which account_profile to fetch.
*/
where: Prisma.account_profileWhereUniqueInput
}
/**
* account_profile findUniqueOrThrow
*/
export type account_profileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
/**
* Filter, which account_profile to fetch.
*/
where: Prisma.account_profileWhereUniqueInput
}
/**
* account_profile findFirst
*/
export type account_profileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
/**
* Filter, which account_profile to fetch.
*/
where?: Prisma.account_profileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of account_profiles to fetch.
*/
orderBy?: Prisma.account_profileOrderByWithRelationInput | Prisma.account_profileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for account_profiles.
*/
cursor?: Prisma.account_profileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` account_profiles 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` account_profiles.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of account_profiles.
*/
distinct?: Prisma.Account_profileScalarFieldEnum | Prisma.Account_profileScalarFieldEnum[]
}
/**
* account_profile findFirstOrThrow
*/
export type account_profileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
/**
* Filter, which account_profile to fetch.
*/
where?: Prisma.account_profileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of account_profiles to fetch.
*/
orderBy?: Prisma.account_profileOrderByWithRelationInput | Prisma.account_profileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for account_profiles.
*/
cursor?: Prisma.account_profileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` account_profiles 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` account_profiles.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of account_profiles.
*/
distinct?: Prisma.Account_profileScalarFieldEnum | Prisma.Account_profileScalarFieldEnum[]
}
/**
* account_profile findMany
*/
export type account_profileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
/**
* Filter, which account_profiles to fetch.
*/
where?: Prisma.account_profileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of account_profiles to fetch.
*/
orderBy?: Prisma.account_profileOrderByWithRelationInput | Prisma.account_profileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing account_profiles.
*/
cursor?: Prisma.account_profileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` account_profiles 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` account_profiles.
*/
skip?: number
distinct?: Prisma.Account_profileScalarFieldEnum | Prisma.Account_profileScalarFieldEnum[]
}
/**
* account_profile create
*/
export type account_profileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
/**
* The data needed to create a account_profile.
*/
data: Prisma.XOR<Prisma.account_profileCreateInput, Prisma.account_profileUncheckedCreateInput>
}
/**
* account_profile createMany
*/
export type account_profileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many account_profiles.
*/
data: Prisma.account_profileCreateManyInput | Prisma.account_profileCreateManyInput[]
skipDuplicates?: boolean
}
/**
* account_profile update
*/
export type account_profileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
/**
* The data needed to update a account_profile.
*/
data: Prisma.XOR<Prisma.account_profileUpdateInput, Prisma.account_profileUncheckedUpdateInput>
/**
* Choose, which account_profile to update.
*/
where: Prisma.account_profileWhereUniqueInput
}
/**
* account_profile updateMany
*/
export type account_profileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update account_profiles.
*/
data: Prisma.XOR<Prisma.account_profileUpdateManyMutationInput, Prisma.account_profileUncheckedUpdateManyInput>
/**
* Filter which account_profiles to update
*/
where?: Prisma.account_profileWhereInput
/**
* Limit how many account_profiles to update.
*/
limit?: number
}
/**
* account_profile upsert
*/
export type account_profileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
/**
* The filter to search for the account_profile to update in case it exists.
*/
where: Prisma.account_profileWhereUniqueInput
/**
* In case the account_profile found by the `where` argument doesn't exist, create a new account_profile with this data.
*/
create: Prisma.XOR<Prisma.account_profileCreateInput, Prisma.account_profileUncheckedCreateInput>
/**
* In case the account_profile was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.account_profileUpdateInput, Prisma.account_profileUncheckedUpdateInput>
}
/**
* account_profile delete
*/
export type account_profileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
/**
* Filter which account_profile to delete.
*/
where: Prisma.account_profileWhereUniqueInput
}
/**
* account_profile deleteMany
*/
export type account_profileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which account_profiles to delete
*/
where?: Prisma.account_profileWhereInput
/**
* Limit how many account_profiles to delete.
*/
limit?: number
}
/**
* account_profile without action
*/
export type account_profileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account_profile
*/
select?: Prisma.account_profileSelect<ExtArgs> | null
/**
* Omit specific fields from the account_profile
*/
omit?: Prisma.account_profileOmit<ExtArgs> | null
}