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

1092 lines
35 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 `gantt` 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 gantt
*
*/
export type ganttModel = runtime.Types.Result.DefaultSelection<Prisma.$ganttPayload>
export type AggregateGantt = {
_count: GanttCountAggregateOutputType | null
_avg: GanttAvgAggregateOutputType | null
_sum: GanttSumAggregateOutputType | null
_min: GanttMinAggregateOutputType | null
_max: GanttMaxAggregateOutputType | null
}
export type GanttAvgAggregateOutputType = {
id: number | null
account_id: number | null
closed: number | null
}
export type GanttSumAggregateOutputType = {
id: number | null
account_id: number | null
closed: number | null
}
export type GanttMinAggregateOutputType = {
id: number | null
account_id: number | null
name: string | null
gantt: string | null
closed: number | null
}
export type GanttMaxAggregateOutputType = {
id: number | null
account_id: number | null
name: string | null
gantt: string | null
closed: number | null
}
export type GanttCountAggregateOutputType = {
id: number
account_id: number
name: number
gantt: number
closed: number
_all: number
}
export type GanttAvgAggregateInputType = {
id?: true
account_id?: true
closed?: true
}
export type GanttSumAggregateInputType = {
id?: true
account_id?: true
closed?: true
}
export type GanttMinAggregateInputType = {
id?: true
account_id?: true
name?: true
gantt?: true
closed?: true
}
export type GanttMaxAggregateInputType = {
id?: true
account_id?: true
name?: true
gantt?: true
closed?: true
}
export type GanttCountAggregateInputType = {
id?: true
account_id?: true
name?: true
gantt?: true
closed?: true
_all?: true
}
export type GanttAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which gantt to aggregate.
*/
where?: Prisma.ganttWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of gantts to fetch.
*/
orderBy?: Prisma.ganttOrderByWithRelationInput | Prisma.ganttOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.ganttWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` gantts 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` gantts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned gantts
**/
_count?: true | GanttCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: GanttAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: GanttSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: GanttMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: GanttMaxAggregateInputType
}
export type GetGanttAggregateType<T extends GanttAggregateArgs> = {
[P in keyof T & keyof AggregateGantt]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateGantt[P]>
: Prisma.GetScalarType<T[P], AggregateGantt[P]>
}
export type ganttGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ganttWhereInput
orderBy?: Prisma.ganttOrderByWithAggregationInput | Prisma.ganttOrderByWithAggregationInput[]
by: Prisma.GanttScalarFieldEnum[] | Prisma.GanttScalarFieldEnum
having?: Prisma.ganttScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: GanttCountAggregateInputType | true
_avg?: GanttAvgAggregateInputType
_sum?: GanttSumAggregateInputType
_min?: GanttMinAggregateInputType
_max?: GanttMaxAggregateInputType
}
export type GanttGroupByOutputType = {
id: number
account_id: number
name: string | null
gantt: string
closed: number
_count: GanttCountAggregateOutputType | null
_avg: GanttAvgAggregateOutputType | null
_sum: GanttSumAggregateOutputType | null
_min: GanttMinAggregateOutputType | null
_max: GanttMaxAggregateOutputType | null
}
type GetGanttGroupByPayload<T extends ganttGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<GanttGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof GanttGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], GanttGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], GanttGroupByOutputType[P]>
}
>
>
export type ganttWhereInput = {
AND?: Prisma.ganttWhereInput | Prisma.ganttWhereInput[]
OR?: Prisma.ganttWhereInput[]
NOT?: Prisma.ganttWhereInput | Prisma.ganttWhereInput[]
id?: Prisma.IntFilter<"gantt"> | number
account_id?: Prisma.IntFilter<"gantt"> | number
name?: Prisma.StringNullableFilter<"gantt"> | string | null
gantt?: Prisma.StringFilter<"gantt"> | string
closed?: Prisma.IntFilter<"gantt"> | number
}
export type ganttOrderByWithRelationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
name?: Prisma.SortOrderInput | Prisma.SortOrder
gantt?: Prisma.SortOrder
closed?: Prisma.SortOrder
_relevance?: Prisma.ganttOrderByRelevanceInput
}
export type ganttWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.ganttWhereInput | Prisma.ganttWhereInput[]
OR?: Prisma.ganttWhereInput[]
NOT?: Prisma.ganttWhereInput | Prisma.ganttWhereInput[]
account_id?: Prisma.IntFilter<"gantt"> | number
name?: Prisma.StringNullableFilter<"gantt"> | string | null
gantt?: Prisma.StringFilter<"gantt"> | string
closed?: Prisma.IntFilter<"gantt"> | number
}, "id">
export type ganttOrderByWithAggregationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
name?: Prisma.SortOrderInput | Prisma.SortOrder
gantt?: Prisma.SortOrder
closed?: Prisma.SortOrder
_count?: Prisma.ganttCountOrderByAggregateInput
_avg?: Prisma.ganttAvgOrderByAggregateInput
_max?: Prisma.ganttMaxOrderByAggregateInput
_min?: Prisma.ganttMinOrderByAggregateInput
_sum?: Prisma.ganttSumOrderByAggregateInput
}
export type ganttScalarWhereWithAggregatesInput = {
AND?: Prisma.ganttScalarWhereWithAggregatesInput | Prisma.ganttScalarWhereWithAggregatesInput[]
OR?: Prisma.ganttScalarWhereWithAggregatesInput[]
NOT?: Prisma.ganttScalarWhereWithAggregatesInput | Prisma.ganttScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"gantt"> | number
account_id?: Prisma.IntWithAggregatesFilter<"gantt"> | number
name?: Prisma.StringNullableWithAggregatesFilter<"gantt"> | string | null
gantt?: Prisma.StringWithAggregatesFilter<"gantt"> | string
closed?: Prisma.IntWithAggregatesFilter<"gantt"> | number
}
export type ganttCreateInput = {
account_id?: number
name?: string | null
gantt: string
closed?: number
}
export type ganttUncheckedCreateInput = {
id?: number
account_id?: number
name?: string | null
gantt: string
closed?: number
}
export type ganttUpdateInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
gantt?: Prisma.StringFieldUpdateOperationsInput | string
closed?: Prisma.IntFieldUpdateOperationsInput | number
}
export type ganttUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
gantt?: Prisma.StringFieldUpdateOperationsInput | string
closed?: Prisma.IntFieldUpdateOperationsInput | number
}
export type ganttCreateManyInput = {
id?: number
account_id?: number
name?: string | null
gantt: string
closed?: number
}
export type ganttUpdateManyMutationInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
gantt?: Prisma.StringFieldUpdateOperationsInput | string
closed?: Prisma.IntFieldUpdateOperationsInput | number
}
export type ganttUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
gantt?: Prisma.StringFieldUpdateOperationsInput | string
closed?: Prisma.IntFieldUpdateOperationsInput | number
}
export type ganttOrderByRelevanceInput = {
fields: Prisma.ganttOrderByRelevanceFieldEnum | Prisma.ganttOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ganttCountOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
name?: Prisma.SortOrder
gantt?: Prisma.SortOrder
closed?: Prisma.SortOrder
}
export type ganttAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
closed?: Prisma.SortOrder
}
export type ganttMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
name?: Prisma.SortOrder
gantt?: Prisma.SortOrder
closed?: Prisma.SortOrder
}
export type ganttMinOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
name?: Prisma.SortOrder
gantt?: Prisma.SortOrder
closed?: Prisma.SortOrder
}
export type ganttSumOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
closed?: Prisma.SortOrder
}
export type ganttSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
account_id?: boolean
name?: boolean
gantt?: boolean
closed?: boolean
}, ExtArgs["result"]["gantt"]>
export type ganttSelectScalar = {
id?: boolean
account_id?: boolean
name?: boolean
gantt?: boolean
closed?: boolean
}
export type ganttOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "name" | "gantt" | "closed", ExtArgs["result"]["gantt"]>
export type $ganttPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "gantt"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
account_id: number
name: string | null
gantt: string
closed: number
}, ExtArgs["result"]["gantt"]>
composites: {}
}
export type ganttGetPayload<S extends boolean | null | undefined | ganttDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ganttPayload, S>
export type ganttCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<ganttFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: GanttCountAggregateInputType | true
}
export interface ganttDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['gantt'], meta: { name: 'gantt' } }
/**
* Find zero or one Gantt that matches the filter.
* @param {ganttFindUniqueArgs} args - Arguments to find a Gantt
* @example
* // Get one Gantt
* const gantt = await prisma.gantt.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ganttFindUniqueArgs>(args: Prisma.SelectSubset<T, ganttFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ganttClient<runtime.Types.Result.GetResult<Prisma.$ganttPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Gantt that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ganttFindUniqueOrThrowArgs} args - Arguments to find a Gantt
* @example
* // Get one Gantt
* const gantt = await prisma.gantt.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ganttFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ganttFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ganttClient<runtime.Types.Result.GetResult<Prisma.$ganttPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Gantt 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 {ganttFindFirstArgs} args - Arguments to find a Gantt
* @example
* // Get one Gantt
* const gantt = await prisma.gantt.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ganttFindFirstArgs>(args?: Prisma.SelectSubset<T, ganttFindFirstArgs<ExtArgs>>): Prisma.Prisma__ganttClient<runtime.Types.Result.GetResult<Prisma.$ganttPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Gantt 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 {ganttFindFirstOrThrowArgs} args - Arguments to find a Gantt
* @example
* // Get one Gantt
* const gantt = await prisma.gantt.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ganttFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ganttFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ganttClient<runtime.Types.Result.GetResult<Prisma.$ganttPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Gantts 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 {ganttFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Gantts
* const gantts = await prisma.gantt.findMany()
*
* // Get first 10 Gantts
* const gantts = await prisma.gantt.findMany({ take: 10 })
*
* // Only select the `id`
* const ganttWithIdOnly = await prisma.gantt.findMany({ select: { id: true } })
*
*/
findMany<T extends ganttFindManyArgs>(args?: Prisma.SelectSubset<T, ganttFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ganttPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Gantt.
* @param {ganttCreateArgs} args - Arguments to create a Gantt.
* @example
* // Create one Gantt
* const Gantt = await prisma.gantt.create({
* data: {
* // ... data to create a Gantt
* }
* })
*
*/
create<T extends ganttCreateArgs>(args: Prisma.SelectSubset<T, ganttCreateArgs<ExtArgs>>): Prisma.Prisma__ganttClient<runtime.Types.Result.GetResult<Prisma.$ganttPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Gantts.
* @param {ganttCreateManyArgs} args - Arguments to create many Gantts.
* @example
* // Create many Gantts
* const gantt = await prisma.gantt.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ganttCreateManyArgs>(args?: Prisma.SelectSubset<T, ganttCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Gantt.
* @param {ganttDeleteArgs} args - Arguments to delete one Gantt.
* @example
* // Delete one Gantt
* const Gantt = await prisma.gantt.delete({
* where: {
* // ... filter to delete one Gantt
* }
* })
*
*/
delete<T extends ganttDeleteArgs>(args: Prisma.SelectSubset<T, ganttDeleteArgs<ExtArgs>>): Prisma.Prisma__ganttClient<runtime.Types.Result.GetResult<Prisma.$ganttPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Gantt.
* @param {ganttUpdateArgs} args - Arguments to update one Gantt.
* @example
* // Update one Gantt
* const gantt = await prisma.gantt.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ganttUpdateArgs>(args: Prisma.SelectSubset<T, ganttUpdateArgs<ExtArgs>>): Prisma.Prisma__ganttClient<runtime.Types.Result.GetResult<Prisma.$ganttPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Gantts.
* @param {ganttDeleteManyArgs} args - Arguments to filter Gantts to delete.
* @example
* // Delete a few Gantts
* const { count } = await prisma.gantt.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ganttDeleteManyArgs>(args?: Prisma.SelectSubset<T, ganttDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Gantts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ganttUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Gantts
* const gantt = await prisma.gantt.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ganttUpdateManyArgs>(args: Prisma.SelectSubset<T, ganttUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Gantt.
* @param {ganttUpsertArgs} args - Arguments to update or create a Gantt.
* @example
* // Update or create a Gantt
* const gantt = await prisma.gantt.upsert({
* create: {
* // ... data to create a Gantt
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Gantt we want to update
* }
* })
*/
upsert<T extends ganttUpsertArgs>(args: Prisma.SelectSubset<T, ganttUpsertArgs<ExtArgs>>): Prisma.Prisma__ganttClient<runtime.Types.Result.GetResult<Prisma.$ganttPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Gantts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ganttCountArgs} args - Arguments to filter Gantts to count.
* @example
* // Count the number of Gantts
* const count = await prisma.gantt.count({
* where: {
* // ... the filter for the Gantts we want to count
* }
* })
**/
count<T extends ganttCountArgs>(
args?: Prisma.Subset<T, ganttCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], GanttCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Gantt.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GanttAggregateArgs} 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 GanttAggregateArgs>(args: Prisma.Subset<T, GanttAggregateArgs>): Prisma.PrismaPromise<GetGanttAggregateType<T>>
/**
* Group by Gantt.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ganttGroupByArgs} 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 ganttGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: ganttGroupByArgs['orderBy'] }
: { orderBy?: ganttGroupByArgs['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, ganttGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGanttGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the gantt model
*/
readonly fields: ganttFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for gantt.
* 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__ganttClient<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 gantt model
*/
export interface ganttFieldRefs {
readonly id: Prisma.FieldRef<"gantt", 'Int'>
readonly account_id: Prisma.FieldRef<"gantt", 'Int'>
readonly name: Prisma.FieldRef<"gantt", 'String'>
readonly gantt: Prisma.FieldRef<"gantt", 'String'>
readonly closed: Prisma.FieldRef<"gantt", 'Int'>
}
// Custom InputTypes
/**
* gantt findUnique
*/
export type ganttFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
/**
* Filter, which gantt to fetch.
*/
where: Prisma.ganttWhereUniqueInput
}
/**
* gantt findUniqueOrThrow
*/
export type ganttFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
/**
* Filter, which gantt to fetch.
*/
where: Prisma.ganttWhereUniqueInput
}
/**
* gantt findFirst
*/
export type ganttFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
/**
* Filter, which gantt to fetch.
*/
where?: Prisma.ganttWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of gantts to fetch.
*/
orderBy?: Prisma.ganttOrderByWithRelationInput | Prisma.ganttOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for gantts.
*/
cursor?: Prisma.ganttWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` gantts 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` gantts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of gantts.
*/
distinct?: Prisma.GanttScalarFieldEnum | Prisma.GanttScalarFieldEnum[]
}
/**
* gantt findFirstOrThrow
*/
export type ganttFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
/**
* Filter, which gantt to fetch.
*/
where?: Prisma.ganttWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of gantts to fetch.
*/
orderBy?: Prisma.ganttOrderByWithRelationInput | Prisma.ganttOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for gantts.
*/
cursor?: Prisma.ganttWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` gantts 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` gantts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of gantts.
*/
distinct?: Prisma.GanttScalarFieldEnum | Prisma.GanttScalarFieldEnum[]
}
/**
* gantt findMany
*/
export type ganttFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
/**
* Filter, which gantts to fetch.
*/
where?: Prisma.ganttWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of gantts to fetch.
*/
orderBy?: Prisma.ganttOrderByWithRelationInput | Prisma.ganttOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing gantts.
*/
cursor?: Prisma.ganttWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` gantts 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` gantts.
*/
skip?: number
distinct?: Prisma.GanttScalarFieldEnum | Prisma.GanttScalarFieldEnum[]
}
/**
* gantt create
*/
export type ganttCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
/**
* The data needed to create a gantt.
*/
data: Prisma.XOR<Prisma.ganttCreateInput, Prisma.ganttUncheckedCreateInput>
}
/**
* gantt createMany
*/
export type ganttCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many gantts.
*/
data: Prisma.ganttCreateManyInput | Prisma.ganttCreateManyInput[]
skipDuplicates?: boolean
}
/**
* gantt update
*/
export type ganttUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
/**
* The data needed to update a gantt.
*/
data: Prisma.XOR<Prisma.ganttUpdateInput, Prisma.ganttUncheckedUpdateInput>
/**
* Choose, which gantt to update.
*/
where: Prisma.ganttWhereUniqueInput
}
/**
* gantt updateMany
*/
export type ganttUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update gantts.
*/
data: Prisma.XOR<Prisma.ganttUpdateManyMutationInput, Prisma.ganttUncheckedUpdateManyInput>
/**
* Filter which gantts to update
*/
where?: Prisma.ganttWhereInput
/**
* Limit how many gantts to update.
*/
limit?: number
}
/**
* gantt upsert
*/
export type ganttUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
/**
* The filter to search for the gantt to update in case it exists.
*/
where: Prisma.ganttWhereUniqueInput
/**
* In case the gantt found by the `where` argument doesn't exist, create a new gantt with this data.
*/
create: Prisma.XOR<Prisma.ganttCreateInput, Prisma.ganttUncheckedCreateInput>
/**
* In case the gantt was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.ganttUpdateInput, Prisma.ganttUncheckedUpdateInput>
}
/**
* gantt delete
*/
export type ganttDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
/**
* Filter which gantt to delete.
*/
where: Prisma.ganttWhereUniqueInput
}
/**
* gantt deleteMany
*/
export type ganttDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which gantts to delete
*/
where?: Prisma.ganttWhereInput
/**
* Limit how many gantts to delete.
*/
limit?: number
}
/**
* gantt without action
*/
export type ganttDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the gantt
*/
select?: Prisma.ganttSelect<ExtArgs> | null
/**
* Omit specific fields from the gantt
*/
omit?: Prisma.ganttOmit<ExtArgs> | null
}