/* !!! 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 PJTG from '../pjtg'; 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 export type AggregateProject = { _count: ProjectCountAggregateOutputType | null _min: ProjectMinAggregateOutputType | null _max: ProjectMaxAggregateOutputType | null } export type ProjectMinAggregateOutputType = { id: string | null name: string | null coverImageKey: string | null enableNotification: boolean | null createdAt: Date | null updatedAt: Date | null teamId: string | null rootFolderId: string | null shareRootId: string | null } export type ProjectMaxAggregateOutputType = { id: string | null name: string | null coverImageKey: string | null enableNotification: boolean | null createdAt: Date | null updatedAt: Date | null teamId: string | null rootFolderId: string | null shareRootId: string | null } export type ProjectCountAggregateOutputType = { id: number name: number coverImageKey: number metadataOverrides:PrismaJson.MetadataOverrides enableNotification: number createdAt: number updatedAt: number teamId: number rootFolderId: number shareRootId: number _all: number } export type ProjectMinAggregateInputType = { id?: true name?: true coverImageKey?: true enableNotification?: true createdAt?: true updatedAt?: true teamId?: true rootFolderId?: true shareRootId?: true } export type ProjectMaxAggregateInputType = { id?: true name?: true coverImageKey?: true enableNotification?: true createdAt?: true updatedAt?: true teamId?: true rootFolderId?: true shareRootId?: true } export type ProjectCountAggregateInputType = { id?: true name?: true coverImageKey?: true metadataOverrides?: true enableNotification?: true createdAt?: true updatedAt?: true teamId?: true rootFolderId?: true shareRootId?: true _all?: true } export type ProjectAggregateArgs = { /** * 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 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 = { [P in keyof T & keyof AggregateProject]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ProjectGroupByArgs = { where?: Prisma.ProjectWhereInput orderBy?: Prisma.ProjectOrderByWithAggregationInput | Prisma.ProjectOrderByWithAggregationInput[] by: Prisma.ProjectScalarFieldEnum[] | Prisma.ProjectScalarFieldEnum having?: Prisma.ProjectScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProjectCountAggregateInputType | true _min?: ProjectMinAggregateInputType _max?: ProjectMaxAggregateInputType } export type ProjectGroupByOutputType = { id: string name: string coverImageKey: string | null metadataOverrides:PrismaJson.MetadataOverrides | null enableNotification: boolean createdAt: Date updatedAt: Date teamId: string rootFolderId: string | null shareRootId: string | null _count: ProjectCountAggregateOutputType | null _min: ProjectMinAggregateOutputType | null _max: ProjectMaxAggregateOutputType | null } export type GetProjectGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ProjectGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ProjectWhereInput = { AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] OR?: Prisma.ProjectWhereInput[] NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] id?: Prisma.StringFilter<"Project"> | string name?: Prisma.StringFilter<"Project"> | string coverImageKey?: Prisma.StringNullableFilter<"Project"> | string | null metadataOverrides?: Prisma.JsonNullableFilter<"Project"> enableNotification?: Prisma.BoolFilter<"Project"> | boolean createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string teamId?: Prisma.StringFilter<"Project"> | string rootFolderId?: Prisma.StringNullableFilter<"Project"> | string | null shareRootId?: Prisma.StringNullableFilter<"Project"> | string | null team?: Prisma.XOR rootFolder?: Prisma.XOR | null shareRoot?: Prisma.XOR | null members?: Prisma.ProjectMemberListRelationFilter assets?: Prisma.AssetListRelationFilter metadataFields?: Prisma.MetadataFieldListRelationFilter invites?: Prisma.InviteListRelationFilter notifications?: Prisma.NotificationListRelationFilter shareLinks?: Prisma.ShareLinkListRelationFilter collections?: Prisma.CollectionListRelationFilter } export type ProjectOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder coverImageKey?: Prisma.SortOrderInput | Prisma.SortOrder metadataOverrides?: Prisma.SortOrderInput | Prisma.SortOrder enableNotification?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder rootFolderId?: Prisma.SortOrderInput | Prisma.SortOrder shareRootId?: Prisma.SortOrderInput | Prisma.SortOrder team?: Prisma.TeamOrderByWithRelationInput rootFolder?: Prisma.AssetOrderByWithRelationInput shareRoot?: Prisma.AssetOrderByWithRelationInput members?: Prisma.ProjectMemberOrderByRelationAggregateInput assets?: Prisma.AssetOrderByRelationAggregateInput metadataFields?: Prisma.MetadataFieldOrderByRelationAggregateInput invites?: Prisma.InviteOrderByRelationAggregateInput notifications?: Prisma.NotificationOrderByRelationAggregateInput shareLinks?: Prisma.ShareLinkOrderByRelationAggregateInput collections?: Prisma.CollectionOrderByRelationAggregateInput } export type ProjectWhereUniqueInput = Prisma.AtLeast<{ id?: string rootFolderId?: string shareRootId?: string AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] OR?: Prisma.ProjectWhereInput[] NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] name?: Prisma.StringFilter<"Project"> | string coverImageKey?: Prisma.StringNullableFilter<"Project"> | string | null metadataOverrides?: Prisma.JsonNullableFilter<"Project"> enableNotification?: Prisma.BoolFilter<"Project"> | boolean createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string teamId?: Prisma.StringFilter<"Project"> | string team?: Prisma.XOR rootFolder?: Prisma.XOR | null shareRoot?: Prisma.XOR | null members?: Prisma.ProjectMemberListRelationFilter assets?: Prisma.AssetListRelationFilter metadataFields?: Prisma.MetadataFieldListRelationFilter invites?: Prisma.InviteListRelationFilter notifications?: Prisma.NotificationListRelationFilter shareLinks?: Prisma.ShareLinkListRelationFilter collections?: Prisma.CollectionListRelationFilter }, "id" | "rootFolderId" | "shareRootId"> export type ProjectOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder coverImageKey?: Prisma.SortOrderInput | Prisma.SortOrder metadataOverrides?: Prisma.SortOrderInput | Prisma.SortOrder enableNotification?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder rootFolderId?: Prisma.SortOrderInput | Prisma.SortOrder shareRootId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.ProjectCountOrderByAggregateInput _max?: Prisma.ProjectMaxOrderByAggregateInput _min?: Prisma.ProjectMinOrderByAggregateInput } export type ProjectScalarWhereWithAggregatesInput = { AND?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[] OR?: Prisma.ProjectScalarWhereWithAggregatesInput[] NOT?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Project"> | string name?: Prisma.StringWithAggregatesFilter<"Project"> | string coverImageKey?: Prisma.StringNullableWithAggregatesFilter<"Project"> | string | null metadataOverrides?: Prisma.JsonNullableWithAggregatesFilter<"Project"> enableNotification?: Prisma.BoolWithAggregatesFilter<"Project"> | boolean createdAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string teamId?: Prisma.StringWithAggregatesFilter<"Project"> | string rootFolderId?: Prisma.StringNullableWithAggregatesFilter<"Project"> | string | null shareRootId?: Prisma.StringNullableWithAggregatesFilter<"Project"> | string | null } export type ProjectCreateInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null shareRootId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateManyInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null shareRootId?: string | null } export type ProjectUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ProjectUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProjectListRelationFilter = { every?: Prisma.ProjectWhereInput some?: Prisma.ProjectWhereInput none?: Prisma.ProjectWhereInput } export type ProjectOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type ProjectCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder coverImageKey?: Prisma.SortOrder metadataOverrides?: Prisma.SortOrder enableNotification?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder rootFolderId?: Prisma.SortOrder shareRootId?: Prisma.SortOrder } export type ProjectMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder coverImageKey?: Prisma.SortOrder enableNotification?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder rootFolderId?: Prisma.SortOrder shareRootId?: Prisma.SortOrder } export type ProjectMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder coverImageKey?: Prisma.SortOrder enableNotification?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder rootFolderId?: Prisma.SortOrder shareRootId?: Prisma.SortOrder } export type ProjectScalarRelationFilter = { is?: Prisma.ProjectWhereInput isNot?: Prisma.ProjectWhereInput } export type ProjectNullableScalarRelationFilter = { is?: Prisma.ProjectWhereInput | null isNot?: Prisma.ProjectWhereInput | null } export type ProjectCreateNestedManyWithoutTeamInput = { create?: Prisma.XOR | Prisma.ProjectCreateWithoutTeamInput[] | Prisma.ProjectUncheckedCreateWithoutTeamInput[] connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutTeamInput | Prisma.ProjectCreateOrConnectWithoutTeamInput[] createMany?: Prisma.ProjectCreateManyTeamInputEnvelope connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] } export type ProjectUncheckedCreateNestedManyWithoutTeamInput = { create?: Prisma.XOR | Prisma.ProjectCreateWithoutTeamInput[] | Prisma.ProjectUncheckedCreateWithoutTeamInput[] connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutTeamInput | Prisma.ProjectCreateOrConnectWithoutTeamInput[] createMany?: Prisma.ProjectCreateManyTeamInputEnvelope connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] } export type ProjectUpdateManyWithoutTeamNestedInput = { create?: Prisma.XOR | Prisma.ProjectCreateWithoutTeamInput[] | Prisma.ProjectUncheckedCreateWithoutTeamInput[] connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutTeamInput | Prisma.ProjectCreateOrConnectWithoutTeamInput[] upsert?: Prisma.ProjectUpsertWithWhereUniqueWithoutTeamInput | Prisma.ProjectUpsertWithWhereUniqueWithoutTeamInput[] createMany?: Prisma.ProjectCreateManyTeamInputEnvelope set?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] disconnect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] delete?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] update?: Prisma.ProjectUpdateWithWhereUniqueWithoutTeamInput | Prisma.ProjectUpdateWithWhereUniqueWithoutTeamInput[] updateMany?: Prisma.ProjectUpdateManyWithWhereWithoutTeamInput | Prisma.ProjectUpdateManyWithWhereWithoutTeamInput[] deleteMany?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[] } export type ProjectUncheckedUpdateManyWithoutTeamNestedInput = { create?: Prisma.XOR | Prisma.ProjectCreateWithoutTeamInput[] | Prisma.ProjectUncheckedCreateWithoutTeamInput[] connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutTeamInput | Prisma.ProjectCreateOrConnectWithoutTeamInput[] upsert?: Prisma.ProjectUpsertWithWhereUniqueWithoutTeamInput | Prisma.ProjectUpsertWithWhereUniqueWithoutTeamInput[] createMany?: Prisma.ProjectCreateManyTeamInputEnvelope set?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] disconnect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] delete?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] update?: Prisma.ProjectUpdateWithWhereUniqueWithoutTeamInput | Prisma.ProjectUpdateWithWhereUniqueWithoutTeamInput[] updateMany?: Prisma.ProjectUpdateManyWithWhereWithoutTeamInput | Prisma.ProjectUpdateManyWithWhereWithoutTeamInput[] deleteMany?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[] } export type ProjectCreateNestedOneWithoutMembersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembersInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectUpdateOneRequiredWithoutMembersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembersInput upsert?: Prisma.ProjectUpsertWithoutMembersInput connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutMembersInput> } export type ProjectCreateNestedOneWithoutShareLinksInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareLinksInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectUpdateOneRequiredWithoutShareLinksNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareLinksInput upsert?: Prisma.ProjectUpsertWithoutShareLinksInput connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutShareLinksInput> } export type ProjectCreateNestedOneWithoutAssetsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutAssetsInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectCreateNestedOneWithoutRootFolderInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutRootFolderInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectCreateNestedOneWithoutShareRootInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareRootInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectUncheckedCreateNestedOneWithoutRootFolderInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutRootFolderInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectUncheckedCreateNestedOneWithoutShareRootInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareRootInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectUpdateOneWithoutAssetsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutAssetsInput upsert?: Prisma.ProjectUpsertWithoutAssetsInput disconnect?: Prisma.ProjectWhereInput | boolean delete?: Prisma.ProjectWhereInput | boolean connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutAssetsInput> } export type ProjectUpdateOneWithoutRootFolderNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutRootFolderInput upsert?: Prisma.ProjectUpsertWithoutRootFolderInput disconnect?: Prisma.ProjectWhereInput | boolean delete?: Prisma.ProjectWhereInput | boolean connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutRootFolderInput> } export type ProjectUpdateOneWithoutShareRootNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareRootInput upsert?: Prisma.ProjectUpsertWithoutShareRootInput disconnect?: Prisma.ProjectWhereInput | boolean delete?: Prisma.ProjectWhereInput | boolean connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutShareRootInput> } export type ProjectUncheckedUpdateOneWithoutRootFolderNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutRootFolderInput upsert?: Prisma.ProjectUpsertWithoutRootFolderInput disconnect?: Prisma.ProjectWhereInput | boolean delete?: Prisma.ProjectWhereInput | boolean connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutRootFolderInput> } export type ProjectUncheckedUpdateOneWithoutShareRootNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareRootInput upsert?: Prisma.ProjectUpsertWithoutShareRootInput disconnect?: Prisma.ProjectWhereInput | boolean delete?: Prisma.ProjectWhereInput | boolean connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutShareRootInput> } export type ProjectCreateNestedOneWithoutInvitesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutInvitesInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectUpdateOneWithoutInvitesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutInvitesInput upsert?: Prisma.ProjectUpsertWithoutInvitesInput disconnect?: Prisma.ProjectWhereInput | boolean delete?: Prisma.ProjectWhereInput | boolean connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutInvitesInput> } export type ProjectCreateNestedOneWithoutMetadataFieldsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMetadataFieldsInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectUpdateOneWithoutMetadataFieldsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMetadataFieldsInput upsert?: Prisma.ProjectUpsertWithoutMetadataFieldsInput disconnect?: Prisma.ProjectWhereInput | boolean delete?: Prisma.ProjectWhereInput | boolean connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutMetadataFieldsInput> } export type ProjectCreateNestedOneWithoutNotificationsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutNotificationsInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectUpdateOneWithoutNotificationsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutNotificationsInput upsert?: Prisma.ProjectUpsertWithoutNotificationsInput disconnect?: Prisma.ProjectWhereInput | boolean delete?: Prisma.ProjectWhereInput | boolean connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutNotificationsInput> } export type ProjectCreateNestedOneWithoutCollectionsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutCollectionsInput connect?: Prisma.ProjectWhereUniqueInput } export type ProjectUpdateOneRequiredWithoutCollectionsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutCollectionsInput upsert?: Prisma.ProjectUpsertWithoutCollectionsInput connect?: Prisma.ProjectWhereUniqueInput update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutCollectionsInput> } export type ProjectCreateWithoutTeamInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutTeamInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string rootFolderId?: string | null shareRootId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutTeamInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectCreateManyTeamInputEnvelope = { data: Prisma.ProjectCreateManyTeamInput | Prisma.ProjectCreateManyTeamInput[] skipDuplicates?: boolean } export type ProjectUpsertWithWhereUniqueWithoutTeamInput = { where: Prisma.ProjectWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ProjectUpdateWithWhereUniqueWithoutTeamInput = { where: Prisma.ProjectWhereUniqueInput data: Prisma.XOR } export type ProjectUpdateManyWithWhereWithoutTeamInput = { where: Prisma.ProjectScalarWhereInput data: Prisma.XOR } export type ProjectScalarWhereInput = { AND?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[] OR?: Prisma.ProjectScalarWhereInput[] NOT?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[] id?: Prisma.StringFilter<"Project"> | string name?: Prisma.StringFilter<"Project"> | string coverImageKey?: Prisma.StringNullableFilter<"Project"> | string | null metadataOverrides?: Prisma.JsonNullableFilter<"Project"> enableNotification?: Prisma.BoolFilter<"Project"> | boolean createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string teamId?: Prisma.StringFilter<"Project"> | string rootFolderId?: Prisma.StringNullableFilter<"Project"> | string | null shareRootId?: Prisma.StringNullableFilter<"Project"> | string | null } export type ProjectCreateWithoutMembersInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutMembersInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null shareRootId?: string | null assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutMembersInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectUpsertWithoutMembersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutMembersInput = { where?: Prisma.ProjectWhereInput data: Prisma.XOR } export type ProjectUpdateWithoutMembersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutMembersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateWithoutShareLinksInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutShareLinksInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null shareRootId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutShareLinksInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectUpsertWithoutShareLinksInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutShareLinksInput = { where?: Prisma.ProjectWhereInput data: Prisma.XOR } export type ProjectUpdateWithoutShareLinksInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutShareLinksInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateWithoutAssetsInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutAssetsInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null shareRootId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutAssetsInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectCreateWithoutRootFolderInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutRootFolderInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string shareRootId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutRootFolderInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectCreateWithoutShareRootInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutShareRootInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutShareRootInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectUpsertWithoutAssetsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutAssetsInput = { where?: Prisma.ProjectWhereInput data: Prisma.XOR } export type ProjectUpdateWithoutAssetsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutAssetsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectUpsertWithoutRootFolderInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutRootFolderInput = { where?: Prisma.ProjectWhereInput data: Prisma.XOR } export type ProjectUpdateWithoutRootFolderInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutRootFolderInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectUpsertWithoutShareRootInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutShareRootInput = { where?: Prisma.ProjectWhereInput data: Prisma.XOR } export type ProjectUpdateWithoutShareRootInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutShareRootInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateWithoutInvitesInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutInvitesInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null shareRootId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutInvitesInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectUpsertWithoutInvitesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutInvitesInput = { where?: Prisma.ProjectWhereInput data: Prisma.XOR } export type ProjectUpdateWithoutInvitesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutInvitesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateWithoutMetadataFieldsInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutMetadataFieldsInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null shareRootId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutMetadataFieldsInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectUpsertWithoutMetadataFieldsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutMetadataFieldsInput = { where?: Prisma.ProjectWhereInput data: Prisma.XOR } export type ProjectUpdateWithoutMetadataFieldsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutMetadataFieldsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateWithoutNotificationsInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutNotificationsInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null shareRootId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutNotificationsInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectUpsertWithoutNotificationsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutNotificationsInput = { where?: Prisma.ProjectWhereInput data: Prisma.XOR } export type ProjectUpdateWithoutNotificationsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutNotificationsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateWithoutCollectionsInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutProjectsInput rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput assets?: Prisma.AssetCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput invites?: Prisma.InviteCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutCollectionsInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string rootFolderId?: string | null shareRootId?: string | null members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutCollectionsInput = { where: Prisma.ProjectWhereUniqueInput create: Prisma.XOR } export type ProjectUpsertWithoutCollectionsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutCollectionsInput = { where?: Prisma.ProjectWhereInput data: Prisma.XOR } export type ProjectUpdateWithoutCollectionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutCollectionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateManyTeamInput = { id?: string name: string coverImageKey?: string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: boolean createdAt?: Date | string updatedAt?: Date | string rootFolderId?: string | null shareRootId?: string | null } export type ProjectUpdateWithoutTeamInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutTeamInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateManyWithoutTeamInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type ProjectCountOutputType */ export type ProjectCountOutputType = { members: number assets: number metadataFields: number invites: number notifications: number shareLinks: number collections: number } export type ProjectCountOutputTypeSelect = { members?: boolean | ProjectCountOutputTypeCountMembersArgs assets?: boolean | ProjectCountOutputTypeCountAssetsArgs metadataFields?: boolean | ProjectCountOutputTypeCountMetadataFieldsArgs invites?: boolean | ProjectCountOutputTypeCountInvitesArgs notifications?: boolean | ProjectCountOutputTypeCountNotificationsArgs shareLinks?: boolean | ProjectCountOutputTypeCountShareLinksArgs collections?: boolean | ProjectCountOutputTypeCountCollectionsArgs } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ProjectCountOutputType */ select?: Prisma.ProjectCountOutputTypeSelect | null } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountMembersArgs = { where?: Prisma.ProjectMemberWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountAssetsArgs = { where?: Prisma.AssetWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountMetadataFieldsArgs = { where?: Prisma.MetadataFieldWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountInvitesArgs = { where?: Prisma.InviteWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountNotificationsArgs = { where?: Prisma.NotificationWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountShareLinksArgs = { where?: Prisma.ShareLinkWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountCollectionsArgs = { where?: Prisma.CollectionWhereInput } export type ProjectSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean coverImageKey?: boolean metadataOverrides?: boolean enableNotification?: boolean createdAt?: boolean updatedAt?: boolean teamId?: boolean rootFolderId?: boolean shareRootId?: boolean team?: boolean | Prisma.TeamDefaultArgs rootFolder?: boolean | Prisma.Project$rootFolderArgs shareRoot?: boolean | Prisma.Project$shareRootArgs members?: boolean | Prisma.Project$membersArgs assets?: boolean | Prisma.Project$assetsArgs metadataFields?: boolean | Prisma.Project$metadataFieldsArgs invites?: boolean | Prisma.Project$invitesArgs notifications?: boolean | Prisma.Project$notificationsArgs shareLinks?: boolean | Prisma.Project$shareLinksArgs collections?: boolean | Prisma.Project$collectionsArgs _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs }, ExtArgs["result"]["project"]> export type ProjectSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean coverImageKey?: boolean metadataOverrides?: boolean enableNotification?: boolean createdAt?: boolean updatedAt?: boolean teamId?: boolean rootFolderId?: boolean shareRootId?: boolean team?: boolean | Prisma.TeamDefaultArgs rootFolder?: boolean | Prisma.Project$rootFolderArgs shareRoot?: boolean | Prisma.Project$shareRootArgs }, ExtArgs["result"]["project"]> export type ProjectSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean coverImageKey?: boolean metadataOverrides?: boolean enableNotification?: boolean createdAt?: boolean updatedAt?: boolean teamId?: boolean rootFolderId?: boolean shareRootId?: boolean team?: boolean | Prisma.TeamDefaultArgs rootFolder?: boolean | Prisma.Project$rootFolderArgs shareRoot?: boolean | Prisma.Project$shareRootArgs }, ExtArgs["result"]["project"]> export type ProjectSelectScalar = { id?: boolean name?: boolean coverImageKey?: boolean metadataOverrides?: boolean enableNotification?: boolean createdAt?: boolean updatedAt?: boolean teamId?: boolean rootFolderId?: boolean shareRootId?: boolean } export type ProjectOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "coverImageKey" | "metadataOverrides" | "enableNotification" | "createdAt" | "updatedAt" | "teamId" | "rootFolderId" | "shareRootId", ExtArgs["result"]["project"]> export type ProjectInclude = { team?: boolean | Prisma.TeamDefaultArgs rootFolder?: boolean | Prisma.Project$rootFolderArgs shareRoot?: boolean | Prisma.Project$shareRootArgs members?: boolean | Prisma.Project$membersArgs assets?: boolean | Prisma.Project$assetsArgs metadataFields?: boolean | Prisma.Project$metadataFieldsArgs invites?: boolean | Prisma.Project$invitesArgs notifications?: boolean | Prisma.Project$notificationsArgs shareLinks?: boolean | Prisma.Project$shareLinksArgs collections?: boolean | Prisma.Project$collectionsArgs _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs } export type ProjectIncludeCreateManyAndReturn = { team?: boolean | Prisma.TeamDefaultArgs rootFolder?: boolean | Prisma.Project$rootFolderArgs shareRoot?: boolean | Prisma.Project$shareRootArgs } export type ProjectIncludeUpdateManyAndReturn = { team?: boolean | Prisma.TeamDefaultArgs rootFolder?: boolean | Prisma.Project$rootFolderArgs shareRoot?: boolean | Prisma.Project$shareRootArgs } export type $ProjectPayload = { name: "Project" objects: { team: Prisma.$TeamPayload rootFolder: Prisma.$AssetPayload | null shareRoot: Prisma.$AssetPayload | null members: Prisma.$ProjectMemberPayload[] assets: Prisma.$AssetPayload[] metadataFields: Prisma.$MetadataFieldPayload[] invites: Prisma.$InvitePayload[] notifications: Prisma.$NotificationPayload[] shareLinks: Prisma.$ShareLinkPayload[] collections: Prisma.$CollectionPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string coverImageKey: string | null /** * [MetadataOverrides] */ metadataOverrides:PrismaJson.MetadataOverrides | null enableNotification: boolean createdAt: Date updatedAt: Date teamId: string rootFolderId: string | null shareRootId: string | null }, ExtArgs["result"]["project"]> composites: {} } export type ProjectGetPayload = runtime.Types.Result.GetResult export type ProjectCountArgs = Omit & { select?: ProjectCountAggregateInputType | true } export interface ProjectDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, 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( 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 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ProjectGroupByArgs['orderBy'] } : { orderBy?: ProjectGroupByArgs['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 ? GetProjectGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" team = {}>(args?: Prisma.Subset>): Prisma.Prisma__TeamClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> rootFolder = {}>(args?: Prisma.Subset>): Prisma.Prisma__AssetClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> shareRoot = {}>(args?: Prisma.Subset>): Prisma.Prisma__AssetClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> members = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> assets = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> metadataFields = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> invites = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> notifications = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> shareLinks = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> collections = {}>(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 Project model */ export interface ProjectFieldRefs { readonly id: Prisma.FieldRef<"Project", 'String'> readonly name: Prisma.FieldRef<"Project", 'String'> readonly coverImageKey: Prisma.FieldRef<"Project", 'String'> readonly metadataOverrides: Prisma.FieldRef<"Project", 'Json'> readonly enableNotification: Prisma.FieldRef<"Project", 'Boolean'> readonly createdAt: Prisma.FieldRef<"Project", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Project", 'DateTime'> readonly teamId: Prisma.FieldRef<"Project", 'String'> readonly rootFolderId: Prisma.FieldRef<"Project", 'String'> readonly shareRootId: Prisma.FieldRef<"Project", 'String'> } // Custom InputTypes /** * Project findUnique */ export type ProjectFindUniqueArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | null /** * Filter, which Project to fetch. */ where: Prisma.ProjectWhereUniqueInput } /** * Project findUniqueOrThrow */ export type ProjectFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | null /** * Filter, which Project to fetch. */ where: Prisma.ProjectWhereUniqueInput } /** * Project findFirst */ export type ProjectFindFirstArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | 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 = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | 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 = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | 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 = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | null /** * The data needed to create a Project. */ data: Prisma.XOR } /** * Project createMany */ export type ProjectCreateManyArgs = { /** * The data used to create many Projects. */ data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] skipDuplicates?: boolean } /** * Project createManyAndReturn */ export type ProjectCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelectCreateManyAndReturn | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | 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 | null } /** * Project update */ export type ProjectUpdateArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | null /** * The data needed to update a Project. */ data: Prisma.XOR /** * Choose, which Project to update. */ where: Prisma.ProjectWhereUniqueInput } /** * Project updateMany */ export type ProjectUpdateManyArgs = { /** * The data used to update Projects. */ data: Prisma.XOR /** * Filter which Projects to update */ where?: Prisma.ProjectWhereInput /** * Limit how many Projects to update. */ limit?: number } /** * Project updateManyAndReturn */ export type ProjectUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelectUpdateManyAndReturn | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * The data used to update Projects. */ data: Prisma.XOR /** * 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 | null } /** * Project upsert */ export type ProjectUpsertArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | 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 /** * In case the Project was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Project delete */ export type ProjectDeleteArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | null /** * Filter which Project to delete. */ where: Prisma.ProjectWhereUniqueInput } /** * Project deleteMany */ export type ProjectDeleteManyArgs = { /** * Filter which Projects to delete */ where?: Prisma.ProjectWhereInput /** * Limit how many Projects to delete. */ limit?: number } /** * Project.rootFolder */ export type Project$rootFolderArgs = { /** * Select specific fields to fetch from the Asset */ select?: Prisma.AssetSelect | null /** * Omit specific fields from the Asset */ omit?: Prisma.AssetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AssetInclude | null where?: Prisma.AssetWhereInput } /** * Project.shareRoot */ export type Project$shareRootArgs = { /** * Select specific fields to fetch from the Asset */ select?: Prisma.AssetSelect | null /** * Omit specific fields from the Asset */ omit?: Prisma.AssetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AssetInclude | null where?: Prisma.AssetWhereInput } /** * Project.members */ export type Project$membersArgs = { /** * Select specific fields to fetch from the ProjectMember */ select?: Prisma.ProjectMemberSelect | null /** * Omit specific fields from the ProjectMember */ omit?: Prisma.ProjectMemberOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectMemberInclude | null where?: Prisma.ProjectMemberWhereInput orderBy?: Prisma.ProjectMemberOrderByWithRelationInput | Prisma.ProjectMemberOrderByWithRelationInput[] cursor?: Prisma.ProjectMemberWhereUniqueInput take?: number skip?: number distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] } /** * Project.assets */ export type Project$assetsArgs = { /** * Select specific fields to fetch from the Asset */ select?: Prisma.AssetSelect | null /** * Omit specific fields from the Asset */ omit?: Prisma.AssetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AssetInclude | null where?: Prisma.AssetWhereInput orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] cursor?: Prisma.AssetWhereUniqueInput take?: number skip?: number distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] } /** * Project.metadataFields */ export type Project$metadataFieldsArgs = { /** * Select specific fields to fetch from the MetadataField */ select?: Prisma.MetadataFieldSelect | null /** * Omit specific fields from the MetadataField */ omit?: Prisma.MetadataFieldOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetadataFieldInclude | null where?: Prisma.MetadataFieldWhereInput orderBy?: Prisma.MetadataFieldOrderByWithRelationInput | Prisma.MetadataFieldOrderByWithRelationInput[] cursor?: Prisma.MetadataFieldWhereUniqueInput take?: number skip?: number distinct?: Prisma.MetadataFieldScalarFieldEnum | Prisma.MetadataFieldScalarFieldEnum[] } /** * Project.invites */ export type Project$invitesArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null where?: Prisma.InviteWhereInput orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] cursor?: Prisma.InviteWhereUniqueInput take?: number skip?: number distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] } /** * Project.notifications */ export type Project$notificationsArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null where?: Prisma.NotificationWhereInput orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] cursor?: Prisma.NotificationWhereUniqueInput take?: number skip?: number distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] } /** * Project.shareLinks */ export type Project$shareLinksArgs = { /** * Select specific fields to fetch from the ShareLink */ select?: Prisma.ShareLinkSelect | null /** * Omit specific fields from the ShareLink */ omit?: Prisma.ShareLinkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShareLinkInclude | null where?: Prisma.ShareLinkWhereInput orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[] cursor?: Prisma.ShareLinkWhereUniqueInput take?: number skip?: number distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[] } /** * Project.collections */ export type Project$collectionsArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null where?: Prisma.CollectionWhereInput orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] cursor?: Prisma.CollectionWhereUniqueInput take?: number skip?: number distinct?: Prisma.CollectionScalarFieldEnum | Prisma.CollectionScalarFieldEnum[] } /** * Project without action */ export type ProjectDefaultArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | null }