2576 lines
102 KiB
TypeScript
2576 lines
102 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `User` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model User
|
|
*
|
|
*/
|
|
export type UserModel = runtime.Types.Result.DefaultSelection<Prisma.$UserPayload>
|
|
|
|
export type AggregateUser = {
|
|
_count: UserCountAggregateOutputType | null
|
|
_avg: UserAvgAggregateOutputType | null
|
|
_sum: UserSumAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type UserAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type UserSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type UserMinAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
email: string | null
|
|
password: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type UserMaxAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
email: string | null
|
|
password: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type UserCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
email: number
|
|
password: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type UserAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type UserSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type UserMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
email?: true
|
|
password?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type UserMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
email?: true
|
|
password?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type UserCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
email?: true
|
|
password?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type UserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which User to aggregate.
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Users
|
|
**/
|
|
_count?: true | UserCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: UserAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: UserSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: UserMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type GetUserAggregateType<T extends UserAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateUser[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateUser[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.UserWhereInput
|
|
orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[]
|
|
by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum
|
|
having?: Prisma.UserScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UserCountAggregateInputType | true
|
|
_avg?: UserAvgAggregateInputType
|
|
_sum?: UserSumAggregateInputType
|
|
_min?: UserMinAggregateInputType
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type UserGroupByOutputType = {
|
|
id: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: UserCountAggregateOutputType | null
|
|
_avg: UserAvgAggregateOutputType | null
|
|
_sum: UserSumAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<UserGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type UserWhereInput = {
|
|
AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
|
|
OR?: Prisma.UserWhereInput[]
|
|
NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
|
|
id?: Prisma.IntFilter<"User"> | number
|
|
name?: Prisma.StringFilter<"User"> | string
|
|
email?: Prisma.StringFilter<"User"> | string
|
|
password?: Prisma.StringFilter<"User"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
|
habits?: Prisma.HabitListRelationFilter
|
|
checkIns?: Prisma.CheckInListRelationFilter
|
|
checkLists?: Prisma.CheckListListRelationFilter
|
|
templates?: Prisma.CheckListTemplateListRelationFilter
|
|
ownedProjects?: Prisma.ProjectListRelationFilter
|
|
projectMembers?: Prisma.ProjectMemberListRelationFilter
|
|
assignedTasks?: Prisma.TaskListRelationFilter
|
|
createdTasks?: Prisma.TaskListRelationFilter
|
|
taskMembers?: Prisma.TaskMemberListRelationFilter
|
|
}
|
|
|
|
export type UserOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
habits?: Prisma.HabitOrderByRelationAggregateInput
|
|
checkIns?: Prisma.CheckInOrderByRelationAggregateInput
|
|
checkLists?: Prisma.CheckListOrderByRelationAggregateInput
|
|
templates?: Prisma.CheckListTemplateOrderByRelationAggregateInput
|
|
ownedProjects?: Prisma.ProjectOrderByRelationAggregateInput
|
|
projectMembers?: Prisma.ProjectMemberOrderByRelationAggregateInput
|
|
assignedTasks?: Prisma.TaskOrderByRelationAggregateInput
|
|
createdTasks?: Prisma.TaskOrderByRelationAggregateInput
|
|
taskMembers?: Prisma.TaskMemberOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type UserWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
email?: string
|
|
AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
|
|
OR?: Prisma.UserWhereInput[]
|
|
NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
|
|
name?: Prisma.StringFilter<"User"> | string
|
|
password?: Prisma.StringFilter<"User"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
|
habits?: Prisma.HabitListRelationFilter
|
|
checkIns?: Prisma.CheckInListRelationFilter
|
|
checkLists?: Prisma.CheckListListRelationFilter
|
|
templates?: Prisma.CheckListTemplateListRelationFilter
|
|
ownedProjects?: Prisma.ProjectListRelationFilter
|
|
projectMembers?: Prisma.ProjectMemberListRelationFilter
|
|
assignedTasks?: Prisma.TaskListRelationFilter
|
|
createdTasks?: Prisma.TaskListRelationFilter
|
|
taskMembers?: Prisma.TaskMemberListRelationFilter
|
|
}, "id" | "email">
|
|
|
|
export type UserOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.UserCountOrderByAggregateInput
|
|
_avg?: Prisma.UserAvgOrderByAggregateInput
|
|
_max?: Prisma.UserMaxOrderByAggregateInput
|
|
_min?: Prisma.UserMinOrderByAggregateInput
|
|
_sum?: Prisma.UserSumOrderByAggregateInput
|
|
}
|
|
|
|
export type UserScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.UserScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"User"> | number
|
|
name?: Prisma.StringWithAggregatesFilter<"User"> | string
|
|
email?: Prisma.StringWithAggregatesFilter<"User"> | string
|
|
password?: Prisma.StringWithAggregatesFilter<"User"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
}
|
|
|
|
export type UserCreateInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitUncheckedCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInUncheckedCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListUncheckedCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateUncheckedCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectUncheckedCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUpdateInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUncheckedUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUncheckedUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUncheckedUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUncheckedUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUncheckedUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateManyInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type UserUpdateManyMutationInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type UserUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type UserCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserScalarRelationFilter = {
|
|
is?: Prisma.UserWhereInput
|
|
isNot?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserNullableScalarRelationFilter = {
|
|
is?: Prisma.UserWhereInput | null
|
|
isNot?: Prisma.UserWhereInput | null
|
|
}
|
|
|
|
export type StringFieldUpdateOperationsInput = {
|
|
set?: string
|
|
}
|
|
|
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string
|
|
}
|
|
|
|
export type IntFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutHabitsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutHabitsInput, Prisma.UserUncheckedCreateWithoutHabitsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutHabitsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutHabitsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutHabitsInput, Prisma.UserUncheckedCreateWithoutHabitsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutHabitsInput
|
|
upsert?: Prisma.UserUpsertWithoutHabitsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutHabitsInput, Prisma.UserUpdateWithoutHabitsInput>, Prisma.UserUncheckedUpdateWithoutHabitsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutCheckInsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutCheckInsInput, Prisma.UserUncheckedCreateWithoutCheckInsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutCheckInsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutCheckInsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutCheckInsInput, Prisma.UserUncheckedCreateWithoutCheckInsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutCheckInsInput
|
|
upsert?: Prisma.UserUpsertWithoutCheckInsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutCheckInsInput, Prisma.UserUpdateWithoutCheckInsInput>, Prisma.UserUncheckedUpdateWithoutCheckInsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutCheckListsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutCheckListsInput, Prisma.UserUncheckedCreateWithoutCheckListsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutCheckListsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutCheckListsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutCheckListsInput, Prisma.UserUncheckedCreateWithoutCheckListsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutCheckListsInput
|
|
upsert?: Prisma.UserUpsertWithoutCheckListsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutCheckListsInput, Prisma.UserUpdateWithoutCheckListsInput>, Prisma.UserUncheckedUpdateWithoutCheckListsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutTemplatesInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutTemplatesInput, Prisma.UserUncheckedCreateWithoutTemplatesInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutTemplatesInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneWithoutTemplatesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutTemplatesInput, Prisma.UserUncheckedCreateWithoutTemplatesInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutTemplatesInput
|
|
upsert?: Prisma.UserUpsertWithoutTemplatesInput
|
|
disconnect?: Prisma.UserWhereInput | boolean
|
|
delete?: Prisma.UserWhereInput | boolean
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutTemplatesInput, Prisma.UserUpdateWithoutTemplatesInput>, Prisma.UserUncheckedUpdateWithoutTemplatesInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutOwnedProjectsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutOwnedProjectsInput, Prisma.UserUncheckedCreateWithoutOwnedProjectsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutOwnedProjectsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutOwnedProjectsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutOwnedProjectsInput, Prisma.UserUncheckedCreateWithoutOwnedProjectsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutOwnedProjectsInput
|
|
upsert?: Prisma.UserUpsertWithoutOwnedProjectsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutOwnedProjectsInput, Prisma.UserUpdateWithoutOwnedProjectsInput>, Prisma.UserUncheckedUpdateWithoutOwnedProjectsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutProjectMembersInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutProjectMembersInput, Prisma.UserUncheckedCreateWithoutProjectMembersInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutProjectMembersInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutProjectMembersNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutProjectMembersInput, Prisma.UserUncheckedCreateWithoutProjectMembersInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutProjectMembersInput
|
|
upsert?: Prisma.UserUpsertWithoutProjectMembersInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutProjectMembersInput, Prisma.UserUpdateWithoutProjectMembersInput>, Prisma.UserUncheckedUpdateWithoutProjectMembersInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutAssignedTasksInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutAssignedTasksInput, Prisma.UserUncheckedCreateWithoutAssignedTasksInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutAssignedTasksInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutCreatedTasksInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutCreatedTasksInput, Prisma.UserUncheckedCreateWithoutCreatedTasksInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutCreatedTasksInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneWithoutAssignedTasksNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutAssignedTasksInput, Prisma.UserUncheckedCreateWithoutAssignedTasksInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutAssignedTasksInput
|
|
upsert?: Prisma.UserUpsertWithoutAssignedTasksInput
|
|
disconnect?: Prisma.UserWhereInput | boolean
|
|
delete?: Prisma.UserWhereInput | boolean
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutAssignedTasksInput, Prisma.UserUpdateWithoutAssignedTasksInput>, Prisma.UserUncheckedUpdateWithoutAssignedTasksInput>
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutCreatedTasksNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutCreatedTasksInput, Prisma.UserUncheckedCreateWithoutCreatedTasksInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutCreatedTasksInput
|
|
upsert?: Prisma.UserUpsertWithoutCreatedTasksInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutCreatedTasksInput, Prisma.UserUpdateWithoutCreatedTasksInput>, Prisma.UserUncheckedUpdateWithoutCreatedTasksInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutTaskMembersInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutTaskMembersInput, Prisma.UserUncheckedCreateWithoutTaskMembersInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutTaskMembersInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutTaskMembersNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutTaskMembersInput, Prisma.UserUncheckedCreateWithoutTaskMembersInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutTaskMembersInput
|
|
upsert?: Prisma.UserUpsertWithoutTaskMembersInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutTaskMembersInput, Prisma.UserUpdateWithoutTaskMembersInput>, Prisma.UserUncheckedUpdateWithoutTaskMembersInput>
|
|
}
|
|
|
|
export type UserCreateWithoutHabitsInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
checkIns?: Prisma.CheckInCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutHabitsInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
checkIns?: Prisma.CheckInUncheckedCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListUncheckedCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateUncheckedCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectUncheckedCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutHabitsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutHabitsInput, Prisma.UserUncheckedCreateWithoutHabitsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutHabitsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutHabitsInput, Prisma.UserUncheckedUpdateWithoutHabitsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutHabitsInput, Prisma.UserUncheckedCreateWithoutHabitsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutHabitsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutHabitsInput, Prisma.UserUncheckedUpdateWithoutHabitsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutHabitsInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
checkIns?: Prisma.CheckInUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutHabitsInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
checkIns?: Prisma.CheckInUncheckedUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUncheckedUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUncheckedUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUncheckedUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutCheckInsInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutCheckInsInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitUncheckedCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListUncheckedCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateUncheckedCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectUncheckedCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutCheckInsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutCheckInsInput, Prisma.UserUncheckedCreateWithoutCheckInsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutCheckInsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutCheckInsInput, Prisma.UserUncheckedUpdateWithoutCheckInsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutCheckInsInput, Prisma.UserUncheckedCreateWithoutCheckInsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutCheckInsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutCheckInsInput, Prisma.UserUncheckedUpdateWithoutCheckInsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutCheckInsInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutCheckInsInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUncheckedUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUncheckedUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUncheckedUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUncheckedUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutCheckListsInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutCheckListsInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitUncheckedCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInUncheckedCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateUncheckedCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectUncheckedCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutCheckListsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutCheckListsInput, Prisma.UserUncheckedCreateWithoutCheckListsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutCheckListsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutCheckListsInput, Prisma.UserUncheckedUpdateWithoutCheckListsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutCheckListsInput, Prisma.UserUncheckedCreateWithoutCheckListsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutCheckListsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutCheckListsInput, Prisma.UserUncheckedUpdateWithoutCheckListsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutCheckListsInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutCheckListsInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUncheckedUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUncheckedUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUncheckedUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUncheckedUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutTemplatesInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutTemplatesInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitUncheckedCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInUncheckedCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListUncheckedCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectUncheckedCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutTemplatesInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutTemplatesInput, Prisma.UserUncheckedCreateWithoutTemplatesInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutTemplatesInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutTemplatesInput, Prisma.UserUncheckedUpdateWithoutTemplatesInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutTemplatesInput, Prisma.UserUncheckedCreateWithoutTemplatesInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutTemplatesInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutTemplatesInput, Prisma.UserUncheckedUpdateWithoutTemplatesInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutTemplatesInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutTemplatesInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUncheckedUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUncheckedUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUncheckedUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUncheckedUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUncheckedUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutOwnedProjectsInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateCreateNestedManyWithoutUserInput
|
|
projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutOwnedProjectsInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitUncheckedCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInUncheckedCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListUncheckedCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateUncheckedCreateNestedManyWithoutUserInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutOwnedProjectsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutOwnedProjectsInput, Prisma.UserUncheckedCreateWithoutOwnedProjectsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutOwnedProjectsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutOwnedProjectsInput, Prisma.UserUncheckedUpdateWithoutOwnedProjectsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutOwnedProjectsInput, Prisma.UserUncheckedCreateWithoutOwnedProjectsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutOwnedProjectsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutOwnedProjectsInput, Prisma.UserUncheckedUpdateWithoutOwnedProjectsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutOwnedProjectsInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUpdateManyWithoutUserNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutOwnedProjectsInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUncheckedUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUncheckedUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUncheckedUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUncheckedUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutProjectMembersInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectCreateNestedManyWithoutOwnerInput
|
|
assignedTasks?: Prisma.TaskCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutProjectMembersInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitUncheckedCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInUncheckedCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListUncheckedCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateUncheckedCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectUncheckedCreateNestedManyWithoutOwnerInput
|
|
assignedTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutProjectMembersInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutProjectMembersInput, Prisma.UserUncheckedCreateWithoutProjectMembersInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutProjectMembersInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutProjectMembersInput, Prisma.UserUncheckedUpdateWithoutProjectMembersInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutProjectMembersInput, Prisma.UserUncheckedCreateWithoutProjectMembersInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutProjectMembersInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutProjectMembersInput, Prisma.UserUncheckedUpdateWithoutProjectMembersInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutProjectMembersInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUpdateManyWithoutOwnerNestedInput
|
|
assignedTasks?: Prisma.TaskUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutProjectMembersInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUncheckedUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUncheckedUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUncheckedUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUncheckedUpdateManyWithoutOwnerNestedInput
|
|
assignedTasks?: Prisma.TaskUncheckedUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutAssignedTasksInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput
|
|
createdTasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutAssignedTasksInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitUncheckedCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInUncheckedCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListUncheckedCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateUncheckedCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectUncheckedCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput
|
|
createdTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutAssignedTasksInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutAssignedTasksInput, Prisma.UserUncheckedCreateWithoutAssignedTasksInput>
|
|
}
|
|
|
|
export type UserCreateWithoutCreatedTasksInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskCreateNestedManyWithoutAssigneeInput
|
|
taskMembers?: Prisma.TaskMemberCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutCreatedTasksInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitUncheckedCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInUncheckedCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListUncheckedCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateUncheckedCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectUncheckedCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutAssigneeInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutCreatedTasksInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutCreatedTasksInput, Prisma.UserUncheckedCreateWithoutCreatedTasksInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutAssignedTasksInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutAssignedTasksInput, Prisma.UserUncheckedUpdateWithoutAssignedTasksInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutAssignedTasksInput, Prisma.UserUncheckedCreateWithoutAssignedTasksInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutAssignedTasksInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutAssignedTasksInput, Prisma.UserUncheckedUpdateWithoutAssignedTasksInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutAssignedTasksInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput
|
|
createdTasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutAssignedTasksInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUncheckedUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUncheckedUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUncheckedUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUncheckedUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
createdTasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUpsertWithoutCreatedTasksInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutCreatedTasksInput, Prisma.UserUncheckedUpdateWithoutCreatedTasksInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutCreatedTasksInput, Prisma.UserUncheckedCreateWithoutCreatedTasksInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutCreatedTasksInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutCreatedTasksInput, Prisma.UserUncheckedUpdateWithoutCreatedTasksInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutCreatedTasksInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUpdateManyWithoutAssigneeNestedInput
|
|
taskMembers?: Prisma.TaskMemberUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutCreatedTasksInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUncheckedUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUncheckedUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUncheckedUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUncheckedUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUncheckedUpdateManyWithoutAssigneeNestedInput
|
|
taskMembers?: Prisma.TaskMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutTaskMembersInput = {
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutTaskMembersInput = {
|
|
id?: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
habits?: Prisma.HabitUncheckedCreateNestedManyWithoutUserInput
|
|
checkIns?: Prisma.CheckInUncheckedCreateNestedManyWithoutUserInput
|
|
checkLists?: Prisma.CheckListUncheckedCreateNestedManyWithoutUserInput
|
|
templates?: Prisma.CheckListTemplateUncheckedCreateNestedManyWithoutUserInput
|
|
ownedProjects?: Prisma.ProjectUncheckedCreateNestedManyWithoutOwnerInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput
|
|
assignedTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutAssigneeInput
|
|
createdTasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutTaskMembersInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutTaskMembersInput, Prisma.UserUncheckedCreateWithoutTaskMembersInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutTaskMembersInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutTaskMembersInput, Prisma.UserUncheckedUpdateWithoutTaskMembersInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutTaskMembersInput, Prisma.UserUncheckedCreateWithoutTaskMembersInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutTaskMembersInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutTaskMembersInput, Prisma.UserUncheckedUpdateWithoutTaskMembersInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutTaskMembersInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutTaskMembersInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
habits?: Prisma.HabitUncheckedUpdateManyWithoutUserNestedInput
|
|
checkIns?: Prisma.CheckInUncheckedUpdateManyWithoutUserNestedInput
|
|
checkLists?: Prisma.CheckListUncheckedUpdateManyWithoutUserNestedInput
|
|
templates?: Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput
|
|
ownedProjects?: Prisma.ProjectUncheckedUpdateManyWithoutOwnerNestedInput
|
|
projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput
|
|
assignedTasks?: Prisma.TaskUncheckedUpdateManyWithoutAssigneeNestedInput
|
|
createdTasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type UserCountOutputType
|
|
*/
|
|
|
|
export type UserCountOutputType = {
|
|
habits: number
|
|
checkIns: number
|
|
checkLists: number
|
|
templates: number
|
|
ownedProjects: number
|
|
projectMembers: number
|
|
assignedTasks: number
|
|
createdTasks: number
|
|
taskMembers: number
|
|
}
|
|
|
|
export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
habits?: boolean | UserCountOutputTypeCountHabitsArgs
|
|
checkIns?: boolean | UserCountOutputTypeCountCheckInsArgs
|
|
checkLists?: boolean | UserCountOutputTypeCountCheckListsArgs
|
|
templates?: boolean | UserCountOutputTypeCountTemplatesArgs
|
|
ownedProjects?: boolean | UserCountOutputTypeCountOwnedProjectsArgs
|
|
projectMembers?: boolean | UserCountOutputTypeCountProjectMembersArgs
|
|
assignedTasks?: boolean | UserCountOutputTypeCountAssignedTasksArgs
|
|
createdTasks?: boolean | UserCountOutputTypeCountCreatedTasksArgs
|
|
taskMembers?: boolean | UserCountOutputTypeCountTaskMembersArgs
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserCountOutputType
|
|
*/
|
|
select?: Prisma.UserCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountHabitsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.HabitWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountCheckInsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CheckInWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountCheckListsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CheckListWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountTemplatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CheckListTemplateWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountOwnedProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ProjectWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountProjectMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ProjectMemberWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountAssignedTasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TaskWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountCreatedTasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TaskWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountTaskMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TaskMemberWhereInput
|
|
}
|
|
|
|
|
|
export type UserSelect<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
|
|
habits?: boolean | Prisma.User$habitsArgs<ExtArgs>
|
|
checkIns?: boolean | Prisma.User$checkInsArgs<ExtArgs>
|
|
checkLists?: boolean | Prisma.User$checkListsArgs<ExtArgs>
|
|
templates?: boolean | Prisma.User$templatesArgs<ExtArgs>
|
|
ownedProjects?: boolean | Prisma.User$ownedProjectsArgs<ExtArgs>
|
|
projectMembers?: boolean | Prisma.User$projectMembersArgs<ExtArgs>
|
|
assignedTasks?: boolean | Prisma.User$assignedTasksArgs<ExtArgs>
|
|
createdTasks?: boolean | Prisma.User$createdTasksArgs<ExtArgs>
|
|
taskMembers?: boolean | Prisma.User$taskMembersArgs<ExtArgs>
|
|
_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
|
|
name?: boolean
|
|
email?: boolean
|
|
password?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "email" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]>
|
|
export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
habits?: boolean | Prisma.User$habitsArgs<ExtArgs>
|
|
checkIns?: boolean | Prisma.User$checkInsArgs<ExtArgs>
|
|
checkLists?: boolean | Prisma.User$checkListsArgs<ExtArgs>
|
|
templates?: boolean | Prisma.User$templatesArgs<ExtArgs>
|
|
ownedProjects?: boolean | Prisma.User$ownedProjectsArgs<ExtArgs>
|
|
projectMembers?: boolean | Prisma.User$projectMembersArgs<ExtArgs>
|
|
assignedTasks?: boolean | Prisma.User$assignedTasksArgs<ExtArgs>
|
|
createdTasks?: boolean | Prisma.User$createdTasksArgs<ExtArgs>
|
|
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"
|
|
objects: {
|
|
habits: Prisma.$HabitPayload<ExtArgs>[]
|
|
checkIns: Prisma.$CheckInPayload<ExtArgs>[]
|
|
checkLists: Prisma.$CheckListPayload<ExtArgs>[]
|
|
templates: Prisma.$CheckListTemplatePayload<ExtArgs>[]
|
|
ownedProjects: Prisma.$ProjectPayload<ExtArgs>[]
|
|
projectMembers: Prisma.$ProjectMemberPayload<ExtArgs>[]
|
|
assignedTasks: Prisma.$TaskPayload<ExtArgs>[]
|
|
createdTasks: Prisma.$TaskPayload<ExtArgs>[]
|
|
taskMembers: Prisma.$TaskMemberPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string
|
|
email: string
|
|
password: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["user"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserPayload, S>
|
|
|
|
export type UserCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: UserCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
|
|
/**
|
|
* Find zero or one User that matches the filter.
|
|
* @param {UserFindUniqueArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UserFindUniqueArgs>(args: Prisma.SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one User that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first User that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UserFindFirstArgs>(args?: Prisma.SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first User that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Users that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Users
|
|
* const users = await prisma.user.findMany()
|
|
*
|
|
* // Get first 10 Users
|
|
* const users = await prisma.user.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UserFindManyArgs>(args?: Prisma.SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a User.
|
|
* @param {UserCreateArgs} args - Arguments to create a User.
|
|
* @example
|
|
* // Create one User
|
|
* const User = await prisma.user.create({
|
|
* data: {
|
|
* // ... data to create a User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UserCreateArgs>(args: Prisma.SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Users.
|
|
* @param {UserCreateManyArgs} args - Arguments to create many Users.
|
|
* @example
|
|
* // Create many Users
|
|
* const user = await prisma.user.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
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.
|
|
* @example
|
|
* // Delete one User
|
|
* const User = await prisma.user.delete({
|
|
* where: {
|
|
* // ... filter to delete one User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UserDeleteArgs>(args: Prisma.SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one User.
|
|
* @param {UserUpdateArgs} args - Arguments to update one User.
|
|
* @example
|
|
* // Update one User
|
|
* const user = await prisma.user.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UserUpdateArgs>(args: Prisma.SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Users.
|
|
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
|
|
* @example
|
|
* // Delete a few Users
|
|
* const { count } = await prisma.user.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UserDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Users
|
|
* const user = await prisma.user.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
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.
|
|
* @example
|
|
* // Update or create a User
|
|
* const user = await prisma.user.upsert({
|
|
* create: {
|
|
* // ... data to create a User
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the User we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UserUpsertArgs>(args: Prisma.SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserCountArgs} args - Arguments to filter Users to count.
|
|
* @example
|
|
* // Count the number of Users
|
|
* const count = await prisma.user.count({
|
|
* where: {
|
|
* // ... the filter for the Users we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UserCountArgs>(
|
|
args?: Prisma.Subset<T, UserCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], UserCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends UserAggregateArgs>(args: Prisma.Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
|
|
|
|
/**
|
|
* Group by User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends UserGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: UserGroupByArgs['orderBy'] }
|
|
: { orderBy?: UserGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
readonly fields: UserFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for User.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
habits<T extends Prisma.User$habitsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$habitsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HabitPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
checkIns<T extends Prisma.User$checkInsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$checkInsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
checkLists<T extends Prisma.User$checkListsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$checkListsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
templates<T extends Prisma.User$templatesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$templatesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
ownedProjects<T extends Prisma.User$ownedProjectsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$ownedProjectsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
projectMembers<T extends Prisma.User$projectMembersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$projectMembersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
assignedTasks<T extends Prisma.User$assignedTasksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$assignedTasksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
createdTasks<T extends Prisma.User$createdTasksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$createdTasksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
taskMembers<T extends Prisma.User$taskMembersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$taskMembersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
export interface UserFieldRefs {
|
|
readonly id: Prisma.FieldRef<"User", 'Int'>
|
|
readonly name: Prisma.FieldRef<"User", 'String'>
|
|
readonly email: Prisma.FieldRef<"User", 'String'>
|
|
readonly password: Prisma.FieldRef<"User", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* User findUnique
|
|
*/
|
|
export type UserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findUniqueOrThrow
|
|
*/
|
|
export type UserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findFirst
|
|
*/
|
|
export type UserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findFirstOrThrow
|
|
*/
|
|
export type UserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findMany
|
|
*/
|
|
export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Users to fetch.
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Users.
|
|
*/
|
|
cursor?: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User create
|
|
*/
|
|
export type UserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a User.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* User createMany
|
|
*/
|
|
export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Users.
|
|
*/
|
|
data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
|
|
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
|
|
*/
|
|
export type UserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a User.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which User to update.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User updateMany
|
|
*/
|
|
export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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 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
|
|
*/
|
|
export type UserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the User to update in case it exists.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
|
|
/**
|
|
* In case the User was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* User delete
|
|
*/
|
|
export type UserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which User to delete.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User deleteMany
|
|
*/
|
|
export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Users to delete
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* Limit how many Users to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* User.habits
|
|
*/
|
|
export type User$habitsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Habit
|
|
*/
|
|
select?: Prisma.HabitSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Habit
|
|
*/
|
|
omit?: Prisma.HabitOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HabitInclude<ExtArgs> | null
|
|
where?: Prisma.HabitWhereInput
|
|
orderBy?: Prisma.HabitOrderByWithRelationInput | Prisma.HabitOrderByWithRelationInput[]
|
|
cursor?: Prisma.HabitWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.HabitScalarFieldEnum | Prisma.HabitScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.checkIns
|
|
*/
|
|
export type User$checkInsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckIn
|
|
*/
|
|
select?: Prisma.CheckInSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckIn
|
|
*/
|
|
omit?: Prisma.CheckInOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CheckInInclude<ExtArgs> | null
|
|
where?: Prisma.CheckInWhereInput
|
|
orderBy?: Prisma.CheckInOrderByWithRelationInput | Prisma.CheckInOrderByWithRelationInput[]
|
|
cursor?: Prisma.CheckInWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.CheckInScalarFieldEnum | Prisma.CheckInScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.checkLists
|
|
*/
|
|
export type User$checkListsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckList
|
|
*/
|
|
select?: Prisma.CheckListSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckList
|
|
*/
|
|
omit?: Prisma.CheckListOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CheckListInclude<ExtArgs> | null
|
|
where?: Prisma.CheckListWhereInput
|
|
orderBy?: Prisma.CheckListOrderByWithRelationInput | Prisma.CheckListOrderByWithRelationInput[]
|
|
cursor?: Prisma.CheckListWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.CheckListScalarFieldEnum | Prisma.CheckListScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.templates
|
|
*/
|
|
export type User$templatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckListTemplate
|
|
*/
|
|
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckListTemplate
|
|
*/
|
|
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
|
|
where?: Prisma.CheckListTemplateWhereInput
|
|
orderBy?: Prisma.CheckListTemplateOrderByWithRelationInput | Prisma.CheckListTemplateOrderByWithRelationInput[]
|
|
cursor?: Prisma.CheckListTemplateWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.CheckListTemplateScalarFieldEnum | Prisma.CheckListTemplateScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.ownedProjects
|
|
*/
|
|
export type User$ownedProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Project
|
|
*/
|
|
select?: Prisma.ProjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Project
|
|
*/
|
|
omit?: Prisma.ProjectOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ProjectInclude<ExtArgs> | null
|
|
where?: Prisma.ProjectWhereInput
|
|
orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[]
|
|
cursor?: Prisma.ProjectWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.projectMembers
|
|
*/
|
|
export type User$projectMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ProjectMember
|
|
*/
|
|
select?: Prisma.ProjectMemberSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ProjectMember
|
|
*/
|
|
omit?: Prisma.ProjectMemberOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ProjectMemberInclude<ExtArgs> | null
|
|
where?: Prisma.ProjectMemberWhereInput
|
|
orderBy?: Prisma.ProjectMemberOrderByWithRelationInput | Prisma.ProjectMemberOrderByWithRelationInput[]
|
|
cursor?: Prisma.ProjectMemberWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.assignedTasks
|
|
*/
|
|
export type User$assignedTasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Task
|
|
*/
|
|
select?: Prisma.TaskSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Task
|
|
*/
|
|
omit?: Prisma.TaskOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskInclude<ExtArgs> | null
|
|
where?: Prisma.TaskWhereInput
|
|
orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[]
|
|
cursor?: Prisma.TaskWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.createdTasks
|
|
*/
|
|
export type User$createdTasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Task
|
|
*/
|
|
select?: Prisma.TaskSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Task
|
|
*/
|
|
omit?: Prisma.TaskOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskInclude<ExtArgs> | null
|
|
where?: Prisma.TaskWhereInput
|
|
orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[]
|
|
cursor?: Prisma.TaskWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.taskMembers
|
|
*/
|
|
export type User$taskMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskMember
|
|
*/
|
|
select?: Prisma.TaskMemberSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskMember
|
|
*/
|
|
omit?: Prisma.TaskMemberOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskMemberInclude<ExtArgs> | null
|
|
where?: Prisma.TaskMemberWhereInput
|
|
orderBy?: Prisma.TaskMemberOrderByWithRelationInput | Prisma.TaskMemberOrderByWithRelationInput[]
|
|
cursor?: Prisma.TaskMemberWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TaskMemberScalarFieldEnum | Prisma.TaskMemberScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User without action
|
|
*/
|
|
export type UserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
}
|