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

1057 lines
38 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 `compta_comptes` 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 compta_comptes
*
*/
export type compta_comptesModel = runtime.Types.Result.DefaultSelection<Prisma.$compta_comptesPayload>
export type AggregateCompta_comptes = {
_count: Compta_comptesCountAggregateOutputType | null
_avg: Compta_comptesAvgAggregateOutputType | null
_sum: Compta_comptesSumAggregateOutputType | null
_min: Compta_comptesMinAggregateOutputType | null
_max: Compta_comptesMaxAggregateOutputType | null
}
export type Compta_comptesAvgAggregateOutputType = {
id: number | null
}
export type Compta_comptesSumAggregateOutputType = {
id: bigint | null
}
export type Compta_comptesMinAggregateOutputType = {
id: bigint | null
category: string | null
num_compte: string | null
desc: string | null
}
export type Compta_comptesMaxAggregateOutputType = {
id: bigint | null
category: string | null
num_compte: string | null
desc: string | null
}
export type Compta_comptesCountAggregateOutputType = {
id: number
category: number
num_compte: number
desc: number
_all: number
}
export type Compta_comptesAvgAggregateInputType = {
id?: true
}
export type Compta_comptesSumAggregateInputType = {
id?: true
}
export type Compta_comptesMinAggregateInputType = {
id?: true
category?: true
num_compte?: true
desc?: true
}
export type Compta_comptesMaxAggregateInputType = {
id?: true
category?: true
num_compte?: true
desc?: true
}
export type Compta_comptesCountAggregateInputType = {
id?: true
category?: true
num_compte?: true
desc?: true
_all?: true
}
export type Compta_comptesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which compta_comptes to aggregate.
*/
where?: Prisma.compta_comptesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of compta_comptes to fetch.
*/
orderBy?: Prisma.compta_comptesOrderByWithRelationInput | Prisma.compta_comptesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.compta_comptesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` compta_comptes 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` compta_comptes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned compta_comptes
**/
_count?: true | Compta_comptesCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Compta_comptesAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Compta_comptesSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Compta_comptesMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Compta_comptesMaxAggregateInputType
}
export type GetCompta_comptesAggregateType<T extends Compta_comptesAggregateArgs> = {
[P in keyof T & keyof AggregateCompta_comptes]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateCompta_comptes[P]>
: Prisma.GetScalarType<T[P], AggregateCompta_comptes[P]>
}
export type compta_comptesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.compta_comptesWhereInput
orderBy?: Prisma.compta_comptesOrderByWithAggregationInput | Prisma.compta_comptesOrderByWithAggregationInput[]
by: Prisma.Compta_comptesScalarFieldEnum[] | Prisma.Compta_comptesScalarFieldEnum
having?: Prisma.compta_comptesScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Compta_comptesCountAggregateInputType | true
_avg?: Compta_comptesAvgAggregateInputType
_sum?: Compta_comptesSumAggregateInputType
_min?: Compta_comptesMinAggregateInputType
_max?: Compta_comptesMaxAggregateInputType
}
export type Compta_comptesGroupByOutputType = {
id: bigint
category: string | null
num_compte: string | null
desc: string | null
_count: Compta_comptesCountAggregateOutputType | null
_avg: Compta_comptesAvgAggregateOutputType | null
_sum: Compta_comptesSumAggregateOutputType | null
_min: Compta_comptesMinAggregateOutputType | null
_max: Compta_comptesMaxAggregateOutputType | null
}
type GetCompta_comptesGroupByPayload<T extends compta_comptesGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Compta_comptesGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Compta_comptesGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Compta_comptesGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Compta_comptesGroupByOutputType[P]>
}
>
>
export type compta_comptesWhereInput = {
AND?: Prisma.compta_comptesWhereInput | Prisma.compta_comptesWhereInput[]
OR?: Prisma.compta_comptesWhereInput[]
NOT?: Prisma.compta_comptesWhereInput | Prisma.compta_comptesWhereInput[]
id?: Prisma.BigIntFilter<"compta_comptes"> | bigint | number
category?: Prisma.StringNullableFilter<"compta_comptes"> | string | null
num_compte?: Prisma.StringNullableFilter<"compta_comptes"> | string | null
desc?: Prisma.StringNullableFilter<"compta_comptes"> | string | null
}
export type compta_comptesOrderByWithRelationInput = {
id?: Prisma.SortOrder
category?: Prisma.SortOrderInput | Prisma.SortOrder
num_compte?: Prisma.SortOrderInput | Prisma.SortOrder
desc?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.compta_comptesOrderByRelevanceInput
}
export type compta_comptesWhereUniqueInput = Prisma.AtLeast<{
id?: bigint | number
AND?: Prisma.compta_comptesWhereInput | Prisma.compta_comptesWhereInput[]
OR?: Prisma.compta_comptesWhereInput[]
NOT?: Prisma.compta_comptesWhereInput | Prisma.compta_comptesWhereInput[]
category?: Prisma.StringNullableFilter<"compta_comptes"> | string | null
num_compte?: Prisma.StringNullableFilter<"compta_comptes"> | string | null
desc?: Prisma.StringNullableFilter<"compta_comptes"> | string | null
}, "id">
export type compta_comptesOrderByWithAggregationInput = {
id?: Prisma.SortOrder
category?: Prisma.SortOrderInput | Prisma.SortOrder
num_compte?: Prisma.SortOrderInput | Prisma.SortOrder
desc?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.compta_comptesCountOrderByAggregateInput
_avg?: Prisma.compta_comptesAvgOrderByAggregateInput
_max?: Prisma.compta_comptesMaxOrderByAggregateInput
_min?: Prisma.compta_comptesMinOrderByAggregateInput
_sum?: Prisma.compta_comptesSumOrderByAggregateInput
}
export type compta_comptesScalarWhereWithAggregatesInput = {
AND?: Prisma.compta_comptesScalarWhereWithAggregatesInput | Prisma.compta_comptesScalarWhereWithAggregatesInput[]
OR?: Prisma.compta_comptesScalarWhereWithAggregatesInput[]
NOT?: Prisma.compta_comptesScalarWhereWithAggregatesInput | Prisma.compta_comptesScalarWhereWithAggregatesInput[]
id?: Prisma.BigIntWithAggregatesFilter<"compta_comptes"> | bigint | number
category?: Prisma.StringNullableWithAggregatesFilter<"compta_comptes"> | string | null
num_compte?: Prisma.StringNullableWithAggregatesFilter<"compta_comptes"> | string | null
desc?: Prisma.StringNullableWithAggregatesFilter<"compta_comptes"> | string | null
}
export type compta_comptesCreateInput = {
id?: bigint | number
category?: string | null
num_compte?: string | null
desc?: string | null
}
export type compta_comptesUncheckedCreateInput = {
id?: bigint | number
category?: string | null
num_compte?: string | null
desc?: string | null
}
export type compta_comptesUpdateInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
num_compte?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type compta_comptesUncheckedUpdateInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
num_compte?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type compta_comptesCreateManyInput = {
id?: bigint | number
category?: string | null
num_compte?: string | null
desc?: string | null
}
export type compta_comptesUpdateManyMutationInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
num_compte?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type compta_comptesUncheckedUpdateManyInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
num_compte?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type compta_comptesOrderByRelevanceInput = {
fields: Prisma.compta_comptesOrderByRelevanceFieldEnum | Prisma.compta_comptesOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type compta_comptesCountOrderByAggregateInput = {
id?: Prisma.SortOrder
category?: Prisma.SortOrder
num_compte?: Prisma.SortOrder
desc?: Prisma.SortOrder
}
export type compta_comptesAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type compta_comptesMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
category?: Prisma.SortOrder
num_compte?: Prisma.SortOrder
desc?: Prisma.SortOrder
}
export type compta_comptesMinOrderByAggregateInput = {
id?: Prisma.SortOrder
category?: Prisma.SortOrder
num_compte?: Prisma.SortOrder
desc?: Prisma.SortOrder
}
export type compta_comptesSumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type compta_comptesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
category?: boolean
num_compte?: boolean
desc?: boolean
}, ExtArgs["result"]["compta_comptes"]>
export type compta_comptesSelectScalar = {
id?: boolean
category?: boolean
num_compte?: boolean
desc?: boolean
}
export type compta_comptesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "category" | "num_compte" | "desc", ExtArgs["result"]["compta_comptes"]>
export type $compta_comptesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "compta_comptes"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: bigint
category: string | null
num_compte: string | null
desc: string | null
}, ExtArgs["result"]["compta_comptes"]>
composites: {}
}
export type compta_comptesGetPayload<S extends boolean | null | undefined | compta_comptesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload, S>
export type compta_comptesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<compta_comptesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Compta_comptesCountAggregateInputType | true
}
export interface compta_comptesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['compta_comptes'], meta: { name: 'compta_comptes' } }
/**
* Find zero or one Compta_comptes that matches the filter.
* @param {compta_comptesFindUniqueArgs} args - Arguments to find a Compta_comptes
* @example
* // Get one Compta_comptes
* const compta_comptes = await prisma.compta_comptes.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends compta_comptesFindUniqueArgs>(args: Prisma.SelectSubset<T, compta_comptesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__compta_comptesClient<runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Compta_comptes that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {compta_comptesFindUniqueOrThrowArgs} args - Arguments to find a Compta_comptes
* @example
* // Get one Compta_comptes
* const compta_comptes = await prisma.compta_comptes.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends compta_comptesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, compta_comptesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__compta_comptesClient<runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Compta_comptes 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 {compta_comptesFindFirstArgs} args - Arguments to find a Compta_comptes
* @example
* // Get one Compta_comptes
* const compta_comptes = await prisma.compta_comptes.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends compta_comptesFindFirstArgs>(args?: Prisma.SelectSubset<T, compta_comptesFindFirstArgs<ExtArgs>>): Prisma.Prisma__compta_comptesClient<runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Compta_comptes 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 {compta_comptesFindFirstOrThrowArgs} args - Arguments to find a Compta_comptes
* @example
* // Get one Compta_comptes
* const compta_comptes = await prisma.compta_comptes.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends compta_comptesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, compta_comptesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__compta_comptesClient<runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Compta_comptes 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 {compta_comptesFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Compta_comptes
* const compta_comptes = await prisma.compta_comptes.findMany()
*
* // Get first 10 Compta_comptes
* const compta_comptes = await prisma.compta_comptes.findMany({ take: 10 })
*
* // Only select the `id`
* const compta_comptesWithIdOnly = await prisma.compta_comptes.findMany({ select: { id: true } })
*
*/
findMany<T extends compta_comptesFindManyArgs>(args?: Prisma.SelectSubset<T, compta_comptesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Compta_comptes.
* @param {compta_comptesCreateArgs} args - Arguments to create a Compta_comptes.
* @example
* // Create one Compta_comptes
* const Compta_comptes = await prisma.compta_comptes.create({
* data: {
* // ... data to create a Compta_comptes
* }
* })
*
*/
create<T extends compta_comptesCreateArgs>(args: Prisma.SelectSubset<T, compta_comptesCreateArgs<ExtArgs>>): Prisma.Prisma__compta_comptesClient<runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Compta_comptes.
* @param {compta_comptesCreateManyArgs} args - Arguments to create many Compta_comptes.
* @example
* // Create many Compta_comptes
* const compta_comptes = await prisma.compta_comptes.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends compta_comptesCreateManyArgs>(args?: Prisma.SelectSubset<T, compta_comptesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Compta_comptes.
* @param {compta_comptesDeleteArgs} args - Arguments to delete one Compta_comptes.
* @example
* // Delete one Compta_comptes
* const Compta_comptes = await prisma.compta_comptes.delete({
* where: {
* // ... filter to delete one Compta_comptes
* }
* })
*
*/
delete<T extends compta_comptesDeleteArgs>(args: Prisma.SelectSubset<T, compta_comptesDeleteArgs<ExtArgs>>): Prisma.Prisma__compta_comptesClient<runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Compta_comptes.
* @param {compta_comptesUpdateArgs} args - Arguments to update one Compta_comptes.
* @example
* // Update one Compta_comptes
* const compta_comptes = await prisma.compta_comptes.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends compta_comptesUpdateArgs>(args: Prisma.SelectSubset<T, compta_comptesUpdateArgs<ExtArgs>>): Prisma.Prisma__compta_comptesClient<runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Compta_comptes.
* @param {compta_comptesDeleteManyArgs} args - Arguments to filter Compta_comptes to delete.
* @example
* // Delete a few Compta_comptes
* const { count } = await prisma.compta_comptes.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends compta_comptesDeleteManyArgs>(args?: Prisma.SelectSubset<T, compta_comptesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Compta_comptes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {compta_comptesUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Compta_comptes
* const compta_comptes = await prisma.compta_comptes.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends compta_comptesUpdateManyArgs>(args: Prisma.SelectSubset<T, compta_comptesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Compta_comptes.
* @param {compta_comptesUpsertArgs} args - Arguments to update or create a Compta_comptes.
* @example
* // Update or create a Compta_comptes
* const compta_comptes = await prisma.compta_comptes.upsert({
* create: {
* // ... data to create a Compta_comptes
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Compta_comptes we want to update
* }
* })
*/
upsert<T extends compta_comptesUpsertArgs>(args: Prisma.SelectSubset<T, compta_comptesUpsertArgs<ExtArgs>>): Prisma.Prisma__compta_comptesClient<runtime.Types.Result.GetResult<Prisma.$compta_comptesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Compta_comptes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {compta_comptesCountArgs} args - Arguments to filter Compta_comptes to count.
* @example
* // Count the number of Compta_comptes
* const count = await prisma.compta_comptes.count({
* where: {
* // ... the filter for the Compta_comptes we want to count
* }
* })
**/
count<T extends compta_comptesCountArgs>(
args?: Prisma.Subset<T, compta_comptesCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Compta_comptesCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Compta_comptes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Compta_comptesAggregateArgs} 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 Compta_comptesAggregateArgs>(args: Prisma.Subset<T, Compta_comptesAggregateArgs>): Prisma.PrismaPromise<GetCompta_comptesAggregateType<T>>
/**
* Group by Compta_comptes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {compta_comptesGroupByArgs} 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 compta_comptesGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: compta_comptesGroupByArgs['orderBy'] }
: { orderBy?: compta_comptesGroupByArgs['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, compta_comptesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCompta_comptesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the compta_comptes model
*/
readonly fields: compta_comptesFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for compta_comptes.
* 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__compta_comptesClient<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 compta_comptes model
*/
export interface compta_comptesFieldRefs {
readonly id: Prisma.FieldRef<"compta_comptes", 'BigInt'>
readonly category: Prisma.FieldRef<"compta_comptes", 'String'>
readonly num_compte: Prisma.FieldRef<"compta_comptes", 'String'>
readonly desc: Prisma.FieldRef<"compta_comptes", 'String'>
}
// Custom InputTypes
/**
* compta_comptes findUnique
*/
export type compta_comptesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
/**
* Filter, which compta_comptes to fetch.
*/
where: Prisma.compta_comptesWhereUniqueInput
}
/**
* compta_comptes findUniqueOrThrow
*/
export type compta_comptesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
/**
* Filter, which compta_comptes to fetch.
*/
where: Prisma.compta_comptesWhereUniqueInput
}
/**
* compta_comptes findFirst
*/
export type compta_comptesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
/**
* Filter, which compta_comptes to fetch.
*/
where?: Prisma.compta_comptesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of compta_comptes to fetch.
*/
orderBy?: Prisma.compta_comptesOrderByWithRelationInput | Prisma.compta_comptesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for compta_comptes.
*/
cursor?: Prisma.compta_comptesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` compta_comptes 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` compta_comptes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of compta_comptes.
*/
distinct?: Prisma.Compta_comptesScalarFieldEnum | Prisma.Compta_comptesScalarFieldEnum[]
}
/**
* compta_comptes findFirstOrThrow
*/
export type compta_comptesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
/**
* Filter, which compta_comptes to fetch.
*/
where?: Prisma.compta_comptesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of compta_comptes to fetch.
*/
orderBy?: Prisma.compta_comptesOrderByWithRelationInput | Prisma.compta_comptesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for compta_comptes.
*/
cursor?: Prisma.compta_comptesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` compta_comptes 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` compta_comptes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of compta_comptes.
*/
distinct?: Prisma.Compta_comptesScalarFieldEnum | Prisma.Compta_comptesScalarFieldEnum[]
}
/**
* compta_comptes findMany
*/
export type compta_comptesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
/**
* Filter, which compta_comptes to fetch.
*/
where?: Prisma.compta_comptesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of compta_comptes to fetch.
*/
orderBy?: Prisma.compta_comptesOrderByWithRelationInput | Prisma.compta_comptesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing compta_comptes.
*/
cursor?: Prisma.compta_comptesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` compta_comptes 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` compta_comptes.
*/
skip?: number
distinct?: Prisma.Compta_comptesScalarFieldEnum | Prisma.Compta_comptesScalarFieldEnum[]
}
/**
* compta_comptes create
*/
export type compta_comptesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
/**
* The data needed to create a compta_comptes.
*/
data?: Prisma.XOR<Prisma.compta_comptesCreateInput, Prisma.compta_comptesUncheckedCreateInput>
}
/**
* compta_comptes createMany
*/
export type compta_comptesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many compta_comptes.
*/
data: Prisma.compta_comptesCreateManyInput | Prisma.compta_comptesCreateManyInput[]
skipDuplicates?: boolean
}
/**
* compta_comptes update
*/
export type compta_comptesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
/**
* The data needed to update a compta_comptes.
*/
data: Prisma.XOR<Prisma.compta_comptesUpdateInput, Prisma.compta_comptesUncheckedUpdateInput>
/**
* Choose, which compta_comptes to update.
*/
where: Prisma.compta_comptesWhereUniqueInput
}
/**
* compta_comptes updateMany
*/
export type compta_comptesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update compta_comptes.
*/
data: Prisma.XOR<Prisma.compta_comptesUpdateManyMutationInput, Prisma.compta_comptesUncheckedUpdateManyInput>
/**
* Filter which compta_comptes to update
*/
where?: Prisma.compta_comptesWhereInput
/**
* Limit how many compta_comptes to update.
*/
limit?: number
}
/**
* compta_comptes upsert
*/
export type compta_comptesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
/**
* The filter to search for the compta_comptes to update in case it exists.
*/
where: Prisma.compta_comptesWhereUniqueInput
/**
* In case the compta_comptes found by the `where` argument doesn't exist, create a new compta_comptes with this data.
*/
create: Prisma.XOR<Prisma.compta_comptesCreateInput, Prisma.compta_comptesUncheckedCreateInput>
/**
* In case the compta_comptes was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.compta_comptesUpdateInput, Prisma.compta_comptesUncheckedUpdateInput>
}
/**
* compta_comptes delete
*/
export type compta_comptesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
/**
* Filter which compta_comptes to delete.
*/
where: Prisma.compta_comptesWhereUniqueInput
}
/**
* compta_comptes deleteMany
*/
export type compta_comptesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which compta_comptes to delete
*/
where?: Prisma.compta_comptesWhereInput
/**
* Limit how many compta_comptes to delete.
*/
limit?: number
}
/**
* compta_comptes without action
*/
export type compta_comptesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_comptes
*/
select?: Prisma.compta_comptesSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_comptes
*/
omit?: Prisma.compta_comptesOmit<ExtArgs> | null
}