/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Deck` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums" import type * as Prisma from "../internal/prismaNamespace" /** * Model Deck * */ export type DeckModel = runtime.Types.Result.DefaultSelection export type AggregateDeck = { _count: DeckCountAggregateOutputType | null _avg: DeckAvgAggregateOutputType | null _sum: DeckSumAggregateOutputType | null _min: DeckMinAggregateOutputType | null _max: DeckMaxAggregateOutputType | null } export type DeckAvgAggregateOutputType = { sortOrder: number | null } export type DeckSumAggregateOutputType = { sortOrder: number | null } export type DeckMinAggregateOutputType = { id: string | null classId: string | null name: string | null description: string | null sortOrder: number | null createdAt: Date | null } export type DeckMaxAggregateOutputType = { id: string | null classId: string | null name: string | null description: string | null sortOrder: number | null createdAt: Date | null } export type DeckCountAggregateOutputType = { id: number classId: number name: number description: number sortOrder: number createdAt: number _all: number } export type DeckAvgAggregateInputType = { sortOrder?: true } export type DeckSumAggregateInputType = { sortOrder?: true } export type DeckMinAggregateInputType = { id?: true classId?: true name?: true description?: true sortOrder?: true createdAt?: true } export type DeckMaxAggregateInputType = { id?: true classId?: true name?: true description?: true sortOrder?: true createdAt?: true } export type DeckCountAggregateInputType = { id?: true classId?: true name?: true description?: true sortOrder?: true createdAt?: true _all?: true } export type DeckAggregateArgs = { /** * Filter which Deck to aggregate. */ where?: Prisma.DeckWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Decks to fetch. */ orderBy?: Prisma.DeckOrderByWithRelationInput | Prisma.DeckOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.DeckWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Decks 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` Decks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Decks **/ _count?: true | DeckCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DeckAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DeckSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeckMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeckMaxAggregateInputType } export type GetDeckAggregateType = { [P in keyof T & keyof AggregateDeck]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type DeckGroupByArgs = { where?: Prisma.DeckWhereInput orderBy?: Prisma.DeckOrderByWithAggregationInput | Prisma.DeckOrderByWithAggregationInput[] by: Prisma.DeckScalarFieldEnum[] | Prisma.DeckScalarFieldEnum having?: Prisma.DeckScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeckCountAggregateInputType | true _avg?: DeckAvgAggregateInputType _sum?: DeckSumAggregateInputType _min?: DeckMinAggregateInputType _max?: DeckMaxAggregateInputType } export type DeckGroupByOutputType = { id: string classId: string name: string description: string | null sortOrder: number createdAt: Date _count: DeckCountAggregateOutputType | null _avg: DeckAvgAggregateOutputType | null _sum: DeckSumAggregateOutputType | null _min: DeckMinAggregateOutputType | null _max: DeckMaxAggregateOutputType | null } export type GetDeckGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DeckGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type DeckWhereInput = { AND?: Prisma.DeckWhereInput | Prisma.DeckWhereInput[] OR?: Prisma.DeckWhereInput[] NOT?: Prisma.DeckWhereInput | Prisma.DeckWhereInput[] id?: Prisma.StringFilter<"Deck"> | string classId?: Prisma.StringFilter<"Deck"> | string name?: Prisma.StringFilter<"Deck"> | string description?: Prisma.StringNullableFilter<"Deck"> | string | null sortOrder?: Prisma.IntFilter<"Deck"> | number createdAt?: Prisma.DateTimeFilter<"Deck"> | Date | string class?: Prisma.XOR cards?: Prisma.FlashcardListRelationFilter shareLink?: Prisma.XOR | null progress?: Prisma.StudyProgressListRelationFilter } export type DeckOrderByWithRelationInput = { id?: Prisma.SortOrder classId?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder sortOrder?: Prisma.SortOrder createdAt?: Prisma.SortOrder class?: Prisma.ClassOrderByWithRelationInput cards?: Prisma.FlashcardOrderByRelationAggregateInput shareLink?: Prisma.ShareLinkOrderByWithRelationInput progress?: Prisma.StudyProgressOrderByRelationAggregateInput } export type DeckWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.DeckWhereInput | Prisma.DeckWhereInput[] OR?: Prisma.DeckWhereInput[] NOT?: Prisma.DeckWhereInput | Prisma.DeckWhereInput[] classId?: Prisma.StringFilter<"Deck"> | string name?: Prisma.StringFilter<"Deck"> | string description?: Prisma.StringNullableFilter<"Deck"> | string | null sortOrder?: Prisma.IntFilter<"Deck"> | number createdAt?: Prisma.DateTimeFilter<"Deck"> | Date | string class?: Prisma.XOR cards?: Prisma.FlashcardListRelationFilter shareLink?: Prisma.XOR | null progress?: Prisma.StudyProgressListRelationFilter }, "id"> export type DeckOrderByWithAggregationInput = { id?: Prisma.SortOrder classId?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder sortOrder?: Prisma.SortOrder createdAt?: Prisma.SortOrder _count?: Prisma.DeckCountOrderByAggregateInput _avg?: Prisma.DeckAvgOrderByAggregateInput _max?: Prisma.DeckMaxOrderByAggregateInput _min?: Prisma.DeckMinOrderByAggregateInput _sum?: Prisma.DeckSumOrderByAggregateInput } export type DeckScalarWhereWithAggregatesInput = { AND?: Prisma.DeckScalarWhereWithAggregatesInput | Prisma.DeckScalarWhereWithAggregatesInput[] OR?: Prisma.DeckScalarWhereWithAggregatesInput[] NOT?: Prisma.DeckScalarWhereWithAggregatesInput | Prisma.DeckScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Deck"> | string classId?: Prisma.StringWithAggregatesFilter<"Deck"> | string name?: Prisma.StringWithAggregatesFilter<"Deck"> | string description?: Prisma.StringNullableWithAggregatesFilter<"Deck"> | string | null sortOrder?: Prisma.IntWithAggregatesFilter<"Deck"> | number createdAt?: Prisma.DateTimeWithAggregatesFilter<"Deck"> | Date | string } export type DeckCreateInput = { id?: string name: string description?: string | null sortOrder?: number createdAt?: Date | string class: Prisma.ClassCreateNestedOneWithoutDecksInput cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput } export type DeckUncheckedCreateInput = { id?: string classId: string name: string description?: string | null sortOrder?: number createdAt?: Date | string cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput } export type DeckUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string class?: Prisma.ClassUpdateOneRequiredWithoutDecksNestedInput cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput } export type DeckUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string classId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput } export type DeckCreateManyInput = { id?: string classId: string name: string description?: string | null sortOrder?: number createdAt?: Date | string } export type DeckUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type DeckUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string classId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type DeckListRelationFilter = { every?: Prisma.DeckWhereInput some?: Prisma.DeckWhereInput none?: Prisma.DeckWhereInput } export type DeckOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type DeckCountOrderByAggregateInput = { id?: Prisma.SortOrder classId?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder sortOrder?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type DeckAvgOrderByAggregateInput = { sortOrder?: Prisma.SortOrder } export type DeckMaxOrderByAggregateInput = { id?: Prisma.SortOrder classId?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder sortOrder?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type DeckMinOrderByAggregateInput = { id?: Prisma.SortOrder classId?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder sortOrder?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type DeckSumOrderByAggregateInput = { sortOrder?: Prisma.SortOrder } export type DeckScalarRelationFilter = { is?: Prisma.DeckWhereInput isNot?: Prisma.DeckWhereInput } export type DeckNullableScalarRelationFilter = { is?: Prisma.DeckWhereInput | null isNot?: Prisma.DeckWhereInput | null } export type DeckCreateNestedManyWithoutClassInput = { create?: Prisma.XOR | Prisma.DeckCreateWithoutClassInput[] | Prisma.DeckUncheckedCreateWithoutClassInput[] connectOrCreate?: Prisma.DeckCreateOrConnectWithoutClassInput | Prisma.DeckCreateOrConnectWithoutClassInput[] createMany?: Prisma.DeckCreateManyClassInputEnvelope connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] } export type DeckUncheckedCreateNestedManyWithoutClassInput = { create?: Prisma.XOR | Prisma.DeckCreateWithoutClassInput[] | Prisma.DeckUncheckedCreateWithoutClassInput[] connectOrCreate?: Prisma.DeckCreateOrConnectWithoutClassInput | Prisma.DeckCreateOrConnectWithoutClassInput[] createMany?: Prisma.DeckCreateManyClassInputEnvelope connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] } export type DeckUpdateManyWithoutClassNestedInput = { create?: Prisma.XOR | Prisma.DeckCreateWithoutClassInput[] | Prisma.DeckUncheckedCreateWithoutClassInput[] connectOrCreate?: Prisma.DeckCreateOrConnectWithoutClassInput | Prisma.DeckCreateOrConnectWithoutClassInput[] upsert?: Prisma.DeckUpsertWithWhereUniqueWithoutClassInput | Prisma.DeckUpsertWithWhereUniqueWithoutClassInput[] createMany?: Prisma.DeckCreateManyClassInputEnvelope set?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] disconnect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] delete?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] update?: Prisma.DeckUpdateWithWhereUniqueWithoutClassInput | Prisma.DeckUpdateWithWhereUniqueWithoutClassInput[] updateMany?: Prisma.DeckUpdateManyWithWhereWithoutClassInput | Prisma.DeckUpdateManyWithWhereWithoutClassInput[] deleteMany?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[] } export type DeckUncheckedUpdateManyWithoutClassNestedInput = { create?: Prisma.XOR | Prisma.DeckCreateWithoutClassInput[] | Prisma.DeckUncheckedCreateWithoutClassInput[] connectOrCreate?: Prisma.DeckCreateOrConnectWithoutClassInput | Prisma.DeckCreateOrConnectWithoutClassInput[] upsert?: Prisma.DeckUpsertWithWhereUniqueWithoutClassInput | Prisma.DeckUpsertWithWhereUniqueWithoutClassInput[] createMany?: Prisma.DeckCreateManyClassInputEnvelope set?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] disconnect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] delete?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[] update?: Prisma.DeckUpdateWithWhereUniqueWithoutClassInput | Prisma.DeckUpdateWithWhereUniqueWithoutClassInput[] updateMany?: Prisma.DeckUpdateManyWithWhereWithoutClassInput | Prisma.DeckUpdateManyWithWhereWithoutClassInput[] deleteMany?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[] } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type DeckCreateNestedOneWithoutCardsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeckCreateOrConnectWithoutCardsInput connect?: Prisma.DeckWhereUniqueInput } export type DeckUpdateOneRequiredWithoutCardsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeckCreateOrConnectWithoutCardsInput upsert?: Prisma.DeckUpsertWithoutCardsInput connect?: Prisma.DeckWhereUniqueInput update?: Prisma.XOR, Prisma.DeckUncheckedUpdateWithoutCardsInput> } export type DeckCreateNestedOneWithoutProgressInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeckCreateOrConnectWithoutProgressInput connect?: Prisma.DeckWhereUniqueInput } export type DeckUpdateOneWithoutProgressNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeckCreateOrConnectWithoutProgressInput upsert?: Prisma.DeckUpsertWithoutProgressInput disconnect?: Prisma.DeckWhereInput | boolean delete?: Prisma.DeckWhereInput | boolean connect?: Prisma.DeckWhereUniqueInput update?: Prisma.XOR, Prisma.DeckUncheckedUpdateWithoutProgressInput> } export type DeckCreateNestedOneWithoutShareLinkInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeckCreateOrConnectWithoutShareLinkInput connect?: Prisma.DeckWhereUniqueInput } export type DeckUpdateOneWithoutShareLinkNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeckCreateOrConnectWithoutShareLinkInput upsert?: Prisma.DeckUpsertWithoutShareLinkInput disconnect?: Prisma.DeckWhereInput | boolean delete?: Prisma.DeckWhereInput | boolean connect?: Prisma.DeckWhereUniqueInput update?: Prisma.XOR, Prisma.DeckUncheckedUpdateWithoutShareLinkInput> } export type DeckCreateWithoutClassInput = { id?: string name: string description?: string | null sortOrder?: number createdAt?: Date | string cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput } export type DeckUncheckedCreateWithoutClassInput = { id?: string name: string description?: string | null sortOrder?: number createdAt?: Date | string cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput } export type DeckCreateOrConnectWithoutClassInput = { where: Prisma.DeckWhereUniqueInput create: Prisma.XOR } export type DeckCreateManyClassInputEnvelope = { data: Prisma.DeckCreateManyClassInput | Prisma.DeckCreateManyClassInput[] } export type DeckUpsertWithWhereUniqueWithoutClassInput = { where: Prisma.DeckWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeckUpdateWithWhereUniqueWithoutClassInput = { where: Prisma.DeckWhereUniqueInput data: Prisma.XOR } export type DeckUpdateManyWithWhereWithoutClassInput = { where: Prisma.DeckScalarWhereInput data: Prisma.XOR } export type DeckScalarWhereInput = { AND?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[] OR?: Prisma.DeckScalarWhereInput[] NOT?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[] id?: Prisma.StringFilter<"Deck"> | string classId?: Prisma.StringFilter<"Deck"> | string name?: Prisma.StringFilter<"Deck"> | string description?: Prisma.StringNullableFilter<"Deck"> | string | null sortOrder?: Prisma.IntFilter<"Deck"> | number createdAt?: Prisma.DateTimeFilter<"Deck"> | Date | string } export type DeckCreateWithoutCardsInput = { id?: string name: string description?: string | null sortOrder?: number createdAt?: Date | string class: Prisma.ClassCreateNestedOneWithoutDecksInput shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput } export type DeckUncheckedCreateWithoutCardsInput = { id?: string classId: string name: string description?: string | null sortOrder?: number createdAt?: Date | string shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput } export type DeckCreateOrConnectWithoutCardsInput = { where: Prisma.DeckWhereUniqueInput create: Prisma.XOR } export type DeckUpsertWithoutCardsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.DeckWhereInput } export type DeckUpdateToOneWithWhereWithoutCardsInput = { where?: Prisma.DeckWhereInput data: Prisma.XOR } export type DeckUpdateWithoutCardsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string class?: Prisma.ClassUpdateOneRequiredWithoutDecksNestedInput shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput } export type DeckUncheckedUpdateWithoutCardsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string classId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput } export type DeckCreateWithoutProgressInput = { id?: string name: string description?: string | null sortOrder?: number createdAt?: Date | string class: Prisma.ClassCreateNestedOneWithoutDecksInput cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput } export type DeckUncheckedCreateWithoutProgressInput = { id?: string classId: string name: string description?: string | null sortOrder?: number createdAt?: Date | string cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput } export type DeckCreateOrConnectWithoutProgressInput = { where: Prisma.DeckWhereUniqueInput create: Prisma.XOR } export type DeckUpsertWithoutProgressInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.DeckWhereInput } export type DeckUpdateToOneWithWhereWithoutProgressInput = { where?: Prisma.DeckWhereInput data: Prisma.XOR } export type DeckUpdateWithoutProgressInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string class?: Prisma.ClassUpdateOneRequiredWithoutDecksNestedInput cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput } export type DeckUncheckedUpdateWithoutProgressInput = { id?: Prisma.StringFieldUpdateOperationsInput | string classId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput } export type DeckCreateWithoutShareLinkInput = { id?: string name: string description?: string | null sortOrder?: number createdAt?: Date | string class: Prisma.ClassCreateNestedOneWithoutDecksInput cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput } export type DeckUncheckedCreateWithoutShareLinkInput = { id?: string classId: string name: string description?: string | null sortOrder?: number createdAt?: Date | string cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput } export type DeckCreateOrConnectWithoutShareLinkInput = { where: Prisma.DeckWhereUniqueInput create: Prisma.XOR } export type DeckUpsertWithoutShareLinkInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.DeckWhereInput } export type DeckUpdateToOneWithWhereWithoutShareLinkInput = { where?: Prisma.DeckWhereInput data: Prisma.XOR } export type DeckUpdateWithoutShareLinkInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string class?: Prisma.ClassUpdateOneRequiredWithoutDecksNestedInput cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput } export type DeckUncheckedUpdateWithoutShareLinkInput = { id?: Prisma.StringFieldUpdateOperationsInput | string classId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput } export type DeckCreateManyClassInput = { id?: string name: string description?: string | null sortOrder?: number createdAt?: Date | string } export type DeckUpdateWithoutClassInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput } export type DeckUncheckedUpdateWithoutClassInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput } export type DeckUncheckedUpdateManyWithoutClassInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sortOrder?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type DeckCountOutputType */ export type DeckCountOutputType = { cards: number progress: number } export type DeckCountOutputTypeSelect = { cards?: boolean | DeckCountOutputTypeCountCardsArgs progress?: boolean | DeckCountOutputTypeCountProgressArgs } /** * DeckCountOutputType without action */ export type DeckCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the DeckCountOutputType */ select?: Prisma.DeckCountOutputTypeSelect | null } /** * DeckCountOutputType without action */ export type DeckCountOutputTypeCountCardsArgs = { where?: Prisma.FlashcardWhereInput } /** * DeckCountOutputType without action */ export type DeckCountOutputTypeCountProgressArgs = { where?: Prisma.StudyProgressWhereInput } export type DeckSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean classId?: boolean name?: boolean description?: boolean sortOrder?: boolean createdAt?: boolean class?: boolean | Prisma.ClassDefaultArgs cards?: boolean | Prisma.Deck$cardsArgs shareLink?: boolean | Prisma.Deck$shareLinkArgs progress?: boolean | Prisma.Deck$progressArgs _count?: boolean | Prisma.DeckCountOutputTypeDefaultArgs }, ExtArgs["result"]["deck"]> export type DeckSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean classId?: boolean name?: boolean description?: boolean sortOrder?: boolean createdAt?: boolean class?: boolean | Prisma.ClassDefaultArgs }, ExtArgs["result"]["deck"]> export type DeckSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean classId?: boolean name?: boolean description?: boolean sortOrder?: boolean createdAt?: boolean class?: boolean | Prisma.ClassDefaultArgs }, ExtArgs["result"]["deck"]> export type DeckSelectScalar = { id?: boolean classId?: boolean name?: boolean description?: boolean sortOrder?: boolean createdAt?: boolean } export type DeckOmit = runtime.Types.Extensions.GetOmit<"id" | "classId" | "name" | "description" | "sortOrder" | "createdAt", ExtArgs["result"]["deck"]> export type DeckInclude = { class?: boolean | Prisma.ClassDefaultArgs cards?: boolean | Prisma.Deck$cardsArgs shareLink?: boolean | Prisma.Deck$shareLinkArgs progress?: boolean | Prisma.Deck$progressArgs _count?: boolean | Prisma.DeckCountOutputTypeDefaultArgs } export type DeckIncludeCreateManyAndReturn = { class?: boolean | Prisma.ClassDefaultArgs } export type DeckIncludeUpdateManyAndReturn = { class?: boolean | Prisma.ClassDefaultArgs } export type $DeckPayload = { name: "Deck" objects: { class: Prisma.$ClassPayload cards: Prisma.$FlashcardPayload[] shareLink: Prisma.$ShareLinkPayload | null progress: Prisma.$StudyProgressPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string classId: string name: string description: string | null sortOrder: number createdAt: Date }, ExtArgs["result"]["deck"]> composites: {} } export type DeckGetPayload = runtime.Types.Result.GetResult export type DeckCountArgs = Omit & { select?: DeckCountAggregateInputType | true } export interface DeckDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Deck'], meta: { name: 'Deck' } } /** * Find zero or one Deck that matches the filter. * @param {DeckFindUniqueArgs} args - Arguments to find a Deck * @example * // Get one Deck * const deck = await prisma.deck.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DeckClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Deck that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeckFindUniqueOrThrowArgs} args - Arguments to find a Deck * @example * // Get one Deck * const deck = await prisma.deck.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DeckClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Deck 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 {DeckFindFirstArgs} args - Arguments to find a Deck * @example * // Get one Deck * const deck = await prisma.deck.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DeckClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Deck 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 {DeckFindFirstOrThrowArgs} args - Arguments to find a Deck * @example * // Get one Deck * const deck = await prisma.deck.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DeckClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Decks 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 {DeckFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Decks * const decks = await prisma.deck.findMany() * * // Get first 10 Decks * const decks = await prisma.deck.findMany({ take: 10 }) * * // Only select the `id` * const deckWithIdOnly = await prisma.deck.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Deck. * @param {DeckCreateArgs} args - Arguments to create a Deck. * @example * // Create one Deck * const Deck = await prisma.deck.create({ * data: { * // ... data to create a Deck * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__DeckClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Decks. * @param {DeckCreateManyArgs} args - Arguments to create many Decks. * @example * // Create many Decks * const deck = await prisma.deck.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Decks and returns the data saved in the database. * @param {DeckCreateManyAndReturnArgs} args - Arguments to create many Decks. * @example * // Create many Decks * const deck = await prisma.deck.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Decks and only return the `id` * const deckWithIdOnly = await prisma.deck.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 Deck. * @param {DeckDeleteArgs} args - Arguments to delete one Deck. * @example * // Delete one Deck * const Deck = await prisma.deck.delete({ * where: { * // ... filter to delete one Deck * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__DeckClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Deck. * @param {DeckUpdateArgs} args - Arguments to update one Deck. * @example * // Update one Deck * const deck = await prisma.deck.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__DeckClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Decks. * @param {DeckDeleteManyArgs} args - Arguments to filter Decks to delete. * @example * // Delete a few Decks * const { count } = await prisma.deck.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Decks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeckUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Decks * const deck = await prisma.deck.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Decks and returns the data updated in the database. * @param {DeckUpdateManyAndReturnArgs} args - Arguments to update many Decks. * @example * // Update many Decks * const deck = await prisma.deck.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Decks and only return the `id` * const deckWithIdOnly = await prisma.deck.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 Deck. * @param {DeckUpsertArgs} args - Arguments to update or create a Deck. * @example * // Update or create a Deck * const deck = await prisma.deck.upsert({ * create: { * // ... data to create a Deck * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Deck we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DeckClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Decks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeckCountArgs} args - Arguments to filter Decks to count. * @example * // Count the number of Decks * const count = await prisma.deck.count({ * where: { * // ... the filter for the Decks 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 Deck. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeckAggregateArgs} 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 Deck. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeckGroupByArgs} 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 DeckGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: DeckGroupByArgs['orderBy'] } : { orderBy?: DeckGroupByArgs['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 ? GetDeckGroupByPayload : Prisma.PrismaPromise /** * Fields of the Deck model */ readonly fields: DeckFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Deck. * 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__DeckClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" class = {}>(args?: Prisma.Subset>): Prisma.Prisma__ClassClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> cards = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> shareLink = {}>(args?: Prisma.Subset>): Prisma.Prisma__ShareLinkClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> progress = {}>(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 Deck model */ export interface DeckFieldRefs { readonly id: Prisma.FieldRef<"Deck", 'String'> readonly classId: Prisma.FieldRef<"Deck", 'String'> readonly name: Prisma.FieldRef<"Deck", 'String'> readonly description: Prisma.FieldRef<"Deck", 'String'> readonly sortOrder: Prisma.FieldRef<"Deck", 'Int'> readonly createdAt: Prisma.FieldRef<"Deck", 'DateTime'> } // Custom InputTypes /** * Deck findUnique */ export type DeckFindUniqueArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null /** * Filter, which Deck to fetch. */ where: Prisma.DeckWhereUniqueInput } /** * Deck findUniqueOrThrow */ export type DeckFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null /** * Filter, which Deck to fetch. */ where: Prisma.DeckWhereUniqueInput } /** * Deck findFirst */ export type DeckFindFirstArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null /** * Filter, which Deck to fetch. */ where?: Prisma.DeckWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Decks to fetch. */ orderBy?: Prisma.DeckOrderByWithRelationInput | Prisma.DeckOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Decks. */ cursor?: Prisma.DeckWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Decks 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` Decks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Decks. */ distinct?: Prisma.DeckScalarFieldEnum | Prisma.DeckScalarFieldEnum[] } /** * Deck findFirstOrThrow */ export type DeckFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null /** * Filter, which Deck to fetch. */ where?: Prisma.DeckWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Decks to fetch. */ orderBy?: Prisma.DeckOrderByWithRelationInput | Prisma.DeckOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Decks. */ cursor?: Prisma.DeckWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Decks 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` Decks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Decks. */ distinct?: Prisma.DeckScalarFieldEnum | Prisma.DeckScalarFieldEnum[] } /** * Deck findMany */ export type DeckFindManyArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null /** * Filter, which Decks to fetch. */ where?: Prisma.DeckWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Decks to fetch. */ orderBy?: Prisma.DeckOrderByWithRelationInput | Prisma.DeckOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Decks. */ cursor?: Prisma.DeckWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Decks 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` Decks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Decks. */ distinct?: Prisma.DeckScalarFieldEnum | Prisma.DeckScalarFieldEnum[] } /** * Deck create */ export type DeckCreateArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null /** * The data needed to create a Deck. */ data: Prisma.XOR } /** * Deck createMany */ export type DeckCreateManyArgs = { /** * The data used to create many Decks. */ data: Prisma.DeckCreateManyInput | Prisma.DeckCreateManyInput[] } /** * Deck createManyAndReturn */ export type DeckCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelectCreateManyAndReturn | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * The data used to create many Decks. */ data: Prisma.DeckCreateManyInput | Prisma.DeckCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckIncludeCreateManyAndReturn | null } /** * Deck update */ export type DeckUpdateArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null /** * The data needed to update a Deck. */ data: Prisma.XOR /** * Choose, which Deck to update. */ where: Prisma.DeckWhereUniqueInput } /** * Deck updateMany */ export type DeckUpdateManyArgs = { /** * The data used to update Decks. */ data: Prisma.XOR /** * Filter which Decks to update */ where?: Prisma.DeckWhereInput /** * Limit how many Decks to update. */ limit?: number } /** * Deck updateManyAndReturn */ export type DeckUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelectUpdateManyAndReturn | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * The data used to update Decks. */ data: Prisma.XOR /** * Filter which Decks to update */ where?: Prisma.DeckWhereInput /** * Limit how many Decks to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckIncludeUpdateManyAndReturn | null } /** * Deck upsert */ export type DeckUpsertArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null /** * The filter to search for the Deck to update in case it exists. */ where: Prisma.DeckWhereUniqueInput /** * In case the Deck found by the `where` argument doesn't exist, create a new Deck with this data. */ create: Prisma.XOR /** * In case the Deck was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Deck delete */ export type DeckDeleteArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null /** * Filter which Deck to delete. */ where: Prisma.DeckWhereUniqueInput } /** * Deck deleteMany */ export type DeckDeleteManyArgs = { /** * Filter which Decks to delete */ where?: Prisma.DeckWhereInput /** * Limit how many Decks to delete. */ limit?: number } /** * Deck.cards */ export type Deck$cardsArgs = { /** * Select specific fields to fetch from the Flashcard */ select?: Prisma.FlashcardSelect | null /** * Omit specific fields from the Flashcard */ omit?: Prisma.FlashcardOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FlashcardInclude | null where?: Prisma.FlashcardWhereInput orderBy?: Prisma.FlashcardOrderByWithRelationInput | Prisma.FlashcardOrderByWithRelationInput[] cursor?: Prisma.FlashcardWhereUniqueInput take?: number skip?: number distinct?: Prisma.FlashcardScalarFieldEnum | Prisma.FlashcardScalarFieldEnum[] } /** * Deck.shareLink */ export type Deck$shareLinkArgs = { /** * 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 } /** * Deck.progress */ export type Deck$progressArgs = { /** * Select specific fields to fetch from the StudyProgress */ select?: Prisma.StudyProgressSelect | null /** * Omit specific fields from the StudyProgress */ omit?: Prisma.StudyProgressOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StudyProgressInclude | null where?: Prisma.StudyProgressWhereInput orderBy?: Prisma.StudyProgressOrderByWithRelationInput | Prisma.StudyProgressOrderByWithRelationInput[] cursor?: Prisma.StudyProgressWhereUniqueInput take?: number skip?: number distinct?: Prisma.StudyProgressScalarFieldEnum | Prisma.StudyProgressScalarFieldEnum[] } /** * Deck without action */ export type DeckDefaultArgs = { /** * Select specific fields to fetch from the Deck */ select?: Prisma.DeckSelect | null /** * Omit specific fields from the Deck */ omit?: Prisma.DeckOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeckInclude | null }