/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Schedule` 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 Schedule * */ export type ScheduleModel = runtime.Types.Result.DefaultSelection export type AggregateSchedule = { _count: ScheduleCountAggregateOutputType | null _min: ScheduleMinAggregateOutputType | null _max: ScheduleMaxAggregateOutputType | null } export type ScheduleMinAggregateOutputType = { id: string | null userId: string | null createdAt: Date | null updatedAt: Date | null } export type ScheduleMaxAggregateOutputType = { id: string | null userId: string | null createdAt: Date | null updatedAt: Date | null } export type ScheduleCountAggregateOutputType = { id: number userId: number createdAt: number updatedAt: number _all: number } export type ScheduleMinAggregateInputType = { id?: true userId?: true createdAt?: true updatedAt?: true } export type ScheduleMaxAggregateInputType = { id?: true userId?: true createdAt?: true updatedAt?: true } export type ScheduleCountAggregateInputType = { id?: true userId?: true createdAt?: true updatedAt?: true _all?: true } export type ScheduleAggregateArgs = { /** * Filter which Schedule to aggregate. */ where?: Prisma.ScheduleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Schedules to fetch. */ orderBy?: Prisma.ScheduleOrderByWithRelationInput | Prisma.ScheduleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ScheduleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Schedules 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` Schedules. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Schedules **/ _count?: true | ScheduleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ScheduleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ScheduleMaxAggregateInputType } export type GetScheduleAggregateType = { [P in keyof T & keyof AggregateSchedule]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ScheduleGroupByArgs = { where?: Prisma.ScheduleWhereInput orderBy?: Prisma.ScheduleOrderByWithAggregationInput | Prisma.ScheduleOrderByWithAggregationInput[] by: Prisma.ScheduleScalarFieldEnum[] | Prisma.ScheduleScalarFieldEnum having?: Prisma.ScheduleScalarWhereWithAggregatesInput take?: number skip?: number _count?: ScheduleCountAggregateInputType | true _min?: ScheduleMinAggregateInputType _max?: ScheduleMaxAggregateInputType } export type ScheduleGroupByOutputType = { id: string userId: string createdAt: Date updatedAt: Date _count: ScheduleCountAggregateOutputType | null _min: ScheduleMinAggregateOutputType | null _max: ScheduleMaxAggregateOutputType | null } export type GetScheduleGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ScheduleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ScheduleWhereInput = { AND?: Prisma.ScheduleWhereInput | Prisma.ScheduleWhereInput[] OR?: Prisma.ScheduleWhereInput[] NOT?: Prisma.ScheduleWhereInput | Prisma.ScheduleWhereInput[] id?: Prisma.StringFilter<"Schedule"> | string userId?: Prisma.StringFilter<"Schedule"> | string createdAt?: Prisma.DateTimeFilter<"Schedule"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Schedule"> | Date | string user?: Prisma.XOR blocks?: Prisma.BlockListRelationFilter } export type ScheduleOrderByWithRelationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput blocks?: Prisma.BlockOrderByRelationAggregateInput } export type ScheduleWhereUniqueInput = Prisma.AtLeast<{ id?: string userId?: string AND?: Prisma.ScheduleWhereInput | Prisma.ScheduleWhereInput[] OR?: Prisma.ScheduleWhereInput[] NOT?: Prisma.ScheduleWhereInput | Prisma.ScheduleWhereInput[] createdAt?: Prisma.DateTimeFilter<"Schedule"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Schedule"> | Date | string user?: Prisma.XOR blocks?: Prisma.BlockListRelationFilter }, "id" | "userId"> export type ScheduleOrderByWithAggregationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.ScheduleCountOrderByAggregateInput _max?: Prisma.ScheduleMaxOrderByAggregateInput _min?: Prisma.ScheduleMinOrderByAggregateInput } export type ScheduleScalarWhereWithAggregatesInput = { AND?: Prisma.ScheduleScalarWhereWithAggregatesInput | Prisma.ScheduleScalarWhereWithAggregatesInput[] OR?: Prisma.ScheduleScalarWhereWithAggregatesInput[] NOT?: Prisma.ScheduleScalarWhereWithAggregatesInput | Prisma.ScheduleScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Schedule"> | string userId?: Prisma.StringWithAggregatesFilter<"Schedule"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Schedule"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Schedule"> | Date | string } export type ScheduleCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutScheduleInput blocks?: Prisma.BlockCreateNestedManyWithoutScheduleInput } export type ScheduleUncheckedCreateInput = { id?: string userId: string createdAt?: Date | string updatedAt?: Date | string blocks?: Prisma.BlockUncheckedCreateNestedManyWithoutScheduleInput } export type ScheduleUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutScheduleNestedInput blocks?: Prisma.BlockUpdateManyWithoutScheduleNestedInput } export type ScheduleUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string blocks?: Prisma.BlockUncheckedUpdateManyWithoutScheduleNestedInput } export type ScheduleCreateManyInput = { id?: string userId: string createdAt?: Date | string updatedAt?: Date | string } export type ScheduleUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ScheduleUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ScheduleNullableScalarRelationFilter = { is?: Prisma.ScheduleWhereInput | null isNot?: Prisma.ScheduleWhereInput | null } export type ScheduleCountOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ScheduleMaxOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ScheduleMinOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ScheduleScalarRelationFilter = { is?: Prisma.ScheduleWhereInput isNot?: Prisma.ScheduleWhereInput } export type ScheduleCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ScheduleCreateOrConnectWithoutUserInput connect?: Prisma.ScheduleWhereUniqueInput } export type ScheduleUncheckedCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ScheduleCreateOrConnectWithoutUserInput connect?: Prisma.ScheduleWhereUniqueInput } export type ScheduleUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ScheduleCreateOrConnectWithoutUserInput upsert?: Prisma.ScheduleUpsertWithoutUserInput disconnect?: Prisma.ScheduleWhereInput | boolean delete?: Prisma.ScheduleWhereInput | boolean connect?: Prisma.ScheduleWhereUniqueInput update?: Prisma.XOR, Prisma.ScheduleUncheckedUpdateWithoutUserInput> } export type ScheduleUncheckedUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ScheduleCreateOrConnectWithoutUserInput upsert?: Prisma.ScheduleUpsertWithoutUserInput disconnect?: Prisma.ScheduleWhereInput | boolean delete?: Prisma.ScheduleWhereInput | boolean connect?: Prisma.ScheduleWhereUniqueInput update?: Prisma.XOR, Prisma.ScheduleUncheckedUpdateWithoutUserInput> } export type ScheduleCreateNestedOneWithoutBlocksInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ScheduleCreateOrConnectWithoutBlocksInput connect?: Prisma.ScheduleWhereUniqueInput } export type ScheduleUpdateOneRequiredWithoutBlocksNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ScheduleCreateOrConnectWithoutBlocksInput upsert?: Prisma.ScheduleUpsertWithoutBlocksInput connect?: Prisma.ScheduleWhereUniqueInput update?: Prisma.XOR, Prisma.ScheduleUncheckedUpdateWithoutBlocksInput> } export type ScheduleCreateWithoutUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string blocks?: Prisma.BlockCreateNestedManyWithoutScheduleInput } export type ScheduleUncheckedCreateWithoutUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string blocks?: Prisma.BlockUncheckedCreateNestedManyWithoutScheduleInput } export type ScheduleCreateOrConnectWithoutUserInput = { where: Prisma.ScheduleWhereUniqueInput create: Prisma.XOR } export type ScheduleUpsertWithoutUserInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ScheduleWhereInput } export type ScheduleUpdateToOneWithWhereWithoutUserInput = { where?: Prisma.ScheduleWhereInput data: Prisma.XOR } export type ScheduleUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string blocks?: Prisma.BlockUpdateManyWithoutScheduleNestedInput } export type ScheduleUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string blocks?: Prisma.BlockUncheckedUpdateManyWithoutScheduleNestedInput } export type ScheduleCreateWithoutBlocksInput = { id?: string createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutScheduleInput } export type ScheduleUncheckedCreateWithoutBlocksInput = { id?: string userId: string createdAt?: Date | string updatedAt?: Date | string } export type ScheduleCreateOrConnectWithoutBlocksInput = { where: Prisma.ScheduleWhereUniqueInput create: Prisma.XOR } export type ScheduleUpsertWithoutBlocksInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ScheduleWhereInput } export type ScheduleUpdateToOneWithWhereWithoutBlocksInput = { where?: Prisma.ScheduleWhereInput data: Prisma.XOR } export type ScheduleUpdateWithoutBlocksInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutScheduleNestedInput } export type ScheduleUncheckedUpdateWithoutBlocksInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type ScheduleCountOutputType */ export type ScheduleCountOutputType = { blocks: number } export type ScheduleCountOutputTypeSelect = { blocks?: boolean | ScheduleCountOutputTypeCountBlocksArgs } /** * ScheduleCountOutputType without action */ export type ScheduleCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ScheduleCountOutputType */ select?: Prisma.ScheduleCountOutputTypeSelect | null } /** * ScheduleCountOutputType without action */ export type ScheduleCountOutputTypeCountBlocksArgs = { where?: Prisma.BlockWhereInput } export type ScheduleSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs blocks?: boolean | Prisma.Schedule$blocksArgs _count?: boolean | Prisma.ScheduleCountOutputTypeDefaultArgs }, ExtArgs["result"]["schedule"]> export type ScheduleSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["schedule"]> export type ScheduleSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["schedule"]> export type ScheduleSelectScalar = { id?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean } export type ScheduleOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["schedule"]> export type ScheduleInclude = { user?: boolean | Prisma.UserDefaultArgs blocks?: boolean | Prisma.Schedule$blocksArgs _count?: boolean | Prisma.ScheduleCountOutputTypeDefaultArgs } export type ScheduleIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type ScheduleIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type $SchedulePayload = { name: "Schedule" objects: { user: Prisma.$UserPayload blocks: Prisma.$BlockPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string userId: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["schedule"]> composites: {} } export type ScheduleGetPayload = runtime.Types.Result.GetResult export type ScheduleCountArgs = Omit & { select?: ScheduleCountAggregateInputType | true } export interface ScheduleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Schedule'], meta: { name: 'Schedule' } } /** * Find zero or one Schedule that matches the filter. * @param {ScheduleFindUniqueArgs} args - Arguments to find a Schedule * @example * // Get one Schedule * const schedule = await prisma.schedule.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ScheduleClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Schedule that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ScheduleFindUniqueOrThrowArgs} args - Arguments to find a Schedule * @example * // Get one Schedule * const schedule = await prisma.schedule.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ScheduleClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Schedule 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 {ScheduleFindFirstArgs} args - Arguments to find a Schedule * @example * // Get one Schedule * const schedule = await prisma.schedule.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ScheduleClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Schedule 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 {ScheduleFindFirstOrThrowArgs} args - Arguments to find a Schedule * @example * // Get one Schedule * const schedule = await prisma.schedule.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ScheduleClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Schedules 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 {ScheduleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Schedules * const schedules = await prisma.schedule.findMany() * * // Get first 10 Schedules * const schedules = await prisma.schedule.findMany({ take: 10 }) * * // Only select the `id` * const scheduleWithIdOnly = await prisma.schedule.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Schedule. * @param {ScheduleCreateArgs} args - Arguments to create a Schedule. * @example * // Create one Schedule * const Schedule = await prisma.schedule.create({ * data: { * // ... data to create a Schedule * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ScheduleClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Schedules. * @param {ScheduleCreateManyArgs} args - Arguments to create many Schedules. * @example * // Create many Schedules * const schedule = await prisma.schedule.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Schedules and returns the data saved in the database. * @param {ScheduleCreateManyAndReturnArgs} args - Arguments to create many Schedules. * @example * // Create many Schedules * const schedule = await prisma.schedule.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Schedules and only return the `id` * const scheduleWithIdOnly = await prisma.schedule.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 Schedule. * @param {ScheduleDeleteArgs} args - Arguments to delete one Schedule. * @example * // Delete one Schedule * const Schedule = await prisma.schedule.delete({ * where: { * // ... filter to delete one Schedule * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ScheduleClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Schedule. * @param {ScheduleUpdateArgs} args - Arguments to update one Schedule. * @example * // Update one Schedule * const schedule = await prisma.schedule.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ScheduleClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Schedules. * @param {ScheduleDeleteManyArgs} args - Arguments to filter Schedules to delete. * @example * // Delete a few Schedules * const { count } = await prisma.schedule.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Schedules. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScheduleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Schedules * const schedule = await prisma.schedule.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Schedules and returns the data updated in the database. * @param {ScheduleUpdateManyAndReturnArgs} args - Arguments to update many Schedules. * @example * // Update many Schedules * const schedule = await prisma.schedule.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Schedules and only return the `id` * const scheduleWithIdOnly = await prisma.schedule.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 Schedule. * @param {ScheduleUpsertArgs} args - Arguments to update or create a Schedule. * @example * // Update or create a Schedule * const schedule = await prisma.schedule.upsert({ * create: { * // ... data to create a Schedule * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Schedule we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ScheduleClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Schedules. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScheduleCountArgs} args - Arguments to filter Schedules to count. * @example * // Count the number of Schedules * const count = await prisma.schedule.count({ * where: { * // ... the filter for the Schedules 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 Schedule. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScheduleAggregateArgs} 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 Schedule. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScheduleGroupByArgs} 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 ScheduleGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ScheduleGroupByArgs['orderBy'] } : { orderBy?: ScheduleGroupByArgs['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 ? GetScheduleGroupByPayload : Prisma.PrismaPromise /** * Fields of the Schedule model */ readonly fields: ScheduleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Schedule. * 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__ScheduleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> blocks = {}>(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 Schedule model */ export interface ScheduleFieldRefs { readonly id: Prisma.FieldRef<"Schedule", 'String'> readonly userId: Prisma.FieldRef<"Schedule", 'String'> readonly createdAt: Prisma.FieldRef<"Schedule", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Schedule", 'DateTime'> } // Custom InputTypes /** * Schedule findUnique */ export type ScheduleFindUniqueArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null /** * Filter, which Schedule to fetch. */ where: Prisma.ScheduleWhereUniqueInput } /** * Schedule findUniqueOrThrow */ export type ScheduleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null /** * Filter, which Schedule to fetch. */ where: Prisma.ScheduleWhereUniqueInput } /** * Schedule findFirst */ export type ScheduleFindFirstArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null /** * Filter, which Schedule to fetch. */ where?: Prisma.ScheduleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Schedules to fetch. */ orderBy?: Prisma.ScheduleOrderByWithRelationInput | Prisma.ScheduleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Schedules. */ cursor?: Prisma.ScheduleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Schedules 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` Schedules. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Schedules. */ distinct?: Prisma.ScheduleScalarFieldEnum | Prisma.ScheduleScalarFieldEnum[] } /** * Schedule findFirstOrThrow */ export type ScheduleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null /** * Filter, which Schedule to fetch. */ where?: Prisma.ScheduleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Schedules to fetch. */ orderBy?: Prisma.ScheduleOrderByWithRelationInput | Prisma.ScheduleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Schedules. */ cursor?: Prisma.ScheduleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Schedules 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` Schedules. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Schedules. */ distinct?: Prisma.ScheduleScalarFieldEnum | Prisma.ScheduleScalarFieldEnum[] } /** * Schedule findMany */ export type ScheduleFindManyArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null /** * Filter, which Schedules to fetch. */ where?: Prisma.ScheduleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Schedules to fetch. */ orderBy?: Prisma.ScheduleOrderByWithRelationInput | Prisma.ScheduleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Schedules. */ cursor?: Prisma.ScheduleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Schedules 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` Schedules. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Schedules. */ distinct?: Prisma.ScheduleScalarFieldEnum | Prisma.ScheduleScalarFieldEnum[] } /** * Schedule create */ export type ScheduleCreateArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null /** * The data needed to create a Schedule. */ data: Prisma.XOR } /** * Schedule createMany */ export type ScheduleCreateManyArgs = { /** * The data used to create many Schedules. */ data: Prisma.ScheduleCreateManyInput | Prisma.ScheduleCreateManyInput[] skipDuplicates?: boolean } /** * Schedule createManyAndReturn */ export type ScheduleCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelectCreateManyAndReturn | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * The data used to create many Schedules. */ data: Prisma.ScheduleCreateManyInput | Prisma.ScheduleCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleIncludeCreateManyAndReturn | null } /** * Schedule update */ export type ScheduleUpdateArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null /** * The data needed to update a Schedule. */ data: Prisma.XOR /** * Choose, which Schedule to update. */ where: Prisma.ScheduleWhereUniqueInput } /** * Schedule updateMany */ export type ScheduleUpdateManyArgs = { /** * The data used to update Schedules. */ data: Prisma.XOR /** * Filter which Schedules to update */ where?: Prisma.ScheduleWhereInput /** * Limit how many Schedules to update. */ limit?: number } /** * Schedule updateManyAndReturn */ export type ScheduleUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelectUpdateManyAndReturn | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * The data used to update Schedules. */ data: Prisma.XOR /** * Filter which Schedules to update */ where?: Prisma.ScheduleWhereInput /** * Limit how many Schedules to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleIncludeUpdateManyAndReturn | null } /** * Schedule upsert */ export type ScheduleUpsertArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null /** * The filter to search for the Schedule to update in case it exists. */ where: Prisma.ScheduleWhereUniqueInput /** * In case the Schedule found by the `where` argument doesn't exist, create a new Schedule with this data. */ create: Prisma.XOR /** * In case the Schedule was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Schedule delete */ export type ScheduleDeleteArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null /** * Filter which Schedule to delete. */ where: Prisma.ScheduleWhereUniqueInput } /** * Schedule deleteMany */ export type ScheduleDeleteManyArgs = { /** * Filter which Schedules to delete */ where?: Prisma.ScheduleWhereInput /** * Limit how many Schedules to delete. */ limit?: number } /** * Schedule.blocks */ export type Schedule$blocksArgs = { /** * Select specific fields to fetch from the Block */ select?: Prisma.BlockSelect | null /** * Omit specific fields from the Block */ omit?: Prisma.BlockOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlockInclude | null where?: Prisma.BlockWhereInput orderBy?: Prisma.BlockOrderByWithRelationInput | Prisma.BlockOrderByWithRelationInput[] cursor?: Prisma.BlockWhereUniqueInput take?: number skip?: number distinct?: Prisma.BlockScalarFieldEnum | Prisma.BlockScalarFieldEnum[] } /** * Schedule without action */ export type ScheduleDefaultArgs = { /** * Select specific fields to fetch from the Schedule */ select?: Prisma.ScheduleSelect | null /** * Omit specific fields from the Schedule */ omit?: Prisma.ScheduleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ScheduleInclude | null }