/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `CheckIn` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model CheckIn * */ export type CheckInModel = runtime.Types.Result.DefaultSelection export type AggregateCheckIn = { _count: CheckInCountAggregateOutputType | null _avg: CheckInAvgAggregateOutputType | null _sum: CheckInSumAggregateOutputType | null _min: CheckInMinAggregateOutputType | null _max: CheckInMaxAggregateOutputType | null } export type CheckInAvgAggregateOutputType = { id: number | null habitId: number | null userId: number | null seq: number | null } export type CheckInSumAggregateOutputType = { id: number | null habitId: number | null userId: number | null seq: number | null } export type CheckInMinAggregateOutputType = { id: number | null habitId: number | null userId: number | null date: string | null seq: number | null note: string | null source: string | null createdAt: Date | null } export type CheckInMaxAggregateOutputType = { id: number | null habitId: number | null userId: number | null date: string | null seq: number | null note: string | null source: string | null createdAt: Date | null } export type CheckInCountAggregateOutputType = { id: number habitId: number userId: number date: number seq: number note: number source: number createdAt: number _all: number } export type CheckInAvgAggregateInputType = { id?: true habitId?: true userId?: true seq?: true } export type CheckInSumAggregateInputType = { id?: true habitId?: true userId?: true seq?: true } export type CheckInMinAggregateInputType = { id?: true habitId?: true userId?: true date?: true seq?: true note?: true source?: true createdAt?: true } export type CheckInMaxAggregateInputType = { id?: true habitId?: true userId?: true date?: true seq?: true note?: true source?: true createdAt?: true } export type CheckInCountAggregateInputType = { id?: true habitId?: true userId?: true date?: true seq?: true note?: true source?: true createdAt?: true _all?: true } export type CheckInAggregateArgs = { /** * Filter which CheckIn to aggregate. */ where?: Prisma.CheckInWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CheckIns to fetch. */ orderBy?: Prisma.CheckInOrderByWithRelationInput | Prisma.CheckInOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.CheckInWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CheckIns 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` CheckIns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CheckIns **/ _count?: true | CheckInCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CheckInAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CheckInSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CheckInMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CheckInMaxAggregateInputType } export type GetCheckInAggregateType = { [P in keyof T & keyof AggregateCheckIn]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type CheckInGroupByArgs = { where?: Prisma.CheckInWhereInput orderBy?: Prisma.CheckInOrderByWithAggregationInput | Prisma.CheckInOrderByWithAggregationInput[] by: Prisma.CheckInScalarFieldEnum[] | Prisma.CheckInScalarFieldEnum having?: Prisma.CheckInScalarWhereWithAggregatesInput take?: number skip?: number _count?: CheckInCountAggregateInputType | true _avg?: CheckInAvgAggregateInputType _sum?: CheckInSumAggregateInputType _min?: CheckInMinAggregateInputType _max?: CheckInMaxAggregateInputType } export type CheckInGroupByOutputType = { id: number habitId: number userId: number date: string seq: number note: string source: string createdAt: Date _count: CheckInCountAggregateOutputType | null _avg: CheckInAvgAggregateOutputType | null _sum: CheckInSumAggregateOutputType | null _min: CheckInMinAggregateOutputType | null _max: CheckInMaxAggregateOutputType | null } export type GetCheckInGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CheckInGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type CheckInWhereInput = { AND?: Prisma.CheckInWhereInput | Prisma.CheckInWhereInput[] OR?: Prisma.CheckInWhereInput[] NOT?: Prisma.CheckInWhereInput | Prisma.CheckInWhereInput[] id?: Prisma.IntFilter<"CheckIn"> | number habitId?: Prisma.IntFilter<"CheckIn"> | number userId?: Prisma.IntFilter<"CheckIn"> | number date?: Prisma.StringFilter<"CheckIn"> | string seq?: Prisma.IntFilter<"CheckIn"> | number note?: Prisma.StringFilter<"CheckIn"> | string source?: Prisma.StringFilter<"CheckIn"> | string createdAt?: Prisma.DateTimeFilter<"CheckIn"> | Date | string habit?: Prisma.XOR user?: Prisma.XOR } export type CheckInOrderByWithRelationInput = { id?: Prisma.SortOrder habitId?: Prisma.SortOrder userId?: Prisma.SortOrder date?: Prisma.SortOrder seq?: Prisma.SortOrder note?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder habit?: Prisma.HabitOrderByWithRelationInput user?: Prisma.UserOrderByWithRelationInput } export type CheckInWhereUniqueInput = Prisma.AtLeast<{ id?: number habitId_date_seq?: Prisma.CheckInHabitIdDateSeqCompoundUniqueInput AND?: Prisma.CheckInWhereInput | Prisma.CheckInWhereInput[] OR?: Prisma.CheckInWhereInput[] NOT?: Prisma.CheckInWhereInput | Prisma.CheckInWhereInput[] habitId?: Prisma.IntFilter<"CheckIn"> | number userId?: Prisma.IntFilter<"CheckIn"> | number date?: Prisma.StringFilter<"CheckIn"> | string seq?: Prisma.IntFilter<"CheckIn"> | number note?: Prisma.StringFilter<"CheckIn"> | string source?: Prisma.StringFilter<"CheckIn"> | string createdAt?: Prisma.DateTimeFilter<"CheckIn"> | Date | string habit?: Prisma.XOR user?: Prisma.XOR }, "id" | "habitId_date_seq"> export type CheckInOrderByWithAggregationInput = { id?: Prisma.SortOrder habitId?: Prisma.SortOrder userId?: Prisma.SortOrder date?: Prisma.SortOrder seq?: Prisma.SortOrder note?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder _count?: Prisma.CheckInCountOrderByAggregateInput _avg?: Prisma.CheckInAvgOrderByAggregateInput _max?: Prisma.CheckInMaxOrderByAggregateInput _min?: Prisma.CheckInMinOrderByAggregateInput _sum?: Prisma.CheckInSumOrderByAggregateInput } export type CheckInScalarWhereWithAggregatesInput = { AND?: Prisma.CheckInScalarWhereWithAggregatesInput | Prisma.CheckInScalarWhereWithAggregatesInput[] OR?: Prisma.CheckInScalarWhereWithAggregatesInput[] NOT?: Prisma.CheckInScalarWhereWithAggregatesInput | Prisma.CheckInScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"CheckIn"> | number habitId?: Prisma.IntWithAggregatesFilter<"CheckIn"> | number userId?: Prisma.IntWithAggregatesFilter<"CheckIn"> | number date?: Prisma.StringWithAggregatesFilter<"CheckIn"> | string seq?: Prisma.IntWithAggregatesFilter<"CheckIn"> | number note?: Prisma.StringWithAggregatesFilter<"CheckIn"> | string source?: Prisma.StringWithAggregatesFilter<"CheckIn"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"CheckIn"> | Date | string } export type CheckInCreateInput = { date: string seq?: number note?: string source?: string createdAt?: Date | string habit: Prisma.HabitCreateNestedOneWithoutRecordsInput user: Prisma.UserCreateNestedOneWithoutCheckInsInput } export type CheckInUncheckedCreateInput = { id?: number habitId: number userId: number date: string seq?: number note?: string source?: string createdAt?: Date | string } export type CheckInUpdateInput = { date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string habit?: Prisma.HabitUpdateOneRequiredWithoutRecordsNestedInput user?: Prisma.UserUpdateOneRequiredWithoutCheckInsNestedInput } export type CheckInUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number habitId?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckInCreateManyInput = { id?: number habitId: number userId: number date: string seq?: number note?: string source?: string createdAt?: Date | string } export type CheckInUpdateManyMutationInput = { date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckInUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number habitId?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckInListRelationFilter = { every?: Prisma.CheckInWhereInput some?: Prisma.CheckInWhereInput none?: Prisma.CheckInWhereInput } export type CheckInOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type CheckInHabitIdDateSeqCompoundUniqueInput = { habitId: number date: string seq: number } export type CheckInCountOrderByAggregateInput = { id?: Prisma.SortOrder habitId?: Prisma.SortOrder userId?: Prisma.SortOrder date?: Prisma.SortOrder seq?: Prisma.SortOrder note?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type CheckInAvgOrderByAggregateInput = { id?: Prisma.SortOrder habitId?: Prisma.SortOrder userId?: Prisma.SortOrder seq?: Prisma.SortOrder } export type CheckInMaxOrderByAggregateInput = { id?: Prisma.SortOrder habitId?: Prisma.SortOrder userId?: Prisma.SortOrder date?: Prisma.SortOrder seq?: Prisma.SortOrder note?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type CheckInMinOrderByAggregateInput = { id?: Prisma.SortOrder habitId?: Prisma.SortOrder userId?: Prisma.SortOrder date?: Prisma.SortOrder seq?: Prisma.SortOrder note?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type CheckInSumOrderByAggregateInput = { id?: Prisma.SortOrder habitId?: Prisma.SortOrder userId?: Prisma.SortOrder seq?: Prisma.SortOrder } export type CheckInCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.CheckInCreateWithoutUserInput[] | Prisma.CheckInUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutUserInput | Prisma.CheckInCreateOrConnectWithoutUserInput[] createMany?: Prisma.CheckInCreateManyUserInputEnvelope connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] } export type CheckInUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.CheckInCreateWithoutUserInput[] | Prisma.CheckInUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutUserInput | Prisma.CheckInCreateOrConnectWithoutUserInput[] createMany?: Prisma.CheckInCreateManyUserInputEnvelope connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] } export type CheckInUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.CheckInCreateWithoutUserInput[] | Prisma.CheckInUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutUserInput | Prisma.CheckInCreateOrConnectWithoutUserInput[] upsert?: Prisma.CheckInUpsertWithWhereUniqueWithoutUserInput | Prisma.CheckInUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.CheckInCreateManyUserInputEnvelope set?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] disconnect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] delete?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] update?: Prisma.CheckInUpdateWithWhereUniqueWithoutUserInput | Prisma.CheckInUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.CheckInUpdateManyWithWhereWithoutUserInput | Prisma.CheckInUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[] } export type CheckInUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.CheckInCreateWithoutUserInput[] | Prisma.CheckInUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutUserInput | Prisma.CheckInCreateOrConnectWithoutUserInput[] upsert?: Prisma.CheckInUpsertWithWhereUniqueWithoutUserInput | Prisma.CheckInUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.CheckInCreateManyUserInputEnvelope set?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] disconnect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] delete?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] update?: Prisma.CheckInUpdateWithWhereUniqueWithoutUserInput | Prisma.CheckInUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.CheckInUpdateManyWithWhereWithoutUserInput | Prisma.CheckInUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[] } export type CheckInCreateNestedManyWithoutHabitInput = { create?: Prisma.XOR | Prisma.CheckInCreateWithoutHabitInput[] | Prisma.CheckInUncheckedCreateWithoutHabitInput[] connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutHabitInput | Prisma.CheckInCreateOrConnectWithoutHabitInput[] createMany?: Prisma.CheckInCreateManyHabitInputEnvelope connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] } export type CheckInUncheckedCreateNestedManyWithoutHabitInput = { create?: Prisma.XOR | Prisma.CheckInCreateWithoutHabitInput[] | Prisma.CheckInUncheckedCreateWithoutHabitInput[] connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutHabitInput | Prisma.CheckInCreateOrConnectWithoutHabitInput[] createMany?: Prisma.CheckInCreateManyHabitInputEnvelope connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] } export type CheckInUpdateManyWithoutHabitNestedInput = { create?: Prisma.XOR | Prisma.CheckInCreateWithoutHabitInput[] | Prisma.CheckInUncheckedCreateWithoutHabitInput[] connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutHabitInput | Prisma.CheckInCreateOrConnectWithoutHabitInput[] upsert?: Prisma.CheckInUpsertWithWhereUniqueWithoutHabitInput | Prisma.CheckInUpsertWithWhereUniqueWithoutHabitInput[] createMany?: Prisma.CheckInCreateManyHabitInputEnvelope set?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] disconnect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] delete?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] update?: Prisma.CheckInUpdateWithWhereUniqueWithoutHabitInput | Prisma.CheckInUpdateWithWhereUniqueWithoutHabitInput[] updateMany?: Prisma.CheckInUpdateManyWithWhereWithoutHabitInput | Prisma.CheckInUpdateManyWithWhereWithoutHabitInput[] deleteMany?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[] } export type CheckInUncheckedUpdateManyWithoutHabitNestedInput = { create?: Prisma.XOR | Prisma.CheckInCreateWithoutHabitInput[] | Prisma.CheckInUncheckedCreateWithoutHabitInput[] connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutHabitInput | Prisma.CheckInCreateOrConnectWithoutHabitInput[] upsert?: Prisma.CheckInUpsertWithWhereUniqueWithoutHabitInput | Prisma.CheckInUpsertWithWhereUniqueWithoutHabitInput[] createMany?: Prisma.CheckInCreateManyHabitInputEnvelope set?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] disconnect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] delete?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[] update?: Prisma.CheckInUpdateWithWhereUniqueWithoutHabitInput | Prisma.CheckInUpdateWithWhereUniqueWithoutHabitInput[] updateMany?: Prisma.CheckInUpdateManyWithWhereWithoutHabitInput | Prisma.CheckInUpdateManyWithWhereWithoutHabitInput[] deleteMany?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[] } export type CheckInCreateWithoutUserInput = { date: string seq?: number note?: string source?: string createdAt?: Date | string habit: Prisma.HabitCreateNestedOneWithoutRecordsInput } export type CheckInUncheckedCreateWithoutUserInput = { id?: number habitId: number date: string seq?: number note?: string source?: string createdAt?: Date | string } export type CheckInCreateOrConnectWithoutUserInput = { where: Prisma.CheckInWhereUniqueInput create: Prisma.XOR } export type CheckInCreateManyUserInputEnvelope = { data: Prisma.CheckInCreateManyUserInput | Prisma.CheckInCreateManyUserInput[] skipDuplicates?: boolean } export type CheckInUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.CheckInWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type CheckInUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.CheckInWhereUniqueInput data: Prisma.XOR } export type CheckInUpdateManyWithWhereWithoutUserInput = { where: Prisma.CheckInScalarWhereInput data: Prisma.XOR } export type CheckInScalarWhereInput = { AND?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[] OR?: Prisma.CheckInScalarWhereInput[] NOT?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[] id?: Prisma.IntFilter<"CheckIn"> | number habitId?: Prisma.IntFilter<"CheckIn"> | number userId?: Prisma.IntFilter<"CheckIn"> | number date?: Prisma.StringFilter<"CheckIn"> | string seq?: Prisma.IntFilter<"CheckIn"> | number note?: Prisma.StringFilter<"CheckIn"> | string source?: Prisma.StringFilter<"CheckIn"> | string createdAt?: Prisma.DateTimeFilter<"CheckIn"> | Date | string } export type CheckInCreateWithoutHabitInput = { date: string seq?: number note?: string source?: string createdAt?: Date | string user: Prisma.UserCreateNestedOneWithoutCheckInsInput } export type CheckInUncheckedCreateWithoutHabitInput = { id?: number userId: number date: string seq?: number note?: string source?: string createdAt?: Date | string } export type CheckInCreateOrConnectWithoutHabitInput = { where: Prisma.CheckInWhereUniqueInput create: Prisma.XOR } export type CheckInCreateManyHabitInputEnvelope = { data: Prisma.CheckInCreateManyHabitInput | Prisma.CheckInCreateManyHabitInput[] skipDuplicates?: boolean } export type CheckInUpsertWithWhereUniqueWithoutHabitInput = { where: Prisma.CheckInWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type CheckInUpdateWithWhereUniqueWithoutHabitInput = { where: Prisma.CheckInWhereUniqueInput data: Prisma.XOR } export type CheckInUpdateManyWithWhereWithoutHabitInput = { where: Prisma.CheckInScalarWhereInput data: Prisma.XOR } export type CheckInCreateManyUserInput = { id?: number habitId: number date: string seq?: number note?: string source?: string createdAt?: Date | string } export type CheckInUpdateWithoutUserInput = { date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string habit?: Prisma.HabitUpdateOneRequiredWithoutRecordsNestedInput } export type CheckInUncheckedUpdateWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number habitId?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckInUncheckedUpdateManyWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number habitId?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckInCreateManyHabitInput = { id?: number userId: number date: string seq?: number note?: string source?: string createdAt?: Date | string } export type CheckInUpdateWithoutHabitInput = { date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutCheckInsNestedInput } export type CheckInUncheckedUpdateWithoutHabitInput = { id?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckInUncheckedUpdateManyWithoutHabitInput = { id?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.StringFieldUpdateOperationsInput | string seq?: Prisma.IntFieldUpdateOperationsInput | number note?: Prisma.StringFieldUpdateOperationsInput | string source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckInSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean habitId?: boolean userId?: boolean date?: boolean seq?: boolean note?: boolean source?: boolean createdAt?: boolean habit?: boolean | Prisma.HabitDefaultArgs user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["checkIn"]> export type CheckInSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean habitId?: boolean userId?: boolean date?: boolean seq?: boolean note?: boolean source?: boolean createdAt?: boolean habit?: boolean | Prisma.HabitDefaultArgs user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["checkIn"]> export type CheckInSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean habitId?: boolean userId?: boolean date?: boolean seq?: boolean note?: boolean source?: boolean createdAt?: boolean habit?: boolean | Prisma.HabitDefaultArgs user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["checkIn"]> export type CheckInSelectScalar = { id?: boolean habitId?: boolean userId?: boolean date?: boolean seq?: boolean note?: boolean source?: boolean createdAt?: boolean } export type CheckInOmit = runtime.Types.Extensions.GetOmit<"id" | "habitId" | "userId" | "date" | "seq" | "note" | "source" | "createdAt", ExtArgs["result"]["checkIn"]> export type CheckInInclude = { habit?: boolean | Prisma.HabitDefaultArgs user?: boolean | Prisma.UserDefaultArgs } export type CheckInIncludeCreateManyAndReturn = { habit?: boolean | Prisma.HabitDefaultArgs user?: boolean | Prisma.UserDefaultArgs } export type CheckInIncludeUpdateManyAndReturn = { habit?: boolean | Prisma.HabitDefaultArgs user?: boolean | Prisma.UserDefaultArgs } export type $CheckInPayload = { name: "CheckIn" objects: { habit: Prisma.$HabitPayload user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number habitId: number userId: number date: string seq: number note: string source: string createdAt: Date }, ExtArgs["result"]["checkIn"]> composites: {} } export type CheckInGetPayload = runtime.Types.Result.GetResult export type CheckInCountArgs = Omit & { select?: CheckInCountAggregateInputType | true } export interface CheckInDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CheckIn'], meta: { name: 'CheckIn' } } /** * Find zero or one CheckIn that matches the filter. * @param {CheckInFindUniqueArgs} args - Arguments to find a CheckIn * @example * // Get one CheckIn * const checkIn = await prisma.checkIn.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__CheckInClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CheckIn that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CheckInFindUniqueOrThrowArgs} args - Arguments to find a CheckIn * @example * // Get one CheckIn * const checkIn = await prisma.checkIn.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__CheckInClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CheckIn 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 {CheckInFindFirstArgs} args - Arguments to find a CheckIn * @example * // Get one CheckIn * const checkIn = await prisma.checkIn.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__CheckInClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CheckIn 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 {CheckInFindFirstOrThrowArgs} args - Arguments to find a CheckIn * @example * // Get one CheckIn * const checkIn = await prisma.checkIn.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__CheckInClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CheckIns 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 {CheckInFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CheckIns * const checkIns = await prisma.checkIn.findMany() * * // Get first 10 CheckIns * const checkIns = await prisma.checkIn.findMany({ take: 10 }) * * // Only select the `id` * const checkInWithIdOnly = await prisma.checkIn.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a CheckIn. * @param {CheckInCreateArgs} args - Arguments to create a CheckIn. * @example * // Create one CheckIn * const CheckIn = await prisma.checkIn.create({ * data: { * // ... data to create a CheckIn * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__CheckInClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CheckIns. * @param {CheckInCreateManyArgs} args - Arguments to create many CheckIns. * @example * // Create many CheckIns * const checkIn = await prisma.checkIn.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many CheckIns and returns the data saved in the database. * @param {CheckInCreateManyAndReturnArgs} args - Arguments to create many CheckIns. * @example * // Create many CheckIns * const checkIn = await prisma.checkIn.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CheckIns and only return the `id` * const checkInWithIdOnly = await prisma.checkIn.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 CheckIn. * @param {CheckInDeleteArgs} args - Arguments to delete one CheckIn. * @example * // Delete one CheckIn * const CheckIn = await prisma.checkIn.delete({ * where: { * // ... filter to delete one CheckIn * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__CheckInClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CheckIn. * @param {CheckInUpdateArgs} args - Arguments to update one CheckIn. * @example * // Update one CheckIn * const checkIn = await prisma.checkIn.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__CheckInClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CheckIns. * @param {CheckInDeleteManyArgs} args - Arguments to filter CheckIns to delete. * @example * // Delete a few CheckIns * const { count } = await prisma.checkIn.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CheckIns. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CheckInUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CheckIns * const checkIn = await prisma.checkIn.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CheckIns and returns the data updated in the database. * @param {CheckInUpdateManyAndReturnArgs} args - Arguments to update many CheckIns. * @example * // Update many CheckIns * const checkIn = await prisma.checkIn.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CheckIns and only return the `id` * const checkInWithIdOnly = await prisma.checkIn.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 CheckIn. * @param {CheckInUpsertArgs} args - Arguments to update or create a CheckIn. * @example * // Update or create a CheckIn * const checkIn = await prisma.checkIn.upsert({ * create: { * // ... data to create a CheckIn * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CheckIn we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__CheckInClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CheckIns. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CheckInCountArgs} args - Arguments to filter CheckIns to count. * @example * // Count the number of CheckIns * const count = await prisma.checkIn.count({ * where: { * // ... the filter for the CheckIns 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 CheckIn. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CheckInAggregateArgs} 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 CheckIn. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CheckInGroupByArgs} 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 CheckInGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CheckInGroupByArgs['orderBy'] } : { orderBy?: CheckInGroupByArgs['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 ? GetCheckInGroupByPayload : Prisma.PrismaPromise /** * Fields of the CheckIn model */ readonly fields: CheckInFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CheckIn. * 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__CheckInClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" habit = {}>(args?: Prisma.Subset>): Prisma.Prisma__HabitClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 CheckIn model */ export interface CheckInFieldRefs { readonly id: Prisma.FieldRef<"CheckIn", 'Int'> readonly habitId: Prisma.FieldRef<"CheckIn", 'Int'> readonly userId: Prisma.FieldRef<"CheckIn", 'Int'> readonly date: Prisma.FieldRef<"CheckIn", 'String'> readonly seq: Prisma.FieldRef<"CheckIn", 'Int'> readonly note: Prisma.FieldRef<"CheckIn", 'String'> readonly source: Prisma.FieldRef<"CheckIn", 'String'> readonly createdAt: Prisma.FieldRef<"CheckIn", 'DateTime'> } // Custom InputTypes /** * CheckIn findUnique */ export type CheckInFindUniqueArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null /** * Filter, which CheckIn to fetch. */ where: Prisma.CheckInWhereUniqueInput } /** * CheckIn findUniqueOrThrow */ export type CheckInFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null /** * Filter, which CheckIn to fetch. */ where: Prisma.CheckInWhereUniqueInput } /** * CheckIn findFirst */ export type CheckInFindFirstArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null /** * Filter, which CheckIn to fetch. */ where?: Prisma.CheckInWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CheckIns to fetch. */ orderBy?: Prisma.CheckInOrderByWithRelationInput | Prisma.CheckInOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CheckIns. */ cursor?: Prisma.CheckInWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CheckIns 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` CheckIns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CheckIns. */ distinct?: Prisma.CheckInScalarFieldEnum | Prisma.CheckInScalarFieldEnum[] } /** * CheckIn findFirstOrThrow */ export type CheckInFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null /** * Filter, which CheckIn to fetch. */ where?: Prisma.CheckInWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CheckIns to fetch. */ orderBy?: Prisma.CheckInOrderByWithRelationInput | Prisma.CheckInOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CheckIns. */ cursor?: Prisma.CheckInWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CheckIns 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` CheckIns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CheckIns. */ distinct?: Prisma.CheckInScalarFieldEnum | Prisma.CheckInScalarFieldEnum[] } /** * CheckIn findMany */ export type CheckInFindManyArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null /** * Filter, which CheckIns to fetch. */ where?: Prisma.CheckInWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CheckIns to fetch. */ orderBy?: Prisma.CheckInOrderByWithRelationInput | Prisma.CheckInOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CheckIns. */ cursor?: Prisma.CheckInWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CheckIns 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` CheckIns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CheckIns. */ distinct?: Prisma.CheckInScalarFieldEnum | Prisma.CheckInScalarFieldEnum[] } /** * CheckIn create */ export type CheckInCreateArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null /** * The data needed to create a CheckIn. */ data: Prisma.XOR } /** * CheckIn createMany */ export type CheckInCreateManyArgs = { /** * The data used to create many CheckIns. */ data: Prisma.CheckInCreateManyInput | Prisma.CheckInCreateManyInput[] skipDuplicates?: boolean } /** * CheckIn createManyAndReturn */ export type CheckInCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelectCreateManyAndReturn | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * The data used to create many CheckIns. */ data: Prisma.CheckInCreateManyInput | Prisma.CheckInCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInIncludeCreateManyAndReturn | null } /** * CheckIn update */ export type CheckInUpdateArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null /** * The data needed to update a CheckIn. */ data: Prisma.XOR /** * Choose, which CheckIn to update. */ where: Prisma.CheckInWhereUniqueInput } /** * CheckIn updateMany */ export type CheckInUpdateManyArgs = { /** * The data used to update CheckIns. */ data: Prisma.XOR /** * Filter which CheckIns to update */ where?: Prisma.CheckInWhereInput /** * Limit how many CheckIns to update. */ limit?: number } /** * CheckIn updateManyAndReturn */ export type CheckInUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelectUpdateManyAndReturn | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * The data used to update CheckIns. */ data: Prisma.XOR /** * Filter which CheckIns to update */ where?: Prisma.CheckInWhereInput /** * Limit how many CheckIns to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInIncludeUpdateManyAndReturn | null } /** * CheckIn upsert */ export type CheckInUpsertArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null /** * The filter to search for the CheckIn to update in case it exists. */ where: Prisma.CheckInWhereUniqueInput /** * In case the CheckIn found by the `where` argument doesn't exist, create a new CheckIn with this data. */ create: Prisma.XOR /** * In case the CheckIn was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * CheckIn delete */ export type CheckInDeleteArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null /** * Filter which CheckIn to delete. */ where: Prisma.CheckInWhereUniqueInput } /** * CheckIn deleteMany */ export type CheckInDeleteManyArgs = { /** * Filter which CheckIns to delete */ where?: Prisma.CheckInWhereInput /** * Limit how many CheckIns to delete. */ limit?: number } /** * CheckIn without action */ export type CheckInDefaultArgs = { /** * Select specific fields to fetch from the CheckIn */ select?: Prisma.CheckInSelect | null /** * Omit specific fields from the CheckIn */ omit?: Prisma.CheckInOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckInInclude | null }