/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `shifts_of_template` 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 shifts_of_template * */ export type shifts_of_templateModel = runtime.Types.Result.DefaultSelection export type AggregateShifts_of_template = { _count: Shifts_of_templateCountAggregateOutputType | null _avg: Shifts_of_templateAvgAggregateOutputType | null _sum: Shifts_of_templateSumAggregateOutputType | null _min: Shifts_of_templateMinAggregateOutputType | null _max: Shifts_of_templateMaxAggregateOutputType | null } export type Shifts_of_templateAvgAggregateOutputType = { start_time: number | null end_time: number | null created_at: number | null updated_at: number | null } export type Shifts_of_templateSumAggregateOutputType = { start_time: bigint | null end_time: bigint | null created_at: bigint | null updated_at: bigint | null } export type Shifts_of_templateMinAggregateOutputType = { id: string | null model_id: string | null day_of_the_week: string | null start_time: bigint | null end_time: bigint | null created_at: bigint | null updated_at: bigint | null } export type Shifts_of_templateMaxAggregateOutputType = { id: string | null model_id: string | null day_of_the_week: string | null start_time: bigint | null end_time: bigint | null created_at: bigint | null updated_at: bigint | null } export type Shifts_of_templateCountAggregateOutputType = { id: number model_id: number day_of_the_week: number start_time: number end_time: number created_at: number updated_at: number _all: number } export type Shifts_of_templateAvgAggregateInputType = { start_time?: true end_time?: true created_at?: true updated_at?: true } export type Shifts_of_templateSumAggregateInputType = { start_time?: true end_time?: true created_at?: true updated_at?: true } export type Shifts_of_templateMinAggregateInputType = { id?: true model_id?: true day_of_the_week?: true start_time?: true end_time?: true created_at?: true updated_at?: true } export type Shifts_of_templateMaxAggregateInputType = { id?: true model_id?: true day_of_the_week?: true start_time?: true end_time?: true created_at?: true updated_at?: true } export type Shifts_of_templateCountAggregateInputType = { id?: true model_id?: true day_of_the_week?: true start_time?: true end_time?: true created_at?: true updated_at?: true _all?: true } export type Shifts_of_templateAggregateArgs = { /** * Filter which shifts_of_template to aggregate. */ where?: Prisma.shifts_of_templateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of shifts_of_templates to fetch. */ orderBy?: Prisma.shifts_of_templateOrderByWithRelationInput | Prisma.shifts_of_templateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.shifts_of_templateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` shifts_of_templates 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` shifts_of_templates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned shifts_of_templates **/ _count?: true | Shifts_of_templateCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Shifts_of_templateAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Shifts_of_templateSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Shifts_of_templateMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Shifts_of_templateMaxAggregateInputType } export type GetShifts_of_templateAggregateType = { [P in keyof T & keyof AggregateShifts_of_template]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type shifts_of_templateGroupByArgs = { where?: Prisma.shifts_of_templateWhereInput orderBy?: Prisma.shifts_of_templateOrderByWithAggregationInput | Prisma.shifts_of_templateOrderByWithAggregationInput[] by: Prisma.Shifts_of_templateScalarFieldEnum[] | Prisma.Shifts_of_templateScalarFieldEnum having?: Prisma.shifts_of_templateScalarWhereWithAggregatesInput take?: number skip?: number _count?: Shifts_of_templateCountAggregateInputType | true _avg?: Shifts_of_templateAvgAggregateInputType _sum?: Shifts_of_templateSumAggregateInputType _min?: Shifts_of_templateMinAggregateInputType _max?: Shifts_of_templateMaxAggregateInputType } export type Shifts_of_templateGroupByOutputType = { id: string model_id: string day_of_the_week: string start_time: bigint end_time: bigint created_at: bigint updated_at: bigint _count: Shifts_of_templateCountAggregateOutputType | null _avg: Shifts_of_templateAvgAggregateOutputType | null _sum: Shifts_of_templateSumAggregateOutputType | null _min: Shifts_of_templateMinAggregateOutputType | null _max: Shifts_of_templateMaxAggregateOutputType | null } type GetShifts_of_templateGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Shifts_of_templateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type shifts_of_templateWhereInput = { AND?: Prisma.shifts_of_templateWhereInput | Prisma.shifts_of_templateWhereInput[] OR?: Prisma.shifts_of_templateWhereInput[] NOT?: Prisma.shifts_of_templateWhereInput | Prisma.shifts_of_templateWhereInput[] id?: Prisma.UuidFilter<"shifts_of_template"> | string model_id?: Prisma.UuidFilter<"shifts_of_template"> | string day_of_the_week?: Prisma.StringFilter<"shifts_of_template"> | string start_time?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number end_time?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number created_at?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number updated_at?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number } export type shifts_of_templateOrderByWithRelationInput = { id?: Prisma.SortOrder model_id?: Prisma.SortOrder day_of_the_week?: Prisma.SortOrder start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type shifts_of_templateWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.shifts_of_templateWhereInput | Prisma.shifts_of_templateWhereInput[] OR?: Prisma.shifts_of_templateWhereInput[] NOT?: Prisma.shifts_of_templateWhereInput | Prisma.shifts_of_templateWhereInput[] model_id?: Prisma.UuidFilter<"shifts_of_template"> | string day_of_the_week?: Prisma.StringFilter<"shifts_of_template"> | string start_time?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number end_time?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number created_at?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number updated_at?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number }, "id"> export type shifts_of_templateOrderByWithAggregationInput = { id?: Prisma.SortOrder model_id?: Prisma.SortOrder day_of_the_week?: Prisma.SortOrder start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder _count?: Prisma.shifts_of_templateCountOrderByAggregateInput _avg?: Prisma.shifts_of_templateAvgOrderByAggregateInput _max?: Prisma.shifts_of_templateMaxOrderByAggregateInput _min?: Prisma.shifts_of_templateMinOrderByAggregateInput _sum?: Prisma.shifts_of_templateSumOrderByAggregateInput } export type shifts_of_templateScalarWhereWithAggregatesInput = { AND?: Prisma.shifts_of_templateScalarWhereWithAggregatesInput | Prisma.shifts_of_templateScalarWhereWithAggregatesInput[] OR?: Prisma.shifts_of_templateScalarWhereWithAggregatesInput[] NOT?: Prisma.shifts_of_templateScalarWhereWithAggregatesInput | Prisma.shifts_of_templateScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"shifts_of_template"> | string model_id?: Prisma.UuidWithAggregatesFilter<"shifts_of_template"> | string day_of_the_week?: Prisma.StringWithAggregatesFilter<"shifts_of_template"> | string start_time?: Prisma.BigIntWithAggregatesFilter<"shifts_of_template"> | bigint | number end_time?: Prisma.BigIntWithAggregatesFilter<"shifts_of_template"> | bigint | number created_at?: Prisma.BigIntWithAggregatesFilter<"shifts_of_template"> | bigint | number updated_at?: Prisma.BigIntWithAggregatesFilter<"shifts_of_template"> | bigint | number } export type shifts_of_templateCreateInput = { id: string model_id: string day_of_the_week: string start_time: bigint | number end_time: bigint | number created_at: bigint | number updated_at: bigint | number } export type shifts_of_templateUncheckedCreateInput = { id: string model_id: string day_of_the_week: string start_time: bigint | number end_time: bigint | number created_at: bigint | number updated_at: bigint | number } export type shifts_of_templateUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string model_id?: Prisma.StringFieldUpdateOperationsInput | string day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type shifts_of_templateUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string model_id?: Prisma.StringFieldUpdateOperationsInput | string day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type shifts_of_templateCreateManyInput = { id: string model_id: string day_of_the_week: string start_time: bigint | number end_time: bigint | number created_at: bigint | number updated_at: bigint | number } export type shifts_of_templateUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string model_id?: Prisma.StringFieldUpdateOperationsInput | string day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type shifts_of_templateUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string model_id?: Prisma.StringFieldUpdateOperationsInput | string day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type shifts_of_templateCountOrderByAggregateInput = { id?: Prisma.SortOrder model_id?: Prisma.SortOrder day_of_the_week?: Prisma.SortOrder start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type shifts_of_templateAvgOrderByAggregateInput = { start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type shifts_of_templateMaxOrderByAggregateInput = { id?: Prisma.SortOrder model_id?: Prisma.SortOrder day_of_the_week?: Prisma.SortOrder start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type shifts_of_templateMinOrderByAggregateInput = { id?: Prisma.SortOrder model_id?: Prisma.SortOrder day_of_the_week?: Prisma.SortOrder start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type shifts_of_templateSumOrderByAggregateInput = { start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type shifts_of_templateSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean model_id?: boolean day_of_the_week?: boolean start_time?: boolean end_time?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["shifts_of_template"]> export type shifts_of_templateSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean model_id?: boolean day_of_the_week?: boolean start_time?: boolean end_time?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["shifts_of_template"]> export type shifts_of_templateSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean model_id?: boolean day_of_the_week?: boolean start_time?: boolean end_time?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["shifts_of_template"]> export type shifts_of_templateSelectScalar = { id?: boolean model_id?: boolean day_of_the_week?: boolean start_time?: boolean end_time?: boolean created_at?: boolean updated_at?: boolean } export type shifts_of_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "model_id" | "day_of_the_week" | "start_time" | "end_time" | "created_at" | "updated_at", ExtArgs["result"]["shifts_of_template"]> export type $shifts_of_templatePayload = { name: "shifts_of_template" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string model_id: string day_of_the_week: string start_time: bigint end_time: bigint created_at: bigint updated_at: bigint }, ExtArgs["result"]["shifts_of_template"]> composites: {} } export type shifts_of_templateGetPayload = runtime.Types.Result.GetResult export type shifts_of_templateCountArgs = Omit & { select?: Shifts_of_templateCountAggregateInputType | true } export interface shifts_of_templateDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['shifts_of_template'], meta: { name: 'shifts_of_template' } } /** * Find zero or one Shifts_of_template that matches the filter. * @param {shifts_of_templateFindUniqueArgs} args - Arguments to find a Shifts_of_template * @example * // Get one Shifts_of_template * const shifts_of_template = await prisma.shifts_of_template.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Shifts_of_template that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {shifts_of_templateFindUniqueOrThrowArgs} args - Arguments to find a Shifts_of_template * @example * // Get one Shifts_of_template * const shifts_of_template = await prisma.shifts_of_template.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Shifts_of_template 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 {shifts_of_templateFindFirstArgs} args - Arguments to find a Shifts_of_template * @example * // Get one Shifts_of_template * const shifts_of_template = await prisma.shifts_of_template.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Shifts_of_template 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 {shifts_of_templateFindFirstOrThrowArgs} args - Arguments to find a Shifts_of_template * @example * // Get one Shifts_of_template * const shifts_of_template = await prisma.shifts_of_template.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Shifts_of_templates 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 {shifts_of_templateFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Shifts_of_templates * const shifts_of_templates = await prisma.shifts_of_template.findMany() * * // Get first 10 Shifts_of_templates * const shifts_of_templates = await prisma.shifts_of_template.findMany({ take: 10 }) * * // Only select the `id` * const shifts_of_templateWithIdOnly = await prisma.shifts_of_template.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Shifts_of_template. * @param {shifts_of_templateCreateArgs} args - Arguments to create a Shifts_of_template. * @example * // Create one Shifts_of_template * const Shifts_of_template = await prisma.shifts_of_template.create({ * data: { * // ... data to create a Shifts_of_template * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Shifts_of_templates. * @param {shifts_of_templateCreateManyArgs} args - Arguments to create many Shifts_of_templates. * @example * // Create many Shifts_of_templates * const shifts_of_template = await prisma.shifts_of_template.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Shifts_of_templates and returns the data saved in the database. * @param {shifts_of_templateCreateManyAndReturnArgs} args - Arguments to create many Shifts_of_templates. * @example * // Create many Shifts_of_templates * const shifts_of_template = await prisma.shifts_of_template.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Shifts_of_templates and only return the `id` * const shifts_of_templateWithIdOnly = await prisma.shifts_of_template.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 Shifts_of_template. * @param {shifts_of_templateDeleteArgs} args - Arguments to delete one Shifts_of_template. * @example * // Delete one Shifts_of_template * const Shifts_of_template = await prisma.shifts_of_template.delete({ * where: { * // ... filter to delete one Shifts_of_template * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Shifts_of_template. * @param {shifts_of_templateUpdateArgs} args - Arguments to update one Shifts_of_template. * @example * // Update one Shifts_of_template * const shifts_of_template = await prisma.shifts_of_template.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Shifts_of_templates. * @param {shifts_of_templateDeleteManyArgs} args - Arguments to filter Shifts_of_templates to delete. * @example * // Delete a few Shifts_of_templates * const { count } = await prisma.shifts_of_template.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Shifts_of_templates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {shifts_of_templateUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Shifts_of_templates * const shifts_of_template = await prisma.shifts_of_template.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Shifts_of_templates and returns the data updated in the database. * @param {shifts_of_templateUpdateManyAndReturnArgs} args - Arguments to update many Shifts_of_templates. * @example * // Update many Shifts_of_templates * const shifts_of_template = await prisma.shifts_of_template.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Shifts_of_templates and only return the `id` * const shifts_of_templateWithIdOnly = await prisma.shifts_of_template.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 Shifts_of_template. * @param {shifts_of_templateUpsertArgs} args - Arguments to update or create a Shifts_of_template. * @example * // Update or create a Shifts_of_template * const shifts_of_template = await prisma.shifts_of_template.upsert({ * create: { * // ... data to create a Shifts_of_template * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Shifts_of_template we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Shifts_of_templates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {shifts_of_templateCountArgs} args - Arguments to filter Shifts_of_templates to count. * @example * // Count the number of Shifts_of_templates * const count = await prisma.shifts_of_template.count({ * where: { * // ... the filter for the Shifts_of_templates 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 Shifts_of_template. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Shifts_of_templateAggregateArgs} 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 Shifts_of_template. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {shifts_of_templateGroupByArgs} 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 shifts_of_templateGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: shifts_of_templateGroupByArgs['orderBy'] } : { orderBy?: shifts_of_templateGroupByArgs['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 ? GetShifts_of_templateGroupByPayload : Prisma.PrismaPromise /** * Fields of the shifts_of_template model */ readonly fields: shifts_of_templateFieldRefs; } /** * The delegate class that acts as a "Promise-like" for shifts_of_template. * 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__shifts_of_templateClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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 shifts_of_template model */ export interface shifts_of_templateFieldRefs { readonly id: Prisma.FieldRef<"shifts_of_template", 'String'> readonly model_id: Prisma.FieldRef<"shifts_of_template", 'String'> readonly day_of_the_week: Prisma.FieldRef<"shifts_of_template", 'String'> readonly start_time: Prisma.FieldRef<"shifts_of_template", 'BigInt'> readonly end_time: Prisma.FieldRef<"shifts_of_template", 'BigInt'> readonly created_at: Prisma.FieldRef<"shifts_of_template", 'BigInt'> readonly updated_at: Prisma.FieldRef<"shifts_of_template", 'BigInt'> } // Custom InputTypes /** * shifts_of_template findUnique */ export type shifts_of_templateFindUniqueArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * Filter, which shifts_of_template to fetch. */ where: Prisma.shifts_of_templateWhereUniqueInput } /** * shifts_of_template findUniqueOrThrow */ export type shifts_of_templateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * Filter, which shifts_of_template to fetch. */ where: Prisma.shifts_of_templateWhereUniqueInput } /** * shifts_of_template findFirst */ export type shifts_of_templateFindFirstArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * Filter, which shifts_of_template to fetch. */ where?: Prisma.shifts_of_templateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of shifts_of_templates to fetch. */ orderBy?: Prisma.shifts_of_templateOrderByWithRelationInput | Prisma.shifts_of_templateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for shifts_of_templates. */ cursor?: Prisma.shifts_of_templateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` shifts_of_templates 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` shifts_of_templates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of shifts_of_templates. */ distinct?: Prisma.Shifts_of_templateScalarFieldEnum | Prisma.Shifts_of_templateScalarFieldEnum[] } /** * shifts_of_template findFirstOrThrow */ export type shifts_of_templateFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * Filter, which shifts_of_template to fetch. */ where?: Prisma.shifts_of_templateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of shifts_of_templates to fetch. */ orderBy?: Prisma.shifts_of_templateOrderByWithRelationInput | Prisma.shifts_of_templateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for shifts_of_templates. */ cursor?: Prisma.shifts_of_templateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` shifts_of_templates 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` shifts_of_templates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of shifts_of_templates. */ distinct?: Prisma.Shifts_of_templateScalarFieldEnum | Prisma.Shifts_of_templateScalarFieldEnum[] } /** * shifts_of_template findMany */ export type shifts_of_templateFindManyArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * Filter, which shifts_of_templates to fetch. */ where?: Prisma.shifts_of_templateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of shifts_of_templates to fetch. */ orderBy?: Prisma.shifts_of_templateOrderByWithRelationInput | Prisma.shifts_of_templateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing shifts_of_templates. */ cursor?: Prisma.shifts_of_templateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` shifts_of_templates 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` shifts_of_templates. */ skip?: number distinct?: Prisma.Shifts_of_templateScalarFieldEnum | Prisma.Shifts_of_templateScalarFieldEnum[] } /** * shifts_of_template create */ export type shifts_of_templateCreateArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * The data needed to create a shifts_of_template. */ data: Prisma.XOR } /** * shifts_of_template createMany */ export type shifts_of_templateCreateManyArgs = { /** * The data used to create many shifts_of_templates. */ data: Prisma.shifts_of_templateCreateManyInput | Prisma.shifts_of_templateCreateManyInput[] skipDuplicates?: boolean } /** * shifts_of_template createManyAndReturn */ export type shifts_of_templateCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelectCreateManyAndReturn | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * The data used to create many shifts_of_templates. */ data: Prisma.shifts_of_templateCreateManyInput | Prisma.shifts_of_templateCreateManyInput[] skipDuplicates?: boolean } /** * shifts_of_template update */ export type shifts_of_templateUpdateArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * The data needed to update a shifts_of_template. */ data: Prisma.XOR /** * Choose, which shifts_of_template to update. */ where: Prisma.shifts_of_templateWhereUniqueInput } /** * shifts_of_template updateMany */ export type shifts_of_templateUpdateManyArgs = { /** * The data used to update shifts_of_templates. */ data: Prisma.XOR /** * Filter which shifts_of_templates to update */ where?: Prisma.shifts_of_templateWhereInput /** * Limit how many shifts_of_templates to update. */ limit?: number } /** * shifts_of_template updateManyAndReturn */ export type shifts_of_templateUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelectUpdateManyAndReturn | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * The data used to update shifts_of_templates. */ data: Prisma.XOR /** * Filter which shifts_of_templates to update */ where?: Prisma.shifts_of_templateWhereInput /** * Limit how many shifts_of_templates to update. */ limit?: number } /** * shifts_of_template upsert */ export type shifts_of_templateUpsertArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * The filter to search for the shifts_of_template to update in case it exists. */ where: Prisma.shifts_of_templateWhereUniqueInput /** * In case the shifts_of_template found by the `where` argument doesn't exist, create a new shifts_of_template with this data. */ create: Prisma.XOR /** * In case the shifts_of_template was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * shifts_of_template delete */ export type shifts_of_templateDeleteArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null /** * Filter which shifts_of_template to delete. */ where: Prisma.shifts_of_templateWhereUniqueInput } /** * shifts_of_template deleteMany */ export type shifts_of_templateDeleteManyArgs = { /** * Filter which shifts_of_templates to delete */ where?: Prisma.shifts_of_templateWhereInput /** * Limit how many shifts_of_templates to delete. */ limit?: number } /** * shifts_of_template without action */ export type shifts_of_templateDefaultArgs = { /** * Select specific fields to fetch from the shifts_of_template */ select?: Prisma.shifts_of_templateSelect | null /** * Omit specific fields from the shifts_of_template */ omit?: Prisma.shifts_of_templateOmit | null }