Files
iboard/generated/prisma/models/Project.ts
T
jif2.zhang e689e44923 Merge branch 'dev-0.2.1' into dev-0.2
# Conflicts:
#	generated/prisma/internal/class.ts
#	generated/prisma/internal/prismaNamespace.ts
#	generated/prisma/internal/prismaNamespaceBrowser.ts
#	generated/prisma/models/BoardColumn.ts
#	generated/prisma/models/Project.ts
#	generated/prisma/models/ProjectMember.ts
#	generated/prisma/models/Task.ts
#	generated/prisma/models/TaskMember.ts
#	generated/prisma/models/TaskTag.ts
#	generated/prisma/models/User.ts
#	server/routes/projects.js
#	server/routes/tasks.js
#	src/api/task.js
2026-10-26 20:46:25 +08:00

2130 lines
79 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 `Project` 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 Project
*
*/
export type ProjectModel = runtime.Types.Result.DefaultSelection<Prisma.$ProjectPayload>
export type AggregateProject = {
_count: ProjectCountAggregateOutputType | null
_avg: ProjectAvgAggregateOutputType | null
_sum: ProjectSumAggregateOutputType | null
_min: ProjectMinAggregateOutputType | null
_max: ProjectMaxAggregateOutputType | null
}
export type ProjectAvgAggregateOutputType = {
id: number | null
ownerId: number | null
}
export type ProjectSumAggregateOutputType = {
id: number | null
ownerId: number | null
}
export type ProjectMinAggregateOutputType = {
id: number | null
uuid: string | null
code: string | null
name: string | null
ownerId: number | null
isPersonal: boolean | null
archived: boolean | null
icon: string | null
autoArchive: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type ProjectMaxAggregateOutputType = {
id: number | null
uuid: string | null
code: string | null
name: string | null
ownerId: number | null
isPersonal: boolean | null
archived: boolean | null
icon: string | null
autoArchive: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type ProjectCountAggregateOutputType = {
id: number
uuid: number
code: number
name: number
ownerId: number
isPersonal: number
archived: number
notes: number
taskKinds: number
icon: number
autoArchive: number
createdAt: number
updatedAt: number
_all: number
}
export type ProjectAvgAggregateInputType = {
id?: true
ownerId?: true
}
export type ProjectSumAggregateInputType = {
id?: true
ownerId?: true
}
export type ProjectMinAggregateInputType = {
id?: true
uuid?: true
code?: true
name?: true
ownerId?: true
isPersonal?: true
archived?: true
icon?: true
autoArchive?: true
createdAt?: true
updatedAt?: true
}
export type ProjectMaxAggregateInputType = {
id?: true
uuid?: true
code?: true
name?: true
ownerId?: true
isPersonal?: true
archived?: true
icon?: true
autoArchive?: true
createdAt?: true
updatedAt?: true
}
export type ProjectCountAggregateInputType = {
id?: true
uuid?: true
code?: true
name?: true
ownerId?: true
isPersonal?: true
archived?: true
notes?: true
taskKinds?: true
icon?: true
autoArchive?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type ProjectAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Project to aggregate.
*/
where?: Prisma.ProjectWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Projects to fetch.
*/
orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.ProjectWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Projects 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` Projects.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Projects
**/
_count?: true | ProjectCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ProjectAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ProjectSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ProjectMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ProjectMaxAggregateInputType
}
export type GetProjectAggregateType<T extends ProjectAggregateArgs> = {
[P in keyof T & keyof AggregateProject]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateProject[P]>
: Prisma.GetScalarType<T[P], AggregateProject[P]>
}
export type ProjectGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ProjectWhereInput
orderBy?: Prisma.ProjectOrderByWithAggregationInput | Prisma.ProjectOrderByWithAggregationInput[]
by: Prisma.ProjectScalarFieldEnum[] | Prisma.ProjectScalarFieldEnum
having?: Prisma.ProjectScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ProjectCountAggregateInputType | true
_avg?: ProjectAvgAggregateInputType
_sum?: ProjectSumAggregateInputType
_min?: ProjectMinAggregateInputType
_max?: ProjectMaxAggregateInputType
}
export type ProjectGroupByOutputType = {
id: number
uuid: string
code: string
name: string
ownerId: number
isPersonal: boolean
archived: boolean
notes: runtime.JsonValue
taskKinds: runtime.JsonValue | null
icon: string | null
autoArchive: string
createdAt: Date
updatedAt: Date
_count: ProjectCountAggregateOutputType | null
_avg: ProjectAvgAggregateOutputType | null
_sum: ProjectSumAggregateOutputType | null
_min: ProjectMinAggregateOutputType | null
_max: ProjectMaxAggregateOutputType | null
}
export type GetProjectGroupByPayload<T extends ProjectGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<ProjectGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ProjectGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], ProjectGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], ProjectGroupByOutputType[P]>
}
>
>
export type ProjectWhereInput = {
AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]
OR?: Prisma.ProjectWhereInput[]
NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]
id?: Prisma.IntFilter<"Project"> | number
uuid?: Prisma.StringFilter<"Project"> | string
code?: Prisma.StringFilter<"Project"> | string
name?: Prisma.StringFilter<"Project"> | string
ownerId?: Prisma.IntFilter<"Project"> | number
isPersonal?: Prisma.BoolFilter<"Project"> | boolean
archived?: Prisma.BoolFilter<"Project"> | boolean
notes?: Prisma.JsonFilter<"Project">
taskKinds?: Prisma.JsonNullableFilter<"Project">
icon?: Prisma.StringNullableFilter<"Project"> | string | null
autoArchive?: Prisma.StringFilter<"Project"> | string
createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string
owner?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
members?: Prisma.ProjectMemberListRelationFilter
columns?: Prisma.BoardColumnListRelationFilter
tasks?: Prisma.TaskListRelationFilter
}
export type ProjectOrderByWithRelationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
archived?: Prisma.SortOrder
notes?: Prisma.SortOrder
taskKinds?: Prisma.SortOrderInput | Prisma.SortOrder
icon?: Prisma.SortOrderInput | Prisma.SortOrder
autoArchive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
owner?: Prisma.UserOrderByWithRelationInput
members?: Prisma.ProjectMemberOrderByRelationAggregateInput
columns?: Prisma.BoardColumnOrderByRelationAggregateInput
tasks?: Prisma.TaskOrderByRelationAggregateInput
}
export type ProjectWhereUniqueInput = Prisma.AtLeast<{
id?: number
uuid?: string
code?: string
AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]
OR?: Prisma.ProjectWhereInput[]
NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]
name?: Prisma.StringFilter<"Project"> | string
ownerId?: Prisma.IntFilter<"Project"> | number
isPersonal?: Prisma.BoolFilter<"Project"> | boolean
archived?: Prisma.BoolFilter<"Project"> | boolean
notes?: Prisma.JsonFilter<"Project">
taskKinds?: Prisma.JsonNullableFilter<"Project">
icon?: Prisma.StringNullableFilter<"Project"> | string | null
autoArchive?: Prisma.StringFilter<"Project"> | string
createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string
owner?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
members?: Prisma.ProjectMemberListRelationFilter
columns?: Prisma.BoardColumnListRelationFilter
tasks?: Prisma.TaskListRelationFilter
}, "id" | "uuid" | "code">
export type ProjectOrderByWithAggregationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
archived?: Prisma.SortOrder
notes?: Prisma.SortOrder
taskKinds?: Prisma.SortOrderInput | Prisma.SortOrder
icon?: Prisma.SortOrderInput | Prisma.SortOrder
autoArchive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.ProjectCountOrderByAggregateInput
_avg?: Prisma.ProjectAvgOrderByAggregateInput
_max?: Prisma.ProjectMaxOrderByAggregateInput
_min?: Prisma.ProjectMinOrderByAggregateInput
_sum?: Prisma.ProjectSumOrderByAggregateInput
}
export type ProjectScalarWhereWithAggregatesInput = {
AND?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[]
OR?: Prisma.ProjectScalarWhereWithAggregatesInput[]
NOT?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"Project"> | number
uuid?: Prisma.StringWithAggregatesFilter<"Project"> | string
code?: Prisma.StringWithAggregatesFilter<"Project"> | string
name?: Prisma.StringWithAggregatesFilter<"Project"> | string
ownerId?: Prisma.IntWithAggregatesFilter<"Project"> | number
isPersonal?: Prisma.BoolWithAggregatesFilter<"Project"> | boolean
archived?: Prisma.BoolWithAggregatesFilter<"Project"> | boolean
notes?: Prisma.JsonWithAggregatesFilter<"Project">
taskKinds?: Prisma.JsonNullableWithAggregatesFilter<"Project">
icon?: Prisma.StringNullableWithAggregatesFilter<"Project"> | string | null
autoArchive?: Prisma.StringWithAggregatesFilter<"Project"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string
}
export type ProjectCreateInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
owner: Prisma.UserCreateNestedOneWithoutOwnedProjectsInput
members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput
columns?: Prisma.BoardColumnCreateNestedManyWithoutProjectInput
tasks?: Prisma.TaskCreateNestedManyWithoutProjectInput
}
export type ProjectUncheckedCreateInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput
columns?: Prisma.BoardColumnUncheckedCreateNestedManyWithoutProjectInput
tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutProjectInput
}
export type ProjectUpdateInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
owner?: Prisma.UserUpdateOneRequiredWithoutOwnedProjectsNestedInput
members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput
columns?: Prisma.BoardColumnUpdateManyWithoutProjectNestedInput
tasks?: Prisma.TaskUpdateManyWithoutProjectNestedInput
}
export type ProjectUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput
columns?: Prisma.BoardColumnUncheckedUpdateManyWithoutProjectNestedInput
tasks?: Prisma.TaskUncheckedUpdateManyWithoutProjectNestedInput
}
export type ProjectCreateManyInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type ProjectUpdateManyMutationInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ProjectUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ProjectListRelationFilter = {
every?: Prisma.ProjectWhereInput
some?: Prisma.ProjectWhereInput
none?: Prisma.ProjectWhereInput
}
export type ProjectOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type ProjectCountOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
archived?: Prisma.SortOrder
notes?: Prisma.SortOrder
taskKinds?: Prisma.SortOrder
icon?: Prisma.SortOrder
autoArchive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type ProjectAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
}
export type ProjectMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
archived?: Prisma.SortOrder
icon?: Prisma.SortOrder
autoArchive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type ProjectMinOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
code?: Prisma.SortOrder
name?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
isPersonal?: Prisma.SortOrder
archived?: Prisma.SortOrder
icon?: Prisma.SortOrder
autoArchive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type ProjectSumOrderByAggregateInput = {
id?: Prisma.SortOrder
ownerId?: Prisma.SortOrder
}
export type ProjectScalarRelationFilter = {
is?: Prisma.ProjectWhereInput
isNot?: Prisma.ProjectWhereInput
}
export type ProjectCreateNestedManyWithoutOwnerInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutOwnerInput, Prisma.ProjectUncheckedCreateWithoutOwnerInput> | Prisma.ProjectCreateWithoutOwnerInput[] | Prisma.ProjectUncheckedCreateWithoutOwnerInput[]
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutOwnerInput | Prisma.ProjectCreateOrConnectWithoutOwnerInput[]
createMany?: Prisma.ProjectCreateManyOwnerInputEnvelope
connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
}
export type ProjectUncheckedCreateNestedManyWithoutOwnerInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutOwnerInput, Prisma.ProjectUncheckedCreateWithoutOwnerInput> | Prisma.ProjectCreateWithoutOwnerInput[] | Prisma.ProjectUncheckedCreateWithoutOwnerInput[]
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutOwnerInput | Prisma.ProjectCreateOrConnectWithoutOwnerInput[]
createMany?: Prisma.ProjectCreateManyOwnerInputEnvelope
connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
}
export type ProjectUpdateManyWithoutOwnerNestedInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutOwnerInput, Prisma.ProjectUncheckedCreateWithoutOwnerInput> | Prisma.ProjectCreateWithoutOwnerInput[] | Prisma.ProjectUncheckedCreateWithoutOwnerInput[]
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutOwnerInput | Prisma.ProjectCreateOrConnectWithoutOwnerInput[]
upsert?: Prisma.ProjectUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ProjectUpsertWithWhereUniqueWithoutOwnerInput[]
createMany?: Prisma.ProjectCreateManyOwnerInputEnvelope
set?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
disconnect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
delete?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
update?: Prisma.ProjectUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ProjectUpdateWithWhereUniqueWithoutOwnerInput[]
updateMany?: Prisma.ProjectUpdateManyWithWhereWithoutOwnerInput | Prisma.ProjectUpdateManyWithWhereWithoutOwnerInput[]
deleteMany?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[]
}
export type ProjectUncheckedUpdateManyWithoutOwnerNestedInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutOwnerInput, Prisma.ProjectUncheckedCreateWithoutOwnerInput> | Prisma.ProjectCreateWithoutOwnerInput[] | Prisma.ProjectUncheckedCreateWithoutOwnerInput[]
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutOwnerInput | Prisma.ProjectCreateOrConnectWithoutOwnerInput[]
upsert?: Prisma.ProjectUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ProjectUpsertWithWhereUniqueWithoutOwnerInput[]
createMany?: Prisma.ProjectCreateManyOwnerInputEnvelope
set?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
disconnect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
delete?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[]
update?: Prisma.ProjectUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ProjectUpdateWithWhereUniqueWithoutOwnerInput[]
updateMany?: Prisma.ProjectUpdateManyWithWhereWithoutOwnerInput | Prisma.ProjectUpdateManyWithWhereWithoutOwnerInput[]
deleteMany?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[]
}
export type ProjectCreateNestedOneWithoutMembersInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutMembersInput, Prisma.ProjectUncheckedCreateWithoutMembersInput>
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembersInput
connect?: Prisma.ProjectWhereUniqueInput
}
export type ProjectUpdateOneRequiredWithoutMembersNestedInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutMembersInput, Prisma.ProjectUncheckedCreateWithoutMembersInput>
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembersInput
upsert?: Prisma.ProjectUpsertWithoutMembersInput
connect?: Prisma.ProjectWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ProjectUpdateToOneWithWhereWithoutMembersInput, Prisma.ProjectUpdateWithoutMembersInput>, Prisma.ProjectUncheckedUpdateWithoutMembersInput>
}
export type ProjectCreateNestedOneWithoutColumnsInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutColumnsInput, Prisma.ProjectUncheckedCreateWithoutColumnsInput>
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutColumnsInput
connect?: Prisma.ProjectWhereUniqueInput
}
export type ProjectUpdateOneRequiredWithoutColumnsNestedInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutColumnsInput, Prisma.ProjectUncheckedCreateWithoutColumnsInput>
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutColumnsInput
upsert?: Prisma.ProjectUpsertWithoutColumnsInput
connect?: Prisma.ProjectWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ProjectUpdateToOneWithWhereWithoutColumnsInput, Prisma.ProjectUpdateWithoutColumnsInput>, Prisma.ProjectUncheckedUpdateWithoutColumnsInput>
}
export type ProjectCreateNestedOneWithoutTasksInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutTasksInput, Prisma.ProjectUncheckedCreateWithoutTasksInput>
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutTasksInput
connect?: Prisma.ProjectWhereUniqueInput
}
export type ProjectUpdateOneRequiredWithoutTasksNestedInput = {
create?: Prisma.XOR<Prisma.ProjectCreateWithoutTasksInput, Prisma.ProjectUncheckedCreateWithoutTasksInput>
connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutTasksInput
upsert?: Prisma.ProjectUpsertWithoutTasksInput
connect?: Prisma.ProjectWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ProjectUpdateToOneWithWhereWithoutTasksInput, Prisma.ProjectUpdateWithoutTasksInput>, Prisma.ProjectUncheckedUpdateWithoutTasksInput>
}
export type ProjectCreateWithoutOwnerInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput
columns?: Prisma.BoardColumnCreateNestedManyWithoutProjectInput
tasks?: Prisma.TaskCreateNestedManyWithoutProjectInput
}
export type ProjectUncheckedCreateWithoutOwnerInput = {
id?: number
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput
columns?: Prisma.BoardColumnUncheckedCreateNestedManyWithoutProjectInput
tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutProjectInput
}
export type ProjectCreateOrConnectWithoutOwnerInput = {
where: Prisma.ProjectWhereUniqueInput
create: Prisma.XOR<Prisma.ProjectCreateWithoutOwnerInput, Prisma.ProjectUncheckedCreateWithoutOwnerInput>
}
export type ProjectCreateManyOwnerInputEnvelope = {
data: Prisma.ProjectCreateManyOwnerInput | Prisma.ProjectCreateManyOwnerInput[]
skipDuplicates?: boolean
}
export type ProjectUpsertWithWhereUniqueWithoutOwnerInput = {
where: Prisma.ProjectWhereUniqueInput
update: Prisma.XOR<Prisma.ProjectUpdateWithoutOwnerInput, Prisma.ProjectUncheckedUpdateWithoutOwnerInput>
create: Prisma.XOR<Prisma.ProjectCreateWithoutOwnerInput, Prisma.ProjectUncheckedCreateWithoutOwnerInput>
}
export type ProjectUpdateWithWhereUniqueWithoutOwnerInput = {
where: Prisma.ProjectWhereUniqueInput
data: Prisma.XOR<Prisma.ProjectUpdateWithoutOwnerInput, Prisma.ProjectUncheckedUpdateWithoutOwnerInput>
}
export type ProjectUpdateManyWithWhereWithoutOwnerInput = {
where: Prisma.ProjectScalarWhereInput
data: Prisma.XOR<Prisma.ProjectUpdateManyMutationInput, Prisma.ProjectUncheckedUpdateManyWithoutOwnerInput>
}
export type ProjectScalarWhereInput = {
AND?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[]
OR?: Prisma.ProjectScalarWhereInput[]
NOT?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[]
id?: Prisma.IntFilter<"Project"> | number
uuid?: Prisma.StringFilter<"Project"> | string
code?: Prisma.StringFilter<"Project"> | string
name?: Prisma.StringFilter<"Project"> | string
ownerId?: Prisma.IntFilter<"Project"> | number
isPersonal?: Prisma.BoolFilter<"Project"> | boolean
archived?: Prisma.BoolFilter<"Project"> | boolean
notes?: Prisma.JsonFilter<"Project">
taskKinds?: Prisma.JsonNullableFilter<"Project">
icon?: Prisma.StringNullableFilter<"Project"> | string | null
autoArchive?: Prisma.StringFilter<"Project"> | string
createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string
}
export type ProjectCreateWithoutMembersInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
owner: Prisma.UserCreateNestedOneWithoutOwnedProjectsInput
columns?: Prisma.BoardColumnCreateNestedManyWithoutProjectInput
tasks?: Prisma.TaskCreateNestedManyWithoutProjectInput
}
export type ProjectUncheckedCreateWithoutMembersInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
columns?: Prisma.BoardColumnUncheckedCreateNestedManyWithoutProjectInput
tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutProjectInput
}
export type ProjectCreateOrConnectWithoutMembersInput = {
where: Prisma.ProjectWhereUniqueInput
create: Prisma.XOR<Prisma.ProjectCreateWithoutMembersInput, Prisma.ProjectUncheckedCreateWithoutMembersInput>
}
export type ProjectUpsertWithoutMembersInput = {
update: Prisma.XOR<Prisma.ProjectUpdateWithoutMembersInput, Prisma.ProjectUncheckedUpdateWithoutMembersInput>
create: Prisma.XOR<Prisma.ProjectCreateWithoutMembersInput, Prisma.ProjectUncheckedCreateWithoutMembersInput>
where?: Prisma.ProjectWhereInput
}
export type ProjectUpdateToOneWithWhereWithoutMembersInput = {
where?: Prisma.ProjectWhereInput
data: Prisma.XOR<Prisma.ProjectUpdateWithoutMembersInput, Prisma.ProjectUncheckedUpdateWithoutMembersInput>
}
export type ProjectUpdateWithoutMembersInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
owner?: Prisma.UserUpdateOneRequiredWithoutOwnedProjectsNestedInput
columns?: Prisma.BoardColumnUpdateManyWithoutProjectNestedInput
tasks?: Prisma.TaskUpdateManyWithoutProjectNestedInput
}
export type ProjectUncheckedUpdateWithoutMembersInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
columns?: Prisma.BoardColumnUncheckedUpdateManyWithoutProjectNestedInput
tasks?: Prisma.TaskUncheckedUpdateManyWithoutProjectNestedInput
}
export type ProjectCreateWithoutColumnsInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
owner: Prisma.UserCreateNestedOneWithoutOwnedProjectsInput
members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput
tasks?: Prisma.TaskCreateNestedManyWithoutProjectInput
}
export type ProjectUncheckedCreateWithoutColumnsInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput
tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutProjectInput
}
export type ProjectCreateOrConnectWithoutColumnsInput = {
where: Prisma.ProjectWhereUniqueInput
create: Prisma.XOR<Prisma.ProjectCreateWithoutColumnsInput, Prisma.ProjectUncheckedCreateWithoutColumnsInput>
}
export type ProjectUpsertWithoutColumnsInput = {
update: Prisma.XOR<Prisma.ProjectUpdateWithoutColumnsInput, Prisma.ProjectUncheckedUpdateWithoutColumnsInput>
create: Prisma.XOR<Prisma.ProjectCreateWithoutColumnsInput, Prisma.ProjectUncheckedCreateWithoutColumnsInput>
where?: Prisma.ProjectWhereInput
}
export type ProjectUpdateToOneWithWhereWithoutColumnsInput = {
where?: Prisma.ProjectWhereInput
data: Prisma.XOR<Prisma.ProjectUpdateWithoutColumnsInput, Prisma.ProjectUncheckedUpdateWithoutColumnsInput>
}
export type ProjectUpdateWithoutColumnsInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
owner?: Prisma.UserUpdateOneRequiredWithoutOwnedProjectsNestedInput
members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput
tasks?: Prisma.TaskUpdateManyWithoutProjectNestedInput
}
export type ProjectUncheckedUpdateWithoutColumnsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput
tasks?: Prisma.TaskUncheckedUpdateManyWithoutProjectNestedInput
}
export type ProjectCreateWithoutTasksInput = {
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
owner: Prisma.UserCreateNestedOneWithoutOwnedProjectsInput
members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput
columns?: Prisma.BoardColumnCreateNestedManyWithoutProjectInput
}
export type ProjectUncheckedCreateWithoutTasksInput = {
id?: number
uuid: string
code: string
name: string
ownerId: number
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput
columns?: Prisma.BoardColumnUncheckedCreateNestedManyWithoutProjectInput
}
export type ProjectCreateOrConnectWithoutTasksInput = {
where: Prisma.ProjectWhereUniqueInput
create: Prisma.XOR<Prisma.ProjectCreateWithoutTasksInput, Prisma.ProjectUncheckedCreateWithoutTasksInput>
}
export type ProjectUpsertWithoutTasksInput = {
update: Prisma.XOR<Prisma.ProjectUpdateWithoutTasksInput, Prisma.ProjectUncheckedUpdateWithoutTasksInput>
create: Prisma.XOR<Prisma.ProjectCreateWithoutTasksInput, Prisma.ProjectUncheckedCreateWithoutTasksInput>
where?: Prisma.ProjectWhereInput
}
export type ProjectUpdateToOneWithWhereWithoutTasksInput = {
where?: Prisma.ProjectWhereInput
data: Prisma.XOR<Prisma.ProjectUpdateWithoutTasksInput, Prisma.ProjectUncheckedUpdateWithoutTasksInput>
}
export type ProjectUpdateWithoutTasksInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
owner?: Prisma.UserUpdateOneRequiredWithoutOwnedProjectsNestedInput
members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput
columns?: Prisma.BoardColumnUpdateManyWithoutProjectNestedInput
}
export type ProjectUncheckedUpdateWithoutTasksInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
ownerId?: Prisma.IntFieldUpdateOperationsInput | number
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput
columns?: Prisma.BoardColumnUncheckedUpdateManyWithoutProjectNestedInput
}
export type ProjectCreateManyOwnerInput = {
id?: number
uuid: string
code: string
name: string
isPersonal?: boolean
archived?: boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: string | null
autoArchive?: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type ProjectUpdateWithoutOwnerInput = {
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput
columns?: Prisma.BoardColumnUpdateManyWithoutProjectNestedInput
tasks?: Prisma.TaskUpdateManyWithoutProjectNestedInput
}
export type ProjectUncheckedUpdateWithoutOwnerInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput
columns?: Prisma.BoardColumnUncheckedUpdateManyWithoutProjectNestedInput
tasks?: Prisma.TaskUncheckedUpdateManyWithoutProjectNestedInput
}
export type ProjectUncheckedUpdateManyWithoutOwnerInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
isPersonal?: Prisma.BoolFieldUpdateOperationsInput | boolean
archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
notes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
taskKinds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
autoArchive?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Count Type ProjectCountOutputType
*/
export type ProjectCountOutputType = {
members: number
columns: number
tasks: number
}
export type ProjectCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
members?: boolean | ProjectCountOutputTypeCountMembersArgs
columns?: boolean | ProjectCountOutputTypeCountColumnsArgs
tasks?: boolean | ProjectCountOutputTypeCountTasksArgs
}
/**
* ProjectCountOutputType without action
*/
export type ProjectCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ProjectCountOutputType
*/
select?: Prisma.ProjectCountOutputTypeSelect<ExtArgs> | null
}
/**
* ProjectCountOutputType without action
*/
export type ProjectCountOutputTypeCountMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ProjectMemberWhereInput
}
/**
* ProjectCountOutputType without action
*/
export type ProjectCountOutputTypeCountColumnsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.BoardColumnWhereInput
}
/**
* ProjectCountOutputType without action
*/
export type ProjectCountOutputTypeCountTasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.TaskWhereInput
}
export type ProjectSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
code?: boolean
name?: boolean
ownerId?: boolean
isPersonal?: boolean
archived?: boolean
notes?: boolean
taskKinds?: boolean
icon?: boolean
autoArchive?: boolean
createdAt?: boolean
updatedAt?: boolean
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
members?: boolean | Prisma.Project$membersArgs<ExtArgs>
columns?: boolean | Prisma.Project$columnsArgs<ExtArgs>
tasks?: boolean | Prisma.Project$tasksArgs<ExtArgs>
_count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["project"]>
export type ProjectSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
code?: boolean
name?: boolean
ownerId?: boolean
isPersonal?: boolean
archived?: boolean
notes?: boolean
taskKinds?: boolean
icon?: boolean
autoArchive?: boolean
createdAt?: boolean
updatedAt?: boolean
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["project"]>
export type ProjectSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
code?: boolean
name?: boolean
ownerId?: boolean
isPersonal?: boolean
archived?: boolean
notes?: boolean
taskKinds?: boolean
icon?: boolean
autoArchive?: boolean
createdAt?: boolean
updatedAt?: boolean
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["project"]>
export type ProjectSelectScalar = {
id?: boolean
uuid?: boolean
code?: boolean
name?: boolean
ownerId?: boolean
isPersonal?: boolean
archived?: boolean
notes?: boolean
taskKinds?: boolean
icon?: boolean
autoArchive?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type ProjectOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "code" | "name" | "ownerId" | "isPersonal" | "archived" | "notes" | "taskKinds" | "icon" | "autoArchive" | "createdAt" | "updatedAt", ExtArgs["result"]["project"]>
export type ProjectInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
members?: boolean | Prisma.Project$membersArgs<ExtArgs>
columns?: boolean | Prisma.Project$columnsArgs<ExtArgs>
tasks?: boolean | Prisma.Project$tasksArgs<ExtArgs>
_count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs<ExtArgs>
}
export type ProjectIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type ProjectIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type $ProjectPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Project"
objects: {
owner: Prisma.$UserPayload<ExtArgs>
members: Prisma.$ProjectMemberPayload<ExtArgs>[]
columns: Prisma.$BoardColumnPayload<ExtArgs>[]
tasks: Prisma.$TaskPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
uuid: string
code: string
name: string
ownerId: number
isPersonal: boolean
archived: boolean
notes: runtime.JsonValue
taskKinds: runtime.JsonValue | null
icon: string | null
autoArchive: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["project"]>
composites: {}
}
export type ProjectGetPayload<S extends boolean | null | undefined | ProjectDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProjectPayload, S>
export type ProjectCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<ProjectFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ProjectCountAggregateInputType | true
}
export interface ProjectDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Project'], meta: { name: 'Project' } }
/**
* Find zero or one Project that matches the filter.
* @param {ProjectFindUniqueArgs} args - Arguments to find a Project
* @example
* // Get one Project
* const project = await prisma.project.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ProjectFindUniqueArgs>(args: Prisma.SelectSubset<T, ProjectFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Project that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ProjectFindUniqueOrThrowArgs} args - Arguments to find a Project
* @example
* // Get one Project
* const project = await prisma.project.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ProjectFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProjectFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Project 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 {ProjectFindFirstArgs} args - Arguments to find a Project
* @example
* // Get one Project
* const project = await prisma.project.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ProjectFindFirstArgs>(args?: Prisma.SelectSubset<T, ProjectFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Project 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 {ProjectFindFirstOrThrowArgs} args - Arguments to find a Project
* @example
* // Get one Project
* const project = await prisma.project.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ProjectFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProjectFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Projects 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 {ProjectFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Projects
* const projects = await prisma.project.findMany()
*
* // Get first 10 Projects
* const projects = await prisma.project.findMany({ take: 10 })
*
* // Only select the `id`
* const projectWithIdOnly = await prisma.project.findMany({ select: { id: true } })
*
*/
findMany<T extends ProjectFindManyArgs>(args?: Prisma.SelectSubset<T, ProjectFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Project.
* @param {ProjectCreateArgs} args - Arguments to create a Project.
* @example
* // Create one Project
* const Project = await prisma.project.create({
* data: {
* // ... data to create a Project
* }
* })
*
*/
create<T extends ProjectCreateArgs>(args: Prisma.SelectSubset<T, ProjectCreateArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Projects.
* @param {ProjectCreateManyArgs} args - Arguments to create many Projects.
* @example
* // Create many Projects
* const project = await prisma.project.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ProjectCreateManyArgs>(args?: Prisma.SelectSubset<T, ProjectCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Projects and returns the data saved in the database.
* @param {ProjectCreateManyAndReturnArgs} args - Arguments to create many Projects.
* @example
* // Create many Projects
* const project = await prisma.project.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Projects and only return the `id`
* const projectWithIdOnly = await prisma.project.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ProjectCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProjectCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Project.
* @param {ProjectDeleteArgs} args - Arguments to delete one Project.
* @example
* // Delete one Project
* const Project = await prisma.project.delete({
* where: {
* // ... filter to delete one Project
* }
* })
*
*/
delete<T extends ProjectDeleteArgs>(args: Prisma.SelectSubset<T, ProjectDeleteArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Project.
* @param {ProjectUpdateArgs} args - Arguments to update one Project.
* @example
* // Update one Project
* const project = await prisma.project.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ProjectUpdateArgs>(args: Prisma.SelectSubset<T, ProjectUpdateArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Projects.
* @param {ProjectDeleteManyArgs} args - Arguments to filter Projects to delete.
* @example
* // Delete a few Projects
* const { count } = await prisma.project.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ProjectDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProjectDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Projects.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ProjectUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Projects
* const project = await prisma.project.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ProjectUpdateManyArgs>(args: Prisma.SelectSubset<T, ProjectUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Projects and returns the data updated in the database.
* @param {ProjectUpdateManyAndReturnArgs} args - Arguments to update many Projects.
* @example
* // Update many Projects
* const project = await prisma.project.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Projects and only return the `id`
* const projectWithIdOnly = await prisma.project.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ProjectUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProjectUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Project.
* @param {ProjectUpsertArgs} args - Arguments to update or create a Project.
* @example
* // Update or create a Project
* const project = await prisma.project.upsert({
* create: {
* // ... data to create a Project
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Project we want to update
* }
* })
*/
upsert<T extends ProjectUpsertArgs>(args: Prisma.SelectSubset<T, ProjectUpsertArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Projects.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ProjectCountArgs} args - Arguments to filter Projects to count.
* @example
* // Count the number of Projects
* const count = await prisma.project.count({
* where: {
* // ... the filter for the Projects we want to count
* }
* })
**/
count<T extends ProjectCountArgs>(
args?: Prisma.Subset<T, ProjectCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], ProjectCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Project.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ProjectAggregateArgs} 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 ProjectAggregateArgs>(args: Prisma.Subset<T, ProjectAggregateArgs>): Prisma.PrismaPromise<GetProjectAggregateType<T>>
/**
* Group by Project.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ProjectGroupByArgs} 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 ProjectGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: ProjectGroupByArgs['orderBy'] }
: { orderBy?: ProjectGroupByArgs['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, ProjectGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProjectGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Project model
*/
readonly fields: ProjectFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Project.
* 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__ProjectClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
owner<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
members<T extends Prisma.Project$membersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Project$membersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
columns<T extends Prisma.Project$columnsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Project$columnsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BoardColumnPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
tasks<T extends Prisma.Project$tasksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Project$tasksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskPayload<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 Project model
*/
export interface ProjectFieldRefs {
readonly id: Prisma.FieldRef<"Project", 'Int'>
readonly uuid: Prisma.FieldRef<"Project", 'String'>
readonly code: Prisma.FieldRef<"Project", 'String'>
readonly name: Prisma.FieldRef<"Project", 'String'>
readonly ownerId: Prisma.FieldRef<"Project", 'Int'>
readonly isPersonal: Prisma.FieldRef<"Project", 'Boolean'>
readonly archived: Prisma.FieldRef<"Project", 'Boolean'>
readonly notes: Prisma.FieldRef<"Project", 'Json'>
readonly taskKinds: Prisma.FieldRef<"Project", 'Json'>
readonly icon: Prisma.FieldRef<"Project", 'String'>
readonly autoArchive: Prisma.FieldRef<"Project", 'String'>
readonly createdAt: Prisma.FieldRef<"Project", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Project", 'DateTime'>
}
// Custom InputTypes
/**
* Project findUnique
*/
export type ProjectFindUniqueArgs<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
/**
* Filter, which Project to fetch.
*/
where: Prisma.ProjectWhereUniqueInput
}
/**
* Project findUniqueOrThrow
*/
export type ProjectFindUniqueOrThrowArgs<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
/**
* Filter, which Project to fetch.
*/
where: Prisma.ProjectWhereUniqueInput
}
/**
* Project findFirst
*/
export type ProjectFindFirstArgs<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
/**
* Filter, which Project to fetch.
*/
where?: Prisma.ProjectWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Projects to fetch.
*/
orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Projects.
*/
cursor?: Prisma.ProjectWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Projects 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` Projects.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Projects.
*/
distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]
}
/**
* Project findFirstOrThrow
*/
export type ProjectFindFirstOrThrowArgs<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
/**
* Filter, which Project to fetch.
*/
where?: Prisma.ProjectWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Projects to fetch.
*/
orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Projects.
*/
cursor?: Prisma.ProjectWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Projects 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` Projects.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Projects.
*/
distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]
}
/**
* Project findMany
*/
export type ProjectFindManyArgs<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
/**
* Filter, which Projects to fetch.
*/
where?: Prisma.ProjectWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Projects to fetch.
*/
orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Projects.
*/
cursor?: Prisma.ProjectWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Projects 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` Projects.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Projects.
*/
distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]
}
/**
* Project create
*/
export type ProjectCreateArgs<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
/**
* The data needed to create a Project.
*/
data: Prisma.XOR<Prisma.ProjectCreateInput, Prisma.ProjectUncheckedCreateInput>
}
/**
* Project createMany
*/
export type ProjectCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Projects.
*/
data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Project createManyAndReturn
*/
export type ProjectCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Project
*/
select?: Prisma.ProjectSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Project
*/
omit?: Prisma.ProjectOmit<ExtArgs> | null
/**
* The data used to create many Projects.
*/
data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProjectIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Project update
*/
export type ProjectUpdateArgs<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
/**
* The data needed to update a Project.
*/
data: Prisma.XOR<Prisma.ProjectUpdateInput, Prisma.ProjectUncheckedUpdateInput>
/**
* Choose, which Project to update.
*/
where: Prisma.ProjectWhereUniqueInput
}
/**
* Project updateMany
*/
export type ProjectUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Projects.
*/
data: Prisma.XOR<Prisma.ProjectUpdateManyMutationInput, Prisma.ProjectUncheckedUpdateManyInput>
/**
* Filter which Projects to update
*/
where?: Prisma.ProjectWhereInput
/**
* Limit how many Projects to update.
*/
limit?: number
}
/**
* Project updateManyAndReturn
*/
export type ProjectUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Project
*/
select?: Prisma.ProjectSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Project
*/
omit?: Prisma.ProjectOmit<ExtArgs> | null
/**
* The data used to update Projects.
*/
data: Prisma.XOR<Prisma.ProjectUpdateManyMutationInput, Prisma.ProjectUncheckedUpdateManyInput>
/**
* Filter which Projects to update
*/
where?: Prisma.ProjectWhereInput
/**
* Limit how many Projects to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProjectIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Project upsert
*/
export type ProjectUpsertArgs<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
/**
* The filter to search for the Project to update in case it exists.
*/
where: Prisma.ProjectWhereUniqueInput
/**
* In case the Project found by the `where` argument doesn't exist, create a new Project with this data.
*/
create: Prisma.XOR<Prisma.ProjectCreateInput, Prisma.ProjectUncheckedCreateInput>
/**
* In case the Project was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.ProjectUpdateInput, Prisma.ProjectUncheckedUpdateInput>
}
/**
* Project delete
*/
export type ProjectDeleteArgs<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
/**
* Filter which Project to delete.
*/
where: Prisma.ProjectWhereUniqueInput
}
/**
* Project deleteMany
*/
export type ProjectDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Projects to delete
*/
where?: Prisma.ProjectWhereInput
/**
* Limit how many Projects to delete.
*/
limit?: number
}
/**
* Project.members
*/
export type Project$membersArgs<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[]
}
/**
* Project.columns
*/
export type Project$columnsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the BoardColumn
*/
select?: Prisma.BoardColumnSelect<ExtArgs> | null
/**
* Omit specific fields from the BoardColumn
*/
omit?: Prisma.BoardColumnOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BoardColumnInclude<ExtArgs> | null
where?: Prisma.BoardColumnWhereInput
orderBy?: Prisma.BoardColumnOrderByWithRelationInput | Prisma.BoardColumnOrderByWithRelationInput[]
cursor?: Prisma.BoardColumnWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.BoardColumnScalarFieldEnum | Prisma.BoardColumnScalarFieldEnum[]
}
/**
* Project.tasks
*/
export type Project$tasksArgs<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[]
}
/**
* Project without action
*/
export type ProjectDefaultArgs<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
}