/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Task` 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 Task * A task, scoped per tenant. Soft-delete via `archivedAt` (archive flag). A * completed task (`status = done`, `completedAt` set) is auto-archived 30 days * later by a maintenance cron. */ export type TaskModel = runtime.Types.Result.DefaultSelection export type AggregateTask = { _count: TaskCountAggregateOutputType | null _min: TaskMinAggregateOutputType | null _max: TaskMaxAggregateOutputType | null } export type TaskMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null createdByUserId: string | null title: string | null description: string | null status: $Enums.TaskStatus | null priority: $Enums.TaskPriority | null deadline: Date | null assignedToUserId: string | null assignedToGroupId: string | null linkedEntityType: $Enums.TaskEntityType | null linkedEntityId: string | null source: $Enums.TaskSource | null sourceRef: string | null completedAt: Date | null isDemoData: boolean | null archivedAt: Date | null } export type TaskMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null createdByUserId: string | null title: string | null description: string | null status: $Enums.TaskStatus | null priority: $Enums.TaskPriority | null deadline: Date | null assignedToUserId: string | null assignedToGroupId: string | null linkedEntityType: $Enums.TaskEntityType | null linkedEntityId: string | null source: $Enums.TaskSource | null sourceRef: string | null completedAt: Date | null isDemoData: boolean | null archivedAt: Date | null } export type TaskCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number createdByUserId: number title: number description: number status: number priority: number deadline: number assignedToUserId: number assignedToGroupId: number linkedEntityType: number linkedEntityId: number source: number sourceRef: number completedAt: number isDemoData: number archivedAt: number _all: number } export type TaskMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true createdByUserId?: true title?: true description?: true status?: true priority?: true deadline?: true assignedToUserId?: true assignedToGroupId?: true linkedEntityType?: true linkedEntityId?: true source?: true sourceRef?: true completedAt?: true isDemoData?: true archivedAt?: true } export type TaskMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true createdByUserId?: true title?: true description?: true status?: true priority?: true deadline?: true assignedToUserId?: true assignedToGroupId?: true linkedEntityType?: true linkedEntityId?: true source?: true sourceRef?: true completedAt?: true isDemoData?: true archivedAt?: true } export type TaskCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true createdByUserId?: true title?: true description?: true status?: true priority?: true deadline?: true assignedToUserId?: true assignedToGroupId?: true linkedEntityType?: true linkedEntityId?: true source?: true sourceRef?: true completedAt?: true isDemoData?: true archivedAt?: true _all?: true } export type TaskAggregateArgs = { /** * Filter which Task to aggregate. */ where?: Prisma.TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks 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` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Tasks **/ _count?: true | TaskCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TaskMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TaskMaxAggregateInputType } export type GetTaskAggregateType = { [P in keyof T & keyof AggregateTask]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TaskGroupByArgs = { where?: Prisma.TaskWhereInput orderBy?: Prisma.TaskOrderByWithAggregationInput | Prisma.TaskOrderByWithAggregationInput[] by: Prisma.TaskScalarFieldEnum[] | Prisma.TaskScalarFieldEnum having?: Prisma.TaskScalarWhereWithAggregatesInput take?: number skip?: number _count?: TaskCountAggregateInputType | true _min?: TaskMinAggregateInputType _max?: TaskMaxAggregateInputType } export type TaskGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string createdByUserId: string title: string description: string | null status: $Enums.TaskStatus priority: $Enums.TaskPriority deadline: Date | null assignedToUserId: string | null assignedToGroupId: string | null linkedEntityType: $Enums.TaskEntityType | null linkedEntityId: string | null source: $Enums.TaskSource sourceRef: string | null completedAt: Date | null isDemoData: boolean archivedAt: Date | null _count: TaskCountAggregateOutputType | null _min: TaskMinAggregateOutputType | null _max: TaskMaxAggregateOutputType | null } export type GetTaskGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TaskGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TaskWhereInput = { AND?: Prisma.TaskWhereInput | Prisma.TaskWhereInput[] OR?: Prisma.TaskWhereInput[] NOT?: Prisma.TaskWhereInput | Prisma.TaskWhereInput[] id?: Prisma.StringFilter<"Task"> | string createdAt?: Prisma.DateTimeFilter<"Task"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Task"> | Date | string tenantId?: Prisma.StringFilter<"Task"> | string createdByUserId?: Prisma.StringFilter<"Task"> | string title?: Prisma.StringFilter<"Task"> | string description?: Prisma.StringNullableFilter<"Task"> | string | null status?: Prisma.EnumTaskStatusFilter<"Task"> | $Enums.TaskStatus priority?: Prisma.EnumTaskPriorityFilter<"Task"> | $Enums.TaskPriority deadline?: Prisma.DateTimeNullableFilter<"Task"> | Date | string | null assignedToUserId?: Prisma.StringNullableFilter<"Task"> | string | null assignedToGroupId?: Prisma.StringNullableFilter<"Task"> | string | null linkedEntityType?: Prisma.EnumTaskEntityTypeNullableFilter<"Task"> | $Enums.TaskEntityType | null linkedEntityId?: Prisma.StringNullableFilter<"Task"> | string | null source?: Prisma.EnumTaskSourceFilter<"Task"> | $Enums.TaskSource sourceRef?: Prisma.StringNullableFilter<"Task"> | string | null completedAt?: Prisma.DateTimeNullableFilter<"Task"> | Date | string | null isDemoData?: Prisma.BoolFilter<"Task"> | boolean archivedAt?: Prisma.DateTimeNullableFilter<"Task"> | Date | string | null watchers?: Prisma.TaskWatcherListRelationFilter } export type TaskOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder deadline?: Prisma.SortOrderInput | Prisma.SortOrder assignedToUserId?: Prisma.SortOrderInput | Prisma.SortOrder assignedToGroupId?: Prisma.SortOrderInput | Prisma.SortOrder linkedEntityType?: Prisma.SortOrderInput | Prisma.SortOrder linkedEntityId?: Prisma.SortOrderInput | Prisma.SortOrder source?: Prisma.SortOrder sourceRef?: Prisma.SortOrderInput | Prisma.SortOrder completedAt?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder watchers?: Prisma.TaskWatcherOrderByRelationAggregateInput } export type TaskWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.TaskWhereInput | Prisma.TaskWhereInput[] OR?: Prisma.TaskWhereInput[] NOT?: Prisma.TaskWhereInput | Prisma.TaskWhereInput[] createdAt?: Prisma.DateTimeFilter<"Task"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Task"> | Date | string tenantId?: Prisma.StringFilter<"Task"> | string createdByUserId?: Prisma.StringFilter<"Task"> | string title?: Prisma.StringFilter<"Task"> | string description?: Prisma.StringNullableFilter<"Task"> | string | null status?: Prisma.EnumTaskStatusFilter<"Task"> | $Enums.TaskStatus priority?: Prisma.EnumTaskPriorityFilter<"Task"> | $Enums.TaskPriority deadline?: Prisma.DateTimeNullableFilter<"Task"> | Date | string | null assignedToUserId?: Prisma.StringNullableFilter<"Task"> | string | null assignedToGroupId?: Prisma.StringNullableFilter<"Task"> | string | null linkedEntityType?: Prisma.EnumTaskEntityTypeNullableFilter<"Task"> | $Enums.TaskEntityType | null linkedEntityId?: Prisma.StringNullableFilter<"Task"> | string | null source?: Prisma.EnumTaskSourceFilter<"Task"> | $Enums.TaskSource sourceRef?: Prisma.StringNullableFilter<"Task"> | string | null completedAt?: Prisma.DateTimeNullableFilter<"Task"> | Date | string | null isDemoData?: Prisma.BoolFilter<"Task"> | boolean archivedAt?: Prisma.DateTimeNullableFilter<"Task"> | Date | string | null watchers?: Prisma.TaskWatcherListRelationFilter }, "id"> export type TaskOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder deadline?: Prisma.SortOrderInput | Prisma.SortOrder assignedToUserId?: Prisma.SortOrderInput | Prisma.SortOrder assignedToGroupId?: Prisma.SortOrderInput | Prisma.SortOrder linkedEntityType?: Prisma.SortOrderInput | Prisma.SortOrder linkedEntityId?: Prisma.SortOrderInput | Prisma.SortOrder source?: Prisma.SortOrder sourceRef?: Prisma.SortOrderInput | Prisma.SortOrder completedAt?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.TaskCountOrderByAggregateInput _max?: Prisma.TaskMaxOrderByAggregateInput _min?: Prisma.TaskMinOrderByAggregateInput } export type TaskScalarWhereWithAggregatesInput = { AND?: Prisma.TaskScalarWhereWithAggregatesInput | Prisma.TaskScalarWhereWithAggregatesInput[] OR?: Prisma.TaskScalarWhereWithAggregatesInput[] NOT?: Prisma.TaskScalarWhereWithAggregatesInput | Prisma.TaskScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Task"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Task"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Task"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"Task"> | string createdByUserId?: Prisma.StringWithAggregatesFilter<"Task"> | string title?: Prisma.StringWithAggregatesFilter<"Task"> | string description?: Prisma.StringNullableWithAggregatesFilter<"Task"> | string | null status?: Prisma.EnumTaskStatusWithAggregatesFilter<"Task"> | $Enums.TaskStatus priority?: Prisma.EnumTaskPriorityWithAggregatesFilter<"Task"> | $Enums.TaskPriority deadline?: Prisma.DateTimeNullableWithAggregatesFilter<"Task"> | Date | string | null assignedToUserId?: Prisma.StringNullableWithAggregatesFilter<"Task"> | string | null assignedToGroupId?: Prisma.StringNullableWithAggregatesFilter<"Task"> | string | null linkedEntityType?: Prisma.EnumTaskEntityTypeNullableWithAggregatesFilter<"Task"> | $Enums.TaskEntityType | null linkedEntityId?: Prisma.StringNullableWithAggregatesFilter<"Task"> | string | null source?: Prisma.EnumTaskSourceWithAggregatesFilter<"Task"> | $Enums.TaskSource sourceRef?: Prisma.StringNullableWithAggregatesFilter<"Task"> | string | null completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Task"> | Date | string | null isDemoData?: Prisma.BoolWithAggregatesFilter<"Task"> | boolean archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Task"> | Date | string | null } export type TaskCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string createdByUserId: string title: string description?: string | null status?: $Enums.TaskStatus priority?: $Enums.TaskPriority deadline?: Date | string | null assignedToUserId?: string | null assignedToGroupId?: string | null linkedEntityType?: $Enums.TaskEntityType | null linkedEntityId?: string | null source?: $Enums.TaskSource sourceRef?: string | null completedAt?: Date | string | null isDemoData?: boolean archivedAt?: Date | string | null watchers?: Prisma.TaskWatcherCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string createdByUserId: string title: string description?: string | null status?: $Enums.TaskStatus priority?: $Enums.TaskPriority deadline?: Date | string | null assignedToUserId?: string | null assignedToGroupId?: string | null linkedEntityType?: $Enums.TaskEntityType | null linkedEntityId?: string | null source?: $Enums.TaskSource sourceRef?: string | null completedAt?: Date | string | null isDemoData?: boolean archivedAt?: Date | string | null watchers?: Prisma.TaskWatcherUncheckedCreateNestedManyWithoutTaskInput } export type TaskUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus priority?: Prisma.EnumTaskPriorityFieldUpdateOperationsInput | $Enums.TaskPriority deadline?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null assignedToGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null linkedEntityType?: Prisma.NullableEnumTaskEntityTypeFieldUpdateOperationsInput | $Enums.TaskEntityType | null linkedEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.EnumTaskSourceFieldUpdateOperationsInput | $Enums.TaskSource sourceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null watchers?: Prisma.TaskWatcherUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus priority?: Prisma.EnumTaskPriorityFieldUpdateOperationsInput | $Enums.TaskPriority deadline?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null assignedToGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null linkedEntityType?: Prisma.NullableEnumTaskEntityTypeFieldUpdateOperationsInput | $Enums.TaskEntityType | null linkedEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.EnumTaskSourceFieldUpdateOperationsInput | $Enums.TaskSource sourceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null watchers?: Prisma.TaskWatcherUncheckedUpdateManyWithoutTaskNestedInput } export type TaskCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string createdByUserId: string title: string description?: string | null status?: $Enums.TaskStatus priority?: $Enums.TaskPriority deadline?: Date | string | null assignedToUserId?: string | null assignedToGroupId?: string | null linkedEntityType?: $Enums.TaskEntityType | null linkedEntityId?: string | null source?: $Enums.TaskSource sourceRef?: string | null completedAt?: Date | string | null isDemoData?: boolean archivedAt?: Date | string | null } export type TaskUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus priority?: Prisma.EnumTaskPriorityFieldUpdateOperationsInput | $Enums.TaskPriority deadline?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null assignedToGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null linkedEntityType?: Prisma.NullableEnumTaskEntityTypeFieldUpdateOperationsInput | $Enums.TaskEntityType | null linkedEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.EnumTaskSourceFieldUpdateOperationsInput | $Enums.TaskSource sourceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TaskUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus priority?: Prisma.EnumTaskPriorityFieldUpdateOperationsInput | $Enums.TaskPriority deadline?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null assignedToGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null linkedEntityType?: Prisma.NullableEnumTaskEntityTypeFieldUpdateOperationsInput | $Enums.TaskEntityType | null linkedEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.EnumTaskSourceFieldUpdateOperationsInput | $Enums.TaskSource sourceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TaskCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder deadline?: Prisma.SortOrder assignedToUserId?: Prisma.SortOrder assignedToGroupId?: Prisma.SortOrder linkedEntityType?: Prisma.SortOrder linkedEntityId?: Prisma.SortOrder source?: Prisma.SortOrder sourceRef?: Prisma.SortOrder completedAt?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type TaskMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder deadline?: Prisma.SortOrder assignedToUserId?: Prisma.SortOrder assignedToGroupId?: Prisma.SortOrder linkedEntityType?: Prisma.SortOrder linkedEntityId?: Prisma.SortOrder source?: Prisma.SortOrder sourceRef?: Prisma.SortOrder completedAt?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type TaskMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder deadline?: Prisma.SortOrder assignedToUserId?: Prisma.SortOrder assignedToGroupId?: Prisma.SortOrder linkedEntityType?: Prisma.SortOrder linkedEntityId?: Prisma.SortOrder source?: Prisma.SortOrder sourceRef?: Prisma.SortOrder completedAt?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type TaskScalarRelationFilter = { is?: Prisma.TaskWhereInput isNot?: Prisma.TaskWhereInput } export type EnumTaskStatusFieldUpdateOperationsInput = { set?: $Enums.TaskStatus } export type EnumTaskPriorityFieldUpdateOperationsInput = { set?: $Enums.TaskPriority } export type NullableEnumTaskEntityTypeFieldUpdateOperationsInput = { set?: $Enums.TaskEntityType | null } export type EnumTaskSourceFieldUpdateOperationsInput = { set?: $Enums.TaskSource } export type TaskCreateNestedOneWithoutWatchersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TaskCreateOrConnectWithoutWatchersInput connect?: Prisma.TaskWhereUniqueInput } export type TaskUpdateOneRequiredWithoutWatchersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TaskCreateOrConnectWithoutWatchersInput upsert?: Prisma.TaskUpsertWithoutWatchersInput connect?: Prisma.TaskWhereUniqueInput update?: Prisma.XOR, Prisma.TaskUncheckedUpdateWithoutWatchersInput> } export type TaskCreateWithoutWatchersInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string createdByUserId: string title: string description?: string | null status?: $Enums.TaskStatus priority?: $Enums.TaskPriority deadline?: Date | string | null assignedToUserId?: string | null assignedToGroupId?: string | null linkedEntityType?: $Enums.TaskEntityType | null linkedEntityId?: string | null source?: $Enums.TaskSource sourceRef?: string | null completedAt?: Date | string | null isDemoData?: boolean archivedAt?: Date | string | null } export type TaskUncheckedCreateWithoutWatchersInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string createdByUserId: string title: string description?: string | null status?: $Enums.TaskStatus priority?: $Enums.TaskPriority deadline?: Date | string | null assignedToUserId?: string | null assignedToGroupId?: string | null linkedEntityType?: $Enums.TaskEntityType | null linkedEntityId?: string | null source?: $Enums.TaskSource sourceRef?: string | null completedAt?: Date | string | null isDemoData?: boolean archivedAt?: Date | string | null } export type TaskCreateOrConnectWithoutWatchersInput = { where: Prisma.TaskWhereUniqueInput create: Prisma.XOR } export type TaskUpsertWithoutWatchersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TaskWhereInput } export type TaskUpdateToOneWithWhereWithoutWatchersInput = { where?: Prisma.TaskWhereInput data: Prisma.XOR } export type TaskUpdateWithoutWatchersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus priority?: Prisma.EnumTaskPriorityFieldUpdateOperationsInput | $Enums.TaskPriority deadline?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null assignedToGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null linkedEntityType?: Prisma.NullableEnumTaskEntityTypeFieldUpdateOperationsInput | $Enums.TaskEntityType | null linkedEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.EnumTaskSourceFieldUpdateOperationsInput | $Enums.TaskSource sourceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TaskUncheckedUpdateWithoutWatchersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus priority?: Prisma.EnumTaskPriorityFieldUpdateOperationsInput | $Enums.TaskPriority deadline?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null assignedToGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null linkedEntityType?: Prisma.NullableEnumTaskEntityTypeFieldUpdateOperationsInput | $Enums.TaskEntityType | null linkedEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.EnumTaskSourceFieldUpdateOperationsInput | $Enums.TaskSource sourceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } /** * Count Type TaskCountOutputType */ export type TaskCountOutputType = { watchers: number } export type TaskCountOutputTypeSelect = { watchers?: boolean | TaskCountOutputTypeCountWatchersArgs } /** * TaskCountOutputType without action */ export type TaskCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TaskCountOutputType */ select?: Prisma.TaskCountOutputTypeSelect | null } /** * TaskCountOutputType without action */ export type TaskCountOutputTypeCountWatchersArgs = { where?: Prisma.TaskWatcherWhereInput } export type TaskSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean createdByUserId?: boolean title?: boolean description?: boolean status?: boolean priority?: boolean deadline?: boolean assignedToUserId?: boolean assignedToGroupId?: boolean linkedEntityType?: boolean linkedEntityId?: boolean source?: boolean sourceRef?: boolean completedAt?: boolean isDemoData?: boolean archivedAt?: boolean watchers?: boolean | Prisma.Task$watchersArgs _count?: boolean | Prisma.TaskCountOutputTypeDefaultArgs }, ExtArgs["result"]["task"]> export type TaskSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean createdByUserId?: boolean title?: boolean description?: boolean status?: boolean priority?: boolean deadline?: boolean assignedToUserId?: boolean assignedToGroupId?: boolean linkedEntityType?: boolean linkedEntityId?: boolean source?: boolean sourceRef?: boolean completedAt?: boolean isDemoData?: boolean archivedAt?: boolean }, ExtArgs["result"]["task"]> export type TaskSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean createdByUserId?: boolean title?: boolean description?: boolean status?: boolean priority?: boolean deadline?: boolean assignedToUserId?: boolean assignedToGroupId?: boolean linkedEntityType?: boolean linkedEntityId?: boolean source?: boolean sourceRef?: boolean completedAt?: boolean isDemoData?: boolean archivedAt?: boolean }, ExtArgs["result"]["task"]> export type TaskSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean createdByUserId?: boolean title?: boolean description?: boolean status?: boolean priority?: boolean deadline?: boolean assignedToUserId?: boolean assignedToGroupId?: boolean linkedEntityType?: boolean linkedEntityId?: boolean source?: boolean sourceRef?: boolean completedAt?: boolean isDemoData?: boolean archivedAt?: boolean } export type TaskOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "createdByUserId" | "title" | "description" | "status" | "priority" | "deadline" | "assignedToUserId" | "assignedToGroupId" | "linkedEntityType" | "linkedEntityId" | "source" | "sourceRef" | "completedAt" | "isDemoData" | "archivedAt", ExtArgs["result"]["task"]> export type TaskInclude = { watchers?: boolean | Prisma.Task$watchersArgs _count?: boolean | Prisma.TaskCountOutputTypeDefaultArgs } export type TaskIncludeCreateManyAndReturn = {} export type TaskIncludeUpdateManyAndReturn = {} export type $TaskPayload = { name: "Task" objects: { watchers: Prisma.$TaskWatcherPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string createdByUserId: string title: string description: string | null status: $Enums.TaskStatus priority: $Enums.TaskPriority deadline: Date | null assignedToUserId: string | null assignedToGroupId: string | null linkedEntityType: $Enums.TaskEntityType | null linkedEntityId: string | null source: $Enums.TaskSource sourceRef: string | null completedAt: Date | null isDemoData: boolean archivedAt: Date | null }, ExtArgs["result"]["task"]> composites: {} } export type TaskGetPayload = runtime.Types.Result.GetResult export type TaskCountArgs = Omit & { select?: TaskCountAggregateInputType | true } export interface TaskDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Task'], meta: { name: 'Task' } } /** * Find zero or one Task that matches the filter. * @param {TaskFindUniqueArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TaskClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Task that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TaskFindUniqueOrThrowArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TaskClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Task 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 {TaskFindFirstArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TaskClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Task 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 {TaskFindFirstOrThrowArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TaskClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Tasks 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 {TaskFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Tasks * const tasks = await prisma.task.findMany() * * // Get first 10 Tasks * const tasks = await prisma.task.findMany({ take: 10 }) * * // Only select the `id` * const taskWithIdOnly = await prisma.task.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Task. * @param {TaskCreateArgs} args - Arguments to create a Task. * @example * // Create one Task * const Task = await prisma.task.create({ * data: { * // ... data to create a Task * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TaskClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Tasks. * @param {TaskCreateManyArgs} args - Arguments to create many Tasks. * @example * // Create many Tasks * const task = await prisma.task.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Tasks and returns the data saved in the database. * @param {TaskCreateManyAndReturnArgs} args - Arguments to create many Tasks. * @example * // Create many Tasks * const task = await prisma.task.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Tasks and only return the `id` * const taskWithIdOnly = await prisma.task.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Task. * @param {TaskDeleteArgs} args - Arguments to delete one Task. * @example * // Delete one Task * const Task = await prisma.task.delete({ * where: { * // ... filter to delete one Task * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TaskClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Task. * @param {TaskUpdateArgs} args - Arguments to update one Task. * @example * // Update one Task * const task = await prisma.task.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TaskClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Tasks. * @param {TaskDeleteManyArgs} args - Arguments to filter Tasks to delete. * @example * // Delete a few Tasks * const { count } = await prisma.task.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Tasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Tasks * const task = await prisma.task.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Tasks and returns the data updated in the database. * @param {TaskUpdateManyAndReturnArgs} args - Arguments to update many Tasks. * @example * // Update many Tasks * const task = await prisma.task.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Tasks and only return the `id` * const taskWithIdOnly = await prisma.task.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Task. * @param {TaskUpsertArgs} args - Arguments to update or create a Task. * @example * // Update or create a Task * const task = await prisma.task.upsert({ * create: { * // ... data to create a Task * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Task we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TaskClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Tasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskCountArgs} args - Arguments to filter Tasks to count. * @example * // Count the number of Tasks * const count = await prisma.task.count({ * where: { * // ... the filter for the Tasks we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Task. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Task. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskGroupByArgs} 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 TaskGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TaskGroupByArgs['orderBy'] } : { orderBy?: TaskGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetTaskGroupByPayload : Prisma.PrismaPromise /** * Fields of the Task model */ readonly fields: TaskFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Task. * 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__TaskClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" watchers = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the Task model */ export interface TaskFieldRefs { readonly id: Prisma.FieldRef<"Task", 'String'> readonly createdAt: Prisma.FieldRef<"Task", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Task", 'DateTime'> readonly tenantId: Prisma.FieldRef<"Task", 'String'> readonly createdByUserId: Prisma.FieldRef<"Task", 'String'> readonly title: Prisma.FieldRef<"Task", 'String'> readonly description: Prisma.FieldRef<"Task", 'String'> readonly status: Prisma.FieldRef<"Task", 'TaskStatus'> readonly priority: Prisma.FieldRef<"Task", 'TaskPriority'> readonly deadline: Prisma.FieldRef<"Task", 'DateTime'> readonly assignedToUserId: Prisma.FieldRef<"Task", 'String'> readonly assignedToGroupId: Prisma.FieldRef<"Task", 'String'> readonly linkedEntityType: Prisma.FieldRef<"Task", 'TaskEntityType'> readonly linkedEntityId: Prisma.FieldRef<"Task", 'String'> readonly source: Prisma.FieldRef<"Task", 'TaskSource'> readonly sourceRef: Prisma.FieldRef<"Task", 'String'> readonly completedAt: Prisma.FieldRef<"Task", 'DateTime'> readonly isDemoData: Prisma.FieldRef<"Task", 'Boolean'> readonly archivedAt: Prisma.FieldRef<"Task", 'DateTime'> } // Custom InputTypes /** * Task findUnique */ export type TaskFindUniqueArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null /** * Filter, which Task to fetch. */ where: Prisma.TaskWhereUniqueInput } /** * Task findUniqueOrThrow */ export type TaskFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null /** * Filter, which Task to fetch. */ where: Prisma.TaskWhereUniqueInput } /** * Task findFirst */ export type TaskFindFirstArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null /** * Filter, which Task to fetch. */ where?: Prisma.TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tasks. */ cursor?: Prisma.TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks 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` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tasks. */ distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[] } /** * Task findFirstOrThrow */ export type TaskFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null /** * Filter, which Task to fetch. */ where?: Prisma.TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tasks. */ cursor?: Prisma.TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks 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` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tasks. */ distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[] } /** * Task findMany */ export type TaskFindManyArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null /** * Filter, which Tasks to fetch. */ where?: Prisma.TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Tasks. */ cursor?: Prisma.TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks 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` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tasks. */ distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[] } /** * Task create */ export type TaskCreateArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null /** * The data needed to create a Task. */ data: Prisma.XOR } /** * Task createMany */ export type TaskCreateManyArgs = { /** * The data used to create many Tasks. */ data: Prisma.TaskCreateManyInput | Prisma.TaskCreateManyInput[] skipDuplicates?: boolean } /** * Task createManyAndReturn */ export type TaskCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelectCreateManyAndReturn | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * The data used to create many Tasks. */ data: Prisma.TaskCreateManyInput | Prisma.TaskCreateManyInput[] skipDuplicates?: boolean } /** * Task update */ export type TaskUpdateArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null /** * The data needed to update a Task. */ data: Prisma.XOR /** * Choose, which Task to update. */ where: Prisma.TaskWhereUniqueInput } /** * Task updateMany */ export type TaskUpdateManyArgs = { /** * The data used to update Tasks. */ data: Prisma.XOR /** * Filter which Tasks to update */ where?: Prisma.TaskWhereInput /** * Limit how many Tasks to update. */ limit?: number } /** * Task updateManyAndReturn */ export type TaskUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelectUpdateManyAndReturn | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * The data used to update Tasks. */ data: Prisma.XOR /** * Filter which Tasks to update */ where?: Prisma.TaskWhereInput /** * Limit how many Tasks to update. */ limit?: number } /** * Task upsert */ export type TaskUpsertArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null /** * The filter to search for the Task to update in case it exists. */ where: Prisma.TaskWhereUniqueInput /** * In case the Task found by the `where` argument doesn't exist, create a new Task with this data. */ create: Prisma.XOR /** * In case the Task was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Task delete */ export type TaskDeleteArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null /** * Filter which Task to delete. */ where: Prisma.TaskWhereUniqueInput } /** * Task deleteMany */ export type TaskDeleteManyArgs = { /** * Filter which Tasks to delete */ where?: Prisma.TaskWhereInput /** * Limit how many Tasks to delete. */ limit?: number } /** * Task.watchers */ export type Task$watchersArgs = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | null where?: Prisma.TaskWatcherWhereInput orderBy?: Prisma.TaskWatcherOrderByWithRelationInput | Prisma.TaskWatcherOrderByWithRelationInput[] cursor?: Prisma.TaskWatcherWhereUniqueInput take?: number skip?: number distinct?: Prisma.TaskWatcherScalarFieldEnum | Prisma.TaskWatcherScalarFieldEnum[] } /** * Task without action */ export type TaskDefaultArgs = { /** * Select specific fields to fetch from the Task */ select?: Prisma.TaskSelect | null /** * Omit specific fields from the Task */ omit?: Prisma.TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskInclude | null }