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

1118 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 `carte_temps_periode` 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 carte_temps_periode
*
*/
export type carte_temps_periodeModel = runtime.Types.Result.DefaultSelection<Prisma.$carte_temps_periodePayload>
export type AggregateCarte_temps_periode = {
_count: Carte_temps_periodeCountAggregateOutputType | null
_avg: Carte_temps_periodeAvgAggregateOutputType | null
_sum: Carte_temps_periodeSumAggregateOutputType | null
_min: Carte_temps_periodeMinAggregateOutputType | null
_max: Carte_temps_periodeMaxAggregateOutputType | null
}
export type Carte_temps_periodeAvgAggregateOutputType = {
id: number | null
periode: number | null
annee: number | null
}
export type Carte_temps_periodeSumAggregateOutputType = {
id: number | null
periode: number | null
annee: number | null
}
export type Carte_temps_periodeMinAggregateOutputType = {
id: number | null
debut: string | null
fin: string | null
paid: string | null
periode: number | null
annee: number | null
}
export type Carte_temps_periodeMaxAggregateOutputType = {
id: number | null
debut: string | null
fin: string | null
paid: string | null
periode: number | null
annee: number | null
}
export type Carte_temps_periodeCountAggregateOutputType = {
id: number
debut: number
fin: number
paid: number
periode: number
annee: number
_all: number
}
export type Carte_temps_periodeAvgAggregateInputType = {
id?: true
periode?: true
annee?: true
}
export type Carte_temps_periodeSumAggregateInputType = {
id?: true
periode?: true
annee?: true
}
export type Carte_temps_periodeMinAggregateInputType = {
id?: true
debut?: true
fin?: true
paid?: true
periode?: true
annee?: true
}
export type Carte_temps_periodeMaxAggregateInputType = {
id?: true
debut?: true
fin?: true
paid?: true
periode?: true
annee?: true
}
export type Carte_temps_periodeCountAggregateInputType = {
id?: true
debut?: true
fin?: true
paid?: true
periode?: true
annee?: true
_all?: true
}
export type Carte_temps_periodeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which carte_temps_periode to aggregate.
*/
where?: Prisma.carte_temps_periodeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of carte_temps_periodes to fetch.
*/
orderBy?: Prisma.carte_temps_periodeOrderByWithRelationInput | Prisma.carte_temps_periodeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.carte_temps_periodeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` carte_temps_periodes 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` carte_temps_periodes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned carte_temps_periodes
**/
_count?: true | Carte_temps_periodeCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Carte_temps_periodeAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Carte_temps_periodeSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Carte_temps_periodeMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Carte_temps_periodeMaxAggregateInputType
}
export type GetCarte_temps_periodeAggregateType<T extends Carte_temps_periodeAggregateArgs> = {
[P in keyof T & keyof AggregateCarte_temps_periode]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateCarte_temps_periode[P]>
: Prisma.GetScalarType<T[P], AggregateCarte_temps_periode[P]>
}
export type carte_temps_periodeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.carte_temps_periodeWhereInput
orderBy?: Prisma.carte_temps_periodeOrderByWithAggregationInput | Prisma.carte_temps_periodeOrderByWithAggregationInput[]
by: Prisma.Carte_temps_periodeScalarFieldEnum[] | Prisma.Carte_temps_periodeScalarFieldEnum
having?: Prisma.carte_temps_periodeScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Carte_temps_periodeCountAggregateInputType | true
_avg?: Carte_temps_periodeAvgAggregateInputType
_sum?: Carte_temps_periodeSumAggregateInputType
_min?: Carte_temps_periodeMinAggregateInputType
_max?: Carte_temps_periodeMaxAggregateInputType
}
export type Carte_temps_periodeGroupByOutputType = {
id: number
debut: string
fin: string
paid: string
periode: number
annee: number
_count: Carte_temps_periodeCountAggregateOutputType | null
_avg: Carte_temps_periodeAvgAggregateOutputType | null
_sum: Carte_temps_periodeSumAggregateOutputType | null
_min: Carte_temps_periodeMinAggregateOutputType | null
_max: Carte_temps_periodeMaxAggregateOutputType | null
}
type GetCarte_temps_periodeGroupByPayload<T extends carte_temps_periodeGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Carte_temps_periodeGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Carte_temps_periodeGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Carte_temps_periodeGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Carte_temps_periodeGroupByOutputType[P]>
}
>
>
export type carte_temps_periodeWhereInput = {
AND?: Prisma.carte_temps_periodeWhereInput | Prisma.carte_temps_periodeWhereInput[]
OR?: Prisma.carte_temps_periodeWhereInput[]
NOT?: Prisma.carte_temps_periodeWhereInput | Prisma.carte_temps_periodeWhereInput[]
id?: Prisma.IntFilter<"carte_temps_periode"> | number
debut?: Prisma.StringFilter<"carte_temps_periode"> | string
fin?: Prisma.StringFilter<"carte_temps_periode"> | string
paid?: Prisma.StringFilter<"carte_temps_periode"> | string
periode?: Prisma.IntFilter<"carte_temps_periode"> | number
annee?: Prisma.IntFilter<"carte_temps_periode"> | number
}
export type carte_temps_periodeOrderByWithRelationInput = {
id?: Prisma.SortOrder
debut?: Prisma.SortOrder
fin?: Prisma.SortOrder
paid?: Prisma.SortOrder
periode?: Prisma.SortOrder
annee?: Prisma.SortOrder
_relevance?: Prisma.carte_temps_periodeOrderByRelevanceInput
}
export type carte_temps_periodeWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.carte_temps_periodeWhereInput | Prisma.carte_temps_periodeWhereInput[]
OR?: Prisma.carte_temps_periodeWhereInput[]
NOT?: Prisma.carte_temps_periodeWhereInput | Prisma.carte_temps_periodeWhereInput[]
debut?: Prisma.StringFilter<"carte_temps_periode"> | string
fin?: Prisma.StringFilter<"carte_temps_periode"> | string
paid?: Prisma.StringFilter<"carte_temps_periode"> | string
periode?: Prisma.IntFilter<"carte_temps_periode"> | number
annee?: Prisma.IntFilter<"carte_temps_periode"> | number
}, "id">
export type carte_temps_periodeOrderByWithAggregationInput = {
id?: Prisma.SortOrder
debut?: Prisma.SortOrder
fin?: Prisma.SortOrder
paid?: Prisma.SortOrder
periode?: Prisma.SortOrder
annee?: Prisma.SortOrder
_count?: Prisma.carte_temps_periodeCountOrderByAggregateInput
_avg?: Prisma.carte_temps_periodeAvgOrderByAggregateInput
_max?: Prisma.carte_temps_periodeMaxOrderByAggregateInput
_min?: Prisma.carte_temps_periodeMinOrderByAggregateInput
_sum?: Prisma.carte_temps_periodeSumOrderByAggregateInput
}
export type carte_temps_periodeScalarWhereWithAggregatesInput = {
AND?: Prisma.carte_temps_periodeScalarWhereWithAggregatesInput | Prisma.carte_temps_periodeScalarWhereWithAggregatesInput[]
OR?: Prisma.carte_temps_periodeScalarWhereWithAggregatesInput[]
NOT?: Prisma.carte_temps_periodeScalarWhereWithAggregatesInput | Prisma.carte_temps_periodeScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"carte_temps_periode"> | number
debut?: Prisma.StringWithAggregatesFilter<"carte_temps_periode"> | string
fin?: Prisma.StringWithAggregatesFilter<"carte_temps_periode"> | string
paid?: Prisma.StringWithAggregatesFilter<"carte_temps_periode"> | string
periode?: Prisma.IntWithAggregatesFilter<"carte_temps_periode"> | number
annee?: Prisma.IntWithAggregatesFilter<"carte_temps_periode"> | number
}
export type carte_temps_periodeCreateInput = {
debut: string
fin: string
paid: string
periode: number
annee: number
}
export type carte_temps_periodeUncheckedCreateInput = {
id?: number
debut: string
fin: string
paid: string
periode: number
annee: number
}
export type carte_temps_periodeUpdateInput = {
debut?: Prisma.StringFieldUpdateOperationsInput | string
fin?: Prisma.StringFieldUpdateOperationsInput | string
paid?: Prisma.StringFieldUpdateOperationsInput | string
periode?: Prisma.IntFieldUpdateOperationsInput | number
annee?: Prisma.IntFieldUpdateOperationsInput | number
}
export type carte_temps_periodeUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
debut?: Prisma.StringFieldUpdateOperationsInput | string
fin?: Prisma.StringFieldUpdateOperationsInput | string
paid?: Prisma.StringFieldUpdateOperationsInput | string
periode?: Prisma.IntFieldUpdateOperationsInput | number
annee?: Prisma.IntFieldUpdateOperationsInput | number
}
export type carte_temps_periodeCreateManyInput = {
id?: number
debut: string
fin: string
paid: string
periode: number
annee: number
}
export type carte_temps_periodeUpdateManyMutationInput = {
debut?: Prisma.StringFieldUpdateOperationsInput | string
fin?: Prisma.StringFieldUpdateOperationsInput | string
paid?: Prisma.StringFieldUpdateOperationsInput | string
periode?: Prisma.IntFieldUpdateOperationsInput | number
annee?: Prisma.IntFieldUpdateOperationsInput | number
}
export type carte_temps_periodeUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
debut?: Prisma.StringFieldUpdateOperationsInput | string
fin?: Prisma.StringFieldUpdateOperationsInput | string
paid?: Prisma.StringFieldUpdateOperationsInput | string
periode?: Prisma.IntFieldUpdateOperationsInput | number
annee?: Prisma.IntFieldUpdateOperationsInput | number
}
export type carte_temps_periodeOrderByRelevanceInput = {
fields: Prisma.carte_temps_periodeOrderByRelevanceFieldEnum | Prisma.carte_temps_periodeOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type carte_temps_periodeCountOrderByAggregateInput = {
id?: Prisma.SortOrder
debut?: Prisma.SortOrder
fin?: Prisma.SortOrder
paid?: Prisma.SortOrder
periode?: Prisma.SortOrder
annee?: Prisma.SortOrder
}
export type carte_temps_periodeAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
periode?: Prisma.SortOrder
annee?: Prisma.SortOrder
}
export type carte_temps_periodeMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
debut?: Prisma.SortOrder
fin?: Prisma.SortOrder
paid?: Prisma.SortOrder
periode?: Prisma.SortOrder
annee?: Prisma.SortOrder
}
export type carte_temps_periodeMinOrderByAggregateInput = {
id?: Prisma.SortOrder
debut?: Prisma.SortOrder
fin?: Prisma.SortOrder
paid?: Prisma.SortOrder
periode?: Prisma.SortOrder
annee?: Prisma.SortOrder
}
export type carte_temps_periodeSumOrderByAggregateInput = {
id?: Prisma.SortOrder
periode?: Prisma.SortOrder
annee?: Prisma.SortOrder
}
export type carte_temps_periodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
debut?: boolean
fin?: boolean
paid?: boolean
periode?: boolean
annee?: boolean
}, ExtArgs["result"]["carte_temps_periode"]>
export type carte_temps_periodeSelectScalar = {
id?: boolean
debut?: boolean
fin?: boolean
paid?: boolean
periode?: boolean
annee?: boolean
}
export type carte_temps_periodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "debut" | "fin" | "paid" | "periode" | "annee", ExtArgs["result"]["carte_temps_periode"]>
export type $carte_temps_periodePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "carte_temps_periode"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
debut: string
fin: string
paid: string
periode: number
annee: number
}, ExtArgs["result"]["carte_temps_periode"]>
composites: {}
}
export type carte_temps_periodeGetPayload<S extends boolean | null | undefined | carte_temps_periodeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload, S>
export type carte_temps_periodeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<carte_temps_periodeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Carte_temps_periodeCountAggregateInputType | true
}
export interface carte_temps_periodeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['carte_temps_periode'], meta: { name: 'carte_temps_periode' } }
/**
* Find zero or one Carte_temps_periode that matches the filter.
* @param {carte_temps_periodeFindUniqueArgs} args - Arguments to find a Carte_temps_periode
* @example
* // Get one Carte_temps_periode
* const carte_temps_periode = await prisma.carte_temps_periode.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends carte_temps_periodeFindUniqueArgs>(args: Prisma.SelectSubset<T, carte_temps_periodeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__carte_temps_periodeClient<runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Carte_temps_periode that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {carte_temps_periodeFindUniqueOrThrowArgs} args - Arguments to find a Carte_temps_periode
* @example
* // Get one Carte_temps_periode
* const carte_temps_periode = await prisma.carte_temps_periode.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends carte_temps_periodeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, carte_temps_periodeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__carte_temps_periodeClient<runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Carte_temps_periode 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 {carte_temps_periodeFindFirstArgs} args - Arguments to find a Carte_temps_periode
* @example
* // Get one Carte_temps_periode
* const carte_temps_periode = await prisma.carte_temps_periode.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends carte_temps_periodeFindFirstArgs>(args?: Prisma.SelectSubset<T, carte_temps_periodeFindFirstArgs<ExtArgs>>): Prisma.Prisma__carte_temps_periodeClient<runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Carte_temps_periode 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 {carte_temps_periodeFindFirstOrThrowArgs} args - Arguments to find a Carte_temps_periode
* @example
* // Get one Carte_temps_periode
* const carte_temps_periode = await prisma.carte_temps_periode.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends carte_temps_periodeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, carte_temps_periodeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__carte_temps_periodeClient<runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Carte_temps_periodes 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 {carte_temps_periodeFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Carte_temps_periodes
* const carte_temps_periodes = await prisma.carte_temps_periode.findMany()
*
* // Get first 10 Carte_temps_periodes
* const carte_temps_periodes = await prisma.carte_temps_periode.findMany({ take: 10 })
*
* // Only select the `id`
* const carte_temps_periodeWithIdOnly = await prisma.carte_temps_periode.findMany({ select: { id: true } })
*
*/
findMany<T extends carte_temps_periodeFindManyArgs>(args?: Prisma.SelectSubset<T, carte_temps_periodeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Carte_temps_periode.
* @param {carte_temps_periodeCreateArgs} args - Arguments to create a Carte_temps_periode.
* @example
* // Create one Carte_temps_periode
* const Carte_temps_periode = await prisma.carte_temps_periode.create({
* data: {
* // ... data to create a Carte_temps_periode
* }
* })
*
*/
create<T extends carte_temps_periodeCreateArgs>(args: Prisma.SelectSubset<T, carte_temps_periodeCreateArgs<ExtArgs>>): Prisma.Prisma__carte_temps_periodeClient<runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Carte_temps_periodes.
* @param {carte_temps_periodeCreateManyArgs} args - Arguments to create many Carte_temps_periodes.
* @example
* // Create many Carte_temps_periodes
* const carte_temps_periode = await prisma.carte_temps_periode.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends carte_temps_periodeCreateManyArgs>(args?: Prisma.SelectSubset<T, carte_temps_periodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Carte_temps_periode.
* @param {carte_temps_periodeDeleteArgs} args - Arguments to delete one Carte_temps_periode.
* @example
* // Delete one Carte_temps_periode
* const Carte_temps_periode = await prisma.carte_temps_periode.delete({
* where: {
* // ... filter to delete one Carte_temps_periode
* }
* })
*
*/
delete<T extends carte_temps_periodeDeleteArgs>(args: Prisma.SelectSubset<T, carte_temps_periodeDeleteArgs<ExtArgs>>): Prisma.Prisma__carte_temps_periodeClient<runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Carte_temps_periode.
* @param {carte_temps_periodeUpdateArgs} args - Arguments to update one Carte_temps_periode.
* @example
* // Update one Carte_temps_periode
* const carte_temps_periode = await prisma.carte_temps_periode.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends carte_temps_periodeUpdateArgs>(args: Prisma.SelectSubset<T, carte_temps_periodeUpdateArgs<ExtArgs>>): Prisma.Prisma__carte_temps_periodeClient<runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Carte_temps_periodes.
* @param {carte_temps_periodeDeleteManyArgs} args - Arguments to filter Carte_temps_periodes to delete.
* @example
* // Delete a few Carte_temps_periodes
* const { count } = await prisma.carte_temps_periode.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends carte_temps_periodeDeleteManyArgs>(args?: Prisma.SelectSubset<T, carte_temps_periodeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Carte_temps_periodes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {carte_temps_periodeUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Carte_temps_periodes
* const carte_temps_periode = await prisma.carte_temps_periode.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends carte_temps_periodeUpdateManyArgs>(args: Prisma.SelectSubset<T, carte_temps_periodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Carte_temps_periode.
* @param {carte_temps_periodeUpsertArgs} args - Arguments to update or create a Carte_temps_periode.
* @example
* // Update or create a Carte_temps_periode
* const carte_temps_periode = await prisma.carte_temps_periode.upsert({
* create: {
* // ... data to create a Carte_temps_periode
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Carte_temps_periode we want to update
* }
* })
*/
upsert<T extends carte_temps_periodeUpsertArgs>(args: Prisma.SelectSubset<T, carte_temps_periodeUpsertArgs<ExtArgs>>): Prisma.Prisma__carte_temps_periodeClient<runtime.Types.Result.GetResult<Prisma.$carte_temps_periodePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Carte_temps_periodes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {carte_temps_periodeCountArgs} args - Arguments to filter Carte_temps_periodes to count.
* @example
* // Count the number of Carte_temps_periodes
* const count = await prisma.carte_temps_periode.count({
* where: {
* // ... the filter for the Carte_temps_periodes we want to count
* }
* })
**/
count<T extends carte_temps_periodeCountArgs>(
args?: Prisma.Subset<T, carte_temps_periodeCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Carte_temps_periodeCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Carte_temps_periode.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Carte_temps_periodeAggregateArgs} 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 Carte_temps_periodeAggregateArgs>(args: Prisma.Subset<T, Carte_temps_periodeAggregateArgs>): Prisma.PrismaPromise<GetCarte_temps_periodeAggregateType<T>>
/**
* Group by Carte_temps_periode.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {carte_temps_periodeGroupByArgs} 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 carte_temps_periodeGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: carte_temps_periodeGroupByArgs['orderBy'] }
: { orderBy?: carte_temps_periodeGroupByArgs['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, carte_temps_periodeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCarte_temps_periodeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the carte_temps_periode model
*/
readonly fields: carte_temps_periodeFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for carte_temps_periode.
* 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__carte_temps_periodeClient<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 carte_temps_periode model
*/
export interface carte_temps_periodeFieldRefs {
readonly id: Prisma.FieldRef<"carte_temps_periode", 'Int'>
readonly debut: Prisma.FieldRef<"carte_temps_periode", 'String'>
readonly fin: Prisma.FieldRef<"carte_temps_periode", 'String'>
readonly paid: Prisma.FieldRef<"carte_temps_periode", 'String'>
readonly periode: Prisma.FieldRef<"carte_temps_periode", 'Int'>
readonly annee: Prisma.FieldRef<"carte_temps_periode", 'Int'>
}
// Custom InputTypes
/**
* carte_temps_periode findUnique
*/
export type carte_temps_periodeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
/**
* Filter, which carte_temps_periode to fetch.
*/
where: Prisma.carte_temps_periodeWhereUniqueInput
}
/**
* carte_temps_periode findUniqueOrThrow
*/
export type carte_temps_periodeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
/**
* Filter, which carte_temps_periode to fetch.
*/
where: Prisma.carte_temps_periodeWhereUniqueInput
}
/**
* carte_temps_periode findFirst
*/
export type carte_temps_periodeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
/**
* Filter, which carte_temps_periode to fetch.
*/
where?: Prisma.carte_temps_periodeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of carte_temps_periodes to fetch.
*/
orderBy?: Prisma.carte_temps_periodeOrderByWithRelationInput | Prisma.carte_temps_periodeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for carte_temps_periodes.
*/
cursor?: Prisma.carte_temps_periodeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` carte_temps_periodes 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` carte_temps_periodes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of carte_temps_periodes.
*/
distinct?: Prisma.Carte_temps_periodeScalarFieldEnum | Prisma.Carte_temps_periodeScalarFieldEnum[]
}
/**
* carte_temps_periode findFirstOrThrow
*/
export type carte_temps_periodeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
/**
* Filter, which carte_temps_periode to fetch.
*/
where?: Prisma.carte_temps_periodeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of carte_temps_periodes to fetch.
*/
orderBy?: Prisma.carte_temps_periodeOrderByWithRelationInput | Prisma.carte_temps_periodeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for carte_temps_periodes.
*/
cursor?: Prisma.carte_temps_periodeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` carte_temps_periodes 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` carte_temps_periodes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of carte_temps_periodes.
*/
distinct?: Prisma.Carte_temps_periodeScalarFieldEnum | Prisma.Carte_temps_periodeScalarFieldEnum[]
}
/**
* carte_temps_periode findMany
*/
export type carte_temps_periodeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
/**
* Filter, which carte_temps_periodes to fetch.
*/
where?: Prisma.carte_temps_periodeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of carte_temps_periodes to fetch.
*/
orderBy?: Prisma.carte_temps_periodeOrderByWithRelationInput | Prisma.carte_temps_periodeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing carte_temps_periodes.
*/
cursor?: Prisma.carte_temps_periodeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` carte_temps_periodes 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` carte_temps_periodes.
*/
skip?: number
distinct?: Prisma.Carte_temps_periodeScalarFieldEnum | Prisma.Carte_temps_periodeScalarFieldEnum[]
}
/**
* carte_temps_periode create
*/
export type carte_temps_periodeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
/**
* The data needed to create a carte_temps_periode.
*/
data: Prisma.XOR<Prisma.carte_temps_periodeCreateInput, Prisma.carte_temps_periodeUncheckedCreateInput>
}
/**
* carte_temps_periode createMany
*/
export type carte_temps_periodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many carte_temps_periodes.
*/
data: Prisma.carte_temps_periodeCreateManyInput | Prisma.carte_temps_periodeCreateManyInput[]
skipDuplicates?: boolean
}
/**
* carte_temps_periode update
*/
export type carte_temps_periodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
/**
* The data needed to update a carte_temps_periode.
*/
data: Prisma.XOR<Prisma.carte_temps_periodeUpdateInput, Prisma.carte_temps_periodeUncheckedUpdateInput>
/**
* Choose, which carte_temps_periode to update.
*/
where: Prisma.carte_temps_periodeWhereUniqueInput
}
/**
* carte_temps_periode updateMany
*/
export type carte_temps_periodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update carte_temps_periodes.
*/
data: Prisma.XOR<Prisma.carte_temps_periodeUpdateManyMutationInput, Prisma.carte_temps_periodeUncheckedUpdateManyInput>
/**
* Filter which carte_temps_periodes to update
*/
where?: Prisma.carte_temps_periodeWhereInput
/**
* Limit how many carte_temps_periodes to update.
*/
limit?: number
}
/**
* carte_temps_periode upsert
*/
export type carte_temps_periodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
/**
* The filter to search for the carte_temps_periode to update in case it exists.
*/
where: Prisma.carte_temps_periodeWhereUniqueInput
/**
* In case the carte_temps_periode found by the `where` argument doesn't exist, create a new carte_temps_periode with this data.
*/
create: Prisma.XOR<Prisma.carte_temps_periodeCreateInput, Prisma.carte_temps_periodeUncheckedCreateInput>
/**
* In case the carte_temps_periode was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.carte_temps_periodeUpdateInput, Prisma.carte_temps_periodeUncheckedUpdateInput>
}
/**
* carte_temps_periode delete
*/
export type carte_temps_periodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
/**
* Filter which carte_temps_periode to delete.
*/
where: Prisma.carte_temps_periodeWhereUniqueInput
}
/**
* carte_temps_periode deleteMany
*/
export type carte_temps_periodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which carte_temps_periodes to delete
*/
where?: Prisma.carte_temps_periodeWhereInput
/**
* Limit how many carte_temps_periodes to delete.
*/
limit?: number
}
/**
* carte_temps_periode without action
*/
export type carte_temps_periodeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the carte_temps_periode
*/
select?: Prisma.carte_temps_periodeSelect<ExtArgs> | null
/**
* Omit specific fields from the carte_temps_periode
*/
omit?: Prisma.carte_temps_periodeOmit<ExtArgs> | null
}