/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `SchedulePresets` 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 SchedulePresets * */ export type SchedulePresetsModel = runtime.Types.Result.DefaultSelection export type AggregateSchedulePresets = { _count: SchedulePresetsCountAggregateOutputType | null _avg: SchedulePresetsAvgAggregateOutputType | null _sum: SchedulePresetsSumAggregateOutputType | null _min: SchedulePresetsMinAggregateOutputType | null _max: SchedulePresetsMaxAggregateOutputType | null } export type SchedulePresetsAvgAggregateOutputType = { id: number | null } export type SchedulePresetsSumAggregateOutputType = { id: number | null } export type SchedulePresetsMinAggregateOutputType = { id: number | null name: string | null is_default: boolean | null } export type SchedulePresetsMaxAggregateOutputType = { id: number | null name: string | null is_default: boolean | null } export type SchedulePresetsCountAggregateOutputType = { id: number name: number is_default: number _all: number } export type SchedulePresetsAvgAggregateInputType = { id?: true } export type SchedulePresetsSumAggregateInputType = { id?: true } export type SchedulePresetsMinAggregateInputType = { id?: true name?: true is_default?: true } export type SchedulePresetsMaxAggregateInputType = { id?: true name?: true is_default?: true } export type SchedulePresetsCountAggregateInputType = { id?: true name?: true is_default?: true _all?: true } export type SchedulePresetsAggregateArgs = { /** * Filter which SchedulePresets to aggregate. */ where?: Prisma.SchedulePresetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SchedulePresets to fetch. */ orderBy?: Prisma.SchedulePresetsOrderByWithRelationInput | Prisma.SchedulePresetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SchedulePresetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SchedulePresets 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` SchedulePresets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SchedulePresets **/ _count?: true | SchedulePresetsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SchedulePresetsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SchedulePresetsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SchedulePresetsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SchedulePresetsMaxAggregateInputType } export type GetSchedulePresetsAggregateType = { [P in keyof T & keyof AggregateSchedulePresets]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SchedulePresetsGroupByArgs = { where?: Prisma.SchedulePresetsWhereInput orderBy?: Prisma.SchedulePresetsOrderByWithAggregationInput | Prisma.SchedulePresetsOrderByWithAggregationInput[] by: Prisma.SchedulePresetsScalarFieldEnum[] | Prisma.SchedulePresetsScalarFieldEnum having?: Prisma.SchedulePresetsScalarWhereWithAggregatesInput take?: number skip?: number _count?: SchedulePresetsCountAggregateInputType | true _avg?: SchedulePresetsAvgAggregateInputType _sum?: SchedulePresetsSumAggregateInputType _min?: SchedulePresetsMinAggregateInputType _max?: SchedulePresetsMaxAggregateInputType } export type SchedulePresetsGroupByOutputType = { id: number name: string is_default: boolean _count: SchedulePresetsCountAggregateOutputType | null _avg: SchedulePresetsAvgAggregateOutputType | null _sum: SchedulePresetsSumAggregateOutputType | null _min: SchedulePresetsMinAggregateOutputType | null _max: SchedulePresetsMaxAggregateOutputType | null } type GetSchedulePresetsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SchedulePresetsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SchedulePresetsWhereInput = { AND?: Prisma.SchedulePresetsWhereInput | Prisma.SchedulePresetsWhereInput[] OR?: Prisma.SchedulePresetsWhereInput[] NOT?: Prisma.SchedulePresetsWhereInput | Prisma.SchedulePresetsWhereInput[] id?: Prisma.IntFilter<"SchedulePresets"> | number name?: Prisma.StringFilter<"SchedulePresets"> | string is_default?: Prisma.BoolFilter<"SchedulePresets"> | boolean employees?: Prisma.EmployeesListRelationFilter shifts?: Prisma.SchedulePresetShiftsListRelationFilter } export type SchedulePresetsOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default?: Prisma.SortOrder employees?: Prisma.EmployeesOrderByRelationAggregateInput shifts?: Prisma.SchedulePresetShiftsOrderByRelationAggregateInput } export type SchedulePresetsWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.SchedulePresetsWhereInput | Prisma.SchedulePresetsWhereInput[] OR?: Prisma.SchedulePresetsWhereInput[] NOT?: Prisma.SchedulePresetsWhereInput | Prisma.SchedulePresetsWhereInput[] name?: Prisma.StringFilter<"SchedulePresets"> | string is_default?: Prisma.BoolFilter<"SchedulePresets"> | boolean employees?: Prisma.EmployeesListRelationFilter shifts?: Prisma.SchedulePresetShiftsListRelationFilter }, "id"> export type SchedulePresetsOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default?: Prisma.SortOrder _count?: Prisma.SchedulePresetsCountOrderByAggregateInput _avg?: Prisma.SchedulePresetsAvgOrderByAggregateInput _max?: Prisma.SchedulePresetsMaxOrderByAggregateInput _min?: Prisma.SchedulePresetsMinOrderByAggregateInput _sum?: Prisma.SchedulePresetsSumOrderByAggregateInput } export type SchedulePresetsScalarWhereWithAggregatesInput = { AND?: Prisma.SchedulePresetsScalarWhereWithAggregatesInput | Prisma.SchedulePresetsScalarWhereWithAggregatesInput[] OR?: Prisma.SchedulePresetsScalarWhereWithAggregatesInput[] NOT?: Prisma.SchedulePresetsScalarWhereWithAggregatesInput | Prisma.SchedulePresetsScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"SchedulePresets"> | number name?: Prisma.StringWithAggregatesFilter<"SchedulePresets"> | string is_default?: Prisma.BoolWithAggregatesFilter<"SchedulePresets"> | boolean } export type SchedulePresetsCreateInput = { name: string is_default?: boolean employees?: Prisma.EmployeesCreateNestedManyWithoutSchedule_presetInput shifts?: Prisma.SchedulePresetShiftsCreateNestedManyWithoutPresetInput } export type SchedulePresetsUncheckedCreateInput = { id?: number name: string is_default?: boolean employees?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSchedule_presetInput shifts?: Prisma.SchedulePresetShiftsUncheckedCreateNestedManyWithoutPresetInput } export type SchedulePresetsUpdateInput = { name?: Prisma.StringFieldUpdateOperationsInput | string is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean employees?: Prisma.EmployeesUpdateManyWithoutSchedule_presetNestedInput shifts?: Prisma.SchedulePresetShiftsUpdateManyWithoutPresetNestedInput } export type SchedulePresetsUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean employees?: Prisma.EmployeesUncheckedUpdateManyWithoutSchedule_presetNestedInput shifts?: Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutPresetNestedInput } export type SchedulePresetsCreateManyInput = { id?: number name: string is_default?: boolean } export type SchedulePresetsUpdateManyMutationInput = { name?: Prisma.StringFieldUpdateOperationsInput | string is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type SchedulePresetsUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type SchedulePresetsNullableScalarRelationFilter = { is?: Prisma.SchedulePresetsWhereInput | null isNot?: Prisma.SchedulePresetsWhereInput | null } export type SchedulePresetsCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default?: Prisma.SortOrder } export type SchedulePresetsAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type SchedulePresetsMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default?: Prisma.SortOrder } export type SchedulePresetsMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default?: Prisma.SortOrder } export type SchedulePresetsSumOrderByAggregateInput = { id?: Prisma.SortOrder } export type SchedulePresetsScalarRelationFilter = { is?: Prisma.SchedulePresetsWhereInput isNot?: Prisma.SchedulePresetsWhereInput } export type SchedulePresetsCreateNestedOneWithoutEmployeesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SchedulePresetsCreateOrConnectWithoutEmployeesInput connect?: Prisma.SchedulePresetsWhereUniqueInput } export type SchedulePresetsUpdateOneWithoutEmployeesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SchedulePresetsCreateOrConnectWithoutEmployeesInput upsert?: Prisma.SchedulePresetsUpsertWithoutEmployeesInput disconnect?: Prisma.SchedulePresetsWhereInput | boolean delete?: Prisma.SchedulePresetsWhereInput | boolean connect?: Prisma.SchedulePresetsWhereUniqueInput update?: Prisma.XOR, Prisma.SchedulePresetsUncheckedUpdateWithoutEmployeesInput> } export type SchedulePresetsCreateNestedOneWithoutShiftsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SchedulePresetsCreateOrConnectWithoutShiftsInput connect?: Prisma.SchedulePresetsWhereUniqueInput } export type SchedulePresetsUpdateOneRequiredWithoutShiftsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SchedulePresetsCreateOrConnectWithoutShiftsInput upsert?: Prisma.SchedulePresetsUpsertWithoutShiftsInput connect?: Prisma.SchedulePresetsWhereUniqueInput update?: Prisma.XOR, Prisma.SchedulePresetsUncheckedUpdateWithoutShiftsInput> } export type SchedulePresetsCreateWithoutEmployeesInput = { name: string is_default?: boolean shifts?: Prisma.SchedulePresetShiftsCreateNestedManyWithoutPresetInput } export type SchedulePresetsUncheckedCreateWithoutEmployeesInput = { id?: number name: string is_default?: boolean shifts?: Prisma.SchedulePresetShiftsUncheckedCreateNestedManyWithoutPresetInput } export type SchedulePresetsCreateOrConnectWithoutEmployeesInput = { where: Prisma.SchedulePresetsWhereUniqueInput create: Prisma.XOR } export type SchedulePresetsUpsertWithoutEmployeesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.SchedulePresetsWhereInput } export type SchedulePresetsUpdateToOneWithWhereWithoutEmployeesInput = { where?: Prisma.SchedulePresetsWhereInput data: Prisma.XOR } export type SchedulePresetsUpdateWithoutEmployeesInput = { name?: Prisma.StringFieldUpdateOperationsInput | string is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean shifts?: Prisma.SchedulePresetShiftsUpdateManyWithoutPresetNestedInput } export type SchedulePresetsUncheckedUpdateWithoutEmployeesInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean shifts?: Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutPresetNestedInput } export type SchedulePresetsCreateWithoutShiftsInput = { name: string is_default?: boolean employees?: Prisma.EmployeesCreateNestedManyWithoutSchedule_presetInput } export type SchedulePresetsUncheckedCreateWithoutShiftsInput = { id?: number name: string is_default?: boolean employees?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSchedule_presetInput } export type SchedulePresetsCreateOrConnectWithoutShiftsInput = { where: Prisma.SchedulePresetsWhereUniqueInput create: Prisma.XOR } export type SchedulePresetsUpsertWithoutShiftsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.SchedulePresetsWhereInput } export type SchedulePresetsUpdateToOneWithWhereWithoutShiftsInput = { where?: Prisma.SchedulePresetsWhereInput data: Prisma.XOR } export type SchedulePresetsUpdateWithoutShiftsInput = { name?: Prisma.StringFieldUpdateOperationsInput | string is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean employees?: Prisma.EmployeesUpdateManyWithoutSchedule_presetNestedInput } export type SchedulePresetsUncheckedUpdateWithoutShiftsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean employees?: Prisma.EmployeesUncheckedUpdateManyWithoutSchedule_presetNestedInput } /** * Count Type SchedulePresetsCountOutputType */ export type SchedulePresetsCountOutputType = { employees: number shifts: number } export type SchedulePresetsCountOutputTypeSelect = { employees?: boolean | SchedulePresetsCountOutputTypeCountEmployeesArgs shifts?: boolean | SchedulePresetsCountOutputTypeCountShiftsArgs } /** * SchedulePresetsCountOutputType without action */ export type SchedulePresetsCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SchedulePresetsCountOutputType */ select?: Prisma.SchedulePresetsCountOutputTypeSelect | null } /** * SchedulePresetsCountOutputType without action */ export type SchedulePresetsCountOutputTypeCountEmployeesArgs = { where?: Prisma.EmployeesWhereInput } /** * SchedulePresetsCountOutputType without action */ export type SchedulePresetsCountOutputTypeCountShiftsArgs = { where?: Prisma.SchedulePresetShiftsWhereInput } export type SchedulePresetsSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean is_default?: boolean employees?: boolean | Prisma.SchedulePresets$employeesArgs shifts?: boolean | Prisma.SchedulePresets$shiftsArgs _count?: boolean | Prisma.SchedulePresetsCountOutputTypeDefaultArgs }, ExtArgs["result"]["schedulePresets"]> export type SchedulePresetsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean is_default?: boolean }, ExtArgs["result"]["schedulePresets"]> export type SchedulePresetsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean is_default?: boolean }, ExtArgs["result"]["schedulePresets"]> export type SchedulePresetsSelectScalar = { id?: boolean name?: boolean is_default?: boolean } export type SchedulePresetsOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "is_default", ExtArgs["result"]["schedulePresets"]> export type SchedulePresetsInclude = { employees?: boolean | Prisma.SchedulePresets$employeesArgs shifts?: boolean | Prisma.SchedulePresets$shiftsArgs _count?: boolean | Prisma.SchedulePresetsCountOutputTypeDefaultArgs } export type SchedulePresetsIncludeCreateManyAndReturn = {} export type SchedulePresetsIncludeUpdateManyAndReturn = {} export type $SchedulePresetsPayload = { name: "SchedulePresets" objects: { employees: Prisma.$EmployeesPayload[] shifts: Prisma.$SchedulePresetShiftsPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number name: string is_default: boolean }, ExtArgs["result"]["schedulePresets"]> composites: {} } export type SchedulePresetsGetPayload = runtime.Types.Result.GetResult export type SchedulePresetsCountArgs = Omit & { select?: SchedulePresetsCountAggregateInputType | true } export interface SchedulePresetsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SchedulePresets'], meta: { name: 'SchedulePresets' } } /** * Find zero or one SchedulePresets that matches the filter. * @param {SchedulePresetsFindUniqueArgs} args - Arguments to find a SchedulePresets * @example * // Get one SchedulePresets * const schedulePresets = await prisma.schedulePresets.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SchedulePresets that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SchedulePresetsFindUniqueOrThrowArgs} args - Arguments to find a SchedulePresets * @example * // Get one SchedulePresets * const schedulePresets = await prisma.schedulePresets.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SchedulePresets 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 {SchedulePresetsFindFirstArgs} args - Arguments to find a SchedulePresets * @example * // Get one SchedulePresets * const schedulePresets = await prisma.schedulePresets.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SchedulePresets 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 {SchedulePresetsFindFirstOrThrowArgs} args - Arguments to find a SchedulePresets * @example * // Get one SchedulePresets * const schedulePresets = await prisma.schedulePresets.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SchedulePresets 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 {SchedulePresetsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SchedulePresets * const schedulePresets = await prisma.schedulePresets.findMany() * * // Get first 10 SchedulePresets * const schedulePresets = await prisma.schedulePresets.findMany({ take: 10 }) * * // Only select the `id` * const schedulePresetsWithIdOnly = await prisma.schedulePresets.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a SchedulePresets. * @param {SchedulePresetsCreateArgs} args - Arguments to create a SchedulePresets. * @example * // Create one SchedulePresets * const SchedulePresets = await prisma.schedulePresets.create({ * data: { * // ... data to create a SchedulePresets * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SchedulePresets. * @param {SchedulePresetsCreateManyArgs} args - Arguments to create many SchedulePresets. * @example * // Create many SchedulePresets * const schedulePresets = await prisma.schedulePresets.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many SchedulePresets and returns the data saved in the database. * @param {SchedulePresetsCreateManyAndReturnArgs} args - Arguments to create many SchedulePresets. * @example * // Create many SchedulePresets * const schedulePresets = await prisma.schedulePresets.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SchedulePresets and only return the `id` * const schedulePresetsWithIdOnly = await prisma.schedulePresets.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 SchedulePresets. * @param {SchedulePresetsDeleteArgs} args - Arguments to delete one SchedulePresets. * @example * // Delete one SchedulePresets * const SchedulePresets = await prisma.schedulePresets.delete({ * where: { * // ... filter to delete one SchedulePresets * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SchedulePresets. * @param {SchedulePresetsUpdateArgs} args - Arguments to update one SchedulePresets. * @example * // Update one SchedulePresets * const schedulePresets = await prisma.schedulePresets.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SchedulePresets. * @param {SchedulePresetsDeleteManyArgs} args - Arguments to filter SchedulePresets to delete. * @example * // Delete a few SchedulePresets * const { count } = await prisma.schedulePresets.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SchedulePresets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SchedulePresetsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SchedulePresets * const schedulePresets = await prisma.schedulePresets.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SchedulePresets and returns the data updated in the database. * @param {SchedulePresetsUpdateManyAndReturnArgs} args - Arguments to update many SchedulePresets. * @example * // Update many SchedulePresets * const schedulePresets = await prisma.schedulePresets.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SchedulePresets and only return the `id` * const schedulePresetsWithIdOnly = await prisma.schedulePresets.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 SchedulePresets. * @param {SchedulePresetsUpsertArgs} args - Arguments to update or create a SchedulePresets. * @example * // Update or create a SchedulePresets * const schedulePresets = await prisma.schedulePresets.upsert({ * create: { * // ... data to create a SchedulePresets * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SchedulePresets we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SchedulePresets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SchedulePresetsCountArgs} args - Arguments to filter SchedulePresets to count. * @example * // Count the number of SchedulePresets * const count = await prisma.schedulePresets.count({ * where: { * // ... the filter for the SchedulePresets 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 SchedulePresets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SchedulePresetsAggregateArgs} 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 SchedulePresets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SchedulePresetsGroupByArgs} 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 SchedulePresetsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SchedulePresetsGroupByArgs['orderBy'] } : { orderBy?: SchedulePresetsGroupByArgs['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 ? GetSchedulePresetsGroupByPayload : Prisma.PrismaPromise /** * Fields of the SchedulePresets model */ readonly fields: SchedulePresetsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SchedulePresets. * 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__SchedulePresetsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" employees = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> shifts = {}>(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 SchedulePresets model */ export interface SchedulePresetsFieldRefs { readonly id: Prisma.FieldRef<"SchedulePresets", 'Int'> readonly name: Prisma.FieldRef<"SchedulePresets", 'String'> readonly is_default: Prisma.FieldRef<"SchedulePresets", 'Boolean'> } // Custom InputTypes /** * SchedulePresets findUnique */ export type SchedulePresetsFindUniqueArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null /** * Filter, which SchedulePresets to fetch. */ where: Prisma.SchedulePresetsWhereUniqueInput } /** * SchedulePresets findUniqueOrThrow */ export type SchedulePresetsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null /** * Filter, which SchedulePresets to fetch. */ where: Prisma.SchedulePresetsWhereUniqueInput } /** * SchedulePresets findFirst */ export type SchedulePresetsFindFirstArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null /** * Filter, which SchedulePresets to fetch. */ where?: Prisma.SchedulePresetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SchedulePresets to fetch. */ orderBy?: Prisma.SchedulePresetsOrderByWithRelationInput | Prisma.SchedulePresetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SchedulePresets. */ cursor?: Prisma.SchedulePresetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SchedulePresets 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` SchedulePresets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SchedulePresets. */ distinct?: Prisma.SchedulePresetsScalarFieldEnum | Prisma.SchedulePresetsScalarFieldEnum[] } /** * SchedulePresets findFirstOrThrow */ export type SchedulePresetsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null /** * Filter, which SchedulePresets to fetch. */ where?: Prisma.SchedulePresetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SchedulePresets to fetch. */ orderBy?: Prisma.SchedulePresetsOrderByWithRelationInput | Prisma.SchedulePresetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SchedulePresets. */ cursor?: Prisma.SchedulePresetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SchedulePresets 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` SchedulePresets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SchedulePresets. */ distinct?: Prisma.SchedulePresetsScalarFieldEnum | Prisma.SchedulePresetsScalarFieldEnum[] } /** * SchedulePresets findMany */ export type SchedulePresetsFindManyArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null /** * Filter, which SchedulePresets to fetch. */ where?: Prisma.SchedulePresetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SchedulePresets to fetch. */ orderBy?: Prisma.SchedulePresetsOrderByWithRelationInput | Prisma.SchedulePresetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SchedulePresets. */ cursor?: Prisma.SchedulePresetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SchedulePresets 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` SchedulePresets. */ skip?: number distinct?: Prisma.SchedulePresetsScalarFieldEnum | Prisma.SchedulePresetsScalarFieldEnum[] } /** * SchedulePresets create */ export type SchedulePresetsCreateArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null /** * The data needed to create a SchedulePresets. */ data: Prisma.XOR } /** * SchedulePresets createMany */ export type SchedulePresetsCreateManyArgs = { /** * The data used to create many SchedulePresets. */ data: Prisma.SchedulePresetsCreateManyInput | Prisma.SchedulePresetsCreateManyInput[] skipDuplicates?: boolean } /** * SchedulePresets createManyAndReturn */ export type SchedulePresetsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelectCreateManyAndReturn | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * The data used to create many SchedulePresets. */ data: Prisma.SchedulePresetsCreateManyInput | Prisma.SchedulePresetsCreateManyInput[] skipDuplicates?: boolean } /** * SchedulePresets update */ export type SchedulePresetsUpdateArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null /** * The data needed to update a SchedulePresets. */ data: Prisma.XOR /** * Choose, which SchedulePresets to update. */ where: Prisma.SchedulePresetsWhereUniqueInput } /** * SchedulePresets updateMany */ export type SchedulePresetsUpdateManyArgs = { /** * The data used to update SchedulePresets. */ data: Prisma.XOR /** * Filter which SchedulePresets to update */ where?: Prisma.SchedulePresetsWhereInput /** * Limit how many SchedulePresets to update. */ limit?: number } /** * SchedulePresets updateManyAndReturn */ export type SchedulePresetsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelectUpdateManyAndReturn | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * The data used to update SchedulePresets. */ data: Prisma.XOR /** * Filter which SchedulePresets to update */ where?: Prisma.SchedulePresetsWhereInput /** * Limit how many SchedulePresets to update. */ limit?: number } /** * SchedulePresets upsert */ export type SchedulePresetsUpsertArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null /** * The filter to search for the SchedulePresets to update in case it exists. */ where: Prisma.SchedulePresetsWhereUniqueInput /** * In case the SchedulePresets found by the `where` argument doesn't exist, create a new SchedulePresets with this data. */ create: Prisma.XOR /** * In case the SchedulePresets was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SchedulePresets delete */ export type SchedulePresetsDeleteArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null /** * Filter which SchedulePresets to delete. */ where: Prisma.SchedulePresetsWhereUniqueInput } /** * SchedulePresets deleteMany */ export type SchedulePresetsDeleteManyArgs = { /** * Filter which SchedulePresets to delete */ where?: Prisma.SchedulePresetsWhereInput /** * Limit how many SchedulePresets to delete. */ limit?: number } /** * SchedulePresets.employees */ export type SchedulePresets$employeesArgs = { /** * Select specific fields to fetch from the Employees */ select?: Prisma.EmployeesSelect | null /** * Omit specific fields from the Employees */ omit?: Prisma.EmployeesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmployeesInclude | null where?: Prisma.EmployeesWhereInput orderBy?: Prisma.EmployeesOrderByWithRelationInput | Prisma.EmployeesOrderByWithRelationInput[] cursor?: Prisma.EmployeesWhereUniqueInput take?: number skip?: number distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[] } /** * SchedulePresets.shifts */ export type SchedulePresets$shiftsArgs = { /** * Select specific fields to fetch from the SchedulePresetShifts */ select?: Prisma.SchedulePresetShiftsSelect | null /** * Omit specific fields from the SchedulePresetShifts */ omit?: Prisma.SchedulePresetShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetShiftsInclude | null where?: Prisma.SchedulePresetShiftsWhereInput orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[] cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput take?: number skip?: number distinct?: Prisma.SchedulePresetShiftsScalarFieldEnum | Prisma.SchedulePresetShiftsScalarFieldEnum[] } /** * SchedulePresets without action */ export type SchedulePresetsDefaultArgs = { /** * Select specific fields to fetch from the SchedulePresets */ select?: Prisma.SchedulePresetsSelect | null /** * Omit specific fields from the SchedulePresets */ omit?: Prisma.SchedulePresetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SchedulePresetsInclude | null }