/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `employee_shift_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 employee_shift_template * */ export type employee_shift_templateModel = runtime.Types.Result.DefaultSelection export type AggregateEmployee_shift_template = { _count: Employee_shift_templateCountAggregateOutputType | null _avg: Employee_shift_templateAvgAggregateOutputType | null _sum: Employee_shift_templateSumAggregateOutputType | null _min: Employee_shift_templateMinAggregateOutputType | null _max: Employee_shift_templateMaxAggregateOutputType | null } export type Employee_shift_templateAvgAggregateOutputType = { start_time: number | null end_time: number | null created_at: number | null updated_at: number | null } export type Employee_shift_templateSumAggregateOutputType = { start_time: bigint | null end_time: bigint | null created_at: bigint | null updated_at: bigint | null } export type Employee_shift_templateMinAggregateOutputType = { id: string | null employee_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 Employee_shift_templateMaxAggregateOutputType = { id: string | null employee_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 Employee_shift_templateCountAggregateOutputType = { id: number employee_id: number day_of_the_week: number start_time: number end_time: number created_at: number updated_at: number _all: number } export type Employee_shift_templateAvgAggregateInputType = { start_time?: true end_time?: true created_at?: true updated_at?: true } export type Employee_shift_templateSumAggregateInputType = { start_time?: true end_time?: true created_at?: true updated_at?: true } export type Employee_shift_templateMinAggregateInputType = { id?: true employee_id?: true day_of_the_week?: true start_time?: true end_time?: true created_at?: true updated_at?: true } export type Employee_shift_templateMaxAggregateInputType = { id?: true employee_id?: true day_of_the_week?: true start_time?: true end_time?: true created_at?: true updated_at?: true } export type Employee_shift_templateCountAggregateInputType = { id?: true employee_id?: true day_of_the_week?: true start_time?: true end_time?: true created_at?: true updated_at?: true _all?: true } export type Employee_shift_templateAggregateArgs = { /** * Filter which employee_shift_template to aggregate. */ where?: Prisma.employee_shift_templateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of employee_shift_templates to fetch. */ orderBy?: Prisma.employee_shift_templateOrderByWithRelationInput | Prisma.employee_shift_templateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.employee_shift_templateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` employee_shift_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` employee_shift_templates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned employee_shift_templates **/ _count?: true | Employee_shift_templateCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Employee_shift_templateAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Employee_shift_templateSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Employee_shift_templateMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Employee_shift_templateMaxAggregateInputType } export type GetEmployee_shift_templateAggregateType = { [P in keyof T & keyof AggregateEmployee_shift_template]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type employee_shift_templateGroupByArgs = { where?: Prisma.employee_shift_templateWhereInput orderBy?: Prisma.employee_shift_templateOrderByWithAggregationInput | Prisma.employee_shift_templateOrderByWithAggregationInput[] by: Prisma.Employee_shift_templateScalarFieldEnum[] | Prisma.Employee_shift_templateScalarFieldEnum having?: Prisma.employee_shift_templateScalarWhereWithAggregatesInput take?: number skip?: number _count?: Employee_shift_templateCountAggregateInputType | true _avg?: Employee_shift_templateAvgAggregateInputType _sum?: Employee_shift_templateSumAggregateInputType _min?: Employee_shift_templateMinAggregateInputType _max?: Employee_shift_templateMaxAggregateInputType } export type Employee_shift_templateGroupByOutputType = { id: string employee_id: string day_of_the_week: string start_time: bigint end_time: bigint created_at: bigint updated_at: bigint _count: Employee_shift_templateCountAggregateOutputType | null _avg: Employee_shift_templateAvgAggregateOutputType | null _sum: Employee_shift_templateSumAggregateOutputType | null _min: Employee_shift_templateMinAggregateOutputType | null _max: Employee_shift_templateMaxAggregateOutputType | null } type GetEmployee_shift_templateGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Employee_shift_templateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type employee_shift_templateWhereInput = { AND?: Prisma.employee_shift_templateWhereInput | Prisma.employee_shift_templateWhereInput[] OR?: Prisma.employee_shift_templateWhereInput[] NOT?: Prisma.employee_shift_templateWhereInput | Prisma.employee_shift_templateWhereInput[] id?: Prisma.UuidFilter<"employee_shift_template"> | string employee_id?: Prisma.StringFilter<"employee_shift_template"> | string day_of_the_week?: Prisma.StringFilter<"employee_shift_template"> | string start_time?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number end_time?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number created_at?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number updated_at?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number } export type employee_shift_templateOrderByWithRelationInput = { id?: Prisma.SortOrder employee_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 employee_shift_templateWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.employee_shift_templateWhereInput | Prisma.employee_shift_templateWhereInput[] OR?: Prisma.employee_shift_templateWhereInput[] NOT?: Prisma.employee_shift_templateWhereInput | Prisma.employee_shift_templateWhereInput[] employee_id?: Prisma.StringFilter<"employee_shift_template"> | string day_of_the_week?: Prisma.StringFilter<"employee_shift_template"> | string start_time?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number end_time?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number created_at?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number updated_at?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number }, "id"> export type employee_shift_templateOrderByWithAggregationInput = { id?: Prisma.SortOrder employee_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.employee_shift_templateCountOrderByAggregateInput _avg?: Prisma.employee_shift_templateAvgOrderByAggregateInput _max?: Prisma.employee_shift_templateMaxOrderByAggregateInput _min?: Prisma.employee_shift_templateMinOrderByAggregateInput _sum?: Prisma.employee_shift_templateSumOrderByAggregateInput } export type employee_shift_templateScalarWhereWithAggregatesInput = { AND?: Prisma.employee_shift_templateScalarWhereWithAggregatesInput | Prisma.employee_shift_templateScalarWhereWithAggregatesInput[] OR?: Prisma.employee_shift_templateScalarWhereWithAggregatesInput[] NOT?: Prisma.employee_shift_templateScalarWhereWithAggregatesInput | Prisma.employee_shift_templateScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"employee_shift_template"> | string employee_id?: Prisma.StringWithAggregatesFilter<"employee_shift_template"> | string day_of_the_week?: Prisma.StringWithAggregatesFilter<"employee_shift_template"> | string start_time?: Prisma.BigIntWithAggregatesFilter<"employee_shift_template"> | bigint | number end_time?: Prisma.BigIntWithAggregatesFilter<"employee_shift_template"> | bigint | number created_at?: Prisma.BigIntWithAggregatesFilter<"employee_shift_template"> | bigint | number updated_at?: Prisma.BigIntWithAggregatesFilter<"employee_shift_template"> | bigint | number } export type employee_shift_templateCreateInput = { id: string employee_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 employee_shift_templateUncheckedCreateInput = { id: string employee_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 employee_shift_templateUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_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 employee_shift_templateUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_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 employee_shift_templateCreateManyInput = { id: string employee_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 employee_shift_templateUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_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 employee_shift_templateUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_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 employee_shift_templateCountOrderByAggregateInput = { id?: Prisma.SortOrder employee_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 employee_shift_templateAvgOrderByAggregateInput = { start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type employee_shift_templateMaxOrderByAggregateInput = { id?: Prisma.SortOrder employee_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 employee_shift_templateMinOrderByAggregateInput = { id?: Prisma.SortOrder employee_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 employee_shift_templateSumOrderByAggregateInput = { start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type BigIntFieldUpdateOperationsInput = { set?: bigint | number increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type employee_shift_templateSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean day_of_the_week?: boolean start_time?: boolean end_time?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["employee_shift_template"]> export type employee_shift_templateSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean day_of_the_week?: boolean start_time?: boolean end_time?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["employee_shift_template"]> export type employee_shift_templateSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean day_of_the_week?: boolean start_time?: boolean end_time?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["employee_shift_template"]> export type employee_shift_templateSelectScalar = { id?: boolean employee_id?: boolean day_of_the_week?: boolean start_time?: boolean end_time?: boolean created_at?: boolean updated_at?: boolean } export type employee_shift_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "day_of_the_week" | "start_time" | "end_time" | "created_at" | "updated_at", ExtArgs["result"]["employee_shift_template"]> export type $employee_shift_templatePayload = { name: "employee_shift_template" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string employee_id: string day_of_the_week: string start_time: bigint end_time: bigint created_at: bigint updated_at: bigint }, ExtArgs["result"]["employee_shift_template"]> composites: {} } export type employee_shift_templateGetPayload = runtime.Types.Result.GetResult export type employee_shift_templateCountArgs = Omit & { select?: Employee_shift_templateCountAggregateInputType | true } export interface employee_shift_templateDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['employee_shift_template'], meta: { name: 'employee_shift_template' } } /** * Find zero or one Employee_shift_template that matches the filter. * @param {employee_shift_templateFindUniqueArgs} args - Arguments to find a Employee_shift_template * @example * // Get one Employee_shift_template * const employee_shift_template = await prisma.employee_shift_template.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Employee_shift_template that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {employee_shift_templateFindUniqueOrThrowArgs} args - Arguments to find a Employee_shift_template * @example * // Get one Employee_shift_template * const employee_shift_template = await prisma.employee_shift_template.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Employee_shift_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 {employee_shift_templateFindFirstArgs} args - Arguments to find a Employee_shift_template * @example * // Get one Employee_shift_template * const employee_shift_template = await prisma.employee_shift_template.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Employee_shift_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 {employee_shift_templateFindFirstOrThrowArgs} args - Arguments to find a Employee_shift_template * @example * // Get one Employee_shift_template * const employee_shift_template = await prisma.employee_shift_template.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Employee_shift_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 {employee_shift_templateFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Employee_shift_templates * const employee_shift_templates = await prisma.employee_shift_template.findMany() * * // Get first 10 Employee_shift_templates * const employee_shift_templates = await prisma.employee_shift_template.findMany({ take: 10 }) * * // Only select the `id` * const employee_shift_templateWithIdOnly = await prisma.employee_shift_template.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Employee_shift_template. * @param {employee_shift_templateCreateArgs} args - Arguments to create a Employee_shift_template. * @example * // Create one Employee_shift_template * const Employee_shift_template = await prisma.employee_shift_template.create({ * data: { * // ... data to create a Employee_shift_template * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Employee_shift_templates. * @param {employee_shift_templateCreateManyArgs} args - Arguments to create many Employee_shift_templates. * @example * // Create many Employee_shift_templates * const employee_shift_template = await prisma.employee_shift_template.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Employee_shift_templates and returns the data saved in the database. * @param {employee_shift_templateCreateManyAndReturnArgs} args - Arguments to create many Employee_shift_templates. * @example * // Create many Employee_shift_templates * const employee_shift_template = await prisma.employee_shift_template.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Employee_shift_templates and only return the `id` * const employee_shift_templateWithIdOnly = await prisma.employee_shift_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 Employee_shift_template. * @param {employee_shift_templateDeleteArgs} args - Arguments to delete one Employee_shift_template. * @example * // Delete one Employee_shift_template * const Employee_shift_template = await prisma.employee_shift_template.delete({ * where: { * // ... filter to delete one Employee_shift_template * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Employee_shift_template. * @param {employee_shift_templateUpdateArgs} args - Arguments to update one Employee_shift_template. * @example * // Update one Employee_shift_template * const employee_shift_template = await prisma.employee_shift_template.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Employee_shift_templates. * @param {employee_shift_templateDeleteManyArgs} args - Arguments to filter Employee_shift_templates to delete. * @example * // Delete a few Employee_shift_templates * const { count } = await prisma.employee_shift_template.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Employee_shift_templates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {employee_shift_templateUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Employee_shift_templates * const employee_shift_template = await prisma.employee_shift_template.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Employee_shift_templates and returns the data updated in the database. * @param {employee_shift_templateUpdateManyAndReturnArgs} args - Arguments to update many Employee_shift_templates. * @example * // Update many Employee_shift_templates * const employee_shift_template = await prisma.employee_shift_template.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Employee_shift_templates and only return the `id` * const employee_shift_templateWithIdOnly = await prisma.employee_shift_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 Employee_shift_template. * @param {employee_shift_templateUpsertArgs} args - Arguments to update or create a Employee_shift_template. * @example * // Update or create a Employee_shift_template * const employee_shift_template = await prisma.employee_shift_template.upsert({ * create: { * // ... data to create a Employee_shift_template * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Employee_shift_template we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Employee_shift_templates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {employee_shift_templateCountArgs} args - Arguments to filter Employee_shift_templates to count. * @example * // Count the number of Employee_shift_templates * const count = await prisma.employee_shift_template.count({ * where: { * // ... the filter for the Employee_shift_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 Employee_shift_template. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Employee_shift_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 Employee_shift_template. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {employee_shift_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 employee_shift_templateGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: employee_shift_templateGroupByArgs['orderBy'] } : { orderBy?: employee_shift_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 ? GetEmployee_shift_templateGroupByPayload : Prisma.PrismaPromise /** * Fields of the employee_shift_template model */ readonly fields: employee_shift_templateFieldRefs; } /** * The delegate class that acts as a "Promise-like" for employee_shift_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__employee_shift_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 employee_shift_template model */ export interface employee_shift_templateFieldRefs { readonly id: Prisma.FieldRef<"employee_shift_template", 'String'> readonly employee_id: Prisma.FieldRef<"employee_shift_template", 'String'> readonly day_of_the_week: Prisma.FieldRef<"employee_shift_template", 'String'> readonly start_time: Prisma.FieldRef<"employee_shift_template", 'BigInt'> readonly end_time: Prisma.FieldRef<"employee_shift_template", 'BigInt'> readonly created_at: Prisma.FieldRef<"employee_shift_template", 'BigInt'> readonly updated_at: Prisma.FieldRef<"employee_shift_template", 'BigInt'> } // Custom InputTypes /** * employee_shift_template findUnique */ export type employee_shift_templateFindUniqueArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * Filter, which employee_shift_template to fetch. */ where: Prisma.employee_shift_templateWhereUniqueInput } /** * employee_shift_template findUniqueOrThrow */ export type employee_shift_templateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * Filter, which employee_shift_template to fetch. */ where: Prisma.employee_shift_templateWhereUniqueInput } /** * employee_shift_template findFirst */ export type employee_shift_templateFindFirstArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * Filter, which employee_shift_template to fetch. */ where?: Prisma.employee_shift_templateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of employee_shift_templates to fetch. */ orderBy?: Prisma.employee_shift_templateOrderByWithRelationInput | Prisma.employee_shift_templateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for employee_shift_templates. */ cursor?: Prisma.employee_shift_templateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` employee_shift_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` employee_shift_templates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of employee_shift_templates. */ distinct?: Prisma.Employee_shift_templateScalarFieldEnum | Prisma.Employee_shift_templateScalarFieldEnum[] } /** * employee_shift_template findFirstOrThrow */ export type employee_shift_templateFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * Filter, which employee_shift_template to fetch. */ where?: Prisma.employee_shift_templateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of employee_shift_templates to fetch. */ orderBy?: Prisma.employee_shift_templateOrderByWithRelationInput | Prisma.employee_shift_templateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for employee_shift_templates. */ cursor?: Prisma.employee_shift_templateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` employee_shift_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` employee_shift_templates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of employee_shift_templates. */ distinct?: Prisma.Employee_shift_templateScalarFieldEnum | Prisma.Employee_shift_templateScalarFieldEnum[] } /** * employee_shift_template findMany */ export type employee_shift_templateFindManyArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * Filter, which employee_shift_templates to fetch. */ where?: Prisma.employee_shift_templateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of employee_shift_templates to fetch. */ orderBy?: Prisma.employee_shift_templateOrderByWithRelationInput | Prisma.employee_shift_templateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing employee_shift_templates. */ cursor?: Prisma.employee_shift_templateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` employee_shift_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` employee_shift_templates. */ skip?: number distinct?: Prisma.Employee_shift_templateScalarFieldEnum | Prisma.Employee_shift_templateScalarFieldEnum[] } /** * employee_shift_template create */ export type employee_shift_templateCreateArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * The data needed to create a employee_shift_template. */ data: Prisma.XOR } /** * employee_shift_template createMany */ export type employee_shift_templateCreateManyArgs = { /** * The data used to create many employee_shift_templates. */ data: Prisma.employee_shift_templateCreateManyInput | Prisma.employee_shift_templateCreateManyInput[] skipDuplicates?: boolean } /** * employee_shift_template createManyAndReturn */ export type employee_shift_templateCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelectCreateManyAndReturn | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * The data used to create many employee_shift_templates. */ data: Prisma.employee_shift_templateCreateManyInput | Prisma.employee_shift_templateCreateManyInput[] skipDuplicates?: boolean } /** * employee_shift_template update */ export type employee_shift_templateUpdateArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * The data needed to update a employee_shift_template. */ data: Prisma.XOR /** * Choose, which employee_shift_template to update. */ where: Prisma.employee_shift_templateWhereUniqueInput } /** * employee_shift_template updateMany */ export type employee_shift_templateUpdateManyArgs = { /** * The data used to update employee_shift_templates. */ data: Prisma.XOR /** * Filter which employee_shift_templates to update */ where?: Prisma.employee_shift_templateWhereInput /** * Limit how many employee_shift_templates to update. */ limit?: number } /** * employee_shift_template updateManyAndReturn */ export type employee_shift_templateUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelectUpdateManyAndReturn | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * The data used to update employee_shift_templates. */ data: Prisma.XOR /** * Filter which employee_shift_templates to update */ where?: Prisma.employee_shift_templateWhereInput /** * Limit how many employee_shift_templates to update. */ limit?: number } /** * employee_shift_template upsert */ export type employee_shift_templateUpsertArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * The filter to search for the employee_shift_template to update in case it exists. */ where: Prisma.employee_shift_templateWhereUniqueInput /** * In case the employee_shift_template found by the `where` argument doesn't exist, create a new employee_shift_template with this data. */ create: Prisma.XOR /** * In case the employee_shift_template was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * employee_shift_template delete */ export type employee_shift_templateDeleteArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null /** * Filter which employee_shift_template to delete. */ where: Prisma.employee_shift_templateWhereUniqueInput } /** * employee_shift_template deleteMany */ export type employee_shift_templateDeleteManyArgs = { /** * Filter which employee_shift_templates to delete */ where?: Prisma.employee_shift_templateWhereInput /** * Limit how many employee_shift_templates to delete. */ limit?: number } /** * employee_shift_template without action */ export type employee_shift_templateDefaultArgs = { /** * Select specific fields to fetch from the employee_shift_template */ select?: Prisma.employee_shift_templateSelect | null /** * Omit specific fields from the employee_shift_template */ omit?: Prisma.employee_shift_templateOmit | null }