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

1223 lines
44 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_setup` 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_setup
*
*/
export type compta_setupModel = runtime.Types.Result.DefaultSelection<Prisma.$compta_setupPayload>
export type AggregateCompta_setup = {
_count: Compta_setupCountAggregateOutputType | null
_avg: Compta_setupAvgAggregateOutputType | null
_sum: Compta_setupSumAggregateOutputType | null
_min: Compta_setupMinAggregateOutputType | null
_max: Compta_setupMaxAggregateOutputType | null
}
export type Compta_setupAvgAggregateOutputType = {
setup_id: number | null
period_month: number | null
ppa_id: number | null
excedent_max: number | null
month_closed: number | null
pay_week_closed: number | null
netadmin_dispo: number | null
}
export type Compta_setupSumAggregateOutputType = {
setup_id: number | null
period_month: number | null
ppa_id: number | null
excedent_max: number | null
month_closed: bigint | null
pay_week_closed: number | null
netadmin_dispo: number | null
}
export type Compta_setupMinAggregateOutputType = {
setup_id: number | null
period_month: number | null
ppa_id: number | null
excedent_max: number | null
month_closed: bigint | null
pay_week_closed: number | null
attachment_ext: string | null
netadmin_dispo: number | null
imap_token: string | null
}
export type Compta_setupMaxAggregateOutputType = {
setup_id: number | null
period_month: number | null
ppa_id: number | null
excedent_max: number | null
month_closed: bigint | null
pay_week_closed: number | null
attachment_ext: string | null
netadmin_dispo: number | null
imap_token: string | null
}
export type Compta_setupCountAggregateOutputType = {
setup_id: number
period_month: number
ppa_id: number
excedent_max: number
month_closed: number
pay_week_closed: number
attachment_ext: number
netadmin_dispo: number
imap_token: number
_all: number
}
export type Compta_setupAvgAggregateInputType = {
setup_id?: true
period_month?: true
ppa_id?: true
excedent_max?: true
month_closed?: true
pay_week_closed?: true
netadmin_dispo?: true
}
export type Compta_setupSumAggregateInputType = {
setup_id?: true
period_month?: true
ppa_id?: true
excedent_max?: true
month_closed?: true
pay_week_closed?: true
netadmin_dispo?: true
}
export type Compta_setupMinAggregateInputType = {
setup_id?: true
period_month?: true
ppa_id?: true
excedent_max?: true
month_closed?: true
pay_week_closed?: true
attachment_ext?: true
netadmin_dispo?: true
imap_token?: true
}
export type Compta_setupMaxAggregateInputType = {
setup_id?: true
period_month?: true
ppa_id?: true
excedent_max?: true
month_closed?: true
pay_week_closed?: true
attachment_ext?: true
netadmin_dispo?: true
imap_token?: true
}
export type Compta_setupCountAggregateInputType = {
setup_id?: true
period_month?: true
ppa_id?: true
excedent_max?: true
month_closed?: true
pay_week_closed?: true
attachment_ext?: true
netadmin_dispo?: true
imap_token?: true
_all?: true
}
export type Compta_setupAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which compta_setup to aggregate.
*/
where?: Prisma.compta_setupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of compta_setups to fetch.
*/
orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.compta_setupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` compta_setups 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_setups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned compta_setups
**/
_count?: true | Compta_setupCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Compta_setupAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Compta_setupSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Compta_setupMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Compta_setupMaxAggregateInputType
}
export type GetCompta_setupAggregateType<T extends Compta_setupAggregateArgs> = {
[P in keyof T & keyof AggregateCompta_setup]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateCompta_setup[P]>
: Prisma.GetScalarType<T[P], AggregateCompta_setup[P]>
}
export type compta_setupGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.compta_setupWhereInput
orderBy?: Prisma.compta_setupOrderByWithAggregationInput | Prisma.compta_setupOrderByWithAggregationInput[]
by: Prisma.Compta_setupScalarFieldEnum[] | Prisma.Compta_setupScalarFieldEnum
having?: Prisma.compta_setupScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Compta_setupCountAggregateInputType | true
_avg?: Compta_setupAvgAggregateInputType
_sum?: Compta_setupSumAggregateInputType
_min?: Compta_setupMinAggregateInputType
_max?: Compta_setupMaxAggregateInputType
}
export type Compta_setupGroupByOutputType = {
setup_id: number
period_month: number
ppa_id: number
excedent_max: number
month_closed: bigint | null
pay_week_closed: number
attachment_ext: string
netadmin_dispo: number
imap_token: string | null
_count: Compta_setupCountAggregateOutputType | null
_avg: Compta_setupAvgAggregateOutputType | null
_sum: Compta_setupSumAggregateOutputType | null
_min: Compta_setupMinAggregateOutputType | null
_max: Compta_setupMaxAggregateOutputType | null
}
type GetCompta_setupGroupByPayload<T extends compta_setupGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Compta_setupGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Compta_setupGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Compta_setupGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Compta_setupGroupByOutputType[P]>
}
>
>
export type compta_setupWhereInput = {
AND?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[]
OR?: Prisma.compta_setupWhereInput[]
NOT?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[]
setup_id?: Prisma.IntFilter<"compta_setup"> | number
period_month?: Prisma.IntFilter<"compta_setup"> | number
ppa_id?: Prisma.IntFilter<"compta_setup"> | number
excedent_max?: Prisma.FloatFilter<"compta_setup"> | number
month_closed?: Prisma.BigIntNullableFilter<"compta_setup"> | bigint | number | null
pay_week_closed?: Prisma.IntFilter<"compta_setup"> | number
attachment_ext?: Prisma.StringFilter<"compta_setup"> | string
netadmin_dispo?: Prisma.IntFilter<"compta_setup"> | number
imap_token?: Prisma.StringNullableFilter<"compta_setup"> | string | null
}
export type compta_setupOrderByWithRelationInput = {
setup_id?: Prisma.SortOrder
period_month?: Prisma.SortOrder
ppa_id?: Prisma.SortOrder
excedent_max?: Prisma.SortOrder
month_closed?: Prisma.SortOrderInput | Prisma.SortOrder
pay_week_closed?: Prisma.SortOrder
attachment_ext?: Prisma.SortOrder
netadmin_dispo?: Prisma.SortOrder
imap_token?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.compta_setupOrderByRelevanceInput
}
export type compta_setupWhereUniqueInput = Prisma.AtLeast<{
setup_id?: number
AND?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[]
OR?: Prisma.compta_setupWhereInput[]
NOT?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[]
period_month?: Prisma.IntFilter<"compta_setup"> | number
ppa_id?: Prisma.IntFilter<"compta_setup"> | number
excedent_max?: Prisma.FloatFilter<"compta_setup"> | number
month_closed?: Prisma.BigIntNullableFilter<"compta_setup"> | bigint | number | null
pay_week_closed?: Prisma.IntFilter<"compta_setup"> | number
attachment_ext?: Prisma.StringFilter<"compta_setup"> | string
netadmin_dispo?: Prisma.IntFilter<"compta_setup"> | number
imap_token?: Prisma.StringNullableFilter<"compta_setup"> | string | null
}, "setup_id">
export type compta_setupOrderByWithAggregationInput = {
setup_id?: Prisma.SortOrder
period_month?: Prisma.SortOrder
ppa_id?: Prisma.SortOrder
excedent_max?: Prisma.SortOrder
month_closed?: Prisma.SortOrderInput | Prisma.SortOrder
pay_week_closed?: Prisma.SortOrder
attachment_ext?: Prisma.SortOrder
netadmin_dispo?: Prisma.SortOrder
imap_token?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.compta_setupCountOrderByAggregateInput
_avg?: Prisma.compta_setupAvgOrderByAggregateInput
_max?: Prisma.compta_setupMaxOrderByAggregateInput
_min?: Prisma.compta_setupMinOrderByAggregateInput
_sum?: Prisma.compta_setupSumOrderByAggregateInput
}
export type compta_setupScalarWhereWithAggregatesInput = {
AND?: Prisma.compta_setupScalarWhereWithAggregatesInput | Prisma.compta_setupScalarWhereWithAggregatesInput[]
OR?: Prisma.compta_setupScalarWhereWithAggregatesInput[]
NOT?: Prisma.compta_setupScalarWhereWithAggregatesInput | Prisma.compta_setupScalarWhereWithAggregatesInput[]
setup_id?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number
period_month?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number
ppa_id?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number
excedent_max?: Prisma.FloatWithAggregatesFilter<"compta_setup"> | number
month_closed?: Prisma.BigIntNullableWithAggregatesFilter<"compta_setup"> | bigint | number | null
pay_week_closed?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number
attachment_ext?: Prisma.StringWithAggregatesFilter<"compta_setup"> | string
netadmin_dispo?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number
imap_token?: Prisma.StringNullableWithAggregatesFilter<"compta_setup"> | string | null
}
export type compta_setupCreateInput = {
setup_id?: number
period_month?: number
ppa_id?: number
excedent_max?: number
month_closed?: bigint | number | null
pay_week_closed: number
attachment_ext: string
netadmin_dispo?: number
imap_token?: string | null
}
export type compta_setupUncheckedCreateInput = {
setup_id?: number
period_month?: number
ppa_id?: number
excedent_max?: number
month_closed?: bigint | number | null
pay_week_closed: number
attachment_ext: string
netadmin_dispo?: number
imap_token?: string | null
}
export type compta_setupUpdateInput = {
setup_id?: Prisma.IntFieldUpdateOperationsInput | number
period_month?: Prisma.IntFieldUpdateOperationsInput | number
ppa_id?: Prisma.IntFieldUpdateOperationsInput | number
excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number
month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number
attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string
netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number
imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type compta_setupUncheckedUpdateInput = {
setup_id?: Prisma.IntFieldUpdateOperationsInput | number
period_month?: Prisma.IntFieldUpdateOperationsInput | number
ppa_id?: Prisma.IntFieldUpdateOperationsInput | number
excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number
month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number
attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string
netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number
imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type compta_setupCreateManyInput = {
setup_id?: number
period_month?: number
ppa_id?: number
excedent_max?: number
month_closed?: bigint | number | null
pay_week_closed: number
attachment_ext: string
netadmin_dispo?: number
imap_token?: string | null
}
export type compta_setupUpdateManyMutationInput = {
setup_id?: Prisma.IntFieldUpdateOperationsInput | number
period_month?: Prisma.IntFieldUpdateOperationsInput | number
ppa_id?: Prisma.IntFieldUpdateOperationsInput | number
excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number
month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number
attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string
netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number
imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type compta_setupUncheckedUpdateManyInput = {
setup_id?: Prisma.IntFieldUpdateOperationsInput | number
period_month?: Prisma.IntFieldUpdateOperationsInput | number
ppa_id?: Prisma.IntFieldUpdateOperationsInput | number
excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number
month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number
attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string
netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number
imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type compta_setupOrderByRelevanceInput = {
fields: Prisma.compta_setupOrderByRelevanceFieldEnum | Prisma.compta_setupOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type compta_setupCountOrderByAggregateInput = {
setup_id?: Prisma.SortOrder
period_month?: Prisma.SortOrder
ppa_id?: Prisma.SortOrder
excedent_max?: Prisma.SortOrder
month_closed?: Prisma.SortOrder
pay_week_closed?: Prisma.SortOrder
attachment_ext?: Prisma.SortOrder
netadmin_dispo?: Prisma.SortOrder
imap_token?: Prisma.SortOrder
}
export type compta_setupAvgOrderByAggregateInput = {
setup_id?: Prisma.SortOrder
period_month?: Prisma.SortOrder
ppa_id?: Prisma.SortOrder
excedent_max?: Prisma.SortOrder
month_closed?: Prisma.SortOrder
pay_week_closed?: Prisma.SortOrder
netadmin_dispo?: Prisma.SortOrder
}
export type compta_setupMaxOrderByAggregateInput = {
setup_id?: Prisma.SortOrder
period_month?: Prisma.SortOrder
ppa_id?: Prisma.SortOrder
excedent_max?: Prisma.SortOrder
month_closed?: Prisma.SortOrder
pay_week_closed?: Prisma.SortOrder
attachment_ext?: Prisma.SortOrder
netadmin_dispo?: Prisma.SortOrder
imap_token?: Prisma.SortOrder
}
export type compta_setupMinOrderByAggregateInput = {
setup_id?: Prisma.SortOrder
period_month?: Prisma.SortOrder
ppa_id?: Prisma.SortOrder
excedent_max?: Prisma.SortOrder
month_closed?: Prisma.SortOrder
pay_week_closed?: Prisma.SortOrder
attachment_ext?: Prisma.SortOrder
netadmin_dispo?: Prisma.SortOrder
imap_token?: Prisma.SortOrder
}
export type compta_setupSumOrderByAggregateInput = {
setup_id?: Prisma.SortOrder
period_month?: Prisma.SortOrder
ppa_id?: Prisma.SortOrder
excedent_max?: Prisma.SortOrder
month_closed?: Prisma.SortOrder
pay_week_closed?: Prisma.SortOrder
netadmin_dispo?: Prisma.SortOrder
}
export type compta_setupSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
setup_id?: boolean
period_month?: boolean
ppa_id?: boolean
excedent_max?: boolean
month_closed?: boolean
pay_week_closed?: boolean
attachment_ext?: boolean
netadmin_dispo?: boolean
imap_token?: boolean
}, ExtArgs["result"]["compta_setup"]>
export type compta_setupSelectScalar = {
setup_id?: boolean
period_month?: boolean
ppa_id?: boolean
excedent_max?: boolean
month_closed?: boolean
pay_week_closed?: boolean
attachment_ext?: boolean
netadmin_dispo?: boolean
imap_token?: boolean
}
export type compta_setupOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"setup_id" | "period_month" | "ppa_id" | "excedent_max" | "month_closed" | "pay_week_closed" | "attachment_ext" | "netadmin_dispo" | "imap_token", ExtArgs["result"]["compta_setup"]>
export type $compta_setupPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "compta_setup"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
setup_id: number
period_month: number
ppa_id: number
excedent_max: number
month_closed: bigint | null
pay_week_closed: number
attachment_ext: string
netadmin_dispo: number
imap_token: string | null
}, ExtArgs["result"]["compta_setup"]>
composites: {}
}
export type compta_setupGetPayload<S extends boolean | null | undefined | compta_setupDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$compta_setupPayload, S>
export type compta_setupCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<compta_setupFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Compta_setupCountAggregateInputType | true
}
export interface compta_setupDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['compta_setup'], meta: { name: 'compta_setup' } }
/**
* Find zero or one Compta_setup that matches the filter.
* @param {compta_setupFindUniqueArgs} args - Arguments to find a Compta_setup
* @example
* // Get one Compta_setup
* const compta_setup = await prisma.compta_setup.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends compta_setupFindUniqueArgs>(args: Prisma.SelectSubset<T, compta_setupFindUniqueArgs<ExtArgs>>): Prisma.Prisma__compta_setupClient<runtime.Types.Result.GetResult<Prisma.$compta_setupPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Compta_setup that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {compta_setupFindUniqueOrThrowArgs} args - Arguments to find a Compta_setup
* @example
* // Get one Compta_setup
* const compta_setup = await prisma.compta_setup.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends compta_setupFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, compta_setupFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__compta_setupClient<runtime.Types.Result.GetResult<Prisma.$compta_setupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Compta_setup 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_setupFindFirstArgs} args - Arguments to find a Compta_setup
* @example
* // Get one Compta_setup
* const compta_setup = await prisma.compta_setup.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends compta_setupFindFirstArgs>(args?: Prisma.SelectSubset<T, compta_setupFindFirstArgs<ExtArgs>>): Prisma.Prisma__compta_setupClient<runtime.Types.Result.GetResult<Prisma.$compta_setupPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Compta_setup 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_setupFindFirstOrThrowArgs} args - Arguments to find a Compta_setup
* @example
* // Get one Compta_setup
* const compta_setup = await prisma.compta_setup.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends compta_setupFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, compta_setupFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__compta_setupClient<runtime.Types.Result.GetResult<Prisma.$compta_setupPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Compta_setups 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_setupFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Compta_setups
* const compta_setups = await prisma.compta_setup.findMany()
*
* // Get first 10 Compta_setups
* const compta_setups = await prisma.compta_setup.findMany({ take: 10 })
*
* // Only select the `setup_id`
* const compta_setupWithSetup_idOnly = await prisma.compta_setup.findMany({ select: { setup_id: true } })
*
*/
findMany<T extends compta_setupFindManyArgs>(args?: Prisma.SelectSubset<T, compta_setupFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$compta_setupPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Compta_setup.
* @param {compta_setupCreateArgs} args - Arguments to create a Compta_setup.
* @example
* // Create one Compta_setup
* const Compta_setup = await prisma.compta_setup.create({
* data: {
* // ... data to create a Compta_setup
* }
* })
*
*/
create<T extends compta_setupCreateArgs>(args: Prisma.SelectSubset<T, compta_setupCreateArgs<ExtArgs>>): Prisma.Prisma__compta_setupClient<runtime.Types.Result.GetResult<Prisma.$compta_setupPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Compta_setups.
* @param {compta_setupCreateManyArgs} args - Arguments to create many Compta_setups.
* @example
* // Create many Compta_setups
* const compta_setup = await prisma.compta_setup.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends compta_setupCreateManyArgs>(args?: Prisma.SelectSubset<T, compta_setupCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Compta_setup.
* @param {compta_setupDeleteArgs} args - Arguments to delete one Compta_setup.
* @example
* // Delete one Compta_setup
* const Compta_setup = await prisma.compta_setup.delete({
* where: {
* // ... filter to delete one Compta_setup
* }
* })
*
*/
delete<T extends compta_setupDeleteArgs>(args: Prisma.SelectSubset<T, compta_setupDeleteArgs<ExtArgs>>): Prisma.Prisma__compta_setupClient<runtime.Types.Result.GetResult<Prisma.$compta_setupPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Compta_setup.
* @param {compta_setupUpdateArgs} args - Arguments to update one Compta_setup.
* @example
* // Update one Compta_setup
* const compta_setup = await prisma.compta_setup.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends compta_setupUpdateArgs>(args: Prisma.SelectSubset<T, compta_setupUpdateArgs<ExtArgs>>): Prisma.Prisma__compta_setupClient<runtime.Types.Result.GetResult<Prisma.$compta_setupPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Compta_setups.
* @param {compta_setupDeleteManyArgs} args - Arguments to filter Compta_setups to delete.
* @example
* // Delete a few Compta_setups
* const { count } = await prisma.compta_setup.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends compta_setupDeleteManyArgs>(args?: Prisma.SelectSubset<T, compta_setupDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Compta_setups.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {compta_setupUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Compta_setups
* const compta_setup = await prisma.compta_setup.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends compta_setupUpdateManyArgs>(args: Prisma.SelectSubset<T, compta_setupUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Compta_setup.
* @param {compta_setupUpsertArgs} args - Arguments to update or create a Compta_setup.
* @example
* // Update or create a Compta_setup
* const compta_setup = await prisma.compta_setup.upsert({
* create: {
* // ... data to create a Compta_setup
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Compta_setup we want to update
* }
* })
*/
upsert<T extends compta_setupUpsertArgs>(args: Prisma.SelectSubset<T, compta_setupUpsertArgs<ExtArgs>>): Prisma.Prisma__compta_setupClient<runtime.Types.Result.GetResult<Prisma.$compta_setupPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Compta_setups.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {compta_setupCountArgs} args - Arguments to filter Compta_setups to count.
* @example
* // Count the number of Compta_setups
* const count = await prisma.compta_setup.count({
* where: {
* // ... the filter for the Compta_setups we want to count
* }
* })
**/
count<T extends compta_setupCountArgs>(
args?: Prisma.Subset<T, compta_setupCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Compta_setupCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Compta_setup.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Compta_setupAggregateArgs} 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_setupAggregateArgs>(args: Prisma.Subset<T, Compta_setupAggregateArgs>): Prisma.PrismaPromise<GetCompta_setupAggregateType<T>>
/**
* Group by Compta_setup.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {compta_setupGroupByArgs} 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_setupGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: compta_setupGroupByArgs['orderBy'] }
: { orderBy?: compta_setupGroupByArgs['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_setupGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCompta_setupGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the compta_setup model
*/
readonly fields: compta_setupFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for compta_setup.
* 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_setupClient<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_setup model
*/
export interface compta_setupFieldRefs {
readonly setup_id: Prisma.FieldRef<"compta_setup", 'Int'>
readonly period_month: Prisma.FieldRef<"compta_setup", 'Int'>
readonly ppa_id: Prisma.FieldRef<"compta_setup", 'Int'>
readonly excedent_max: Prisma.FieldRef<"compta_setup", 'Float'>
readonly month_closed: Prisma.FieldRef<"compta_setup", 'BigInt'>
readonly pay_week_closed: Prisma.FieldRef<"compta_setup", 'Int'>
readonly attachment_ext: Prisma.FieldRef<"compta_setup", 'String'>
readonly netadmin_dispo: Prisma.FieldRef<"compta_setup", 'Int'>
readonly imap_token: Prisma.FieldRef<"compta_setup", 'String'>
}
// Custom InputTypes
/**
* compta_setup findUnique
*/
export type compta_setupFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
/**
* Filter, which compta_setup to fetch.
*/
where: Prisma.compta_setupWhereUniqueInput
}
/**
* compta_setup findUniqueOrThrow
*/
export type compta_setupFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
/**
* Filter, which compta_setup to fetch.
*/
where: Prisma.compta_setupWhereUniqueInput
}
/**
* compta_setup findFirst
*/
export type compta_setupFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
/**
* Filter, which compta_setup to fetch.
*/
where?: Prisma.compta_setupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of compta_setups to fetch.
*/
orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for compta_setups.
*/
cursor?: Prisma.compta_setupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` compta_setups 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_setups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of compta_setups.
*/
distinct?: Prisma.Compta_setupScalarFieldEnum | Prisma.Compta_setupScalarFieldEnum[]
}
/**
* compta_setup findFirstOrThrow
*/
export type compta_setupFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
/**
* Filter, which compta_setup to fetch.
*/
where?: Prisma.compta_setupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of compta_setups to fetch.
*/
orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for compta_setups.
*/
cursor?: Prisma.compta_setupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` compta_setups 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_setups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of compta_setups.
*/
distinct?: Prisma.Compta_setupScalarFieldEnum | Prisma.Compta_setupScalarFieldEnum[]
}
/**
* compta_setup findMany
*/
export type compta_setupFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
/**
* Filter, which compta_setups to fetch.
*/
where?: Prisma.compta_setupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of compta_setups to fetch.
*/
orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing compta_setups.
*/
cursor?: Prisma.compta_setupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` compta_setups 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_setups.
*/
skip?: number
distinct?: Prisma.Compta_setupScalarFieldEnum | Prisma.Compta_setupScalarFieldEnum[]
}
/**
* compta_setup create
*/
export type compta_setupCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
/**
* The data needed to create a compta_setup.
*/
data: Prisma.XOR<Prisma.compta_setupCreateInput, Prisma.compta_setupUncheckedCreateInput>
}
/**
* compta_setup createMany
*/
export type compta_setupCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many compta_setups.
*/
data: Prisma.compta_setupCreateManyInput | Prisma.compta_setupCreateManyInput[]
skipDuplicates?: boolean
}
/**
* compta_setup update
*/
export type compta_setupUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
/**
* The data needed to update a compta_setup.
*/
data: Prisma.XOR<Prisma.compta_setupUpdateInput, Prisma.compta_setupUncheckedUpdateInput>
/**
* Choose, which compta_setup to update.
*/
where: Prisma.compta_setupWhereUniqueInput
}
/**
* compta_setup updateMany
*/
export type compta_setupUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update compta_setups.
*/
data: Prisma.XOR<Prisma.compta_setupUpdateManyMutationInput, Prisma.compta_setupUncheckedUpdateManyInput>
/**
* Filter which compta_setups to update
*/
where?: Prisma.compta_setupWhereInput
/**
* Limit how many compta_setups to update.
*/
limit?: number
}
/**
* compta_setup upsert
*/
export type compta_setupUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
/**
* The filter to search for the compta_setup to update in case it exists.
*/
where: Prisma.compta_setupWhereUniqueInput
/**
* In case the compta_setup found by the `where` argument doesn't exist, create a new compta_setup with this data.
*/
create: Prisma.XOR<Prisma.compta_setupCreateInput, Prisma.compta_setupUncheckedCreateInput>
/**
* In case the compta_setup was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.compta_setupUpdateInput, Prisma.compta_setupUncheckedUpdateInput>
}
/**
* compta_setup delete
*/
export type compta_setupDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
/**
* Filter which compta_setup to delete.
*/
where: Prisma.compta_setupWhereUniqueInput
}
/**
* compta_setup deleteMany
*/
export type compta_setupDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which compta_setups to delete
*/
where?: Prisma.compta_setupWhereInput
/**
* Limit how many compta_setups to delete.
*/
limit?: number
}
/**
* compta_setup without action
*/
export type compta_setupDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the compta_setup
*/
select?: Prisma.compta_setupSelect<ExtArgs> | null
/**
* Omit specific fields from the compta_setup
*/
omit?: Prisma.compta_setupOmit<ExtArgs> | null
}