/* !!! 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` 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 * */ export type shiftsModel = runtime.Types.Result.DefaultSelection export type AggregateShifts = { _count: ShiftsCountAggregateOutputType | null _avg: ShiftsAvgAggregateOutputType | null _sum: ShiftsSumAggregateOutputType | null _min: ShiftsMinAggregateOutputType | null _max: ShiftsMaxAggregateOutputType | null } export type ShiftsAvgAggregateOutputType = { start_time: number | null end_time: number | null created_at: number | null updated_at: number | null } export type ShiftsSumAggregateOutputType = { start_time: bigint | null end_time: bigint | null created_at: bigint | null updated_at: bigint | null } export type ShiftsMinAggregateOutputType = { id: string | null time_sheet_id: string | null code: string | null type: string | null date: Date | null start_time: bigint | null end_time: bigint | null comment: string | null status: boolean | null created_at: bigint | null updated_at: bigint | null supervisor_note: string | null } export type ShiftsMaxAggregateOutputType = { id: string | null time_sheet_id: string | null code: string | null type: string | null date: Date | null start_time: bigint | null end_time: bigint | null comment: string | null status: boolean | null created_at: bigint | null updated_at: bigint | null supervisor_note: string | null } export type ShiftsCountAggregateOutputType = { id: number time_sheet_id: number code: number type: number date: number start_time: number end_time: number comment: number status: number created_at: number updated_at: number supervisor_note: number _all: number } export type ShiftsAvgAggregateInputType = { start_time?: true end_time?: true created_at?: true updated_at?: true } export type ShiftsSumAggregateInputType = { start_time?: true end_time?: true created_at?: true updated_at?: true } export type ShiftsMinAggregateInputType = { id?: true time_sheet_id?: true code?: true type?: true date?: true start_time?: true end_time?: true comment?: true status?: true created_at?: true updated_at?: true supervisor_note?: true } export type ShiftsMaxAggregateInputType = { id?: true time_sheet_id?: true code?: true type?: true date?: true start_time?: true end_time?: true comment?: true status?: true created_at?: true updated_at?: true supervisor_note?: true } export type ShiftsCountAggregateInputType = { id?: true time_sheet_id?: true code?: true type?: true date?: true start_time?: true end_time?: true comment?: true status?: true created_at?: true updated_at?: true supervisor_note?: true _all?: true } export type ShiftsAggregateArgs = { /** * Filter which shifts to aggregate. */ where?: Prisma.shiftsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of shifts to fetch. */ orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.shiftsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` shifts 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. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned shifts **/ _count?: true | ShiftsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ShiftsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ShiftsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ShiftsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ShiftsMaxAggregateInputType } export type GetShiftsAggregateType = { [P in keyof T & keyof AggregateShifts]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type shiftsGroupByArgs = { where?: Prisma.shiftsWhereInput orderBy?: Prisma.shiftsOrderByWithAggregationInput | Prisma.shiftsOrderByWithAggregationInput[] by: Prisma.ShiftsScalarFieldEnum[] | Prisma.ShiftsScalarFieldEnum having?: Prisma.shiftsScalarWhereWithAggregatesInput take?: number skip?: number _count?: ShiftsCountAggregateInputType | true _avg?: ShiftsAvgAggregateInputType _sum?: ShiftsSumAggregateInputType _min?: ShiftsMinAggregateInputType _max?: ShiftsMaxAggregateInputType } export type ShiftsGroupByOutputType = { id: string time_sheet_id: string | null code: string | null type: string | null date: Date | null start_time: bigint | null end_time: bigint | null comment: string | null status: boolean | null created_at: bigint | null updated_at: bigint | null supervisor_note: string | null _count: ShiftsCountAggregateOutputType | null _avg: ShiftsAvgAggregateOutputType | null _sum: ShiftsSumAggregateOutputType | null _min: ShiftsMinAggregateOutputType | null _max: ShiftsMaxAggregateOutputType | null } type GetShiftsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ShiftsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type shiftsWhereInput = { AND?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[] OR?: Prisma.shiftsWhereInput[] NOT?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[] id?: Prisma.UuidFilter<"shifts"> | string time_sheet_id?: Prisma.StringNullableFilter<"shifts"> | string | null code?: Prisma.StringNullableFilter<"shifts"> | string | null type?: Prisma.StringNullableFilter<"shifts"> | string | null date?: Prisma.DateTimeNullableFilter<"shifts"> | Date | string | null start_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null end_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null comment?: Prisma.StringNullableFilter<"shifts"> | string | null status?: Prisma.BoolNullableFilter<"shifts"> | boolean | null created_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null supervisor_note?: Prisma.StringNullableFilter<"shifts"> | string | null } export type shiftsOrderByWithRelationInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder code?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrderInput | Prisma.SortOrder date?: Prisma.SortOrderInput | Prisma.SortOrder start_time?: Prisma.SortOrderInput | Prisma.SortOrder end_time?: Prisma.SortOrderInput | Prisma.SortOrder comment?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder } export type shiftsWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[] OR?: Prisma.shiftsWhereInput[] NOT?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[] time_sheet_id?: Prisma.StringNullableFilter<"shifts"> | string | null code?: Prisma.StringNullableFilter<"shifts"> | string | null type?: Prisma.StringNullableFilter<"shifts"> | string | null date?: Prisma.DateTimeNullableFilter<"shifts"> | Date | string | null start_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null end_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null comment?: Prisma.StringNullableFilter<"shifts"> | string | null status?: Prisma.BoolNullableFilter<"shifts"> | boolean | null created_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null supervisor_note?: Prisma.StringNullableFilter<"shifts"> | string | null }, "id"> export type shiftsOrderByWithAggregationInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder code?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrderInput | Prisma.SortOrder date?: Prisma.SortOrderInput | Prisma.SortOrder start_time?: Prisma.SortOrderInput | Prisma.SortOrder end_time?: Prisma.SortOrderInput | Prisma.SortOrder comment?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.shiftsCountOrderByAggregateInput _avg?: Prisma.shiftsAvgOrderByAggregateInput _max?: Prisma.shiftsMaxOrderByAggregateInput _min?: Prisma.shiftsMinOrderByAggregateInput _sum?: Prisma.shiftsSumOrderByAggregateInput } export type shiftsScalarWhereWithAggregatesInput = { AND?: Prisma.shiftsScalarWhereWithAggregatesInput | Prisma.shiftsScalarWhereWithAggregatesInput[] OR?: Prisma.shiftsScalarWhereWithAggregatesInput[] NOT?: Prisma.shiftsScalarWhereWithAggregatesInput | Prisma.shiftsScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"shifts"> | string time_sheet_id?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null code?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null type?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null date?: Prisma.DateTimeNullableWithAggregatesFilter<"shifts"> | Date | string | null start_time?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null end_time?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null comment?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null status?: Prisma.BoolNullableWithAggregatesFilter<"shifts"> | boolean | null created_at?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null supervisor_note?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null } export type shiftsCreateInput = { id: string time_sheet_id?: string | null code?: string | null type?: string | null date?: Date | string | null start_time?: bigint | number | null end_time?: bigint | number | null comment?: string | null status?: boolean | null created_at?: bigint | number | null updated_at?: bigint | number | null supervisor_note?: string | null } export type shiftsUncheckedCreateInput = { id: string time_sheet_id?: string | null code?: string | null type?: string | null date?: Date | string | null start_time?: bigint | number | null end_time?: bigint | number | null comment?: string | null status?: boolean | null created_at?: bigint | number | null updated_at?: bigint | number | null supervisor_note?: string | null } export type shiftsUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type shiftsUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type shiftsCreateManyInput = { id: string time_sheet_id?: string | null code?: string | null type?: string | null date?: Date | string | null start_time?: bigint | number | null end_time?: bigint | number | null comment?: string | null status?: boolean | null created_at?: bigint | number | null updated_at?: bigint | number | null supervisor_note?: string | null } export type shiftsUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type shiftsUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type shiftsCountOrderByAggregateInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrder code?: Prisma.SortOrder type?: Prisma.SortOrder date?: Prisma.SortOrder start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder comment?: Prisma.SortOrder status?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder supervisor_note?: Prisma.SortOrder } export type shiftsAvgOrderByAggregateInput = { start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type shiftsMaxOrderByAggregateInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrder code?: Prisma.SortOrder type?: Prisma.SortOrder date?: Prisma.SortOrder start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder comment?: Prisma.SortOrder status?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder supervisor_note?: Prisma.SortOrder } export type shiftsMinOrderByAggregateInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrder code?: Prisma.SortOrder type?: Prisma.SortOrder date?: Prisma.SortOrder start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder comment?: Prisma.SortOrder status?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder supervisor_note?: Prisma.SortOrder } export type shiftsSumOrderByAggregateInput = { start_time?: Prisma.SortOrder end_time?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type shiftsSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean time_sheet_id?: boolean code?: boolean type?: boolean date?: boolean start_time?: boolean end_time?: boolean comment?: boolean status?: boolean created_at?: boolean updated_at?: boolean supervisor_note?: boolean }, ExtArgs["result"]["shifts"]> export type shiftsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean time_sheet_id?: boolean code?: boolean type?: boolean date?: boolean start_time?: boolean end_time?: boolean comment?: boolean status?: boolean created_at?: boolean updated_at?: boolean supervisor_note?: boolean }, ExtArgs["result"]["shifts"]> export type shiftsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean time_sheet_id?: boolean code?: boolean type?: boolean date?: boolean start_time?: boolean end_time?: boolean comment?: boolean status?: boolean created_at?: boolean updated_at?: boolean supervisor_note?: boolean }, ExtArgs["result"]["shifts"]> export type shiftsSelectScalar = { id?: boolean time_sheet_id?: boolean code?: boolean type?: boolean date?: boolean start_time?: boolean end_time?: boolean comment?: boolean status?: boolean created_at?: boolean updated_at?: boolean supervisor_note?: boolean } export type shiftsOmit = runtime.Types.Extensions.GetOmit<"id" | "time_sheet_id" | "code" | "type" | "date" | "start_time" | "end_time" | "comment" | "status" | "created_at" | "updated_at" | "supervisor_note", ExtArgs["result"]["shifts"]> export type $shiftsPayload = { name: "shifts" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string time_sheet_id: string | null code: string | null type: string | null date: Date | null start_time: bigint | null end_time: bigint | null comment: string | null status: boolean | null created_at: bigint | null updated_at: bigint | null supervisor_note: string | null }, ExtArgs["result"]["shifts"]> composites: {} } export type shiftsGetPayload = runtime.Types.Result.GetResult export type shiftsCountArgs = Omit & { select?: ShiftsCountAggregateInputType | true } export interface shiftsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['shifts'], meta: { name: 'shifts' } } /** * Find zero or one Shifts that matches the filter. * @param {shiftsFindUniqueArgs} args - Arguments to find a Shifts * @example * // Get one Shifts * const shifts = await prisma.shifts.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Shifts that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {shiftsFindUniqueOrThrowArgs} args - Arguments to find a Shifts * @example * // Get one Shifts * const shifts = await prisma.shifts.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Shifts 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 {shiftsFindFirstArgs} args - Arguments to find a Shifts * @example * // Get one Shifts * const shifts = await prisma.shifts.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Shifts 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 {shiftsFindFirstOrThrowArgs} args - Arguments to find a Shifts * @example * // Get one Shifts * const shifts = await prisma.shifts.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Shifts 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 {shiftsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Shifts * const shifts = await prisma.shifts.findMany() * * // Get first 10 Shifts * const shifts = await prisma.shifts.findMany({ take: 10 }) * * // Only select the `id` * const shiftsWithIdOnly = await prisma.shifts.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Shifts. * @param {shiftsCreateArgs} args - Arguments to create a Shifts. * @example * // Create one Shifts * const Shifts = await prisma.shifts.create({ * data: { * // ... data to create a Shifts * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Shifts. * @param {shiftsCreateManyArgs} args - Arguments to create many Shifts. * @example * // Create many Shifts * const shifts = await prisma.shifts.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Shifts and returns the data saved in the database. * @param {shiftsCreateManyAndReturnArgs} args - Arguments to create many Shifts. * @example * // Create many Shifts * const shifts = await prisma.shifts.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Shifts and only return the `id` * const shiftsWithIdOnly = await prisma.shifts.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. * @param {shiftsDeleteArgs} args - Arguments to delete one Shifts. * @example * // Delete one Shifts * const Shifts = await prisma.shifts.delete({ * where: { * // ... filter to delete one Shifts * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Shifts. * @param {shiftsUpdateArgs} args - Arguments to update one Shifts. * @example * // Update one Shifts * const shifts = await prisma.shifts.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Shifts. * @param {shiftsDeleteManyArgs} args - Arguments to filter Shifts to delete. * @example * // Delete a few Shifts * const { count } = await prisma.shifts.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Shifts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {shiftsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Shifts * const shifts = await prisma.shifts.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Shifts and returns the data updated in the database. * @param {shiftsUpdateManyAndReturnArgs} args - Arguments to update many Shifts. * @example * // Update many Shifts * const shifts = await prisma.shifts.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Shifts and only return the `id` * const shiftsWithIdOnly = await prisma.shifts.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. * @param {shiftsUpsertArgs} args - Arguments to update or create a Shifts. * @example * // Update or create a Shifts * const shifts = await prisma.shifts.upsert({ * create: { * // ... data to create a Shifts * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Shifts we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Shifts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {shiftsCountArgs} args - Arguments to filter Shifts to count. * @example * // Count the number of Shifts * const count = await prisma.shifts.count({ * where: { * // ... the filter for the Shifts 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. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShiftsAggregateArgs} 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. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {shiftsGroupByArgs} 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 shiftsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: shiftsGroupByArgs['orderBy'] } : { orderBy?: shiftsGroupByArgs['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 ? GetShiftsGroupByPayload : Prisma.PrismaPromise /** * Fields of the shifts model */ readonly fields: shiftsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for shifts. * 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__shiftsClient 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 model */ export interface shiftsFieldRefs { readonly id: Prisma.FieldRef<"shifts", 'String'> readonly time_sheet_id: Prisma.FieldRef<"shifts", 'String'> readonly code: Prisma.FieldRef<"shifts", 'String'> readonly type: Prisma.FieldRef<"shifts", 'String'> readonly date: Prisma.FieldRef<"shifts", 'DateTime'> readonly start_time: Prisma.FieldRef<"shifts", 'BigInt'> readonly end_time: Prisma.FieldRef<"shifts", 'BigInt'> readonly comment: Prisma.FieldRef<"shifts", 'String'> readonly status: Prisma.FieldRef<"shifts", 'Boolean'> readonly created_at: Prisma.FieldRef<"shifts", 'BigInt'> readonly updated_at: Prisma.FieldRef<"shifts", 'BigInt'> readonly supervisor_note: Prisma.FieldRef<"shifts", 'String'> } // Custom InputTypes /** * shifts findUnique */ export type shiftsFindUniqueArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * Filter, which shifts to fetch. */ where: Prisma.shiftsWhereUniqueInput } /** * shifts findUniqueOrThrow */ export type shiftsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * Filter, which shifts to fetch. */ where: Prisma.shiftsWhereUniqueInput } /** * shifts findFirst */ export type shiftsFindFirstArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * Filter, which shifts to fetch. */ where?: Prisma.shiftsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of shifts to fetch. */ orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for shifts. */ cursor?: Prisma.shiftsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` shifts 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. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of shifts. */ distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] } /** * shifts findFirstOrThrow */ export type shiftsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * Filter, which shifts to fetch. */ where?: Prisma.shiftsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of shifts to fetch. */ orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for shifts. */ cursor?: Prisma.shiftsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` shifts 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. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of shifts. */ distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] } /** * shifts findMany */ export type shiftsFindManyArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * Filter, which shifts to fetch. */ where?: Prisma.shiftsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of shifts to fetch. */ orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing shifts. */ cursor?: Prisma.shiftsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` shifts 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. */ skip?: number distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] } /** * shifts create */ export type shiftsCreateArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * The data needed to create a shifts. */ data: Prisma.XOR } /** * shifts createMany */ export type shiftsCreateManyArgs = { /** * The data used to create many shifts. */ data: Prisma.shiftsCreateManyInput | Prisma.shiftsCreateManyInput[] skipDuplicates?: boolean } /** * shifts createManyAndReturn */ export type shiftsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelectCreateManyAndReturn | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * The data used to create many shifts. */ data: Prisma.shiftsCreateManyInput | Prisma.shiftsCreateManyInput[] skipDuplicates?: boolean } /** * shifts update */ export type shiftsUpdateArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * The data needed to update a shifts. */ data: Prisma.XOR /** * Choose, which shifts to update. */ where: Prisma.shiftsWhereUniqueInput } /** * shifts updateMany */ export type shiftsUpdateManyArgs = { /** * The data used to update shifts. */ data: Prisma.XOR /** * Filter which shifts to update */ where?: Prisma.shiftsWhereInput /** * Limit how many shifts to update. */ limit?: number } /** * shifts updateManyAndReturn */ export type shiftsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelectUpdateManyAndReturn | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * The data used to update shifts. */ data: Prisma.XOR /** * Filter which shifts to update */ where?: Prisma.shiftsWhereInput /** * Limit how many shifts to update. */ limit?: number } /** * shifts upsert */ export type shiftsUpsertArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * The filter to search for the shifts to update in case it exists. */ where: Prisma.shiftsWhereUniqueInput /** * In case the shifts found by the `where` argument doesn't exist, create a new shifts with this data. */ create: Prisma.XOR /** * In case the shifts was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * shifts delete */ export type shiftsDeleteArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null /** * Filter which shifts to delete. */ where: Prisma.shiftsWhereUniqueInput } /** * shifts deleteMany */ export type shiftsDeleteManyArgs = { /** * Filter which shifts to delete */ where?: Prisma.shiftsWhereInput /** * Limit how many shifts to delete. */ limit?: number } /** * shifts without action */ export type shiftsDefaultArgs = { /** * Select specific fields to fetch from the shifts */ select?: Prisma.shiftsSelect | null /** * Omit specific fields from the shifts */ omit?: Prisma.shiftsOmit | null }