Merge branch 'dev-0.2.1' into dev-0.2

# Conflicts:
#	generated/prisma/internal/class.ts
#	generated/prisma/internal/prismaNamespace.ts
#	generated/prisma/internal/prismaNamespaceBrowser.ts
#	generated/prisma/models/BoardColumn.ts
#	generated/prisma/models/Project.ts
#	generated/prisma/models/ProjectMember.ts
#	generated/prisma/models/Task.ts
#	generated/prisma/models/TaskMember.ts
#	generated/prisma/models/TaskTag.ts
#	generated/prisma/models/User.ts
#	server/routes/projects.js
#	server/routes/tasks.js
#	src/api/task.js
This commit is contained in:
jif2.zhang
2026-10-26 20:46:25 +08:00
95 changed files with 8694 additions and 1609 deletions
+123 -7
View File
@@ -285,7 +285,6 @@ export type AlertOrderByWithRelationInput = {
diff?: Prisma.SortOrder
diffRatio?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
_relevance?: Prisma.AlertOrderByRelevanceInput
}
export type AlertWhereUniqueInput = Prisma.AtLeast<{
@@ -426,12 +425,6 @@ export type AlertUncheckedUpdateManyInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AlertOrderByRelevanceInput = {
fields: Prisma.AlertOrderByRelevanceFieldEnum | Prisma.AlertOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type AlertCountOrderByAggregateInput = {
id?: Prisma.SortOrder
indicatorName?: Prisma.SortOrder
@@ -502,7 +495,31 @@ export type AlertSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
createdAt?: boolean
}, ExtArgs["result"]["alert"]>
export type AlertSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
indicatorName?: boolean
period?: boolean
valueA?: boolean
valueB?: boolean
sourceA?: boolean
sourceB?: boolean
diff?: boolean
diffRatio?: boolean
createdAt?: boolean
}, ExtArgs["result"]["alert"]>
export type AlertSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
indicatorName?: boolean
period?: boolean
valueA?: boolean
valueB?: boolean
sourceA?: boolean
sourceB?: boolean
diff?: boolean
diffRatio?: boolean
createdAt?: boolean
}, ExtArgs["result"]["alert"]>
export type AlertSelectScalar = {
id?: boolean
@@ -650,6 +667,30 @@ export interface AlertDelegate<ExtArgs extends runtime.Types.Extensions.Internal
*/
createMany<T extends AlertCreateManyArgs>(args?: Prisma.SelectSubset<T, AlertCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Alerts and returns the data saved in the database.
* @param {AlertCreateManyAndReturnArgs} args - Arguments to create many Alerts.
* @example
* // Create many Alerts
* const alert = await prisma.alert.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Alerts and only return the `id`
* const alertWithIdOnly = await prisma.alert.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends AlertCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AlertCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Alert.
* @param {AlertDeleteArgs} args - Arguments to delete one Alert.
@@ -714,6 +755,36 @@ export interface AlertDelegate<ExtArgs extends runtime.Types.Extensions.Internal
*/
updateMany<T extends AlertUpdateManyArgs>(args: Prisma.SelectSubset<T, AlertUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Alerts and returns the data updated in the database.
* @param {AlertUpdateManyAndReturnArgs} args - Arguments to update many Alerts.
* @example
* // Update many Alerts
* const alert = await prisma.alert.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Alerts and only return the `id`
* const alertWithIdOnly = await prisma.alert.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends AlertUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AlertUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Alert.
* @param {AlertUpsertArgs} args - Arguments to update or create a Alert.
@@ -1125,6 +1196,25 @@ export type AlertCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
skipDuplicates?: boolean
}
/**
* Alert createManyAndReturn
*/
export type AlertCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Alert
*/
select?: Prisma.AlertSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Alert
*/
omit?: Prisma.AlertOmit<ExtArgs> | null
/**
* The data used to create many Alerts.
*/
data: Prisma.AlertCreateManyInput | Prisma.AlertCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Alert update
*/
@@ -1165,6 +1255,32 @@ export type AlertUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
limit?: number
}
/**
* Alert updateManyAndReturn
*/
export type AlertUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Alert
*/
select?: Prisma.AlertSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Alert
*/
omit?: Prisma.AlertOmit<ExtArgs> | null
/**
* The data used to update Alerts.
*/
data: Prisma.XOR<Prisma.AlertUpdateManyMutationInput, Prisma.AlertUncheckedUpdateManyInput>
/**
* Filter which Alerts to update
*/
where?: Prisma.AlertWhereInput
/**
* Limit how many Alerts to update.
*/
limit?: number
}
/**
* Alert upsert
*/
+117 -7
View File
@@ -242,7 +242,6 @@ export type ArticleOrderByWithRelationInput = {
date?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_relevance?: Prisma.ArticleOrderByRelevanceInput
}
export type ArticleWhereUniqueInput = Prisma.AtLeast<{
@@ -353,12 +352,6 @@ export type ArticleUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ArticleOrderByRelevanceInput = {
fields: Prisma.ArticleOrderByRelevanceFieldEnum | Prisma.ArticleOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ArticleCountOrderByAggregateInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
@@ -409,7 +402,25 @@ export type ArticleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
updatedAt?: boolean
}, ExtArgs["result"]["article"]>
export type ArticleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
title?: boolean
slug?: boolean
content?: boolean
date?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["article"]>
export type ArticleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
title?: boolean
slug?: boolean
content?: boolean
date?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["article"]>
export type ArticleSelectScalar = {
id?: boolean
@@ -551,6 +562,30 @@ export interface ArticleDelegate<ExtArgs extends runtime.Types.Extensions.Intern
*/
createMany<T extends ArticleCreateManyArgs>(args?: Prisma.SelectSubset<T, ArticleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Articles and returns the data saved in the database.
* @param {ArticleCreateManyAndReturnArgs} args - Arguments to create many Articles.
* @example
* // Create many Articles
* const article = await prisma.article.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Articles and only return the `id`
* const articleWithIdOnly = await prisma.article.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ArticleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ArticleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Article.
* @param {ArticleDeleteArgs} args - Arguments to delete one Article.
@@ -615,6 +650,36 @@ export interface ArticleDelegate<ExtArgs extends runtime.Types.Extensions.Intern
*/
updateMany<T extends ArticleUpdateManyArgs>(args: Prisma.SelectSubset<T, ArticleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Articles and returns the data updated in the database.
* @param {ArticleUpdateManyAndReturnArgs} args - Arguments to update many Articles.
* @example
* // Update many Articles
* const article = await prisma.article.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Articles and only return the `id`
* const articleWithIdOnly = await prisma.article.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ArticleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ArticleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Article.
* @param {ArticleUpsertArgs} args - Arguments to update or create a Article.
@@ -1023,6 +1088,25 @@ export type ArticleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
skipDuplicates?: boolean
}
/**
* Article createManyAndReturn
*/
export type ArticleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Article
*/
select?: Prisma.ArticleSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Article
*/
omit?: Prisma.ArticleOmit<ExtArgs> | null
/**
* The data used to create many Articles.
*/
data: Prisma.ArticleCreateManyInput | Prisma.ArticleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Article update
*/
@@ -1063,6 +1147,32 @@ export type ArticleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
limit?: number
}
/**
* Article updateManyAndReturn
*/
export type ArticleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Article
*/
select?: Prisma.ArticleSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Article
*/
omit?: Prisma.ArticleOmit<ExtArgs> | null
/**
* The data used to update Articles.
*/
data: Prisma.XOR<Prisma.ArticleUpdateManyMutationInput, Prisma.ArticleUncheckedUpdateManyInput>
/**
* Filter which Articles to update
*/
where?: Prisma.ArticleWhereInput
/**
* Limit how many Articles to update.
*/
limit?: number
}
/**
* Article upsert
*/
+215 -9
View File
@@ -40,6 +40,8 @@ export type BoardColumnSumAggregateOutputType = {
export type BoardColumnMinAggregateOutputType = {
id: number | null
uuid: string | null
projectUuid: string | null
projectId: number | null
name: string | null
sortOrder: number | null
@@ -51,6 +53,8 @@ export type BoardColumnMinAggregateOutputType = {
export type BoardColumnMaxAggregateOutputType = {
id: number | null
uuid: string | null
projectUuid: string | null
projectId: number | null
name: string | null
sortOrder: number | null
@@ -62,6 +66,8 @@ export type BoardColumnMaxAggregateOutputType = {
export type BoardColumnCountAggregateOutputType = {
id: number
uuid: number
projectUuid: number
projectId: number
name: number
sortOrder: number
@@ -87,6 +93,8 @@ export type BoardColumnSumAggregateInputType = {
export type BoardColumnMinAggregateInputType = {
id?: true
uuid?: true
projectUuid?: true
projectId?: true
name?: true
sortOrder?: true
@@ -98,6 +106,8 @@ export type BoardColumnMinAggregateInputType = {
export type BoardColumnMaxAggregateInputType = {
id?: true
uuid?: true
projectUuid?: true
projectId?: true
name?: true
sortOrder?: true
@@ -109,6 +119,8 @@ export type BoardColumnMaxAggregateInputType = {
export type BoardColumnCountAggregateInputType = {
id?: true
uuid?: true
projectUuid?: true
projectId?: true
name?: true
sortOrder?: true
@@ -207,6 +219,8 @@ export type BoardColumnGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inte
export type BoardColumnGroupByOutputType = {
id: number
uuid: string
projectUuid: string | null
projectId: number
name: string
sortOrder: number
@@ -241,6 +255,8 @@ export type BoardColumnWhereInput = {
OR?: Prisma.BoardColumnWhereInput[]
NOT?: Prisma.BoardColumnWhereInput | Prisma.BoardColumnWhereInput[]
id?: Prisma.IntFilter<"BoardColumn"> | number
uuid?: Prisma.StringFilter<"BoardColumn"> | string
projectUuid?: Prisma.StringNullableFilter<"BoardColumn"> | string | null
projectId?: Prisma.IntFilter<"BoardColumn"> | number
name?: Prisma.StringFilter<"BoardColumn"> | string
sortOrder?: Prisma.IntFilter<"BoardColumn"> | number
@@ -254,6 +270,8 @@ export type BoardColumnWhereInput = {
export type BoardColumnOrderByWithRelationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrderInput | Prisma.SortOrder
projectId?: Prisma.SortOrder
name?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
@@ -263,15 +281,16 @@ export type BoardColumnOrderByWithRelationInput = {
updatedAt?: Prisma.SortOrder
project?: Prisma.ProjectOrderByWithRelationInput
tasks?: Prisma.TaskOrderByRelationAggregateInput
_relevance?: Prisma.BoardColumnOrderByRelevanceInput
}
export type BoardColumnWhereUniqueInput = Prisma.AtLeast<{
id?: number
uuid?: string
projectId_name?: Prisma.BoardColumnProjectIdNameCompoundUniqueInput
AND?: Prisma.BoardColumnWhereInput | Prisma.BoardColumnWhereInput[]
OR?: Prisma.BoardColumnWhereInput[]
NOT?: Prisma.BoardColumnWhereInput | Prisma.BoardColumnWhereInput[]
projectUuid?: Prisma.StringNullableFilter<"BoardColumn"> | string | null
projectId?: Prisma.IntFilter<"BoardColumn"> | number
name?: Prisma.StringFilter<"BoardColumn"> | string
sortOrder?: Prisma.IntFilter<"BoardColumn"> | number
@@ -281,10 +300,12 @@ export type BoardColumnWhereUniqueInput = Prisma.AtLeast<{
updatedAt?: Prisma.DateTimeFilter<"BoardColumn"> | Date | string
project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
tasks?: Prisma.TaskListRelationFilter
}, "id" | "projectId_name">
}, "id" | "uuid" | "projectId_name">
export type BoardColumnOrderByWithAggregationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrderInput | Prisma.SortOrder
projectId?: Prisma.SortOrder
name?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
@@ -304,6 +325,8 @@ export type BoardColumnScalarWhereWithAggregatesInput = {
OR?: Prisma.BoardColumnScalarWhereWithAggregatesInput[]
NOT?: Prisma.BoardColumnScalarWhereWithAggregatesInput | Prisma.BoardColumnScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"BoardColumn"> | number
uuid?: Prisma.StringWithAggregatesFilter<"BoardColumn"> | string
projectUuid?: Prisma.StringNullableWithAggregatesFilter<"BoardColumn"> | string | null
projectId?: Prisma.IntWithAggregatesFilter<"BoardColumn"> | number
name?: Prisma.StringWithAggregatesFilter<"BoardColumn"> | string
sortOrder?: Prisma.IntWithAggregatesFilter<"BoardColumn"> | number
@@ -314,6 +337,8 @@ export type BoardColumnScalarWhereWithAggregatesInput = {
}
export type BoardColumnCreateInput = {
uuid: string
projectUuid?: string | null
name: string
sortOrder?: number
boundStatus?: string | null
@@ -326,6 +351,8 @@ export type BoardColumnCreateInput = {
export type BoardColumnUncheckedCreateInput = {
id?: number
uuid: string
projectUuid?: string | null
projectId: number
name: string
sortOrder?: number
@@ -337,6 +364,8 @@ export type BoardColumnUncheckedCreateInput = {
}
export type BoardColumnUpdateInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
boundStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -349,6 +378,8 @@ export type BoardColumnUpdateInput = {
export type BoardColumnUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
projectId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
@@ -361,6 +392,8 @@ export type BoardColumnUncheckedUpdateInput = {
export type BoardColumnCreateManyInput = {
id?: number
uuid: string
projectUuid?: string | null
projectId: number
name: string
sortOrder?: number
@@ -371,6 +404,8 @@ export type BoardColumnCreateManyInput = {
}
export type BoardColumnUpdateManyMutationInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
boundStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -381,6 +416,8 @@ export type BoardColumnUpdateManyMutationInput = {
export type BoardColumnUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
projectId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
@@ -400,12 +437,6 @@ export type BoardColumnOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type BoardColumnOrderByRelevanceInput = {
fields: Prisma.BoardColumnOrderByRelevanceFieldEnum | Prisma.BoardColumnOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type BoardColumnProjectIdNameCompoundUniqueInput = {
projectId: number
name: string
@@ -413,6 +444,8 @@ export type BoardColumnProjectIdNameCompoundUniqueInput = {
export type BoardColumnCountOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrder
projectId?: Prisma.SortOrder
name?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
@@ -430,6 +463,8 @@ export type BoardColumnAvgOrderByAggregateInput = {
export type BoardColumnMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrder
projectId?: Prisma.SortOrder
name?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
@@ -441,6 +476,8 @@ export type BoardColumnMaxOrderByAggregateInput = {
export type BoardColumnMinOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrder
projectId?: Prisma.SortOrder
name?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
@@ -518,6 +555,8 @@ export type BoardColumnUpdateOneRequiredWithoutTasksNestedInput = {
}
export type BoardColumnCreateWithoutProjectInput = {
uuid: string
projectUuid?: string | null
name: string
sortOrder?: number
boundStatus?: string | null
@@ -529,6 +568,8 @@ export type BoardColumnCreateWithoutProjectInput = {
export type BoardColumnUncheckedCreateWithoutProjectInput = {
id?: number
uuid: string
projectUuid?: string | null
name: string
sortOrder?: number
boundStatus?: string | null
@@ -569,6 +610,8 @@ export type BoardColumnScalarWhereInput = {
OR?: Prisma.BoardColumnScalarWhereInput[]
NOT?: Prisma.BoardColumnScalarWhereInput | Prisma.BoardColumnScalarWhereInput[]
id?: Prisma.IntFilter<"BoardColumn"> | number
uuid?: Prisma.StringFilter<"BoardColumn"> | string
projectUuid?: Prisma.StringNullableFilter<"BoardColumn"> | string | null
projectId?: Prisma.IntFilter<"BoardColumn"> | number
name?: Prisma.StringFilter<"BoardColumn"> | string
sortOrder?: Prisma.IntFilter<"BoardColumn"> | number
@@ -579,6 +622,8 @@ export type BoardColumnScalarWhereInput = {
}
export type BoardColumnCreateWithoutTasksInput = {
uuid: string
projectUuid?: string | null
name: string
sortOrder?: number
boundStatus?: string | null
@@ -590,6 +635,8 @@ export type BoardColumnCreateWithoutTasksInput = {
export type BoardColumnUncheckedCreateWithoutTasksInput = {
id?: number
uuid: string
projectUuid?: string | null
projectId: number
name: string
sortOrder?: number
@@ -616,6 +663,8 @@ export type BoardColumnUpdateToOneWithWhereWithoutTasksInput = {
}
export type BoardColumnUpdateWithoutTasksInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
boundStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -627,6 +676,8 @@ export type BoardColumnUpdateWithoutTasksInput = {
export type BoardColumnUncheckedUpdateWithoutTasksInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
projectId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
@@ -638,6 +689,8 @@ export type BoardColumnUncheckedUpdateWithoutTasksInput = {
export type BoardColumnCreateManyProjectInput = {
id?: number
uuid: string
projectUuid?: string | null
name: string
sortOrder?: number
boundStatus?: string | null
@@ -647,6 +700,8 @@ export type BoardColumnCreateManyProjectInput = {
}
export type BoardColumnUpdateWithoutProjectInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
boundStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -658,6 +713,8 @@ export type BoardColumnUpdateWithoutProjectInput = {
export type BoardColumnUncheckedUpdateWithoutProjectInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
boundStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -669,6 +726,8 @@ export type BoardColumnUncheckedUpdateWithoutProjectInput = {
export type BoardColumnUncheckedUpdateManyWithoutProjectInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
boundStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -710,6 +769,8 @@ export type BoardColumnCountOutputTypeCountTasksArgs<ExtArgs extends runtime.Typ
export type BoardColumnSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
projectUuid?: boolean
projectId?: boolean
name?: boolean
sortOrder?: boolean
@@ -722,10 +783,38 @@ export type BoardColumnSelect<ExtArgs extends runtime.Types.Extensions.InternalA
_count?: boolean | Prisma.BoardColumnCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["boardColumn"]>
export type BoardColumnSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
projectUuid?: boolean
projectId?: boolean
name?: boolean
sortOrder?: boolean
boundStatus?: boolean
retention?: boolean
createdAt?: boolean
updatedAt?: boolean
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
}, ExtArgs["result"]["boardColumn"]>
export type BoardColumnSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
projectUuid?: boolean
projectId?: boolean
name?: boolean
sortOrder?: boolean
boundStatus?: boolean
retention?: boolean
createdAt?: boolean
updatedAt?: boolean
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
}, ExtArgs["result"]["boardColumn"]>
export type BoardColumnSelectScalar = {
id?: boolean
uuid?: boolean
projectUuid?: boolean
projectId?: boolean
name?: boolean
sortOrder?: boolean
@@ -735,12 +824,18 @@ export type BoardColumnSelectScalar = {
updatedAt?: boolean
}
export type BoardColumnOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "projectId" | "name" | "sortOrder" | "boundStatus" | "retention" | "createdAt" | "updatedAt", ExtArgs["result"]["boardColumn"]>
export type BoardColumnOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "projectUuid" | "projectId" | "name" | "sortOrder" | "boundStatus" | "retention" | "createdAt" | "updatedAt", ExtArgs["result"]["boardColumn"]>
export type BoardColumnInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
tasks?: boolean | Prisma.BoardColumn$tasksArgs<ExtArgs>
_count?: boolean | Prisma.BoardColumnCountOutputTypeDefaultArgs<ExtArgs>
}
export type BoardColumnIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
}
export type BoardColumnIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
}
export type $BoardColumnPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "BoardColumn"
@@ -750,6 +845,8 @@ export type $BoardColumnPayload<ExtArgs extends runtime.Types.Extensions.Interna
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
uuid: string
projectUuid: string | null
projectId: number
name: string
sortOrder: number
@@ -874,6 +971,30 @@ export interface BoardColumnDelegate<ExtArgs extends runtime.Types.Extensions.In
*/
createMany<T extends BoardColumnCreateManyArgs>(args?: Prisma.SelectSubset<T, BoardColumnCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many BoardColumns and returns the data saved in the database.
* @param {BoardColumnCreateManyAndReturnArgs} args - Arguments to create many BoardColumns.
* @example
* // Create many BoardColumns
* const boardColumn = await prisma.boardColumn.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many BoardColumns and only return the `id`
* const boardColumnWithIdOnly = await prisma.boardColumn.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends BoardColumnCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, BoardColumnCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BoardColumnPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a BoardColumn.
* @param {BoardColumnDeleteArgs} args - Arguments to delete one BoardColumn.
@@ -938,6 +1059,36 @@ export interface BoardColumnDelegate<ExtArgs extends runtime.Types.Extensions.In
*/
updateMany<T extends BoardColumnUpdateManyArgs>(args: Prisma.SelectSubset<T, BoardColumnUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more BoardColumns and returns the data updated in the database.
* @param {BoardColumnUpdateManyAndReturnArgs} args - Arguments to update many BoardColumns.
* @example
* // Update many BoardColumns
* const boardColumn = await prisma.boardColumn.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more BoardColumns and only return the `id`
* const boardColumnWithIdOnly = await prisma.boardColumn.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends BoardColumnUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, BoardColumnUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BoardColumnPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one BoardColumn.
* @param {BoardColumnUpsertArgs} args - Arguments to update or create a BoardColumn.
@@ -1129,6 +1280,8 @@ export interface Prisma__BoardColumnClient<T, Null = never, ExtArgs extends runt
*/
export interface BoardColumnFieldRefs {
readonly id: Prisma.FieldRef<"BoardColumn", 'Int'>
readonly uuid: Prisma.FieldRef<"BoardColumn", 'String'>
readonly projectUuid: Prisma.FieldRef<"BoardColumn", 'String'>
readonly projectId: Prisma.FieldRef<"BoardColumn", 'Int'>
readonly name: Prisma.FieldRef<"BoardColumn", 'String'>
readonly sortOrder: Prisma.FieldRef<"BoardColumn", 'Int'>
@@ -1373,6 +1526,29 @@ export type BoardColumnCreateManyArgs<ExtArgs extends runtime.Types.Extensions.I
skipDuplicates?: boolean
}
/**
* BoardColumn createManyAndReturn
*/
export type BoardColumnCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the BoardColumn
*/
select?: Prisma.BoardColumnSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the BoardColumn
*/
omit?: Prisma.BoardColumnOmit<ExtArgs> | null
/**
* The data used to create many BoardColumns.
*/
data: Prisma.BoardColumnCreateManyInput | Prisma.BoardColumnCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BoardColumnIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* BoardColumn update
*/
@@ -1417,6 +1593,36 @@ export type BoardColumnUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.I
limit?: number
}
/**
* BoardColumn updateManyAndReturn
*/
export type BoardColumnUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the BoardColumn
*/
select?: Prisma.BoardColumnSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the BoardColumn
*/
omit?: Prisma.BoardColumnOmit<ExtArgs> | null
/**
* The data used to update BoardColumns.
*/
data: Prisma.XOR<Prisma.BoardColumnUpdateManyMutationInput, Prisma.BoardColumnUncheckedUpdateManyInput>
/**
* Filter which BoardColumns to update
*/
where?: Prisma.BoardColumnWhereInput
/**
* Limit how many BoardColumns to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BoardColumnIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* BoardColumn upsert
*/
+139 -7
View File
@@ -267,7 +267,6 @@ export type CheckInOrderByWithRelationInput = {
createdAt?: Prisma.SortOrder
habit?: Prisma.HabitOrderByWithRelationInput
user?: Prisma.UserOrderByWithRelationInput
_relevance?: Prisma.CheckInOrderByRelevanceInput
}
export type CheckInWhereUniqueInput = Prisma.AtLeast<{
@@ -399,12 +398,6 @@ export type CheckInOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type CheckInOrderByRelevanceInput = {
fields: Prisma.CheckInOrderByRelevanceFieldEnum | Prisma.CheckInOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type CheckInHabitIdDateSeqCompoundUniqueInput = {
habitId: number
date: string
@@ -739,7 +732,31 @@ export type CheckInSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["checkIn"]>
export type CheckInSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
habitId?: boolean
userId?: boolean
date?: boolean
seq?: boolean
note?: boolean
source?: boolean
createdAt?: boolean
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["checkIn"]>
export type CheckInSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
habitId?: boolean
userId?: boolean
date?: boolean
seq?: boolean
note?: boolean
source?: boolean
createdAt?: boolean
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["checkIn"]>
export type CheckInSelectScalar = {
id?: boolean
@@ -757,6 +774,14 @@ export type CheckInInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type CheckInIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type CheckInIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type $CheckInPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "CheckIn"
@@ -890,6 +915,30 @@ export interface CheckInDelegate<ExtArgs extends runtime.Types.Extensions.Intern
*/
createMany<T extends CheckInCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckInCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many CheckIns and returns the data saved in the database.
* @param {CheckInCreateManyAndReturnArgs} args - Arguments to create many CheckIns.
* @example
* // Create many CheckIns
* const checkIn = await prisma.checkIn.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many CheckIns and only return the `id`
* const checkInWithIdOnly = await prisma.checkIn.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends CheckInCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckInCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a CheckIn.
* @param {CheckInDeleteArgs} args - Arguments to delete one CheckIn.
@@ -954,6 +1003,36 @@ export interface CheckInDelegate<ExtArgs extends runtime.Types.Extensions.Intern
*/
updateMany<T extends CheckInUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckInUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CheckIns and returns the data updated in the database.
* @param {CheckInUpdateManyAndReturnArgs} args - Arguments to update many CheckIns.
* @example
* // Update many CheckIns
* const checkIn = await prisma.checkIn.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more CheckIns and only return the `id`
* const checkInWithIdOnly = await prisma.checkIn.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends CheckInUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckInUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one CheckIn.
* @param {CheckInUpsertArgs} args - Arguments to update or create a CheckIn.
@@ -1389,6 +1468,29 @@ export type CheckInCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
skipDuplicates?: boolean
}
/**
* CheckIn createManyAndReturn
*/
export type CheckInCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* The data used to create many CheckIns.
*/
data: Prisma.CheckInCreateManyInput | Prisma.CheckInCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* CheckIn update
*/
@@ -1433,6 +1535,36 @@ export type CheckInUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
limit?: number
}
/**
* CheckIn updateManyAndReturn
*/
export type CheckInUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* The data used to update CheckIns.
*/
data: Prisma.XOR<Prisma.CheckInUpdateManyMutationInput, Prisma.CheckInUncheckedUpdateManyInput>
/**
* Filter which CheckIns to update
*/
where?: Prisma.CheckInWhereInput
/**
* Limit how many CheckIns to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* CheckIn upsert
*/
+135 -7
View File
@@ -259,7 +259,6 @@ export type CheckListOrderByWithRelationInput = {
updatedAt?: Prisma.SortOrder
user?: Prisma.UserOrderByWithRelationInput
items?: Prisma.CheckListItemOrderByRelationAggregateInput
_relevance?: Prisma.CheckListOrderByRelevanceInput
}
export type CheckListWhereUniqueInput = Prisma.AtLeast<{
@@ -395,12 +394,6 @@ export type CheckListOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type CheckListOrderByRelevanceInput = {
fields: Prisma.CheckListOrderByRelevanceFieldEnum | Prisma.CheckListOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type CheckListCountOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
@@ -710,7 +703,29 @@ export type CheckListSelect<ExtArgs extends runtime.Types.Extensions.InternalArg
_count?: boolean | Prisma.CheckListCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["checkList"]>
export type CheckListSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
title?: boolean
scene?: boolean
note?: boolean
archived?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["checkList"]>
export type CheckListSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
title?: boolean
scene?: boolean
note?: boolean
archived?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["checkList"]>
export type CheckListSelectScalar = {
id?: boolean
@@ -729,6 +744,12 @@ export type CheckListInclude<ExtArgs extends runtime.Types.Extensions.InternalAr
items?: boolean | Prisma.CheckList$itemsArgs<ExtArgs>
_count?: boolean | Prisma.CheckListCountOutputTypeDefaultArgs<ExtArgs>
}
export type CheckListIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type CheckListIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type $CheckListPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "CheckList"
@@ -862,6 +883,30 @@ export interface CheckListDelegate<ExtArgs extends runtime.Types.Extensions.Inte
*/
createMany<T extends CheckListCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many CheckLists and returns the data saved in the database.
* @param {CheckListCreateManyAndReturnArgs} args - Arguments to create many CheckLists.
* @example
* // Create many CheckLists
* const checkList = await prisma.checkList.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many CheckLists and only return the `id`
* const checkListWithIdOnly = await prisma.checkList.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends CheckListCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckListCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a CheckList.
* @param {CheckListDeleteArgs} args - Arguments to delete one CheckList.
@@ -926,6 +971,36 @@ export interface CheckListDelegate<ExtArgs extends runtime.Types.Extensions.Inte
*/
updateMany<T extends CheckListUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CheckLists and returns the data updated in the database.
* @param {CheckListUpdateManyAndReturnArgs} args - Arguments to update many CheckLists.
* @example
* // Update many CheckLists
* const checkList = await prisma.checkList.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more CheckLists and only return the `id`
* const checkListWithIdOnly = await prisma.checkList.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends CheckListUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckListUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one CheckList.
* @param {CheckListUpsertArgs} args - Arguments to update or create a CheckList.
@@ -1361,6 +1436,29 @@ export type CheckListCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Int
skipDuplicates?: boolean
}
/**
* CheckList createManyAndReturn
*/
export type CheckListCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckList
*/
select?: Prisma.CheckListSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CheckList
*/
omit?: Prisma.CheckListOmit<ExtArgs> | null
/**
* The data used to create many CheckLists.
*/
data: Prisma.CheckListCreateManyInput | Prisma.CheckListCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* CheckList update
*/
@@ -1405,6 +1503,36 @@ export type CheckListUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Int
limit?: number
}
/**
* CheckList updateManyAndReturn
*/
export type CheckListUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckList
*/
select?: Prisma.CheckListSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CheckList
*/
omit?: Prisma.CheckListOmit<ExtArgs> | null
/**
* The data used to update CheckLists.
*/
data: Prisma.XOR<Prisma.CheckListUpdateManyMutationInput, Prisma.CheckListUncheckedUpdateManyInput>
/**
* Filter which CheckLists to update
*/
where?: Prisma.CheckListWhereInput
/**
* Limit how many CheckLists to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* CheckList upsert
*/
+137 -7
View File
@@ -270,7 +270,6 @@ export type CheckListItemOrderByWithRelationInput = {
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
list?: Prisma.CheckListOrderByWithRelationInput
_relevance?: Prisma.CheckListItemOrderByRelevanceInput
}
export type CheckListItemWhereUniqueInput = Prisma.AtLeast<{
@@ -411,12 +410,6 @@ export type CheckListItemOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type CheckListItemOrderByRelevanceInput = {
fields: Prisma.CheckListItemOrderByRelevanceFieldEnum | Prisma.CheckListItemOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type CheckListItemCountOrderByAggregateInput = {
id?: Prisma.SortOrder
listId?: Prisma.SortOrder
@@ -627,7 +620,31 @@ export type CheckListItemSelect<ExtArgs extends runtime.Types.Extensions.Interna
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
}, ExtArgs["result"]["checkListItem"]>
export type CheckListItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
listId?: boolean
title?: boolean
note?: boolean
done?: boolean
doneAt?: boolean
sortOrder?: boolean
createdAt?: boolean
updatedAt?: boolean
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
}, ExtArgs["result"]["checkListItem"]>
export type CheckListItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
listId?: boolean
title?: boolean
note?: boolean
done?: boolean
doneAt?: boolean
sortOrder?: boolean
createdAt?: boolean
updatedAt?: boolean
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
}, ExtArgs["result"]["checkListItem"]>
export type CheckListItemSelectScalar = {
id?: boolean
@@ -645,6 +662,12 @@ export type CheckListItemOmit<ExtArgs extends runtime.Types.Extensions.InternalA
export type CheckListItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
}
export type CheckListItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
}
export type CheckListItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
}
export type $CheckListItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "CheckListItem"
@@ -778,6 +801,30 @@ export interface CheckListItemDelegate<ExtArgs extends runtime.Types.Extensions.
*/
createMany<T extends CheckListItemCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many CheckListItems and returns the data saved in the database.
* @param {CheckListItemCreateManyAndReturnArgs} args - Arguments to create many CheckListItems.
* @example
* // Create many CheckListItems
* const checkListItem = await prisma.checkListItem.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many CheckListItems and only return the `id`
* const checkListItemWithIdOnly = await prisma.checkListItem.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends CheckListItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckListItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a CheckListItem.
* @param {CheckListItemDeleteArgs} args - Arguments to delete one CheckListItem.
@@ -842,6 +889,36 @@ export interface CheckListItemDelegate<ExtArgs extends runtime.Types.Extensions.
*/
updateMany<T extends CheckListItemUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CheckListItems and returns the data updated in the database.
* @param {CheckListItemUpdateManyAndReturnArgs} args - Arguments to update many CheckListItems.
* @example
* // Update many CheckListItems
* const checkListItem = await prisma.checkListItem.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more CheckListItems and only return the `id`
* const checkListItemWithIdOnly = await prisma.checkListItem.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends CheckListItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckListItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one CheckListItem.
* @param {CheckListItemUpsertArgs} args - Arguments to update or create a CheckListItem.
@@ -1277,6 +1354,29 @@ export type CheckListItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions
skipDuplicates?: boolean
}
/**
* CheckListItem createManyAndReturn
*/
export type CheckListItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListItem
*/
select?: Prisma.CheckListItemSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CheckListItem
*/
omit?: Prisma.CheckListItemOmit<ExtArgs> | null
/**
* The data used to create many CheckListItems.
*/
data: Prisma.CheckListItemCreateManyInput | Prisma.CheckListItemCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListItemIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* CheckListItem update
*/
@@ -1321,6 +1421,36 @@ export type CheckListItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions
limit?: number
}
/**
* CheckListItem updateManyAndReturn
*/
export type CheckListItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListItem
*/
select?: Prisma.CheckListItemSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CheckListItem
*/
omit?: Prisma.CheckListItemOmit<ExtArgs> | null
/**
* The data used to update CheckListItems.
*/
data: Prisma.XOR<Prisma.CheckListItemUpdateManyMutationInput, Prisma.CheckListItemUncheckedUpdateManyInput>
/**
* Filter which CheckListItems to update
*/
where?: Prisma.CheckListItemWhereInput
/**
* Limit how many CheckListItems to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListItemIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* CheckListItem upsert
*/
+135 -7
View File
@@ -253,7 +253,6 @@ export type CheckListTemplateOrderByWithRelationInput = {
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
user?: Prisma.UserOrderByWithRelationInput
_relevance?: Prisma.CheckListTemplateOrderByRelevanceInput
}
export type CheckListTemplateWhereUniqueInput = Prisma.AtLeast<{
@@ -384,12 +383,6 @@ export type CheckListTemplateOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type CheckListTemplateOrderByRelevanceInput = {
fields: Prisma.CheckListTemplateOrderByRelevanceFieldEnum | Prisma.CheckListTemplateOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type CheckListTemplateCountOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
@@ -585,7 +578,29 @@ export type CheckListTemplateSelect<ExtArgs extends runtime.Types.Extensions.Int
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
}, ExtArgs["result"]["checkListTemplate"]>
export type CheckListTemplateSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
name?: boolean
scene?: boolean
items?: boolean
builtin?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
}, ExtArgs["result"]["checkListTemplate"]>
export type CheckListTemplateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
name?: boolean
scene?: boolean
items?: boolean
builtin?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
}, ExtArgs["result"]["checkListTemplate"]>
export type CheckListTemplateSelectScalar = {
id?: boolean
@@ -602,6 +617,12 @@ export type CheckListTemplateOmit<ExtArgs extends runtime.Types.Extensions.Inter
export type CheckListTemplateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
}
export type CheckListTemplateIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
}
export type CheckListTemplateIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
}
export type $CheckListTemplatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "CheckListTemplate"
@@ -734,6 +755,30 @@ export interface CheckListTemplateDelegate<ExtArgs extends runtime.Types.Extensi
*/
createMany<T extends CheckListTemplateCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many CheckListTemplates and returns the data saved in the database.
* @param {CheckListTemplateCreateManyAndReturnArgs} args - Arguments to create many CheckListTemplates.
* @example
* // Create many CheckListTemplates
* const checkListTemplate = await prisma.checkListTemplate.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many CheckListTemplates and only return the `id`
* const checkListTemplateWithIdOnly = await prisma.checkListTemplate.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends CheckListTemplateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a CheckListTemplate.
* @param {CheckListTemplateDeleteArgs} args - Arguments to delete one CheckListTemplate.
@@ -798,6 +843,36 @@ export interface CheckListTemplateDelegate<ExtArgs extends runtime.Types.Extensi
*/
updateMany<T extends CheckListTemplateUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CheckListTemplates and returns the data updated in the database.
* @param {CheckListTemplateUpdateManyAndReturnArgs} args - Arguments to update many CheckListTemplates.
* @example
* // Update many CheckListTemplates
* const checkListTemplate = await prisma.checkListTemplate.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more CheckListTemplates and only return the `id`
* const checkListTemplateWithIdOnly = await prisma.checkListTemplate.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends CheckListTemplateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckListTemplateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one CheckListTemplate.
* @param {CheckListTemplateUpsertArgs} args - Arguments to update or create a CheckListTemplate.
@@ -1232,6 +1307,29 @@ export type CheckListTemplateCreateManyArgs<ExtArgs extends runtime.Types.Extens
skipDuplicates?: boolean
}
/**
* CheckListTemplate createManyAndReturn
*/
export type CheckListTemplateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* The data used to create many CheckListTemplates.
*/
data: Prisma.CheckListTemplateCreateManyInput | Prisma.CheckListTemplateCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* CheckListTemplate update
*/
@@ -1276,6 +1374,36 @@ export type CheckListTemplateUpdateManyArgs<ExtArgs extends runtime.Types.Extens
limit?: number
}
/**
* CheckListTemplate updateManyAndReturn
*/
export type CheckListTemplateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* The data used to update CheckListTemplates.
*/
data: Prisma.XOR<Prisma.CheckListTemplateUpdateManyMutationInput, Prisma.CheckListTemplateUncheckedUpdateManyInput>
/**
* Filter which CheckListTemplates to update
*/
where?: Prisma.CheckListTemplateWhereInput
/**
* Limit how many CheckListTemplates to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* CheckListTemplate upsert
*/
+113 -7
View File
@@ -228,7 +228,6 @@ export type Econ_SowInventoryOrderByWithRelationInput = {
inventory?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_relevance?: Prisma.Econ_SowInventoryOrderByRelevanceInput
}
export type Econ_SowInventoryWhereUniqueInput = Prisma.AtLeast<{
@@ -319,12 +318,6 @@ export type Econ_SowInventoryUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type Econ_SowInventoryOrderByRelevanceInput = {
fields: Prisma.Econ_SowInventoryOrderByRelevanceFieldEnum | Prisma.Econ_SowInventoryOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type Econ_SowInventoryCountOrderByAggregateInput = {
id?: Prisma.SortOrder
month?: Prisma.SortOrder
@@ -369,7 +362,21 @@ export type Econ_SowInventorySelect<ExtArgs extends runtime.Types.Extensions.Int
updatedAt?: boolean
}, ExtArgs["result"]["econ_SowInventory"]>
export type Econ_SowInventorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
month?: boolean
inventory?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["econ_SowInventory"]>
export type Econ_SowInventorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
month?: boolean
inventory?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["econ_SowInventory"]>
export type Econ_SowInventorySelectScalar = {
id?: boolean
@@ -507,6 +514,30 @@ export interface Econ_SowInventoryDelegate<ExtArgs extends runtime.Types.Extensi
*/
createMany<T extends Econ_SowInventoryCreateManyArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Econ_SowInventories and returns the data saved in the database.
* @param {Econ_SowInventoryCreateManyAndReturnArgs} args - Arguments to create many Econ_SowInventories.
* @example
* // Create many Econ_SowInventories
* const econ_SowInventory = await prisma.econ_SowInventory.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Econ_SowInventories and only return the `id`
* const econ_SowInventoryWithIdOnly = await prisma.econ_SowInventory.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends Econ_SowInventoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Econ_SowInventory.
* @param {Econ_SowInventoryDeleteArgs} args - Arguments to delete one Econ_SowInventory.
@@ -571,6 +602,36 @@ export interface Econ_SowInventoryDelegate<ExtArgs extends runtime.Types.Extensi
*/
updateMany<T extends Econ_SowInventoryUpdateManyArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Econ_SowInventories and returns the data updated in the database.
* @param {Econ_SowInventoryUpdateManyAndReturnArgs} args - Arguments to update many Econ_SowInventories.
* @example
* // Update many Econ_SowInventories
* const econ_SowInventory = await prisma.econ_SowInventory.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Econ_SowInventories and only return the `id`
* const econ_SowInventoryWithIdOnly = await prisma.econ_SowInventory.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends Econ_SowInventoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Econ_SowInventory.
* @param {Econ_SowInventoryUpsertArgs} args - Arguments to update or create a Econ_SowInventory.
@@ -977,6 +1038,25 @@ export type Econ_SowInventoryCreateManyArgs<ExtArgs extends runtime.Types.Extens
skipDuplicates?: boolean
}
/**
* Econ_SowInventory createManyAndReturn
*/
export type Econ_SowInventoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* The data used to create many Econ_SowInventories.
*/
data: Prisma.Econ_SowInventoryCreateManyInput | Prisma.Econ_SowInventoryCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Econ_SowInventory update
*/
@@ -1017,6 +1097,32 @@ export type Econ_SowInventoryUpdateManyArgs<ExtArgs extends runtime.Types.Extens
limit?: number
}
/**
* Econ_SowInventory updateManyAndReturn
*/
export type Econ_SowInventoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* The data used to update Econ_SowInventories.
*/
data: Prisma.XOR<Prisma.Econ_SowInventoryUpdateManyMutationInput, Prisma.Econ_SowInventoryUncheckedUpdateManyInput>
/**
* Filter which Econ_SowInventories to update
*/
where?: Prisma.Econ_SowInventoryWhereInput
/**
* Limit how many Econ_SowInventories to update.
*/
limit?: number
}
/**
* Econ_SowInventory upsert
*/
+143 -7
View File
@@ -303,7 +303,6 @@ export type HabitOrderByWithRelationInput = {
updatedAt?: Prisma.SortOrder
user?: Prisma.UserOrderByWithRelationInput
records?: Prisma.CheckInOrderByRelationAggregateInput
_relevance?: Prisma.HabitOrderByRelevanceInput
}
export type HabitWhereUniqueInput = Prisma.AtLeast<{
@@ -479,12 +478,6 @@ export type HabitOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type HabitOrderByRelevanceInput = {
fields: Prisma.HabitOrderByRelevanceFieldEnum | Prisma.HabitOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type HabitCountOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
@@ -858,7 +851,37 @@ export type HabitSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
_count?: boolean | Prisma.HabitCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["habit"]>
export type HabitSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
name?: boolean
period?: boolean
target?: boolean
color?: boolean
icon?: boolean
note?: boolean
archived?: boolean
sortOrder?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["habit"]>
export type HabitSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
name?: boolean
period?: boolean
target?: boolean
color?: boolean
icon?: boolean
note?: boolean
archived?: boolean
sortOrder?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["habit"]>
export type HabitSelectScalar = {
id?: boolean
@@ -881,6 +904,12 @@ export type HabitInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
records?: boolean | Prisma.Habit$recordsArgs<ExtArgs>
_count?: boolean | Prisma.HabitCountOutputTypeDefaultArgs<ExtArgs>
}
export type HabitIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type HabitIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type $HabitPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Habit"
@@ -1018,6 +1047,30 @@ export interface HabitDelegate<ExtArgs extends runtime.Types.Extensions.Internal
*/
createMany<T extends HabitCreateManyArgs>(args?: Prisma.SelectSubset<T, HabitCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Habits and returns the data saved in the database.
* @param {HabitCreateManyAndReturnArgs} args - Arguments to create many Habits.
* @example
* // Create many Habits
* const habit = await prisma.habit.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Habits and only return the `id`
* const habitWithIdOnly = await prisma.habit.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends HabitCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HabitCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HabitPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Habit.
* @param {HabitDeleteArgs} args - Arguments to delete one Habit.
@@ -1082,6 +1135,36 @@ export interface HabitDelegate<ExtArgs extends runtime.Types.Extensions.Internal
*/
updateMany<T extends HabitUpdateManyArgs>(args: Prisma.SelectSubset<T, HabitUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Habits and returns the data updated in the database.
* @param {HabitUpdateManyAndReturnArgs} args - Arguments to update many Habits.
* @example
* // Update many Habits
* const habit = await prisma.habit.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Habits and only return the `id`
* const habitWithIdOnly = await prisma.habit.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends HabitUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HabitUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HabitPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Habit.
* @param {HabitUpsertArgs} args - Arguments to update or create a Habit.
@@ -1521,6 +1604,29 @@ export type HabitCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
skipDuplicates?: boolean
}
/**
* Habit createManyAndReturn
*/
export type HabitCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Habit
*/
select?: Prisma.HabitSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Habit
*/
omit?: Prisma.HabitOmit<ExtArgs> | null
/**
* The data used to create many Habits.
*/
data: Prisma.HabitCreateManyInput | Prisma.HabitCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HabitIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Habit update
*/
@@ -1565,6 +1671,36 @@ export type HabitUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
limit?: number
}
/**
* Habit updateManyAndReturn
*/
export type HabitUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Habit
*/
select?: Prisma.HabitSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Habit
*/
omit?: Prisma.HabitOmit<ExtArgs> | null
/**
* The data used to update Habits.
*/
data: Prisma.XOR<Prisma.HabitUpdateManyMutationInput, Prisma.HabitUncheckedUpdateManyInput>
/**
* Filter which Habits to update
*/
where?: Prisma.HabitWhereInput
/**
* Limit how many Habits to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HabitIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Habit upsert
*/
+125 -7
View File
@@ -271,7 +271,6 @@ export type IndicatorOrderByWithRelationInput = {
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
points?: Prisma.IndicatorPointOrderByRelationAggregateInput
_relevance?: Prisma.IndicatorOrderByRelevanceInput
}
export type IndicatorWhereUniqueInput = Prisma.AtLeast<{
@@ -417,12 +416,6 @@ export type IndicatorUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type IndicatorOrderByRelevanceInput = {
fields: Prisma.IndicatorOrderByRelevanceFieldEnum | Prisma.IndicatorOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type IndicatorCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
@@ -605,7 +598,31 @@ export type IndicatorSelect<ExtArgs extends runtime.Types.Extensions.InternalArg
_count?: boolean | Prisma.IndicatorCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["indicator"]>
export type IndicatorSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
groupName?: boolean
title?: boolean
unit?: boolean
source?: boolean
frequency?: boolean
hidden?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["indicator"]>
export type IndicatorSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
groupName?: boolean
title?: boolean
unit?: boolean
source?: boolean
frequency?: boolean
hidden?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["indicator"]>
export type IndicatorSelectScalar = {
id?: boolean
@@ -625,6 +642,8 @@ export type IndicatorInclude<ExtArgs extends runtime.Types.Extensions.InternalAr
points?: boolean | Prisma.Indicator$pointsArgs<ExtArgs>
_count?: boolean | Prisma.IndicatorCountOutputTypeDefaultArgs<ExtArgs>
}
export type IndicatorIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type IndicatorIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $IndicatorPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Indicator"
@@ -759,6 +778,30 @@ export interface IndicatorDelegate<ExtArgs extends runtime.Types.Extensions.Inte
*/
createMany<T extends IndicatorCreateManyArgs>(args?: Prisma.SelectSubset<T, IndicatorCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Indicators and returns the data saved in the database.
* @param {IndicatorCreateManyAndReturnArgs} args - Arguments to create many Indicators.
* @example
* // Create many Indicators
* const indicator = await prisma.indicator.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Indicators and only return the `id`
* const indicatorWithIdOnly = await prisma.indicator.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends IndicatorCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, IndicatorCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IndicatorPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Indicator.
* @param {IndicatorDeleteArgs} args - Arguments to delete one Indicator.
@@ -823,6 +866,36 @@ export interface IndicatorDelegate<ExtArgs extends runtime.Types.Extensions.Inte
*/
updateMany<T extends IndicatorUpdateManyArgs>(args: Prisma.SelectSubset<T, IndicatorUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Indicators and returns the data updated in the database.
* @param {IndicatorUpdateManyAndReturnArgs} args - Arguments to update many Indicators.
* @example
* // Update many Indicators
* const indicator = await prisma.indicator.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Indicators and only return the `id`
* const indicatorWithIdOnly = await prisma.indicator.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends IndicatorUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, IndicatorUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IndicatorPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Indicator.
* @param {IndicatorUpsertArgs} args - Arguments to update or create a Indicator.
@@ -1259,6 +1332,25 @@ export type IndicatorCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Int
skipDuplicates?: boolean
}
/**
* Indicator createManyAndReturn
*/
export type IndicatorCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Indicator
*/
select?: Prisma.IndicatorSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Indicator
*/
omit?: Prisma.IndicatorOmit<ExtArgs> | null
/**
* The data used to create many Indicators.
*/
data: Prisma.IndicatorCreateManyInput | Prisma.IndicatorCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Indicator update
*/
@@ -1303,6 +1395,32 @@ export type IndicatorUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Int
limit?: number
}
/**
* Indicator updateManyAndReturn
*/
export type IndicatorUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Indicator
*/
select?: Prisma.IndicatorSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Indicator
*/
omit?: Prisma.IndicatorOmit<ExtArgs> | null
/**
* The data used to update Indicators.
*/
data: Prisma.XOR<Prisma.IndicatorUpdateManyMutationInput, Prisma.IndicatorUncheckedUpdateManyInput>
/**
* Filter which Indicators to update
*/
where?: Prisma.IndicatorWhereInput
/**
* Limit how many Indicators to update.
*/
limit?: number
}
/**
* Indicator upsert
*/
+131 -7
View File
@@ -243,7 +243,6 @@ export type IndicatorPointOrderByWithRelationInput = {
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
indicator?: Prisma.IndicatorOrderByWithRelationInput
_relevance?: Prisma.IndicatorPointOrderByRelevanceInput
}
export type IndicatorPointWhereUniqueInput = Prisma.AtLeast<{
@@ -355,12 +354,6 @@ export type IndicatorPointOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type IndicatorPointOrderByRelevanceInput = {
fields: Prisma.IndicatorPointOrderByRelevanceFieldEnum | Prisma.IndicatorPointOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type IndicatorPointIndicatorIdPeriodCompoundUniqueInput = {
indicatorId: number
period: string
@@ -551,7 +544,25 @@ export type IndicatorPointSelect<ExtArgs extends runtime.Types.Extensions.Intern
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
}, ExtArgs["result"]["indicatorPoint"]>
export type IndicatorPointSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
indicatorId?: boolean
period?: boolean
value?: boolean
createdAt?: boolean
updatedAt?: boolean
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
}, ExtArgs["result"]["indicatorPoint"]>
export type IndicatorPointSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
indicatorId?: boolean
period?: boolean
value?: boolean
createdAt?: boolean
updatedAt?: boolean
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
}, ExtArgs["result"]["indicatorPoint"]>
export type IndicatorPointSelectScalar = {
id?: boolean
@@ -566,6 +577,12 @@ export type IndicatorPointOmit<ExtArgs extends runtime.Types.Extensions.Internal
export type IndicatorPointInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
}
export type IndicatorPointIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
}
export type IndicatorPointIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
}
export type $IndicatorPointPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "IndicatorPoint"
@@ -696,6 +713,30 @@ export interface IndicatorPointDelegate<ExtArgs extends runtime.Types.Extensions
*/
createMany<T extends IndicatorPointCreateManyArgs>(args?: Prisma.SelectSubset<T, IndicatorPointCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many IndicatorPoints and returns the data saved in the database.
* @param {IndicatorPointCreateManyAndReturnArgs} args - Arguments to create many IndicatorPoints.
* @example
* // Create many IndicatorPoints
* const indicatorPoint = await prisma.indicatorPoint.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many IndicatorPoints and only return the `id`
* const indicatorPointWithIdOnly = await prisma.indicatorPoint.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends IndicatorPointCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, IndicatorPointCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a IndicatorPoint.
* @param {IndicatorPointDeleteArgs} args - Arguments to delete one IndicatorPoint.
@@ -760,6 +801,36 @@ export interface IndicatorPointDelegate<ExtArgs extends runtime.Types.Extensions
*/
updateMany<T extends IndicatorPointUpdateManyArgs>(args: Prisma.SelectSubset<T, IndicatorPointUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more IndicatorPoints and returns the data updated in the database.
* @param {IndicatorPointUpdateManyAndReturnArgs} args - Arguments to update many IndicatorPoints.
* @example
* // Update many IndicatorPoints
* const indicatorPoint = await prisma.indicatorPoint.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more IndicatorPoints and only return the `id`
* const indicatorPointWithIdOnly = await prisma.indicatorPoint.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends IndicatorPointUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, IndicatorPointUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one IndicatorPoint.
* @param {IndicatorPointUpsertArgs} args - Arguments to update or create a IndicatorPoint.
@@ -1192,6 +1263,29 @@ export type IndicatorPointCreateManyArgs<ExtArgs extends runtime.Types.Extension
skipDuplicates?: boolean
}
/**
* IndicatorPoint createManyAndReturn
*/
export type IndicatorPointCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the IndicatorPoint
*/
select?: Prisma.IndicatorPointSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the IndicatorPoint
*/
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
/**
* The data used to create many IndicatorPoints.
*/
data: Prisma.IndicatorPointCreateManyInput | Prisma.IndicatorPointCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.IndicatorPointIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* IndicatorPoint update
*/
@@ -1236,6 +1330,36 @@ export type IndicatorPointUpdateManyArgs<ExtArgs extends runtime.Types.Extension
limit?: number
}
/**
* IndicatorPoint updateManyAndReturn
*/
export type IndicatorPointUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the IndicatorPoint
*/
select?: Prisma.IndicatorPointSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the IndicatorPoint
*/
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
/**
* The data used to update IndicatorPoints.
*/
data: Prisma.XOR<Prisma.IndicatorPointUpdateManyMutationInput, Prisma.IndicatorPointUncheckedUpdateManyInput>
/**
* Filter which IndicatorPoints to update
*/
where?: Prisma.IndicatorPointWhereInput
/**
* Limit how many IndicatorPoints to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.IndicatorPointIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* IndicatorPoint upsert
*/
+115 -7
View File
@@ -233,7 +233,6 @@ export type MihomeAccountOrderByWithRelationInput = {
status?: Prisma.SortOrder
lastError?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_relevance?: Prisma.MihomeAccountOrderByRelevanceInput
}
export type MihomeAccountWhereUniqueInput = Prisma.AtLeast<{
@@ -334,12 +333,6 @@ export type MihomeAccountUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type MihomeAccountOrderByRelevanceInput = {
fields: Prisma.MihomeAccountOrderByRelevanceFieldEnum | Prisma.MihomeAccountOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type MihomeAccountCountOrderByAggregateInput = {
id?: Prisma.SortOrder
key?: Prisma.SortOrder
@@ -386,7 +379,23 @@ export type MihomeAccountSelect<ExtArgs extends runtime.Types.Extensions.Interna
updatedAt?: boolean
}, ExtArgs["result"]["mihomeAccount"]>
export type MihomeAccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
key?: boolean
userId?: boolean
status?: boolean
lastError?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["mihomeAccount"]>
export type MihomeAccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
key?: boolean
userId?: boolean
status?: boolean
lastError?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["mihomeAccount"]>
export type MihomeAccountSelectScalar = {
id?: boolean
@@ -526,6 +535,30 @@ export interface MihomeAccountDelegate<ExtArgs extends runtime.Types.Extensions.
*/
createMany<T extends MihomeAccountCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeAccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many MihomeAccounts and returns the data saved in the database.
* @param {MihomeAccountCreateManyAndReturnArgs} args - Arguments to create many MihomeAccounts.
* @example
* // Create many MihomeAccounts
* const mihomeAccount = await prisma.mihomeAccount.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many MihomeAccounts and only return the `id`
* const mihomeAccountWithIdOnly = await prisma.mihomeAccount.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends MihomeAccountCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeAccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a MihomeAccount.
* @param {MihomeAccountDeleteArgs} args - Arguments to delete one MihomeAccount.
@@ -590,6 +623,36 @@ export interface MihomeAccountDelegate<ExtArgs extends runtime.Types.Extensions.
*/
updateMany<T extends MihomeAccountUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeAccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more MihomeAccounts and returns the data updated in the database.
* @param {MihomeAccountUpdateManyAndReturnArgs} args - Arguments to update many MihomeAccounts.
* @example
* // Update many MihomeAccounts
* const mihomeAccount = await prisma.mihomeAccount.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more MihomeAccounts and only return the `id`
* const mihomeAccountWithIdOnly = await prisma.mihomeAccount.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends MihomeAccountUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeAccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one MihomeAccount.
* @param {MihomeAccountUpsertArgs} args - Arguments to update or create a MihomeAccount.
@@ -997,6 +1060,25 @@ export type MihomeAccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions
skipDuplicates?: boolean
}
/**
* MihomeAccount createManyAndReturn
*/
export type MihomeAccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
/**
* The data used to create many MihomeAccounts.
*/
data: Prisma.MihomeAccountCreateManyInput | Prisma.MihomeAccountCreateManyInput[]
skipDuplicates?: boolean
}
/**
* MihomeAccount update
*/
@@ -1037,6 +1119,32 @@ export type MihomeAccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions
limit?: number
}
/**
* MihomeAccount updateManyAndReturn
*/
export type MihomeAccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
/**
* The data used to update MihomeAccounts.
*/
data: Prisma.XOR<Prisma.MihomeAccountUpdateManyMutationInput, Prisma.MihomeAccountUncheckedUpdateManyInput>
/**
* Filter which MihomeAccounts to update
*/
where?: Prisma.MihomeAccountWhereInput
/**
* Limit how many MihomeAccounts to update.
*/
limit?: number
}
/**
* MihomeAccount upsert
*/
+153 -7
View File
@@ -366,7 +366,6 @@ export type MihomeDeviceOrderByWithRelationInput = {
home?: Prisma.MihomeHomeOrderByWithRelationInput
samples?: Prisma.MihomeEnvSampleOrderByRelationAggregateInput
hours?: Prisma.MihomeEnvHourOrderByRelationAggregateInput
_relevance?: Prisma.MihomeDeviceOrderByRelevanceInput
}
export type MihomeDeviceWhereUniqueInput = Prisma.AtLeast<{
@@ -597,12 +596,6 @@ export type MihomeDeviceOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type MihomeDeviceOrderByRelevanceInput = {
fields: Prisma.MihomeDeviceOrderByRelevanceFieldEnum | Prisma.MihomeDeviceOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type MihomeDeviceCountOrderByAggregateInput = {
id?: Prisma.SortOrder
did?: Prisma.SortOrder
@@ -1201,7 +1194,47 @@ export type MihomeDeviceSelect<ExtArgs extends runtime.Types.Extensions.Internal
_count?: boolean | Prisma.MihomeDeviceCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeDevice"]>
export type MihomeDeviceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
did?: boolean
homeId?: boolean
model?: boolean
name?: boolean
alias?: boolean
tempSiid?: boolean
tempPiid?: boolean
humSiid?: boolean
humPiid?: boolean
battSiid?: boolean
battPiid?: boolean
battery?: boolean
batteryAt?: boolean
enabled?: boolean
lastSyncAt?: boolean
createdAt?: boolean
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeDevice"]>
export type MihomeDeviceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
did?: boolean
homeId?: boolean
model?: boolean
name?: boolean
alias?: boolean
tempSiid?: boolean
tempPiid?: boolean
humSiid?: boolean
humPiid?: boolean
battSiid?: boolean
battPiid?: boolean
battery?: boolean
batteryAt?: boolean
enabled?: boolean
lastSyncAt?: boolean
createdAt?: boolean
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeDevice"]>
export type MihomeDeviceSelectScalar = {
id?: boolean
@@ -1230,6 +1263,12 @@ export type MihomeDeviceInclude<ExtArgs extends runtime.Types.Extensions.Interna
hours?: boolean | Prisma.MihomeDevice$hoursArgs<ExtArgs>
_count?: boolean | Prisma.MihomeDeviceCountOutputTypeDefaultArgs<ExtArgs>
}
export type MihomeDeviceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
}
export type MihomeDeviceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
}
export type $MihomeDevicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "MihomeDevice"
@@ -1373,6 +1412,30 @@ export interface MihomeDeviceDelegate<ExtArgs extends runtime.Types.Extensions.I
*/
createMany<T extends MihomeDeviceCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many MihomeDevices and returns the data saved in the database.
* @param {MihomeDeviceCreateManyAndReturnArgs} args - Arguments to create many MihomeDevices.
* @example
* // Create many MihomeDevices
* const mihomeDevice = await prisma.mihomeDevice.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many MihomeDevices and only return the `id`
* const mihomeDeviceWithIdOnly = await prisma.mihomeDevice.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends MihomeDeviceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a MihomeDevice.
* @param {MihomeDeviceDeleteArgs} args - Arguments to delete one MihomeDevice.
@@ -1437,6 +1500,36 @@ export interface MihomeDeviceDelegate<ExtArgs extends runtime.Types.Extensions.I
*/
updateMany<T extends MihomeDeviceUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeDeviceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more MihomeDevices and returns the data updated in the database.
* @param {MihomeDeviceUpdateManyAndReturnArgs} args - Arguments to update many MihomeDevices.
* @example
* // Update many MihomeDevices
* const mihomeDevice = await prisma.mihomeDevice.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more MihomeDevices and only return the `id`
* const mihomeDeviceWithIdOnly = await prisma.mihomeDevice.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends MihomeDeviceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeDeviceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one MihomeDevice.
* @param {MihomeDeviceUpsertArgs} args - Arguments to update or create a MihomeDevice.
@@ -1882,6 +1975,29 @@ export type MihomeDeviceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.
skipDuplicates?: boolean
}
/**
* MihomeDevice createManyAndReturn
*/
export type MihomeDeviceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeDevice
*/
select?: Prisma.MihomeDeviceSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeDevice
*/
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
/**
* The data used to create many MihomeDevices.
*/
data: Prisma.MihomeDeviceCreateManyInput | Prisma.MihomeDeviceCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeDeviceIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* MihomeDevice update
*/
@@ -1926,6 +2042,36 @@ export type MihomeDeviceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.
limit?: number
}
/**
* MihomeDevice updateManyAndReturn
*/
export type MihomeDeviceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeDevice
*/
select?: Prisma.MihomeDeviceSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeDevice
*/
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
/**
* The data used to update MihomeDevices.
*/
data: Prisma.XOR<Prisma.MihomeDeviceUpdateManyMutationInput, Prisma.MihomeDeviceUncheckedUpdateManyInput>
/**
* Filter which MihomeDevices to update
*/
where?: Prisma.MihomeDeviceWhereInput
/**
* Limit how many MihomeDevices to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeDeviceIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* MihomeDevice upsert
*/
+133
View File
@@ -566,7 +566,27 @@ export type MihomeEnvHourSelect<ExtArgs extends runtime.Types.Extensions.Interna
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeEnvHour"]>
export type MihomeEnvHourSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
deviceId?: boolean
hour?: boolean
temperatureAvg?: boolean
humidityAvg?: boolean
raw?: boolean
createdAt?: boolean
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeEnvHour"]>
export type MihomeEnvHourSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
deviceId?: boolean
hour?: boolean
temperatureAvg?: boolean
humidityAvg?: boolean
raw?: boolean
createdAt?: boolean
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeEnvHour"]>
export type MihomeEnvHourSelectScalar = {
id?: boolean
@@ -582,6 +602,12 @@ export type MihomeEnvHourOmit<ExtArgs extends runtime.Types.Extensions.InternalA
export type MihomeEnvHourInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}
export type MihomeEnvHourIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}
export type MihomeEnvHourIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}
export type $MihomeEnvHourPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "MihomeEnvHour"
@@ -713,6 +739,30 @@ export interface MihomeEnvHourDelegate<ExtArgs extends runtime.Types.Extensions.
*/
createMany<T extends MihomeEnvHourCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many MihomeEnvHours and returns the data saved in the database.
* @param {MihomeEnvHourCreateManyAndReturnArgs} args - Arguments to create many MihomeEnvHours.
* @example
* // Create many MihomeEnvHours
* const mihomeEnvHour = await prisma.mihomeEnvHour.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many MihomeEnvHours and only return the `id`
* const mihomeEnvHourWithIdOnly = await prisma.mihomeEnvHour.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends MihomeEnvHourCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a MihomeEnvHour.
* @param {MihomeEnvHourDeleteArgs} args - Arguments to delete one MihomeEnvHour.
@@ -777,6 +827,36 @@ export interface MihomeEnvHourDelegate<ExtArgs extends runtime.Types.Extensions.
*/
updateMany<T extends MihomeEnvHourUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more MihomeEnvHours and returns the data updated in the database.
* @param {MihomeEnvHourUpdateManyAndReturnArgs} args - Arguments to update many MihomeEnvHours.
* @example
* // Update many MihomeEnvHours
* const mihomeEnvHour = await prisma.mihomeEnvHour.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more MihomeEnvHours and only return the `id`
* const mihomeEnvHourWithIdOnly = await prisma.mihomeEnvHour.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends MihomeEnvHourUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one MihomeEnvHour.
* @param {MihomeEnvHourUpsertArgs} args - Arguments to update or create a MihomeEnvHour.
@@ -1210,6 +1290,29 @@ export type MihomeEnvHourCreateManyArgs<ExtArgs extends runtime.Types.Extensions
skipDuplicates?: boolean
}
/**
* MihomeEnvHour createManyAndReturn
*/
export type MihomeEnvHourCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeEnvHour
*/
select?: Prisma.MihomeEnvHourSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeEnvHour
*/
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
/**
* The data used to create many MihomeEnvHours.
*/
data: Prisma.MihomeEnvHourCreateManyInput | Prisma.MihomeEnvHourCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeEnvHourIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* MihomeEnvHour update
*/
@@ -1254,6 +1357,36 @@ export type MihomeEnvHourUpdateManyArgs<ExtArgs extends runtime.Types.Extensions
limit?: number
}
/**
* MihomeEnvHour updateManyAndReturn
*/
export type MihomeEnvHourUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeEnvHour
*/
select?: Prisma.MihomeEnvHourSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeEnvHour
*/
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
/**
* The data used to update MihomeEnvHours.
*/
data: Prisma.XOR<Prisma.MihomeEnvHourUpdateManyMutationInput, Prisma.MihomeEnvHourUncheckedUpdateManyInput>
/**
* Filter which MihomeEnvHours to update
*/
where?: Prisma.MihomeEnvHourWhereInput
/**
* Limit how many MihomeEnvHours to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeEnvHourIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* MihomeEnvHour upsert
*/
+149 -7
View File
@@ -348,7 +348,6 @@ export type MihomeEnvSampleOrderByWithRelationInput = {
raw?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
device?: Prisma.MihomeDeviceOrderByWithRelationInput
_relevance?: Prisma.MihomeEnvSampleOrderByRelevanceInput
}
export type MihomeEnvSampleWhereUniqueInput = Prisma.AtLeast<{
@@ -550,12 +549,6 @@ export type MihomeEnvSampleOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type MihomeEnvSampleOrderByRelevanceInput = {
fields: Prisma.MihomeEnvSampleOrderByRelevanceFieldEnum | Prisma.MihomeEnvSampleOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type MihomeEnvSampleDeviceIdDateCompoundUniqueInput = {
deviceId: number
date: Date | string
@@ -857,7 +850,43 @@ export type MihomeEnvSampleSelect<ExtArgs extends runtime.Types.Extensions.Inter
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeEnvSample"]>
export type MihomeEnvSampleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
deviceId?: boolean
date?: boolean
temperature?: boolean
humidity?: boolean
temperatureAvg?: boolean
humidityAvg?: boolean
temperatureMin?: boolean
temperatureMax?: boolean
humidityMin?: boolean
humidityMax?: boolean
origin?: boolean
sampledAt?: boolean
raw?: boolean
createdAt?: boolean
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeEnvSample"]>
export type MihomeEnvSampleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
deviceId?: boolean
date?: boolean
temperature?: boolean
humidity?: boolean
temperatureAvg?: boolean
humidityAvg?: boolean
temperatureMin?: boolean
temperatureMax?: boolean
humidityMin?: boolean
humidityMax?: boolean
origin?: boolean
sampledAt?: boolean
raw?: boolean
createdAt?: boolean
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeEnvSample"]>
export type MihomeEnvSampleSelectScalar = {
id?: boolean
@@ -881,6 +910,12 @@ export type MihomeEnvSampleOmit<ExtArgs extends runtime.Types.Extensions.Interna
export type MihomeEnvSampleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}
export type MihomeEnvSampleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}
export type MihomeEnvSampleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
}
export type $MihomeEnvSamplePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "MihomeEnvSample"
@@ -1020,6 +1055,30 @@ export interface MihomeEnvSampleDelegate<ExtArgs extends runtime.Types.Extension
*/
createMany<T extends MihomeEnvSampleCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many MihomeEnvSamples and returns the data saved in the database.
* @param {MihomeEnvSampleCreateManyAndReturnArgs} args - Arguments to create many MihomeEnvSamples.
* @example
* // Create many MihomeEnvSamples
* const mihomeEnvSample = await prisma.mihomeEnvSample.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many MihomeEnvSamples and only return the `id`
* const mihomeEnvSampleWithIdOnly = await prisma.mihomeEnvSample.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends MihomeEnvSampleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a MihomeEnvSample.
* @param {MihomeEnvSampleDeleteArgs} args - Arguments to delete one MihomeEnvSample.
@@ -1084,6 +1143,36 @@ export interface MihomeEnvSampleDelegate<ExtArgs extends runtime.Types.Extension
*/
updateMany<T extends MihomeEnvSampleUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more MihomeEnvSamples and returns the data updated in the database.
* @param {MihomeEnvSampleUpdateManyAndReturnArgs} args - Arguments to update many MihomeEnvSamples.
* @example
* // Update many MihomeEnvSamples
* const mihomeEnvSample = await prisma.mihomeEnvSample.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more MihomeEnvSamples and only return the `id`
* const mihomeEnvSampleWithIdOnly = await prisma.mihomeEnvSample.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends MihomeEnvSampleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one MihomeEnvSample.
* @param {MihomeEnvSampleUpsertArgs} args - Arguments to update or create a MihomeEnvSample.
@@ -1525,6 +1614,29 @@ export type MihomeEnvSampleCreateManyArgs<ExtArgs extends runtime.Types.Extensio
skipDuplicates?: boolean
}
/**
* MihomeEnvSample createManyAndReturn
*/
export type MihomeEnvSampleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeEnvSample
*/
select?: Prisma.MihomeEnvSampleSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeEnvSample
*/
omit?: Prisma.MihomeEnvSampleOmit<ExtArgs> | null
/**
* The data used to create many MihomeEnvSamples.
*/
data: Prisma.MihomeEnvSampleCreateManyInput | Prisma.MihomeEnvSampleCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeEnvSampleIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* MihomeEnvSample update
*/
@@ -1569,6 +1681,36 @@ export type MihomeEnvSampleUpdateManyArgs<ExtArgs extends runtime.Types.Extensio
limit?: number
}
/**
* MihomeEnvSample updateManyAndReturn
*/
export type MihomeEnvSampleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeEnvSample
*/
select?: Prisma.MihomeEnvSampleSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeEnvSample
*/
omit?: Prisma.MihomeEnvSampleOmit<ExtArgs> | null
/**
* The data used to update MihomeEnvSamples.
*/
data: Prisma.XOR<Prisma.MihomeEnvSampleUpdateManyMutationInput, Prisma.MihomeEnvSampleUncheckedUpdateManyInput>
/**
* Filter which MihomeEnvSamples to update
*/
where?: Prisma.MihomeEnvSampleWhereInput
/**
* Limit how many MihomeEnvSamples to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeEnvSampleIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* MihomeEnvSample upsert
*/
+113 -7
View File
@@ -217,7 +217,6 @@ export type MihomeHomeOrderByWithRelationInput = {
name?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
devices?: Prisma.MihomeDeviceOrderByRelationAggregateInput
_relevance?: Prisma.MihomeHomeOrderByRelevanceInput
}
export type MihomeHomeWhereUniqueInput = Prisma.AtLeast<{
@@ -303,12 +302,6 @@ export type MihomeHomeUncheckedUpdateManyInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type MihomeHomeOrderByRelevanceInput = {
fields: Prisma.MihomeHomeOrderByRelevanceFieldEnum | Prisma.MihomeHomeOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type MihomeHomeCountOrderByAggregateInput = {
id?: Prisma.SortOrder
homeId?: Prisma.SortOrder
@@ -439,7 +432,19 @@ export type MihomeHomeSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeHome"]>
export type MihomeHomeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
homeId?: boolean
name?: boolean
createdAt?: boolean
}, ExtArgs["result"]["mihomeHome"]>
export type MihomeHomeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
homeId?: boolean
name?: boolean
createdAt?: boolean
}, ExtArgs["result"]["mihomeHome"]>
export type MihomeHomeSelectScalar = {
id?: boolean
@@ -453,6 +458,8 @@ export type MihomeHomeInclude<ExtArgs extends runtime.Types.Extensions.InternalA
devices?: boolean | Prisma.MihomeHome$devicesArgs<ExtArgs>
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
}
export type MihomeHomeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type MihomeHomeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $MihomeHomePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "MihomeHome"
@@ -581,6 +588,30 @@ export interface MihomeHomeDelegate<ExtArgs extends runtime.Types.Extensions.Int
*/
createMany<T extends MihomeHomeCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeHomeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many MihomeHomes and returns the data saved in the database.
* @param {MihomeHomeCreateManyAndReturnArgs} args - Arguments to create many MihomeHomes.
* @example
* // Create many MihomeHomes
* const mihomeHome = await prisma.mihomeHome.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many MihomeHomes and only return the `id`
* const mihomeHomeWithIdOnly = await prisma.mihomeHome.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends MihomeHomeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeHomeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a MihomeHome.
* @param {MihomeHomeDeleteArgs} args - Arguments to delete one MihomeHome.
@@ -645,6 +676,36 @@ export interface MihomeHomeDelegate<ExtArgs extends runtime.Types.Extensions.Int
*/
updateMany<T extends MihomeHomeUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more MihomeHomes and returns the data updated in the database.
* @param {MihomeHomeUpdateManyAndReturnArgs} args - Arguments to update many MihomeHomes.
* @example
* // Update many MihomeHomes
* const mihomeHome = await prisma.mihomeHome.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more MihomeHomes and only return the `id`
* const mihomeHomeWithIdOnly = await prisma.mihomeHome.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends MihomeHomeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one MihomeHome.
* @param {MihomeHomeUpsertArgs} args - Arguments to update or create a MihomeHome.
@@ -1075,6 +1136,25 @@ export type MihomeHomeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.In
skipDuplicates?: boolean
}
/**
* MihomeHome createManyAndReturn
*/
export type MihomeHomeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* The data used to create many MihomeHomes.
*/
data: Prisma.MihomeHomeCreateManyInput | Prisma.MihomeHomeCreateManyInput[]
skipDuplicates?: boolean
}
/**
* MihomeHome update
*/
@@ -1119,6 +1199,32 @@ export type MihomeHomeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.In
limit?: number
}
/**
* MihomeHome updateManyAndReturn
*/
export type MihomeHomeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* The data used to update MihomeHomes.
*/
data: Prisma.XOR<Prisma.MihomeHomeUpdateManyMutationInput, Prisma.MihomeHomeUncheckedUpdateManyInput>
/**
* Filter which MihomeHomes to update
*/
where?: Prisma.MihomeHomeWhereInput
/**
* Limit how many MihomeHomes to update.
*/
limit?: number
}
/**
* MihomeHome upsert
*/
+121 -7
View File
@@ -264,7 +264,6 @@ export type NewsOrderByWithRelationInput = {
publishedAt?: Prisma.SortOrder
impactRank?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
_relevance?: Prisma.NewsOrderByRelevanceInput
}
export type NewsWhereUniqueInput = Prisma.AtLeast<{
@@ -396,12 +395,6 @@ export type NewsUncheckedUpdateManyInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type NewsOrderByRelevanceInput = {
fields: Prisma.NewsOrderByRelevanceFieldEnum | Prisma.NewsOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type NewsTitlePublishedAtCompoundUniqueInput = {
title: string
publishedAt: Date | string
@@ -471,7 +464,29 @@ export type NewsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
createdAt?: boolean
}, ExtArgs["result"]["news"]>
export type NewsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
title?: boolean
summary?: boolean
content?: boolean
source?: boolean
url?: boolean
publishedAt?: boolean
impactRank?: boolean
createdAt?: boolean
}, ExtArgs["result"]["news"]>
export type NewsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
title?: boolean
summary?: boolean
content?: boolean
source?: boolean
url?: boolean
publishedAt?: boolean
impactRank?: boolean
createdAt?: boolean
}, ExtArgs["result"]["news"]>
export type NewsSelectScalar = {
id?: boolean
@@ -617,6 +632,30 @@ export interface NewsDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
*/
createMany<T extends NewsCreateManyArgs>(args?: Prisma.SelectSubset<T, NewsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many News and returns the data saved in the database.
* @param {NewsCreateManyAndReturnArgs} args - Arguments to create many News.
* @example
* // Create many News
* const news = await prisma.news.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many News and only return the `id`
* const newsWithIdOnly = await prisma.news.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends NewsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, NewsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NewsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a News.
* @param {NewsDeleteArgs} args - Arguments to delete one News.
@@ -681,6 +720,36 @@ export interface NewsDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
*/
updateMany<T extends NewsUpdateManyArgs>(args: Prisma.SelectSubset<T, NewsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more News and returns the data updated in the database.
* @param {NewsUpdateManyAndReturnArgs} args - Arguments to update many News.
* @example
* // Update many News
* const news = await prisma.news.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more News and only return the `id`
* const newsWithIdOnly = await prisma.news.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends NewsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, NewsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NewsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one News.
* @param {NewsUpsertArgs} args - Arguments to update or create a News.
@@ -1091,6 +1160,25 @@ export type NewsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
skipDuplicates?: boolean
}
/**
* News createManyAndReturn
*/
export type NewsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the News
*/
select?: Prisma.NewsSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the News
*/
omit?: Prisma.NewsOmit<ExtArgs> | null
/**
* The data used to create many News.
*/
data: Prisma.NewsCreateManyInput | Prisma.NewsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* News update
*/
@@ -1131,6 +1219,32 @@ export type NewsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
limit?: number
}
/**
* News updateManyAndReturn
*/
export type NewsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the News
*/
select?: Prisma.NewsSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the News
*/
omit?: Prisma.NewsOmit<ExtArgs> | null
/**
* The data used to update News.
*/
data: Prisma.XOR<Prisma.NewsUpdateManyMutationInput, Prisma.NewsUncheckedUpdateManyInput>
/**
* Filter which News to update
*/
where?: Prisma.NewsWhereInput
/**
* Limit how many News to update.
*/
limit?: number
}
/**
* News upsert
*/
+117 -7
View File
@@ -246,7 +246,6 @@ export type OilPriceHistoryOrderByWithRelationInput = {
price?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
_relevance?: Prisma.OilPriceHistoryOrderByRelevanceInput
}
export type OilPriceHistoryWhereUniqueInput = Prisma.AtLeast<{
@@ -358,12 +357,6 @@ export type OilPriceHistoryUncheckedUpdateManyInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OilPriceHistoryOrderByRelevanceInput = {
fields: Prisma.OilPriceHistoryOrderByRelevanceFieldEnum | Prisma.OilPriceHistoryOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type OilPriceHistoryDateProvinceFuelCompoundUniqueInput = {
date: Date | string
province: string
@@ -422,7 +415,25 @@ export type OilPriceHistorySelect<ExtArgs extends runtime.Types.Extensions.Inter
createdAt?: boolean
}, ExtArgs["result"]["oilPriceHistory"]>
export type OilPriceHistorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
date?: boolean
province?: boolean
fuel?: boolean
price?: boolean
source?: boolean
createdAt?: boolean
}, ExtArgs["result"]["oilPriceHistory"]>
export type OilPriceHistorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
date?: boolean
province?: boolean
fuel?: boolean
price?: boolean
source?: boolean
createdAt?: boolean
}, ExtArgs["result"]["oilPriceHistory"]>
export type OilPriceHistorySelectScalar = {
id?: boolean
@@ -564,6 +575,30 @@ export interface OilPriceHistoryDelegate<ExtArgs extends runtime.Types.Extension
*/
createMany<T extends OilPriceHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many OilPriceHistories and returns the data saved in the database.
* @param {OilPriceHistoryCreateManyAndReturnArgs} args - Arguments to create many OilPriceHistories.
* @example
* // Create many OilPriceHistories
* const oilPriceHistory = await prisma.oilPriceHistory.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many OilPriceHistories and only return the `id`
* const oilPriceHistoryWithIdOnly = await prisma.oilPriceHistory.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends OilPriceHistoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a OilPriceHistory.
* @param {OilPriceHistoryDeleteArgs} args - Arguments to delete one OilPriceHistory.
@@ -628,6 +663,36 @@ export interface OilPriceHistoryDelegate<ExtArgs extends runtime.Types.Extension
*/
updateMany<T extends OilPriceHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more OilPriceHistories and returns the data updated in the database.
* @param {OilPriceHistoryUpdateManyAndReturnArgs} args - Arguments to update many OilPriceHistories.
* @example
* // Update many OilPriceHistories
* const oilPriceHistory = await prisma.oilPriceHistory.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more OilPriceHistories and only return the `id`
* const oilPriceHistoryWithIdOnly = await prisma.oilPriceHistory.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends OilPriceHistoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one OilPriceHistory.
* @param {OilPriceHistoryUpsertArgs} args - Arguments to update or create a OilPriceHistory.
@@ -1036,6 +1101,25 @@ export type OilPriceHistoryCreateManyArgs<ExtArgs extends runtime.Types.Extensio
skipDuplicates?: boolean
}
/**
* OilPriceHistory createManyAndReturn
*/
export type OilPriceHistoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* The data used to create many OilPriceHistories.
*/
data: Prisma.OilPriceHistoryCreateManyInput | Prisma.OilPriceHistoryCreateManyInput[]
skipDuplicates?: boolean
}
/**
* OilPriceHistory update
*/
@@ -1076,6 +1160,32 @@ export type OilPriceHistoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensio
limit?: number
}
/**
* OilPriceHistory updateManyAndReturn
*/
export type OilPriceHistoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* The data used to update OilPriceHistories.
*/
data: Prisma.XOR<Prisma.OilPriceHistoryUpdateManyMutationInput, Prisma.OilPriceHistoryUncheckedUpdateManyInput>
/**
* Filter which OilPriceHistories to update
*/
where?: Prisma.OilPriceHistoryWhereInput
/**
* Limit how many OilPriceHistories to update.
*/
limit?: number
}
/**
* OilPriceHistory upsert
*/
+237 -9
View File
@@ -38,6 +38,8 @@ export type ProjectSumAggregateOutputType = {
export type ProjectMinAggregateOutputType = {
id: number | null
uuid: string | null
code: string | null
name: string | null
ownerId: number | null
isPersonal: boolean | null
@@ -50,6 +52,8 @@ export type ProjectMinAggregateOutputType = {
export type ProjectMaxAggregateOutputType = {
id: number | null
uuid: string | null
code: string | null
name: string | null
ownerId: number | null
isPersonal: boolean | null
@@ -62,6 +66,8 @@ export type ProjectMaxAggregateOutputType = {
export type ProjectCountAggregateOutputType = {
id: number
uuid: number
code: number
name: number
ownerId: number
isPersonal: number
@@ -88,6 +94,8 @@ export type ProjectSumAggregateInputType = {
export type ProjectMinAggregateInputType = {
id?: true
uuid?: true
code?: true
name?: true
ownerId?: true
isPersonal?: true
@@ -100,6 +108,8 @@ export type ProjectMinAggregateInputType = {
export type ProjectMaxAggregateInputType = {
id?: true
uuid?: true
code?: true
name?: true
ownerId?: true
isPersonal?: true
@@ -112,6 +122,8 @@ export type ProjectMaxAggregateInputType = {
export type ProjectCountAggregateInputType = {
id?: true
uuid?: true
code?: true
name?: true
ownerId?: true
isPersonal?: true
@@ -213,6 +225,8 @@ export type ProjectGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
export type ProjectGroupByOutputType = {
id: number
uuid: string
code: string
name: string
ownerId: number
isPersonal: boolean
@@ -250,6 +264,8 @@ export type ProjectWhereInput = {
OR?: Prisma.ProjectWhereInput[]
NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]
id?: Prisma.IntFilter<"Project"> | number
uuid?: Prisma.StringFilter<"Project"> | string
code?: Prisma.StringFilter<"Project"> | string
name?: Prisma.StringFilter<"Project"> | string
ownerId?: Prisma.IntFilter<"Project"> | number
isPersonal?: Prisma.BoolFilter<"Project"> | boolean
@@ -268,6 +284,8 @@ export type ProjectWhereInput = {
export type ProjectOrderByWithRelationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
@@ -282,11 +300,12 @@ export type ProjectOrderByWithRelationInput = {
members?: Prisma.ProjectMemberOrderByRelationAggregateInput
columns?: Prisma.BoardColumnOrderByRelationAggregateInput
tasks?: Prisma.TaskOrderByRelationAggregateInput
_relevance?: Prisma.ProjectOrderByRelevanceInput
}
export type ProjectWhereUniqueInput = Prisma.AtLeast<{
id?: number
uuid?: string
code?: string
AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]
OR?: Prisma.ProjectWhereInput[]
NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]
@@ -304,10 +323,12 @@ export type ProjectWhereUniqueInput = Prisma.AtLeast<{
members?: Prisma.ProjectMemberListRelationFilter
columns?: Prisma.BoardColumnListRelationFilter
tasks?: Prisma.TaskListRelationFilter
}, "id">
}, "id" | "uuid" | "code">
export type ProjectOrderByWithAggregationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
@@ -330,6 +351,8 @@ export type ProjectScalarWhereWithAggregatesInput = {
OR?: Prisma.ProjectScalarWhereWithAggregatesInput[]
NOT?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"Project"> | number
uuid?: Prisma.StringWithAggregatesFilter<"Project"> | string
code?: Prisma.StringWithAggregatesFilter<"Project"> | string
name?: Prisma.StringWithAggregatesFilter<"Project"> | string
ownerId?: Prisma.IntWithAggregatesFilter<"Project"> | number
isPersonal?: Prisma.BoolWithAggregatesFilter<"Project"> | boolean
@@ -343,6 +366,8 @@ export type ProjectScalarWhereWithAggregatesInput = {
}
export type ProjectCreateInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
@@ -360,6 +385,8 @@ export type ProjectCreateInput = {
export type ProjectUncheckedCreateInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
@@ -376,6 +403,8 @@ export type ProjectUncheckedCreateInput = {
}
export type ProjectUpdateInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -393,6 +422,8 @@ export type ProjectUpdateInput = {
export type ProjectUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -410,6 +441,8 @@ export type ProjectUncheckedUpdateInput = {
export type ProjectCreateManyInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
@@ -423,6 +456,8 @@ export type ProjectCreateManyInput = {
}
export type ProjectUpdateManyMutationInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -436,6 +471,8 @@ export type ProjectUpdateManyMutationInput = {
export type ProjectUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -458,14 +495,10 @@ export type ProjectOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type ProjectOrderByRelevanceInput = {
fields: Prisma.ProjectOrderByRelevanceFieldEnum | Prisma.ProjectOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ProjectCountOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
@@ -485,6 +518,8 @@ export type ProjectAvgOrderByAggregateInput = {
export type ProjectMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
@@ -497,6 +532,8 @@ export type ProjectMaxOrderByAggregateInput = {
export type ProjectMinOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
@@ -602,6 +639,8 @@ export type ProjectUpdateOneRequiredWithoutTasksNestedInput = {
}
export type ProjectCreateWithoutOwnerInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
@@ -618,6 +657,8 @@ export type ProjectCreateWithoutOwnerInput = {
export type ProjectUncheckedCreateWithoutOwnerInput = {
id?: number
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
@@ -663,6 +704,8 @@ export type ProjectScalarWhereInput = {
OR?: Prisma.ProjectScalarWhereInput[]
NOT?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[]
id?: Prisma.IntFilter<"Project"> | number
uuid?: Prisma.StringFilter<"Project"> | string
code?: Prisma.StringFilter<"Project"> | string
name?: Prisma.StringFilter<"Project"> | string
ownerId?: Prisma.IntFilter<"Project"> | number
isPersonal?: Prisma.BoolFilter<"Project"> | boolean
@@ -676,6 +719,8 @@ export type ProjectScalarWhereInput = {
}
export type ProjectCreateWithoutMembersInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
@@ -692,6 +737,8 @@ export type ProjectCreateWithoutMembersInput = {
export type ProjectUncheckedCreateWithoutMembersInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
@@ -723,6 +770,8 @@ export type ProjectUpdateToOneWithWhereWithoutMembersInput = {
}
export type ProjectUpdateWithoutMembersInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -739,6 +788,8 @@ export type ProjectUpdateWithoutMembersInput = {
export type ProjectUncheckedUpdateWithoutMembersInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -754,6 +805,8 @@ export type ProjectUncheckedUpdateWithoutMembersInput = {
}
export type ProjectCreateWithoutColumnsInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
@@ -770,6 +823,8 @@ export type ProjectCreateWithoutColumnsInput = {
export type ProjectUncheckedCreateWithoutColumnsInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
@@ -801,6 +856,8 @@ export type ProjectUpdateToOneWithWhereWithoutColumnsInput = {
}
export type ProjectUpdateWithoutColumnsInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -817,6 +874,8 @@ export type ProjectUpdateWithoutColumnsInput = {
export type ProjectUncheckedUpdateWithoutColumnsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -832,6 +891,8 @@ export type ProjectUncheckedUpdateWithoutColumnsInput = {
}
export type ProjectCreateWithoutTasksInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
@@ -848,6 +909,8 @@ export type ProjectCreateWithoutTasksInput = {
export type ProjectUncheckedCreateWithoutTasksInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
@@ -879,6 +942,8 @@ export type ProjectUpdateToOneWithWhereWithoutTasksInput = {
}
export type ProjectUpdateWithoutTasksInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -895,6 +960,8 @@ export type ProjectUpdateWithoutTasksInput = {
export type ProjectUncheckedUpdateWithoutTasksInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -911,6 +978,8 @@ export type ProjectUncheckedUpdateWithoutTasksInput = {
export type ProjectCreateManyOwnerInput = {
id?: number
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
@@ -923,6 +992,8 @@ export type ProjectCreateManyOwnerInput = {
}
export type ProjectUpdateWithoutOwnerInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -939,6 +1010,8 @@ export type ProjectUpdateWithoutOwnerInput = {
export type ProjectUncheckedUpdateWithoutOwnerInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -955,6 +1028,8 @@ export type ProjectUncheckedUpdateWithoutOwnerInput = {
export type ProjectUncheckedUpdateManyWithoutOwnerInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
@@ -1017,6 +1092,8 @@ export type ProjectCountOutputTypeCountTasksArgs<ExtArgs extends runtime.Types.E
export type ProjectSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
code?: boolean
name?: boolean
ownerId?: boolean
isPersonal?: boolean
@@ -1034,10 +1111,44 @@ export type ProjectSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
_count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["project"]>
export type ProjectSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
code?: boolean
name?: boolean
ownerId?: boolean
isPersonal?: boolean
archived?: boolean
notes?: boolean
taskKinds?: boolean
icon?: boolean
autoArchive?: boolean
createdAt?: boolean
updatedAt?: boolean
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["project"]>
export type ProjectSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
code?: boolean
name?: boolean
ownerId?: boolean
isPersonal?: boolean
archived?: boolean
notes?: boolean
taskKinds?: boolean
icon?: boolean
autoArchive?: boolean
createdAt?: boolean
updatedAt?: boolean
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["project"]>
export type ProjectSelectScalar = {
id?: boolean
uuid?: boolean
code?: boolean
name?: boolean
ownerId?: boolean
isPersonal?: boolean
@@ -1050,7 +1161,7 @@ export type ProjectSelectScalar = {
updatedAt?: boolean
}
export type ProjectOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "ownerId" | "isPersonal" | "archived" | "notes" | "taskKinds" | "icon" | "autoArchive" | "createdAt" | "updatedAt", ExtArgs["result"]["project"]>
export type ProjectOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "code" | "name" | "ownerId" | "isPersonal" | "archived" | "notes" | "taskKinds" | "icon" | "autoArchive" | "createdAt" | "updatedAt", ExtArgs["result"]["project"]>
export type ProjectInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
members?: boolean | Prisma.Project$membersArgs<ExtArgs>
@@ -1058,6 +1169,12 @@ export type ProjectInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
tasks?: boolean | Prisma.Project$tasksArgs<ExtArgs>
_count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs<ExtArgs>
}
export type ProjectIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type ProjectIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type $ProjectPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Project"
@@ -1069,6 +1186,8 @@ export type $ProjectPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
uuid: string
code: string
name: string
ownerId: number
isPersonal: boolean
@@ -1196,6 +1315,30 @@ export interface ProjectDelegate<ExtArgs extends runtime.Types.Extensions.Intern
*/
createMany<T extends ProjectCreateManyArgs>(args?: Prisma.SelectSubset<T, ProjectCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Projects and returns the data saved in the database.
* @param {ProjectCreateManyAndReturnArgs} args - Arguments to create many Projects.
* @example
* // Create many Projects
* const project = await prisma.project.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Projects and only return the `id`
* const projectWithIdOnly = await prisma.project.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ProjectCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProjectCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Project.
* @param {ProjectDeleteArgs} args - Arguments to delete one Project.
@@ -1260,6 +1403,36 @@ export interface ProjectDelegate<ExtArgs extends runtime.Types.Extensions.Intern
*/
updateMany<T extends ProjectUpdateManyArgs>(args: Prisma.SelectSubset<T, ProjectUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Projects and returns the data updated in the database.
* @param {ProjectUpdateManyAndReturnArgs} args - Arguments to update many Projects.
* @example
* // Update many Projects
* const project = await prisma.project.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Projects and only return the `id`
* const projectWithIdOnly = await prisma.project.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ProjectUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProjectUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Project.
* @param {ProjectUpsertArgs} args - Arguments to update or create a Project.
@@ -1453,6 +1626,8 @@ export interface Prisma__ProjectClient<T, Null = never, ExtArgs extends runtime.
*/
export interface ProjectFieldRefs {
readonly id: Prisma.FieldRef<"Project", 'Int'>
readonly uuid: Prisma.FieldRef<"Project", 'String'>
readonly code: Prisma.FieldRef<"Project", 'String'>
readonly name: Prisma.FieldRef<"Project", 'String'>
readonly ownerId: Prisma.FieldRef<"Project", 'Int'>
readonly isPersonal: Prisma.FieldRef<"Project", 'Boolean'>
@@ -1700,6 +1875,29 @@ export type ProjectCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
skipDuplicates?: boolean
}
/**
* Project createManyAndReturn
*/
export type ProjectCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Project
*/
select?: Prisma.ProjectSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Project
*/
omit?: Prisma.ProjectOmit<ExtArgs> | null
/**
* The data used to create many Projects.
*/
data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProjectIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Project update
*/
@@ -1744,6 +1942,36 @@ export type ProjectUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
limit?: number
}
/**
* Project updateManyAndReturn
*/
export type ProjectUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Project
*/
select?: Prisma.ProjectSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Project
*/
omit?: Prisma.ProjectOmit<ExtArgs> | null
/**
* The data used to update Projects.
*/
data: Prisma.XOR<Prisma.ProjectUpdateManyMutationInput, Prisma.ProjectUncheckedUpdateManyInput>
/**
* Filter which Projects to update
*/
where?: Prisma.ProjectWhereInput
/**
* Limit how many Projects to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProjectIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Project upsert
*/
+217 -9
View File
@@ -40,6 +40,8 @@ export type ProjectMemberSumAggregateOutputType = {
export type ProjectMemberMinAggregateOutputType = {
id: number | null
uuid: string | null
projectUuid: string | null
projectId: number | null
userId: number | null
permission: string | null
@@ -48,6 +50,8 @@ export type ProjectMemberMinAggregateOutputType = {
export type ProjectMemberMaxAggregateOutputType = {
id: number | null
uuid: string | null
projectUuid: string | null
projectId: number | null
userId: number | null
permission: string | null
@@ -56,6 +60,8 @@ export type ProjectMemberMaxAggregateOutputType = {
export type ProjectMemberCountAggregateOutputType = {
id: number
uuid: number
projectUuid: number
projectId: number
userId: number
permission: number
@@ -78,6 +84,8 @@ export type ProjectMemberSumAggregateInputType = {
export type ProjectMemberMinAggregateInputType = {
id?: true
uuid?: true
projectUuid?: true
projectId?: true
userId?: true
permission?: true
@@ -86,6 +94,8 @@ export type ProjectMemberMinAggregateInputType = {
export type ProjectMemberMaxAggregateInputType = {
id?: true
uuid?: true
projectUuid?: true
projectId?: true
userId?: true
permission?: true
@@ -94,6 +104,8 @@ export type ProjectMemberMaxAggregateInputType = {
export type ProjectMemberCountAggregateInputType = {
id?: true
uuid?: true
projectUuid?: true
projectId?: true
userId?: true
permission?: true
@@ -189,6 +201,8 @@ export type ProjectMemberGroupByArgs<ExtArgs extends runtime.Types.Extensions.In
export type ProjectMemberGroupByOutputType = {
id: number
uuid: string
projectUuid: string | null
projectId: number
userId: number
permission: string
@@ -220,6 +234,8 @@ export type ProjectMemberWhereInput = {
OR?: Prisma.ProjectMemberWhereInput[]
NOT?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[]
id?: Prisma.IntFilter<"ProjectMember"> | number
uuid?: Prisma.StringFilter<"ProjectMember"> | string
projectUuid?: Prisma.StringNullableFilter<"ProjectMember"> | string | null
projectId?: Prisma.IntFilter<"ProjectMember"> | number
userId?: Prisma.IntFilter<"ProjectMember"> | number
permission?: Prisma.StringFilter<"ProjectMember"> | string
@@ -230,31 +246,36 @@ export type ProjectMemberWhereInput = {
export type ProjectMemberOrderByWithRelationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrderInput | Prisma.SortOrder
projectId?: Prisma.SortOrder
userId?: Prisma.SortOrder
permission?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
project?: Prisma.ProjectOrderByWithRelationInput
user?: Prisma.UserOrderByWithRelationInput
_relevance?: Prisma.ProjectMemberOrderByRelevanceInput
}
export type ProjectMemberWhereUniqueInput = Prisma.AtLeast<{
id?: number
uuid?: string
projectId_userId?: Prisma.ProjectMemberProjectIdUserIdCompoundUniqueInput
AND?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[]
OR?: Prisma.ProjectMemberWhereInput[]
NOT?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[]
projectUuid?: Prisma.StringNullableFilter<"ProjectMember"> | string | null
projectId?: Prisma.IntFilter<"ProjectMember"> | number
userId?: Prisma.IntFilter<"ProjectMember"> | number
permission?: Prisma.StringFilter<"ProjectMember"> | string
createdAt?: Prisma.DateTimeFilter<"ProjectMember"> | Date | string
project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}, "id" | "projectId_userId">
}, "id" | "uuid" | "projectId_userId">
export type ProjectMemberOrderByWithAggregationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrderInput | Prisma.SortOrder
projectId?: Prisma.SortOrder
userId?: Prisma.SortOrder
permission?: Prisma.SortOrder
@@ -271,6 +292,8 @@ export type ProjectMemberScalarWhereWithAggregatesInput = {
OR?: Prisma.ProjectMemberScalarWhereWithAggregatesInput[]
NOT?: Prisma.ProjectMemberScalarWhereWithAggregatesInput | Prisma.ProjectMemberScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"ProjectMember"> | number
uuid?: Prisma.StringWithAggregatesFilter<"ProjectMember"> | string
projectUuid?: Prisma.StringNullableWithAggregatesFilter<"ProjectMember"> | string | null
projectId?: Prisma.IntWithAggregatesFilter<"ProjectMember"> | number
userId?: Prisma.IntWithAggregatesFilter<"ProjectMember"> | number
permission?: Prisma.StringWithAggregatesFilter<"ProjectMember"> | string
@@ -278,6 +301,8 @@ export type ProjectMemberScalarWhereWithAggregatesInput = {
}
export type ProjectMemberCreateInput = {
uuid: string
projectUuid?: string | null
permission?: string
createdAt?: Date | string
project: Prisma.ProjectCreateNestedOneWithoutMembersInput
@@ -286,6 +311,8 @@ export type ProjectMemberCreateInput = {
export type ProjectMemberUncheckedCreateInput = {
id?: number
uuid: string
projectUuid?: string | null
projectId: number
userId: number
permission?: string
@@ -293,6 +320,8 @@ export type ProjectMemberUncheckedCreateInput = {
}
export type ProjectMemberUpdateInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
permission?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
project?: Prisma.ProjectUpdateOneRequiredWithoutMembersNestedInput
@@ -301,6 +330,8 @@ export type ProjectMemberUpdateInput = {
export type ProjectMemberUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
projectId?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.IntFieldUpdateOperationsInput | number
permission?: Prisma.StringFieldUpdateOperationsInput | string
@@ -309,6 +340,8 @@ export type ProjectMemberUncheckedUpdateInput = {
export type ProjectMemberCreateManyInput = {
id?: number
uuid: string
projectUuid?: string | null
projectId: number
userId: number
permission?: string
@@ -316,12 +349,16 @@ export type ProjectMemberCreateManyInput = {
}
export type ProjectMemberUpdateManyMutationInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
permission?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ProjectMemberUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
projectId?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.IntFieldUpdateOperationsInput | number
permission?: Prisma.StringFieldUpdateOperationsInput | string
@@ -338,12 +375,6 @@ export type ProjectMemberOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type ProjectMemberOrderByRelevanceInput = {
fields: Prisma.ProjectMemberOrderByRelevanceFieldEnum | Prisma.ProjectMemberOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ProjectMemberProjectIdUserIdCompoundUniqueInput = {
projectId: number
userId: number
@@ -351,6 +382,8 @@ export type ProjectMemberProjectIdUserIdCompoundUniqueInput = {
export type ProjectMemberCountOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrder
projectId?: Prisma.SortOrder
userId?: Prisma.SortOrder
permission?: Prisma.SortOrder
@@ -365,6 +398,8 @@ export type ProjectMemberAvgOrderByAggregateInput = {
export type ProjectMemberMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrder
projectId?: Prisma.SortOrder
userId?: Prisma.SortOrder
permission?: Prisma.SortOrder
@@ -373,6 +408,8 @@ export type ProjectMemberMaxOrderByAggregateInput = {
export type ProjectMemberMinOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
projectUuid?: Prisma.SortOrder
projectId?: Prisma.SortOrder
userId?: Prisma.SortOrder
permission?: Prisma.SortOrder
@@ -470,6 +507,8 @@ export type ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput = {
}
export type ProjectMemberCreateWithoutUserInput = {
uuid: string
projectUuid?: string | null
permission?: string
createdAt?: Date | string
project: Prisma.ProjectCreateNestedOneWithoutMembersInput
@@ -477,6 +516,8 @@ export type ProjectMemberCreateWithoutUserInput = {
export type ProjectMemberUncheckedCreateWithoutUserInput = {
id?: number
uuid: string
projectUuid?: string | null
projectId: number
permission?: string
createdAt?: Date | string
@@ -513,6 +554,8 @@ export type ProjectMemberScalarWhereInput = {
OR?: Prisma.ProjectMemberScalarWhereInput[]
NOT?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[]
id?: Prisma.IntFilter<"ProjectMember"> | number
uuid?: Prisma.StringFilter<"ProjectMember"> | string
projectUuid?: Prisma.StringNullableFilter<"ProjectMember"> | string | null
projectId?: Prisma.IntFilter<"ProjectMember"> | number
userId?: Prisma.IntFilter<"ProjectMember"> | number
permission?: Prisma.StringFilter<"ProjectMember"> | string
@@ -520,6 +563,8 @@ export type ProjectMemberScalarWhereInput = {
}
export type ProjectMemberCreateWithoutProjectInput = {
uuid: string
projectUuid?: string | null
permission?: string
createdAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutProjectMembersInput
@@ -527,6 +572,8 @@ export type ProjectMemberCreateWithoutProjectInput = {
export type ProjectMemberUncheckedCreateWithoutProjectInput = {
id?: number
uuid: string
projectUuid?: string | null
userId: number
permission?: string
createdAt?: Date | string
@@ -560,12 +607,16 @@ export type ProjectMemberUpdateManyWithWhereWithoutProjectInput = {
export type ProjectMemberCreateManyUserInput = {
id?: number
uuid: string
projectUuid?: string | null
projectId: number
permission?: string
createdAt?: Date | string
}
export type ProjectMemberUpdateWithoutUserInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
permission?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
project?: Prisma.ProjectUpdateOneRequiredWithoutMembersNestedInput
@@ -573,6 +624,8 @@ export type ProjectMemberUpdateWithoutUserInput = {
export type ProjectMemberUncheckedUpdateWithoutUserInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
projectId?: Prisma.IntFieldUpdateOperationsInput | number
permission?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -580,6 +633,8 @@ export type ProjectMemberUncheckedUpdateWithoutUserInput = {
export type ProjectMemberUncheckedUpdateManyWithoutUserInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
projectId?: Prisma.IntFieldUpdateOperationsInput | number
permission?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -587,12 +642,16 @@ export type ProjectMemberUncheckedUpdateManyWithoutUserInput = {
export type ProjectMemberCreateManyProjectInput = {
id?: number
uuid: string
projectUuid?: string | null
userId: number
permission?: string
createdAt?: Date | string
}
export type ProjectMemberUpdateWithoutProjectInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
permission?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutProjectMembersNestedInput
@@ -600,6 +659,8 @@ export type ProjectMemberUpdateWithoutProjectInput = {
export type ProjectMemberUncheckedUpdateWithoutProjectInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
userId?: Prisma.IntFieldUpdateOperationsInput | number
permission?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -607,6 +668,8 @@ export type ProjectMemberUncheckedUpdateWithoutProjectInput = {
export type ProjectMemberUncheckedUpdateManyWithoutProjectInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
projectUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
userId?: Prisma.IntFieldUpdateOperationsInput | number
permission?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -616,6 +679,8 @@ export type ProjectMemberUncheckedUpdateManyWithoutProjectInput = {
export type ProjectMemberSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
projectUuid?: boolean
projectId?: boolean
userId?: boolean
permission?: boolean
@@ -624,21 +689,53 @@ export type ProjectMemberSelect<ExtArgs extends runtime.Types.Extensions.Interna
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["projectMember"]>
export type ProjectMemberSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
projectUuid?: boolean
projectId?: boolean
userId?: boolean
permission?: boolean
createdAt?: boolean
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["projectMember"]>
export type ProjectMemberSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
projectUuid?: boolean
projectId?: boolean
userId?: boolean
permission?: boolean
createdAt?: boolean
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["projectMember"]>
export type ProjectMemberSelectScalar = {
id?: boolean
uuid?: boolean
projectUuid?: boolean
projectId?: boolean
userId?: boolean
permission?: boolean
createdAt?: boolean
}
export type ProjectMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "projectId" | "userId" | "permission" | "createdAt", ExtArgs["result"]["projectMember"]>
export type ProjectMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "projectUuid" | "projectId" | "userId" | "permission" | "createdAt", ExtArgs["result"]["projectMember"]>
export type ProjectMemberInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type ProjectMemberIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type ProjectMemberIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type $ProjectMemberPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "ProjectMember"
@@ -648,6 +745,8 @@ export type $ProjectMemberPayload<ExtArgs extends runtime.Types.Extensions.Inter
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
uuid: string
projectUuid: string | null
projectId: number
userId: number
permission: string
@@ -769,6 +868,30 @@ export interface ProjectMemberDelegate<ExtArgs extends runtime.Types.Extensions.
*/
createMany<T extends ProjectMemberCreateManyArgs>(args?: Prisma.SelectSubset<T, ProjectMemberCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many ProjectMembers and returns the data saved in the database.
* @param {ProjectMemberCreateManyAndReturnArgs} args - Arguments to create many ProjectMembers.
* @example
* // Create many ProjectMembers
* const projectMember = await prisma.projectMember.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ProjectMembers and only return the `id`
* const projectMemberWithIdOnly = await prisma.projectMember.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ProjectMemberCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProjectMemberCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectMemberPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a ProjectMember.
* @param {ProjectMemberDeleteArgs} args - Arguments to delete one ProjectMember.
@@ -833,6 +956,36 @@ export interface ProjectMemberDelegate<ExtArgs extends runtime.Types.Extensions.
*/
updateMany<T extends ProjectMemberUpdateManyArgs>(args: Prisma.SelectSubset<T, ProjectMemberUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more ProjectMembers and returns the data updated in the database.
* @param {ProjectMemberUpdateManyAndReturnArgs} args - Arguments to update many ProjectMembers.
* @example
* // Update many ProjectMembers
* const projectMember = await prisma.projectMember.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more ProjectMembers and only return the `id`
* const projectMemberWithIdOnly = await prisma.projectMember.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ProjectMemberUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProjectMemberUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectMemberPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one ProjectMember.
* @param {ProjectMemberUpsertArgs} args - Arguments to update or create a ProjectMember.
@@ -1024,6 +1177,8 @@ export interface Prisma__ProjectMemberClient<T, Null = never, ExtArgs extends ru
*/
export interface ProjectMemberFieldRefs {
readonly id: Prisma.FieldRef<"ProjectMember", 'Int'>
readonly uuid: Prisma.FieldRef<"ProjectMember", 'String'>
readonly projectUuid: Prisma.FieldRef<"ProjectMember", 'String'>
readonly projectId: Prisma.FieldRef<"ProjectMember", 'Int'>
readonly userId: Prisma.FieldRef<"ProjectMember", 'Int'>
readonly permission: Prisma.FieldRef<"ProjectMember", 'String'>
@@ -1265,6 +1420,29 @@ export type ProjectMemberCreateManyArgs<ExtArgs extends runtime.Types.Extensions
skipDuplicates?: boolean
}
/**
* ProjectMember createManyAndReturn
*/
export type ProjectMemberCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ProjectMember
*/
select?: Prisma.ProjectMemberSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ProjectMember
*/
omit?: Prisma.ProjectMemberOmit<ExtArgs> | null
/**
* The data used to create many ProjectMembers.
*/
data: Prisma.ProjectMemberCreateManyInput | Prisma.ProjectMemberCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProjectMemberIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* ProjectMember update
*/
@@ -1309,6 +1487,36 @@ export type ProjectMemberUpdateManyArgs<ExtArgs extends runtime.Types.Extensions
limit?: number
}
/**
* ProjectMember updateManyAndReturn
*/
export type ProjectMemberUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ProjectMember
*/
select?: Prisma.ProjectMemberSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ProjectMember
*/
omit?: Prisma.ProjectMemberOmit<ExtArgs> | null
/**
* The data used to update ProjectMembers.
*/
data: Prisma.XOR<Prisma.ProjectMemberUpdateManyMutationInput, Prisma.ProjectMemberUncheckedUpdateManyInput>
/**
* Filter which ProjectMembers to update
*/
where?: Prisma.ProjectMemberWhereInput
/**
* Limit how many ProjectMembers to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProjectMemberIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* ProjectMember upsert
*/
+117 -7
View File
@@ -238,7 +238,6 @@ export type ScraperCacheOrderByWithRelationInput = {
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_relevance?: Prisma.ScraperCacheOrderByRelevanceInput
}
export type ScraperCacheWhereUniqueInput = Prisma.AtLeast<{
@@ -349,12 +348,6 @@ export type ScraperCacheUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ScraperCacheOrderByRelevanceInput = {
fields: Prisma.ScraperCacheOrderByRelevanceFieldEnum | Prisma.ScraperCacheOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ScraperCacheCountOrderByAggregateInput = {
id?: Prisma.SortOrder
scraperName?: Prisma.SortOrder
@@ -403,7 +396,25 @@ export type ScraperCacheSelect<ExtArgs extends runtime.Types.Extensions.Internal
updatedAt?: boolean
}, ExtArgs["result"]["scraperCache"]>
export type ScraperCacheSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
scraperName?: boolean
lastDataHash?: boolean
lastUpdateAt?: boolean
metadata?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["scraperCache"]>
export type ScraperCacheSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
scraperName?: boolean
lastDataHash?: boolean
lastUpdateAt?: boolean
metadata?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["scraperCache"]>
export type ScraperCacheSelectScalar = {
id?: boolean
@@ -545,6 +556,30 @@ export interface ScraperCacheDelegate<ExtArgs extends runtime.Types.Extensions.I
*/
createMany<T extends ScraperCacheCreateManyArgs>(args?: Prisma.SelectSubset<T, ScraperCacheCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many ScraperCaches and returns the data saved in the database.
* @param {ScraperCacheCreateManyAndReturnArgs} args - Arguments to create many ScraperCaches.
* @example
* // Create many ScraperCaches
* const scraperCache = await prisma.scraperCache.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ScraperCaches and only return the `id`
* const scraperCacheWithIdOnly = await prisma.scraperCache.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ScraperCacheCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ScraperCacheCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ScraperCachePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a ScraperCache.
* @param {ScraperCacheDeleteArgs} args - Arguments to delete one ScraperCache.
@@ -609,6 +644,36 @@ export interface ScraperCacheDelegate<ExtArgs extends runtime.Types.Extensions.I
*/
updateMany<T extends ScraperCacheUpdateManyArgs>(args: Prisma.SelectSubset<T, ScraperCacheUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more ScraperCaches and returns the data updated in the database.
* @param {ScraperCacheUpdateManyAndReturnArgs} args - Arguments to update many ScraperCaches.
* @example
* // Update many ScraperCaches
* const scraperCache = await prisma.scraperCache.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more ScraperCaches and only return the `id`
* const scraperCacheWithIdOnly = await prisma.scraperCache.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ScraperCacheUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ScraperCacheUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ScraperCachePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one ScraperCache.
* @param {ScraperCacheUpsertArgs} args - Arguments to update or create a ScraperCache.
@@ -1017,6 +1082,25 @@ export type ScraperCacheCreateManyArgs<ExtArgs extends runtime.Types.Extensions.
skipDuplicates?: boolean
}
/**
* ScraperCache createManyAndReturn
*/
export type ScraperCacheCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ScraperCache
*/
select?: Prisma.ScraperCacheSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ScraperCache
*/
omit?: Prisma.ScraperCacheOmit<ExtArgs> | null
/**
* The data used to create many ScraperCaches.
*/
data: Prisma.ScraperCacheCreateManyInput | Prisma.ScraperCacheCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ScraperCache update
*/
@@ -1057,6 +1141,32 @@ export type ScraperCacheUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.
limit?: number
}
/**
* ScraperCache updateManyAndReturn
*/
export type ScraperCacheUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ScraperCache
*/
select?: Prisma.ScraperCacheSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ScraperCache
*/
omit?: Prisma.ScraperCacheOmit<ExtArgs> | null
/**
* The data used to update ScraperCaches.
*/
data: Prisma.XOR<Prisma.ScraperCacheUpdateManyMutationInput, Prisma.ScraperCacheUncheckedUpdateManyInput>
/**
* Filter which ScraperCaches to update
*/
where?: Prisma.ScraperCacheWhereInput
/**
* Limit how many ScraperCaches to update.
*/
limit?: number
}
/**
* ScraperCache upsert
*/
+153 -7
View File
@@ -464,7 +464,6 @@ export type ServerNodeOrderByWithRelationInput = {
recordedAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_relevance?: Prisma.ServerNodeOrderByRelevanceInput
}
export type ServerNodeWhereUniqueInput = Prisma.AtLeast<{
@@ -755,12 +754,6 @@ export type ServerNodeUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ServerNodeOrderByRelevanceInput = {
fields: Prisma.ServerNodeOrderByRelevanceFieldEnum | Prisma.ServerNodeOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ServerNodeCountOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
@@ -921,7 +914,61 @@ export type ServerNodeSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
updatedAt?: boolean
}, ExtArgs["result"]["serverNode"]>
export type ServerNodeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
name?: boolean
cpuName?: boolean
os?: boolean
region?: boolean
memTotal?: boolean
diskTotal?: boolean
cpuCores?: boolean
cpuUsage?: boolean
ramUsed?: boolean
swapUsed?: boolean
load1?: boolean
load5?: boolean
load15?: boolean
diskUsed?: boolean
netIn?: boolean
netOut?: boolean
uptime?: boolean
process?: boolean
connections?: boolean
status?: boolean
recordedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["serverNode"]>
export type ServerNodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
name?: boolean
cpuName?: boolean
os?: boolean
region?: boolean
memTotal?: boolean
diskTotal?: boolean
cpuCores?: boolean
cpuUsage?: boolean
ramUsed?: boolean
swapUsed?: boolean
load1?: boolean
load5?: boolean
load15?: boolean
diskUsed?: boolean
netIn?: boolean
netOut?: boolean
uptime?: boolean
process?: boolean
connections?: boolean
status?: boolean
recordedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["serverNode"]>
export type ServerNodeSelectScalar = {
id?: boolean
@@ -1099,6 +1146,30 @@ export interface ServerNodeDelegate<ExtArgs extends runtime.Types.Extensions.Int
*/
createMany<T extends ServerNodeCreateManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many ServerNodes and returns the data saved in the database.
* @param {ServerNodeCreateManyAndReturnArgs} args - Arguments to create many ServerNodes.
* @example
* // Create many ServerNodes
* const serverNode = await prisma.serverNode.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ServerNodes and only return the `id`
* const serverNodeWithIdOnly = await prisma.serverNode.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ServerNodeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ServerNodeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a ServerNode.
* @param {ServerNodeDeleteArgs} args - Arguments to delete one ServerNode.
@@ -1163,6 +1234,36 @@ export interface ServerNodeDelegate<ExtArgs extends runtime.Types.Extensions.Int
*/
updateMany<T extends ServerNodeUpdateManyArgs>(args: Prisma.SelectSubset<T, ServerNodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more ServerNodes and returns the data updated in the database.
* @param {ServerNodeUpdateManyAndReturnArgs} args - Arguments to update many ServerNodes.
* @example
* // Update many ServerNodes
* const serverNode = await prisma.serverNode.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more ServerNodes and only return the `id`
* const serverNodeWithIdOnly = await prisma.serverNode.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ServerNodeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ServerNodeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one ServerNode.
* @param {ServerNodeUpsertArgs} args - Arguments to update or create a ServerNode.
@@ -1589,6 +1690,25 @@ export type ServerNodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.In
skipDuplicates?: boolean
}
/**
* ServerNode createManyAndReturn
*/
export type ServerNodeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServerNode
*/
select?: Prisma.ServerNodeSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ServerNode
*/
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
/**
* The data used to create many ServerNodes.
*/
data: Prisma.ServerNodeCreateManyInput | Prisma.ServerNodeCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ServerNode update
*/
@@ -1629,6 +1749,32 @@ export type ServerNodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.In
limit?: number
}
/**
* ServerNode updateManyAndReturn
*/
export type ServerNodeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServerNode
*/
select?: Prisma.ServerNodeSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ServerNode
*/
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
/**
* The data used to update ServerNodes.
*/
data: Prisma.XOR<Prisma.ServerNodeUpdateManyMutationInput, Prisma.ServerNodeUncheckedUpdateManyInput>
/**
* Filter which ServerNodes to update
*/
where?: Prisma.ServerNodeWhereInput
/**
* Limit how many ServerNodes to update.
*/
limit?: number
}
/**
* ServerNode upsert
*/
+127 -7
View File
@@ -319,7 +319,6 @@ export type ServerNodeHistoryOrderByWithRelationInput = {
process?: Prisma.SortOrder
connections?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
_relevance?: Prisma.ServerNodeHistoryOrderByRelevanceInput
}
export type ServerNodeHistoryWhereUniqueInput = Prisma.AtLeast<{
@@ -481,12 +480,6 @@ export type ServerNodeHistoryUncheckedUpdateManyInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ServerNodeHistoryOrderByRelevanceInput = {
fields: Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum | Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ServerNodeHistoryUuidPeriodCompoundUniqueInput = {
uuid: string
period: Date | string
@@ -578,7 +571,35 @@ export type ServerNodeHistorySelect<ExtArgs extends runtime.Types.Extensions.Int
createdAt?: boolean
}, ExtArgs["result"]["serverNodeHistory"]>
export type ServerNodeHistorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
period?: boolean
cpu?: boolean
ram?: boolean
load?: boolean
disk?: boolean
netIn?: boolean
netOut?: boolean
process?: boolean
connections?: boolean
createdAt?: boolean
}, ExtArgs["result"]["serverNodeHistory"]>
export type ServerNodeHistorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
period?: boolean
cpu?: boolean
ram?: boolean
load?: boolean
disk?: boolean
netIn?: boolean
netOut?: boolean
process?: boolean
connections?: boolean
createdAt?: boolean
}, ExtArgs["result"]["serverNodeHistory"]>
export type ServerNodeHistorySelectScalar = {
id?: boolean
@@ -730,6 +751,30 @@ export interface ServerNodeHistoryDelegate<ExtArgs extends runtime.Types.Extensi
*/
createMany<T extends ServerNodeHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many ServerNodeHistories and returns the data saved in the database.
* @param {ServerNodeHistoryCreateManyAndReturnArgs} args - Arguments to create many ServerNodeHistories.
* @example
* // Create many ServerNodeHistories
* const serverNodeHistory = await prisma.serverNodeHistory.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ServerNodeHistories and only return the `id`
* const serverNodeHistoryWithIdOnly = await prisma.serverNodeHistory.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ServerNodeHistoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a ServerNodeHistory.
* @param {ServerNodeHistoryDeleteArgs} args - Arguments to delete one ServerNodeHistory.
@@ -794,6 +839,36 @@ export interface ServerNodeHistoryDelegate<ExtArgs extends runtime.Types.Extensi
*/
updateMany<T extends ServerNodeHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more ServerNodeHistories and returns the data updated in the database.
* @param {ServerNodeHistoryUpdateManyAndReturnArgs} args - Arguments to update many ServerNodeHistories.
* @example
* // Update many ServerNodeHistories
* const serverNodeHistory = await prisma.serverNodeHistory.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more ServerNodeHistories and only return the `id`
* const serverNodeHistoryWithIdOnly = await prisma.serverNodeHistory.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ServerNodeHistoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one ServerNodeHistory.
* @param {ServerNodeHistoryUpsertArgs} args - Arguments to update or create a ServerNodeHistory.
@@ -1207,6 +1282,25 @@ export type ServerNodeHistoryCreateManyArgs<ExtArgs extends runtime.Types.Extens
skipDuplicates?: boolean
}
/**
* ServerNodeHistory createManyAndReturn
*/
export type ServerNodeHistoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServerNodeHistory
*/
select?: Prisma.ServerNodeHistorySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ServerNodeHistory
*/
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
/**
* The data used to create many ServerNodeHistories.
*/
data: Prisma.ServerNodeHistoryCreateManyInput | Prisma.ServerNodeHistoryCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ServerNodeHistory update
*/
@@ -1247,6 +1341,32 @@ export type ServerNodeHistoryUpdateManyArgs<ExtArgs extends runtime.Types.Extens
limit?: number
}
/**
* ServerNodeHistory updateManyAndReturn
*/
export type ServerNodeHistoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServerNodeHistory
*/
select?: Prisma.ServerNodeHistorySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ServerNodeHistory
*/
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
/**
* The data used to update ServerNodeHistories.
*/
data: Prisma.XOR<Prisma.ServerNodeHistoryUpdateManyMutationInput, Prisma.ServerNodeHistoryUncheckedUpdateManyInput>
/**
* Filter which ServerNodeHistories to update
*/
where?: Prisma.ServerNodeHistoryWhereInput
/**
* Limit how many ServerNodeHistories to update.
*/
limit?: number
}
/**
* ServerNodeHistory upsert
*/
+121 -7
View File
@@ -264,7 +264,6 @@ export type ServiceCheckOrderByWithRelationInput = {
lastCheckAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_relevance?: Prisma.ServiceCheckOrderByRelevanceInput
}
export type ServiceCheckWhereUniqueInput = Prisma.AtLeast<{
@@ -395,12 +394,6 @@ export type ServiceCheckUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ServiceCheckOrderByRelevanceInput = {
fields: Prisma.ServiceCheckOrderByRelevanceFieldEnum | Prisma.ServiceCheckOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ServiceCheckCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
@@ -461,7 +454,29 @@ export type ServiceCheckSelect<ExtArgs extends runtime.Types.Extensions.Internal
updatedAt?: boolean
}, ExtArgs["result"]["serviceCheck"]>
export type ServiceCheckSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
url?: boolean
status?: boolean
latencyMs?: boolean
message?: boolean
lastCheckAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["serviceCheck"]>
export type ServiceCheckSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
url?: boolean
status?: boolean
latencyMs?: boolean
message?: boolean
lastCheckAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["serviceCheck"]>
export type ServiceCheckSelectScalar = {
id?: boolean
@@ -607,6 +622,30 @@ export interface ServiceCheckDelegate<ExtArgs extends runtime.Types.Extensions.I
*/
createMany<T extends ServiceCheckCreateManyArgs>(args?: Prisma.SelectSubset<T, ServiceCheckCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many ServiceChecks and returns the data saved in the database.
* @param {ServiceCheckCreateManyAndReturnArgs} args - Arguments to create many ServiceChecks.
* @example
* // Create many ServiceChecks
* const serviceCheck = await prisma.serviceCheck.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ServiceChecks and only return the `id`
* const serviceCheckWithIdOnly = await prisma.serviceCheck.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ServiceCheckCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ServiceCheckCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a ServiceCheck.
* @param {ServiceCheckDeleteArgs} args - Arguments to delete one ServiceCheck.
@@ -671,6 +710,36 @@ export interface ServiceCheckDelegate<ExtArgs extends runtime.Types.Extensions.I
*/
updateMany<T extends ServiceCheckUpdateManyArgs>(args: Prisma.SelectSubset<T, ServiceCheckUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more ServiceChecks and returns the data updated in the database.
* @param {ServiceCheckUpdateManyAndReturnArgs} args - Arguments to update many ServiceChecks.
* @example
* // Update many ServiceChecks
* const serviceCheck = await prisma.serviceCheck.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more ServiceChecks and only return the `id`
* const serviceCheckWithIdOnly = await prisma.serviceCheck.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ServiceCheckUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ServiceCheckUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one ServiceCheck.
* @param {ServiceCheckUpsertArgs} args - Arguments to update or create a ServiceCheck.
@@ -1081,6 +1150,25 @@ export type ServiceCheckCreateManyArgs<ExtArgs extends runtime.Types.Extensions.
skipDuplicates?: boolean
}
/**
* ServiceCheck createManyAndReturn
*/
export type ServiceCheckCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* The data used to create many ServiceChecks.
*/
data: Prisma.ServiceCheckCreateManyInput | Prisma.ServiceCheckCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ServiceCheck update
*/
@@ -1121,6 +1209,32 @@ export type ServiceCheckUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.
limit?: number
}
/**
* ServiceCheck updateManyAndReturn
*/
export type ServiceCheckUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* The data used to update ServiceChecks.
*/
data: Prisma.XOR<Prisma.ServiceCheckUpdateManyMutationInput, Prisma.ServiceCheckUncheckedUpdateManyInput>
/**
* Filter which ServiceChecks to update
*/
where?: Prisma.ServiceCheckWhereInput
/**
* Limit how many ServiceChecks to update.
*/
limit?: number
}
/**
* ServiceCheck upsert
*/
+115 -7
View File
@@ -229,7 +229,6 @@ export type StrategyOrderByWithRelationInput = {
data?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_relevance?: Prisma.StrategyOrderByRelevanceInput
}
export type StrategyWhereUniqueInput = Prisma.AtLeast<{
@@ -330,12 +329,6 @@ export type StrategyUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type StrategyOrderByRelevanceInput = {
fields: Prisma.StrategyOrderByRelevanceFieldEnum | Prisma.StrategyOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type StrategyCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
@@ -380,7 +373,23 @@ export type StrategySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
updatedAt?: boolean
}, ExtArgs["result"]["strategy"]>
export type StrategySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
data?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["strategy"]>
export type StrategySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
data?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["strategy"]>
export type StrategySelectScalar = {
id?: boolean
@@ -520,6 +529,30 @@ export interface StrategyDelegate<ExtArgs extends runtime.Types.Extensions.Inter
*/
createMany<T extends StrategyCreateManyArgs>(args?: Prisma.SelectSubset<T, StrategyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Strategies and returns the data saved in the database.
* @param {StrategyCreateManyAndReturnArgs} args - Arguments to create many Strategies.
* @example
* // Create many Strategies
* const strategy = await prisma.strategy.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Strategies and only return the `id`
* const strategyWithIdOnly = await prisma.strategy.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends StrategyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StrategyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StrategyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Strategy.
* @param {StrategyDeleteArgs} args - Arguments to delete one Strategy.
@@ -584,6 +617,36 @@ export interface StrategyDelegate<ExtArgs extends runtime.Types.Extensions.Inter
*/
updateMany<T extends StrategyUpdateManyArgs>(args: Prisma.SelectSubset<T, StrategyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Strategies and returns the data updated in the database.
* @param {StrategyUpdateManyAndReturnArgs} args - Arguments to update many Strategies.
* @example
* // Update many Strategies
* const strategy = await prisma.strategy.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Strategies and only return the `id`
* const strategyWithIdOnly = await prisma.strategy.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends StrategyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StrategyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StrategyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Strategy.
* @param {StrategyUpsertArgs} args - Arguments to update or create a Strategy.
@@ -991,6 +1054,25 @@ export type StrategyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
skipDuplicates?: boolean
}
/**
* Strategy createManyAndReturn
*/
export type StrategyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Strategy
*/
select?: Prisma.StrategySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Strategy
*/
omit?: Prisma.StrategyOmit<ExtArgs> | null
/**
* The data used to create many Strategies.
*/
data: Prisma.StrategyCreateManyInput | Prisma.StrategyCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Strategy update
*/
@@ -1031,6 +1113,32 @@ export type StrategyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
limit?: number
}
/**
* Strategy updateManyAndReturn
*/
export type StrategyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Strategy
*/
select?: Prisma.StrategySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Strategy
*/
omit?: Prisma.StrategyOmit<ExtArgs> | null
/**
* The data used to update Strategies.
*/
data: Prisma.XOR<Prisma.StrategyUpdateManyMutationInput, Prisma.StrategyUncheckedUpdateManyInput>
/**
* Filter which Strategies to update
*/
where?: Prisma.StrategyWhereInput
/**
* Limit how many Strategies to update.
*/
limit?: number
}
/**
* Strategy upsert
*/
File diff suppressed because it is too large Load Diff
+213 -3
View File
@@ -40,18 +40,24 @@ export type TaskMemberSumAggregateOutputType = {
export type TaskMemberMinAggregateOutputType = {
id: number | null
uuid: string | null
taskUuid: string | null
taskId: number | null
userId: number | null
}
export type TaskMemberMaxAggregateOutputType = {
id: number | null
uuid: string | null
taskUuid: string | null
taskId: number | null
userId: number | null
}
export type TaskMemberCountAggregateOutputType = {
id: number
uuid: number
taskUuid: number
taskId: number
userId: number
_all: number
@@ -72,18 +78,24 @@ export type TaskMemberSumAggregateInputType = {
export type TaskMemberMinAggregateInputType = {
id?: true
uuid?: true
taskUuid?: true
taskId?: true
userId?: true
}
export type TaskMemberMaxAggregateInputType = {
id?: true
uuid?: true
taskUuid?: true
taskId?: true
userId?: true
}
export type TaskMemberCountAggregateInputType = {
id?: true
uuid?: true
taskUuid?: true
taskId?: true
userId?: true
_all?: true
@@ -177,6 +189,8 @@ export type TaskMemberGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inter
export type TaskMemberGroupByOutputType = {
id: number
uuid: string
taskUuid: string | null
taskId: number
userId: number
_count: TaskMemberCountAggregateOutputType | null
@@ -206,6 +220,8 @@ export type TaskMemberWhereInput = {
OR?: Prisma.TaskMemberWhereInput[]
NOT?: Prisma.TaskMemberWhereInput | Prisma.TaskMemberWhereInput[]
id?: Prisma.IntFilter<"TaskMember"> | number
uuid?: Prisma.StringFilter<"TaskMember"> | string
taskUuid?: Prisma.StringNullableFilter<"TaskMember"> | string | null
taskId?: Prisma.IntFilter<"TaskMember"> | number
userId?: Prisma.IntFilter<"TaskMember"> | number
task?: Prisma.XOR<Prisma.TaskScalarRelationFilter, Prisma.TaskWhereInput>
@@ -214,6 +230,8 @@ export type TaskMemberWhereInput = {
export type TaskMemberOrderByWithRelationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrderInput | Prisma.SortOrder
taskId?: Prisma.SortOrder
userId?: Prisma.SortOrder
task?: Prisma.TaskOrderByWithRelationInput
@@ -222,18 +240,22 @@ export type TaskMemberOrderByWithRelationInput = {
export type TaskMemberWhereUniqueInput = Prisma.AtLeast<{
id?: number
uuid?: string
taskId_userId?: Prisma.TaskMemberTaskIdUserIdCompoundUniqueInput
AND?: Prisma.TaskMemberWhereInput | Prisma.TaskMemberWhereInput[]
OR?: Prisma.TaskMemberWhereInput[]
NOT?: Prisma.TaskMemberWhereInput | Prisma.TaskMemberWhereInput[]
taskUuid?: Prisma.StringNullableFilter<"TaskMember"> | string | null
taskId?: Prisma.IntFilter<"TaskMember"> | number
userId?: Prisma.IntFilter<"TaskMember"> | number
task?: Prisma.XOR<Prisma.TaskScalarRelationFilter, Prisma.TaskWhereInput>
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}, "id" | "taskId_userId">
}, "id" | "uuid" | "taskId_userId">
export type TaskMemberOrderByWithAggregationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrderInput | Prisma.SortOrder
taskId?: Prisma.SortOrder
userId?: Prisma.SortOrder
_count?: Prisma.TaskMemberCountOrderByAggregateInput
@@ -248,44 +270,59 @@ export type TaskMemberScalarWhereWithAggregatesInput = {
OR?: Prisma.TaskMemberScalarWhereWithAggregatesInput[]
NOT?: Prisma.TaskMemberScalarWhereWithAggregatesInput | Prisma.TaskMemberScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"TaskMember"> | number
uuid?: Prisma.StringWithAggregatesFilter<"TaskMember"> | string
taskUuid?: Prisma.StringNullableWithAggregatesFilter<"TaskMember"> | string | null
taskId?: Prisma.IntWithAggregatesFilter<"TaskMember"> | number
userId?: Prisma.IntWithAggregatesFilter<"TaskMember"> | number
}
export type TaskMemberCreateInput = {
uuid: string
taskUuid?: string | null
task: Prisma.TaskCreateNestedOneWithoutMembersInput
user: Prisma.UserCreateNestedOneWithoutTaskMembersInput
}
export type TaskMemberUncheckedCreateInput = {
id?: number
uuid: string
taskUuid?: string | null
taskId: number
userId: number
}
export type TaskMemberUpdateInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
task?: Prisma.TaskUpdateOneRequiredWithoutMembersNestedInput
user?: Prisma.UserUpdateOneRequiredWithoutTaskMembersNestedInput
}
export type TaskMemberUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
taskId?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type TaskMemberCreateManyInput = {
id?: number
uuid: string
taskUuid?: string | null
taskId: number
userId: number
}
export type TaskMemberUpdateManyMutationInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type TaskMemberUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
taskId?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.IntFieldUpdateOperationsInput | number
}
@@ -307,6 +344,8 @@ export type TaskMemberTaskIdUserIdCompoundUniqueInput = {
export type TaskMemberCountOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrder
taskId?: Prisma.SortOrder
userId?: Prisma.SortOrder
}
@@ -319,12 +358,16 @@ export type TaskMemberAvgOrderByAggregateInput = {
export type TaskMemberMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrder
taskId?: Prisma.SortOrder
userId?: Prisma.SortOrder
}
export type TaskMemberMinOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrder
taskId?: Prisma.SortOrder
userId?: Prisma.SortOrder
}
@@ -420,11 +463,15 @@ export type TaskMemberUncheckedUpdateManyWithoutTaskNestedInput = {
}
export type TaskMemberCreateWithoutUserInput = {
uuid: string
taskUuid?: string | null
task: Prisma.TaskCreateNestedOneWithoutMembersInput
}
export type TaskMemberUncheckedCreateWithoutUserInput = {
id?: number
uuid: string
taskUuid?: string | null
taskId: number
}
@@ -459,16 +506,22 @@ export type TaskMemberScalarWhereInput = {
OR?: Prisma.TaskMemberScalarWhereInput[]
NOT?: Prisma.TaskMemberScalarWhereInput | Prisma.TaskMemberScalarWhereInput[]
id?: Prisma.IntFilter<"TaskMember"> | number
uuid?: Prisma.StringFilter<"TaskMember"> | string
taskUuid?: Prisma.StringNullableFilter<"TaskMember"> | string | null
taskId?: Prisma.IntFilter<"TaskMember"> | number
userId?: Prisma.IntFilter<"TaskMember"> | number
}
export type TaskMemberCreateWithoutTaskInput = {
uuid: string
taskUuid?: string | null
user: Prisma.UserCreateNestedOneWithoutTaskMembersInput
}
export type TaskMemberUncheckedCreateWithoutTaskInput = {
id?: number
uuid: string
taskUuid?: string | null
userId: number
}
@@ -500,39 +553,55 @@ export type TaskMemberUpdateManyWithWhereWithoutTaskInput = {
export type TaskMemberCreateManyUserInput = {
id?: number
uuid: string
taskUuid?: string | null
taskId: number
}
export type TaskMemberUpdateWithoutUserInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
task?: Prisma.TaskUpdateOneRequiredWithoutMembersNestedInput
}
export type TaskMemberUncheckedUpdateWithoutUserInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
taskId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type TaskMemberUncheckedUpdateManyWithoutUserInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
taskId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type TaskMemberCreateManyTaskInput = {
id?: number
uuid: string
taskUuid?: string | null
userId: number
}
export type TaskMemberUpdateWithoutTaskInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
user?: Prisma.UserUpdateOneRequiredWithoutTaskMembersNestedInput
}
export type TaskMemberUncheckedUpdateWithoutTaskInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
userId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type TaskMemberUncheckedUpdateManyWithoutTaskInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
userId?: Prisma.IntFieldUpdateOperationsInput | number
}
@@ -540,25 +609,55 @@ export type TaskMemberUncheckedUpdateManyWithoutTaskInput = {
export type TaskMemberSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
taskUuid?: boolean
taskId?: boolean
userId?: boolean
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["taskMember"]>
export type TaskMemberSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
taskUuid?: boolean
taskId?: boolean
userId?: boolean
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["taskMember"]>
export type TaskMemberSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
taskUuid?: boolean
taskId?: boolean
userId?: boolean
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["taskMember"]>
export type TaskMemberSelectScalar = {
id?: boolean
uuid?: boolean
taskUuid?: boolean
taskId?: boolean
userId?: boolean
}
export type TaskMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "taskId" | "userId", ExtArgs["result"]["taskMember"]>
export type TaskMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "taskUuid" | "taskId" | "userId", ExtArgs["result"]["taskMember"]>
export type TaskMemberInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type TaskMemberIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type TaskMemberIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type $TaskMemberPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "TaskMember"
@@ -568,6 +667,8 @@ export type $TaskMemberPayload<ExtArgs extends runtime.Types.Extensions.Internal
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
uuid: string
taskUuid: string | null
taskId: number
userId: number
}, ExtArgs["result"]["taskMember"]>
@@ -687,6 +788,30 @@ export interface TaskMemberDelegate<ExtArgs extends runtime.Types.Extensions.Int
*/
createMany<T extends TaskMemberCreateManyArgs>(args?: Prisma.SelectSubset<T, TaskMemberCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many TaskMembers and returns the data saved in the database.
* @param {TaskMemberCreateManyAndReturnArgs} args - Arguments to create many TaskMembers.
* @example
* // Create many TaskMembers
* const taskMember = await prisma.taskMember.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many TaskMembers and only return the `id`
* const taskMemberWithIdOnly = await prisma.taskMember.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends TaskMemberCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TaskMemberCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskMemberPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a TaskMember.
* @param {TaskMemberDeleteArgs} args - Arguments to delete one TaskMember.
@@ -751,6 +876,36 @@ export interface TaskMemberDelegate<ExtArgs extends runtime.Types.Extensions.Int
*/
updateMany<T extends TaskMemberUpdateManyArgs>(args: Prisma.SelectSubset<T, TaskMemberUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more TaskMembers and returns the data updated in the database.
* @param {TaskMemberUpdateManyAndReturnArgs} args - Arguments to update many TaskMembers.
* @example
* // Update many TaskMembers
* const taskMember = await prisma.taskMember.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more TaskMembers and only return the `id`
* const taskMemberWithIdOnly = await prisma.taskMember.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends TaskMemberUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TaskMemberUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskMemberPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one TaskMember.
* @param {TaskMemberUpsertArgs} args - Arguments to update or create a TaskMember.
@@ -942,6 +1097,8 @@ export interface Prisma__TaskMemberClient<T, Null = never, ExtArgs extends runti
*/
export interface TaskMemberFieldRefs {
readonly id: Prisma.FieldRef<"TaskMember", 'Int'>
readonly uuid: Prisma.FieldRef<"TaskMember", 'String'>
readonly taskUuid: Prisma.FieldRef<"TaskMember", 'String'>
readonly taskId: Prisma.FieldRef<"TaskMember", 'Int'>
readonly userId: Prisma.FieldRef<"TaskMember", 'Int'>
}
@@ -1181,6 +1338,29 @@ export type TaskMemberCreateManyArgs<ExtArgs extends runtime.Types.Extensions.In
skipDuplicates?: boolean
}
/**
* TaskMember createManyAndReturn
*/
export type TaskMemberCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TaskMember
*/
select?: Prisma.TaskMemberSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TaskMember
*/
omit?: Prisma.TaskMemberOmit<ExtArgs> | null
/**
* The data used to create many TaskMembers.
*/
data: Prisma.TaskMemberCreateManyInput | Prisma.TaskMemberCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TaskMemberIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* TaskMember update
*/
@@ -1225,6 +1405,36 @@ export type TaskMemberUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.In
limit?: number
}
/**
* TaskMember updateManyAndReturn
*/
export type TaskMemberUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TaskMember
*/
select?: Prisma.TaskMemberSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TaskMember
*/
omit?: Prisma.TaskMemberOmit<ExtArgs> | null
/**
* The data used to update TaskMembers.
*/
data: Prisma.XOR<Prisma.TaskMemberUpdateManyMutationInput, Prisma.TaskMemberUncheckedUpdateManyInput>
/**
* Filter which TaskMembers to update
*/
where?: Prisma.TaskMemberWhereInput
/**
* Limit how many TaskMembers to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TaskMemberIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* TaskMember upsert
*/
+197 -9
View File
@@ -38,18 +38,24 @@ export type TaskTagSumAggregateOutputType = {
export type TaskTagMinAggregateOutputType = {
id: number | null
uuid: string | null
taskUuid: string | null
taskId: number | null
name: string | null
}
export type TaskTagMaxAggregateOutputType = {
id: number | null
uuid: string | null
taskUuid: string | null
taskId: number | null
name: string | null
}
export type TaskTagCountAggregateOutputType = {
id: number
uuid: number
taskUuid: number
taskId: number
name: number
_all: number
@@ -68,18 +74,24 @@ export type TaskTagSumAggregateInputType = {
export type TaskTagMinAggregateInputType = {
id?: true
uuid?: true
taskUuid?: true
taskId?: true
name?: true
}
export type TaskTagMaxAggregateInputType = {
id?: true
uuid?: true
taskUuid?: true
taskId?: true
name?: true
}
export type TaskTagCountAggregateInputType = {
id?: true
uuid?: true
taskUuid?: true
taskId?: true
name?: true
_all?: true
@@ -173,6 +185,8 @@ export type TaskTagGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
export type TaskTagGroupByOutputType = {
id: number
uuid: string
taskUuid: string | null
taskId: number
name: string
_count: TaskTagCountAggregateOutputType | null
@@ -202,6 +216,8 @@ export type TaskTagWhereInput = {
OR?: Prisma.TaskTagWhereInput[]
NOT?: Prisma.TaskTagWhereInput | Prisma.TaskTagWhereInput[]
id?: Prisma.IntFilter<"TaskTag"> | number
uuid?: Prisma.StringFilter<"TaskTag"> | string
taskUuid?: Prisma.StringNullableFilter<"TaskTag"> | string | null
taskId?: Prisma.IntFilter<"TaskTag"> | number
name?: Prisma.StringFilter<"TaskTag"> | string
task?: Prisma.XOR<Prisma.TaskScalarRelationFilter, Prisma.TaskWhereInput>
@@ -209,24 +225,29 @@ export type TaskTagWhereInput = {
export type TaskTagOrderByWithRelationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrderInput | Prisma.SortOrder
taskId?: Prisma.SortOrder
name?: Prisma.SortOrder
task?: Prisma.TaskOrderByWithRelationInput
_relevance?: Prisma.TaskTagOrderByRelevanceInput
}
export type TaskTagWhereUniqueInput = Prisma.AtLeast<{
id?: number
uuid?: string
AND?: Prisma.TaskTagWhereInput | Prisma.TaskTagWhereInput[]
OR?: Prisma.TaskTagWhereInput[]
NOT?: Prisma.TaskTagWhereInput | Prisma.TaskTagWhereInput[]
taskUuid?: Prisma.StringNullableFilter<"TaskTag"> | string | null
taskId?: Prisma.IntFilter<"TaskTag"> | number
name?: Prisma.StringFilter<"TaskTag"> | string
task?: Prisma.XOR<Prisma.TaskScalarRelationFilter, Prisma.TaskWhereInput>
}, "id">
}, "id" | "uuid">
export type TaskTagOrderByWithAggregationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrderInput | Prisma.SortOrder
taskId?: Prisma.SortOrder
name?: Prisma.SortOrder
_count?: Prisma.TaskTagCountOrderByAggregateInput
@@ -241,44 +262,60 @@ export type TaskTagScalarWhereWithAggregatesInput = {
OR?: Prisma.TaskTagScalarWhereWithAggregatesInput[]
NOT?: Prisma.TaskTagScalarWhereWithAggregatesInput | Prisma.TaskTagScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"TaskTag"> | number
uuid?: Prisma.StringWithAggregatesFilter<"TaskTag"> | string
taskUuid?: Prisma.StringNullableWithAggregatesFilter<"TaskTag"> | string | null
taskId?: Prisma.IntWithAggregatesFilter<"TaskTag"> | number
name?: Prisma.StringWithAggregatesFilter<"TaskTag"> | string
}
export type TaskTagCreateInput = {
uuid: string
taskUuid?: string | null
name: string
task: Prisma.TaskCreateNestedOneWithoutTagsInput
}
export type TaskTagUncheckedCreateInput = {
id?: number
uuid: string
taskUuid?: string | null
taskId: number
name: string
}
export type TaskTagUpdateInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
task?: Prisma.TaskUpdateOneRequiredWithoutTagsNestedInput
}
export type TaskTagUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
taskId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TaskTagCreateManyInput = {
id?: number
uuid: string
taskUuid?: string | null
taskId: number
name: string
}
export type TaskTagUpdateManyMutationInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TaskTagUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
taskId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
}
@@ -293,14 +330,10 @@ export type TaskTagOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type TaskTagOrderByRelevanceInput = {
fields: Prisma.TaskTagOrderByRelevanceFieldEnum | Prisma.TaskTagOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type TaskTagCountOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrder
taskId?: Prisma.SortOrder
name?: Prisma.SortOrder
}
@@ -312,12 +345,16 @@ export type TaskTagAvgOrderByAggregateInput = {
export type TaskTagMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrder
taskId?: Prisma.SortOrder
name?: Prisma.SortOrder
}
export type TaskTagMinOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
taskUuid?: Prisma.SortOrder
taskId?: Prisma.SortOrder
name?: Prisma.SortOrder
}
@@ -370,11 +407,15 @@ export type TaskTagUncheckedUpdateManyWithoutTaskNestedInput = {
}
export type TaskTagCreateWithoutTaskInput = {
uuid: string
taskUuid?: string | null
name: string
}
export type TaskTagUncheckedCreateWithoutTaskInput = {
id?: number
uuid: string
taskUuid?: string | null
name: string
}
@@ -409,26 +450,36 @@ export type TaskTagScalarWhereInput = {
OR?: Prisma.TaskTagScalarWhereInput[]
NOT?: Prisma.TaskTagScalarWhereInput | Prisma.TaskTagScalarWhereInput[]
id?: Prisma.IntFilter<"TaskTag"> | number
uuid?: Prisma.StringFilter<"TaskTag"> | string
taskUuid?: Prisma.StringNullableFilter<"TaskTag"> | string | null
taskId?: Prisma.IntFilter<"TaskTag"> | number
name?: Prisma.StringFilter<"TaskTag"> | string
}
export type TaskTagCreateManyTaskInput = {
id?: number
uuid: string
taskUuid?: string | null
name: string
}
export type TaskTagUpdateWithoutTaskInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TaskTagUncheckedUpdateWithoutTaskInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TaskTagUncheckedUpdateManyWithoutTaskInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
taskUuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
}
@@ -436,23 +487,49 @@ export type TaskTagUncheckedUpdateManyWithoutTaskInput = {
export type TaskTagSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
taskUuid?: boolean
taskId?: boolean
name?: boolean
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
}, ExtArgs["result"]["taskTag"]>
export type TaskTagSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
taskUuid?: boolean
taskId?: boolean
name?: boolean
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
}, ExtArgs["result"]["taskTag"]>
export type TaskTagSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
taskUuid?: boolean
taskId?: boolean
name?: boolean
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
}, ExtArgs["result"]["taskTag"]>
export type TaskTagSelectScalar = {
id?: boolean
uuid?: boolean
taskUuid?: boolean
taskId?: boolean
name?: boolean
}
export type TaskTagOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "taskId" | "name", ExtArgs["result"]["taskTag"]>
export type TaskTagOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "taskUuid" | "taskId" | "name", ExtArgs["result"]["taskTag"]>
export type TaskTagInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
}
export type TaskTagIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
}
export type TaskTagIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
}
export type $TaskTagPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "TaskTag"
@@ -461,6 +538,8 @@ export type $TaskTagPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
uuid: string
taskUuid: string | null
taskId: number
name: string
}, ExtArgs["result"]["taskTag"]>
@@ -580,6 +659,30 @@ export interface TaskTagDelegate<ExtArgs extends runtime.Types.Extensions.Intern
*/
createMany<T extends TaskTagCreateManyArgs>(args?: Prisma.SelectSubset<T, TaskTagCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many TaskTags and returns the data saved in the database.
* @param {TaskTagCreateManyAndReturnArgs} args - Arguments to create many TaskTags.
* @example
* // Create many TaskTags
* const taskTag = await prisma.taskTag.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many TaskTags and only return the `id`
* const taskTagWithIdOnly = await prisma.taskTag.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends TaskTagCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TaskTagCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskTagPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a TaskTag.
* @param {TaskTagDeleteArgs} args - Arguments to delete one TaskTag.
@@ -644,6 +747,36 @@ export interface TaskTagDelegate<ExtArgs extends runtime.Types.Extensions.Intern
*/
updateMany<T extends TaskTagUpdateManyArgs>(args: Prisma.SelectSubset<T, TaskTagUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more TaskTags and returns the data updated in the database.
* @param {TaskTagUpdateManyAndReturnArgs} args - Arguments to update many TaskTags.
* @example
* // Update many TaskTags
* const taskTag = await prisma.taskTag.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more TaskTags and only return the `id`
* const taskTagWithIdOnly = await prisma.taskTag.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends TaskTagUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TaskTagUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskTagPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one TaskTag.
* @param {TaskTagUpsertArgs} args - Arguments to update or create a TaskTag.
@@ -834,6 +967,8 @@ export interface Prisma__TaskTagClient<T, Null = never, ExtArgs extends runtime.
*/
export interface TaskTagFieldRefs {
readonly id: Prisma.FieldRef<"TaskTag", 'Int'>
readonly uuid: Prisma.FieldRef<"TaskTag", 'String'>
readonly taskUuid: Prisma.FieldRef<"TaskTag", 'String'>
readonly taskId: Prisma.FieldRef<"TaskTag", 'Int'>
readonly name: Prisma.FieldRef<"TaskTag", 'String'>
}
@@ -1073,6 +1208,29 @@ export type TaskTagCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
skipDuplicates?: boolean
}
/**
* TaskTag createManyAndReturn
*/
export type TaskTagCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TaskTag
*/
select?: Prisma.TaskTagSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TaskTag
*/
omit?: Prisma.TaskTagOmit<ExtArgs> | null
/**
* The data used to create many TaskTags.
*/
data: Prisma.TaskTagCreateManyInput | Prisma.TaskTagCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TaskTagIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* TaskTag update
*/
@@ -1117,6 +1275,36 @@ export type TaskTagUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
limit?: number
}
/**
* TaskTag updateManyAndReturn
*/
export type TaskTagUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TaskTag
*/
select?: Prisma.TaskTagSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TaskTag
*/
omit?: Prisma.TaskTagOmit<ExtArgs> | null
/**
* The data used to update TaskTags.
*/
data: Prisma.XOR<Prisma.TaskTagUpdateManyMutationInput, Prisma.TaskTagUncheckedUpdateManyInput>
/**
* Filter which TaskTags to update
*/
where?: Prisma.TaskTagWhereInput
/**
* Limit how many TaskTags to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TaskTagIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* TaskTag upsert
*/
+117 -7
View File
@@ -251,7 +251,6 @@ export type UserOrderByWithRelationInput = {
assignedTasks?: Prisma.TaskOrderByRelationAggregateInput
createdTasks?: Prisma.TaskOrderByRelationAggregateInput
taskMembers?: Prisma.TaskMemberOrderByRelationAggregateInput
_relevance?: Prisma.UserOrderByRelevanceInput
}
export type UserWhereUniqueInput = Prisma.AtLeast<{
@@ -397,12 +396,6 @@ export type UserUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserOrderByRelevanceInput = {
fields: Prisma.UserOrderByRelevanceFieldEnum | Prisma.UserOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type UserCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
@@ -1454,7 +1447,23 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["user"]>
export type UserSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["user"]>
export type UserSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["user"]>
export type UserSelectScalar = {
id?: boolean
@@ -1478,6 +1487,8 @@ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
taskMembers?: boolean | Prisma.User$taskMembersArgs<ExtArgs>
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
}
export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type UserIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "User"
@@ -1616,6 +1627,30 @@ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
*/
createMany<T extends UserCreateManyArgs>(args?: Prisma.SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Users and returns the data saved in the database.
* @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Users and only return the `id`
* const userWithIdOnly = await prisma.user.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a User.
* @param {UserDeleteArgs} args - Arguments to delete one User.
@@ -1680,6 +1715,36 @@ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
*/
updateMany<T extends UserUpdateManyArgs>(args: Prisma.SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Users and returns the data updated in the database.
* @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
* @example
* // Update many Users
* const user = await prisma.user.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Users and only return the `id`
* const userWithIdOnly = await prisma.user.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one User.
* @param {UserUpsertArgs} args - Arguments to update or create a User.
@@ -2120,6 +2185,25 @@ export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
skipDuplicates?: boolean
}
/**
* User createManyAndReturn
*/
export type UserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* The data used to create many Users.
*/
data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
skipDuplicates?: boolean
}
/**
* User update
*/
@@ -2164,6 +2248,32 @@ export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
limit?: number
}
/**
* User updateManyAndReturn
*/
export type UserUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* The data used to update Users.
*/
data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
/**
* Filter which Users to update
*/
where?: Prisma.UserWhereInput
/**
* Limit how many Users to update.
*/
limit?: number
}
/**
* User upsert
*/