/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `time_sheets` 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 time_sheets * */ export type time_sheetsModel = runtime.Types.Result.DefaultSelection export type AggregateTime_sheets = { _count: Time_sheetsCountAggregateOutputType | null _avg: Time_sheetsAvgAggregateOutputType | null _sum: Time_sheetsSumAggregateOutputType | null _min: Time_sheetsMinAggregateOutputType | null _max: Time_sheetsMaxAggregateOutputType | null } export type Time_sheetsAvgAggregateOutputType = { banked_hours: number | null consumed_vacation: number | null consumed_sick: number | null period_number: number | null created_at: number | null updated_at: number | null } export type Time_sheetsSumAggregateOutputType = { banked_hours: number | null consumed_vacation: number | null consumed_sick: number | null period_number: number | null created_at: bigint | null updated_at: bigint | null } export type Time_sheetsMinAggregateOutputType = { id: string | null employee_id: string | null start_date: Date | null end_date: Date | null status: boolean | null banked_hours: number | null consumed_vacation: number | null consumed_sick: number | null period_id: string | null period_number: number | null created_at: bigint | null updated_at: bigint | null blocked_week: boolean | null } export type Time_sheetsMaxAggregateOutputType = { id: string | null employee_id: string | null start_date: Date | null end_date: Date | null status: boolean | null banked_hours: number | null consumed_vacation: number | null consumed_sick: number | null period_id: string | null period_number: number | null created_at: bigint | null updated_at: bigint | null blocked_week: boolean | null } export type Time_sheetsCountAggregateOutputType = { id: number employee_id: number start_date: number end_date: number status: number banked_hours: number consumed_vacation: number consumed_sick: number period_id: number period_number: number created_at: number updated_at: number blocked_week: number _all: number } export type Time_sheetsAvgAggregateInputType = { banked_hours?: true consumed_vacation?: true consumed_sick?: true period_number?: true created_at?: true updated_at?: true } export type Time_sheetsSumAggregateInputType = { banked_hours?: true consumed_vacation?: true consumed_sick?: true period_number?: true created_at?: true updated_at?: true } export type Time_sheetsMinAggregateInputType = { id?: true employee_id?: true start_date?: true end_date?: true status?: true banked_hours?: true consumed_vacation?: true consumed_sick?: true period_id?: true period_number?: true created_at?: true updated_at?: true blocked_week?: true } export type Time_sheetsMaxAggregateInputType = { id?: true employee_id?: true start_date?: true end_date?: true status?: true banked_hours?: true consumed_vacation?: true consumed_sick?: true period_id?: true period_number?: true created_at?: true updated_at?: true blocked_week?: true } export type Time_sheetsCountAggregateInputType = { id?: true employee_id?: true start_date?: true end_date?: true status?: true banked_hours?: true consumed_vacation?: true consumed_sick?: true period_id?: true period_number?: true created_at?: true updated_at?: true blocked_week?: true _all?: true } export type Time_sheetsAggregateArgs = { /** * Filter which time_sheets to aggregate. */ where?: Prisma.time_sheetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of time_sheets to fetch. */ orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.time_sheetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` time_sheets 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` time_sheets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned time_sheets **/ _count?: true | Time_sheetsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Time_sheetsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Time_sheetsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Time_sheetsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Time_sheetsMaxAggregateInputType } export type GetTime_sheetsAggregateType = { [P in keyof T & keyof AggregateTime_sheets]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type time_sheetsGroupByArgs = { where?: Prisma.time_sheetsWhereInput orderBy?: Prisma.time_sheetsOrderByWithAggregationInput | Prisma.time_sheetsOrderByWithAggregationInput[] by: Prisma.Time_sheetsScalarFieldEnum[] | Prisma.Time_sheetsScalarFieldEnum having?: Prisma.time_sheetsScalarWhereWithAggregatesInput take?: number skip?: number _count?: Time_sheetsCountAggregateInputType | true _avg?: Time_sheetsAvgAggregateInputType _sum?: Time_sheetsSumAggregateInputType _min?: Time_sheetsMinAggregateInputType _max?: Time_sheetsMaxAggregateInputType } export type Time_sheetsGroupByOutputType = { id: string employee_id: string | null start_date: Date | null end_date: Date | null status: boolean | null banked_hours: number | null consumed_vacation: number | null consumed_sick: number | null period_id: string | null period_number: number | null created_at: bigint | null updated_at: bigint | null blocked_week: boolean | null _count: Time_sheetsCountAggregateOutputType | null _avg: Time_sheetsAvgAggregateOutputType | null _sum: Time_sheetsSumAggregateOutputType | null _min: Time_sheetsMinAggregateOutputType | null _max: Time_sheetsMaxAggregateOutputType | null } type GetTime_sheetsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Time_sheetsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type time_sheetsWhereInput = { AND?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[] OR?: Prisma.time_sheetsWhereInput[] NOT?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[] id?: Prisma.UuidFilter<"time_sheets"> | string employee_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null start_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null end_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null status?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null banked_hours?: Prisma.FloatNullableFilter<"time_sheets"> | number | null consumed_vacation?: Prisma.FloatNullableFilter<"time_sheets"> | number | null consumed_sick?: Prisma.FloatNullableFilter<"time_sheets"> | number | null period_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null period_number?: Prisma.IntNullableFilter<"time_sheets"> | number | null created_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null blocked_week?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null } export type time_sheetsOrderByWithRelationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrderInput | Prisma.SortOrder start_date?: Prisma.SortOrderInput | Prisma.SortOrder end_date?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder banked_hours?: Prisma.SortOrderInput | Prisma.SortOrder consumed_vacation?: Prisma.SortOrderInput | Prisma.SortOrder consumed_sick?: Prisma.SortOrderInput | Prisma.SortOrder period_id?: Prisma.SortOrderInput | Prisma.SortOrder period_number?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder blocked_week?: Prisma.SortOrderInput | Prisma.SortOrder } export type time_sheetsWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[] OR?: Prisma.time_sheetsWhereInput[] NOT?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[] employee_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null start_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null end_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null status?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null banked_hours?: Prisma.FloatNullableFilter<"time_sheets"> | number | null consumed_vacation?: Prisma.FloatNullableFilter<"time_sheets"> | number | null consumed_sick?: Prisma.FloatNullableFilter<"time_sheets"> | number | null period_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null period_number?: Prisma.IntNullableFilter<"time_sheets"> | number | null created_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null blocked_week?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null }, "id"> export type time_sheetsOrderByWithAggregationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrderInput | Prisma.SortOrder start_date?: Prisma.SortOrderInput | Prisma.SortOrder end_date?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder banked_hours?: Prisma.SortOrderInput | Prisma.SortOrder consumed_vacation?: Prisma.SortOrderInput | Prisma.SortOrder consumed_sick?: Prisma.SortOrderInput | Prisma.SortOrder period_id?: Prisma.SortOrderInput | Prisma.SortOrder period_number?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder blocked_week?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.time_sheetsCountOrderByAggregateInput _avg?: Prisma.time_sheetsAvgOrderByAggregateInput _max?: Prisma.time_sheetsMaxOrderByAggregateInput _min?: Prisma.time_sheetsMinOrderByAggregateInput _sum?: Prisma.time_sheetsSumOrderByAggregateInput } export type time_sheetsScalarWhereWithAggregatesInput = { AND?: Prisma.time_sheetsScalarWhereWithAggregatesInput | Prisma.time_sheetsScalarWhereWithAggregatesInput[] OR?: Prisma.time_sheetsScalarWhereWithAggregatesInput[] NOT?: Prisma.time_sheetsScalarWhereWithAggregatesInput | Prisma.time_sheetsScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"time_sheets"> | string employee_id?: Prisma.StringNullableWithAggregatesFilter<"time_sheets"> | string | null start_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheets"> | Date | string | null end_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheets"> | Date | string | null status?: Prisma.BoolNullableWithAggregatesFilter<"time_sheets"> | boolean | null banked_hours?: Prisma.FloatNullableWithAggregatesFilter<"time_sheets"> | number | null consumed_vacation?: Prisma.FloatNullableWithAggregatesFilter<"time_sheets"> | number | null consumed_sick?: Prisma.FloatNullableWithAggregatesFilter<"time_sheets"> | number | null period_id?: Prisma.StringNullableWithAggregatesFilter<"time_sheets"> | string | null period_number?: Prisma.IntNullableWithAggregatesFilter<"time_sheets"> | number | null created_at?: Prisma.BigIntNullableWithAggregatesFilter<"time_sheets"> | bigint | number | null updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"time_sheets"> | bigint | number | null blocked_week?: Prisma.BoolNullableWithAggregatesFilter<"time_sheets"> | boolean | null } export type time_sheetsCreateInput = { id: string employee_id?: string | null start_date?: Date | string | null end_date?: Date | string | null status?: boolean | null banked_hours?: number | null consumed_vacation?: number | null consumed_sick?: number | null period_id?: string | null period_number?: number | null created_at?: bigint | number | null updated_at?: bigint | number | null blocked_week?: boolean | null } export type time_sheetsUncheckedCreateInput = { id: string employee_id?: string | null start_date?: Date | string | null end_date?: Date | string | null status?: boolean | null banked_hours?: number | null consumed_vacation?: number | null consumed_sick?: number | null period_id?: string | null period_number?: number | null created_at?: bigint | number | null updated_at?: bigint | number | null blocked_week?: boolean | null } export type time_sheetsUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null } export type time_sheetsUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null } export type time_sheetsCreateManyInput = { id: string employee_id?: string | null start_date?: Date | string | null end_date?: Date | string | null status?: boolean | null banked_hours?: number | null consumed_vacation?: number | null consumed_sick?: number | null period_id?: string | null period_number?: number | null created_at?: bigint | number | null updated_at?: bigint | number | null blocked_week?: boolean | null } export type time_sheetsUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null } export type time_sheetsUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null } export type time_sheetsCountOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder start_date?: Prisma.SortOrder end_date?: Prisma.SortOrder status?: Prisma.SortOrder banked_hours?: Prisma.SortOrder consumed_vacation?: Prisma.SortOrder consumed_sick?: Prisma.SortOrder period_id?: Prisma.SortOrder period_number?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder blocked_week?: Prisma.SortOrder } export type time_sheetsAvgOrderByAggregateInput = { banked_hours?: Prisma.SortOrder consumed_vacation?: Prisma.SortOrder consumed_sick?: Prisma.SortOrder period_number?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type time_sheetsMaxOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder start_date?: Prisma.SortOrder end_date?: Prisma.SortOrder status?: Prisma.SortOrder banked_hours?: Prisma.SortOrder consumed_vacation?: Prisma.SortOrder consumed_sick?: Prisma.SortOrder period_id?: Prisma.SortOrder period_number?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder blocked_week?: Prisma.SortOrder } export type time_sheetsMinOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder start_date?: Prisma.SortOrder end_date?: Prisma.SortOrder status?: Prisma.SortOrder banked_hours?: Prisma.SortOrder consumed_vacation?: Prisma.SortOrder consumed_sick?: Prisma.SortOrder period_id?: Prisma.SortOrder period_number?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder blocked_week?: Prisma.SortOrder } export type time_sheetsSumOrderByAggregateInput = { banked_hours?: Prisma.SortOrder consumed_vacation?: Prisma.SortOrder consumed_sick?: Prisma.SortOrder period_number?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type time_sheetsSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean start_date?: boolean end_date?: boolean status?: boolean banked_hours?: boolean consumed_vacation?: boolean consumed_sick?: boolean period_id?: boolean period_number?: boolean created_at?: boolean updated_at?: boolean blocked_week?: boolean }, ExtArgs["result"]["time_sheets"]> export type time_sheetsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean start_date?: boolean end_date?: boolean status?: boolean banked_hours?: boolean consumed_vacation?: boolean consumed_sick?: boolean period_id?: boolean period_number?: boolean created_at?: boolean updated_at?: boolean blocked_week?: boolean }, ExtArgs["result"]["time_sheets"]> export type time_sheetsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean start_date?: boolean end_date?: boolean status?: boolean banked_hours?: boolean consumed_vacation?: boolean consumed_sick?: boolean period_id?: boolean period_number?: boolean created_at?: boolean updated_at?: boolean blocked_week?: boolean }, ExtArgs["result"]["time_sheets"]> export type time_sheetsSelectScalar = { id?: boolean employee_id?: boolean start_date?: boolean end_date?: boolean status?: boolean banked_hours?: boolean consumed_vacation?: boolean consumed_sick?: boolean period_id?: boolean period_number?: boolean created_at?: boolean updated_at?: boolean blocked_week?: boolean } export type time_sheetsOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "start_date" | "end_date" | "status" | "banked_hours" | "consumed_vacation" | "consumed_sick" | "period_id" | "period_number" | "created_at" | "updated_at" | "blocked_week", ExtArgs["result"]["time_sheets"]> export type $time_sheetsPayload = { name: "time_sheets" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string employee_id: string | null start_date: Date | null end_date: Date | null status: boolean | null banked_hours: number | null consumed_vacation: number | null consumed_sick: number | null period_id: string | null period_number: number | null created_at: bigint | null updated_at: bigint | null blocked_week: boolean | null }, ExtArgs["result"]["time_sheets"]> composites: {} } export type time_sheetsGetPayload = runtime.Types.Result.GetResult export type time_sheetsCountArgs = Omit & { select?: Time_sheetsCountAggregateInputType | true } export interface time_sheetsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['time_sheets'], meta: { name: 'time_sheets' } } /** * Find zero or one Time_sheets that matches the filter. * @param {time_sheetsFindUniqueArgs} args - Arguments to find a Time_sheets * @example * // Get one Time_sheets * const time_sheets = await prisma.time_sheets.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Time_sheets that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {time_sheetsFindUniqueOrThrowArgs} args - Arguments to find a Time_sheets * @example * // Get one Time_sheets * const time_sheets = await prisma.time_sheets.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Time_sheets 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 {time_sheetsFindFirstArgs} args - Arguments to find a Time_sheets * @example * // Get one Time_sheets * const time_sheets = await prisma.time_sheets.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Time_sheets 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 {time_sheetsFindFirstOrThrowArgs} args - Arguments to find a Time_sheets * @example * // Get one Time_sheets * const time_sheets = await prisma.time_sheets.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Time_sheets 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 {time_sheetsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Time_sheets * const time_sheets = await prisma.time_sheets.findMany() * * // Get first 10 Time_sheets * const time_sheets = await prisma.time_sheets.findMany({ take: 10 }) * * // Only select the `id` * const time_sheetsWithIdOnly = await prisma.time_sheets.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Time_sheets. * @param {time_sheetsCreateArgs} args - Arguments to create a Time_sheets. * @example * // Create one Time_sheets * const Time_sheets = await prisma.time_sheets.create({ * data: { * // ... data to create a Time_sheets * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Time_sheets. * @param {time_sheetsCreateManyArgs} args - Arguments to create many Time_sheets. * @example * // Create many Time_sheets * const time_sheets = await prisma.time_sheets.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Time_sheets and returns the data saved in the database. * @param {time_sheetsCreateManyAndReturnArgs} args - Arguments to create many Time_sheets. * @example * // Create many Time_sheets * const time_sheets = await prisma.time_sheets.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Time_sheets and only return the `id` * const time_sheetsWithIdOnly = await prisma.time_sheets.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 Time_sheets. * @param {time_sheetsDeleteArgs} args - Arguments to delete one Time_sheets. * @example * // Delete one Time_sheets * const Time_sheets = await prisma.time_sheets.delete({ * where: { * // ... filter to delete one Time_sheets * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Time_sheets. * @param {time_sheetsUpdateArgs} args - Arguments to update one Time_sheets. * @example * // Update one Time_sheets * const time_sheets = await prisma.time_sheets.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Time_sheets. * @param {time_sheetsDeleteManyArgs} args - Arguments to filter Time_sheets to delete. * @example * // Delete a few Time_sheets * const { count } = await prisma.time_sheets.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Time_sheets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {time_sheetsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Time_sheets * const time_sheets = await prisma.time_sheets.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Time_sheets and returns the data updated in the database. * @param {time_sheetsUpdateManyAndReturnArgs} args - Arguments to update many Time_sheets. * @example * // Update many Time_sheets * const time_sheets = await prisma.time_sheets.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Time_sheets and only return the `id` * const time_sheetsWithIdOnly = await prisma.time_sheets.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 Time_sheets. * @param {time_sheetsUpsertArgs} args - Arguments to update or create a Time_sheets. * @example * // Update or create a Time_sheets * const time_sheets = await prisma.time_sheets.upsert({ * create: { * // ... data to create a Time_sheets * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Time_sheets we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Time_sheets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {time_sheetsCountArgs} args - Arguments to filter Time_sheets to count. * @example * // Count the number of Time_sheets * const count = await prisma.time_sheets.count({ * where: { * // ... the filter for the Time_sheets 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 Time_sheets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Time_sheetsAggregateArgs} 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 Time_sheets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {time_sheetsGroupByArgs} 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 time_sheetsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: time_sheetsGroupByArgs['orderBy'] } : { orderBy?: time_sheetsGroupByArgs['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 ? GetTime_sheetsGroupByPayload : Prisma.PrismaPromise /** * Fields of the time_sheets model */ readonly fields: time_sheetsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for time_sheets. * 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__time_sheetsClient 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 time_sheets model */ export interface time_sheetsFieldRefs { readonly id: Prisma.FieldRef<"time_sheets", 'String'> readonly employee_id: Prisma.FieldRef<"time_sheets", 'String'> readonly start_date: Prisma.FieldRef<"time_sheets", 'DateTime'> readonly end_date: Prisma.FieldRef<"time_sheets", 'DateTime'> readonly status: Prisma.FieldRef<"time_sheets", 'Boolean'> readonly banked_hours: Prisma.FieldRef<"time_sheets", 'Float'> readonly consumed_vacation: Prisma.FieldRef<"time_sheets", 'Float'> readonly consumed_sick: Prisma.FieldRef<"time_sheets", 'Float'> readonly period_id: Prisma.FieldRef<"time_sheets", 'String'> readonly period_number: Prisma.FieldRef<"time_sheets", 'Int'> readonly created_at: Prisma.FieldRef<"time_sheets", 'BigInt'> readonly updated_at: Prisma.FieldRef<"time_sheets", 'BigInt'> readonly blocked_week: Prisma.FieldRef<"time_sheets", 'Boolean'> } // Custom InputTypes /** * time_sheets findUnique */ export type time_sheetsFindUniqueArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * Filter, which time_sheets to fetch. */ where: Prisma.time_sheetsWhereUniqueInput } /** * time_sheets findUniqueOrThrow */ export type time_sheetsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * Filter, which time_sheets to fetch. */ where: Prisma.time_sheetsWhereUniqueInput } /** * time_sheets findFirst */ export type time_sheetsFindFirstArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * Filter, which time_sheets to fetch. */ where?: Prisma.time_sheetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of time_sheets to fetch. */ orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for time_sheets. */ cursor?: Prisma.time_sheetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` time_sheets 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` time_sheets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of time_sheets. */ distinct?: Prisma.Time_sheetsScalarFieldEnum | Prisma.Time_sheetsScalarFieldEnum[] } /** * time_sheets findFirstOrThrow */ export type time_sheetsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * Filter, which time_sheets to fetch. */ where?: Prisma.time_sheetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of time_sheets to fetch. */ orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for time_sheets. */ cursor?: Prisma.time_sheetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` time_sheets 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` time_sheets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of time_sheets. */ distinct?: Prisma.Time_sheetsScalarFieldEnum | Prisma.Time_sheetsScalarFieldEnum[] } /** * time_sheets findMany */ export type time_sheetsFindManyArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * Filter, which time_sheets to fetch. */ where?: Prisma.time_sheetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of time_sheets to fetch. */ orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing time_sheets. */ cursor?: Prisma.time_sheetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` time_sheets 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` time_sheets. */ skip?: number distinct?: Prisma.Time_sheetsScalarFieldEnum | Prisma.Time_sheetsScalarFieldEnum[] } /** * time_sheets create */ export type time_sheetsCreateArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * The data needed to create a time_sheets. */ data: Prisma.XOR } /** * time_sheets createMany */ export type time_sheetsCreateManyArgs = { /** * The data used to create many time_sheets. */ data: Prisma.time_sheetsCreateManyInput | Prisma.time_sheetsCreateManyInput[] skipDuplicates?: boolean } /** * time_sheets createManyAndReturn */ export type time_sheetsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelectCreateManyAndReturn | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * The data used to create many time_sheets. */ data: Prisma.time_sheetsCreateManyInput | Prisma.time_sheetsCreateManyInput[] skipDuplicates?: boolean } /** * time_sheets update */ export type time_sheetsUpdateArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * The data needed to update a time_sheets. */ data: Prisma.XOR /** * Choose, which time_sheets to update. */ where: Prisma.time_sheetsWhereUniqueInput } /** * time_sheets updateMany */ export type time_sheetsUpdateManyArgs = { /** * The data used to update time_sheets. */ data: Prisma.XOR /** * Filter which time_sheets to update */ where?: Prisma.time_sheetsWhereInput /** * Limit how many time_sheets to update. */ limit?: number } /** * time_sheets updateManyAndReturn */ export type time_sheetsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelectUpdateManyAndReturn | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * The data used to update time_sheets. */ data: Prisma.XOR /** * Filter which time_sheets to update */ where?: Prisma.time_sheetsWhereInput /** * Limit how many time_sheets to update. */ limit?: number } /** * time_sheets upsert */ export type time_sheetsUpsertArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * The filter to search for the time_sheets to update in case it exists. */ where: Prisma.time_sheetsWhereUniqueInput /** * In case the time_sheets found by the `where` argument doesn't exist, create a new time_sheets with this data. */ create: Prisma.XOR /** * In case the time_sheets was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * time_sheets delete */ export type time_sheetsDeleteArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null /** * Filter which time_sheets to delete. */ where: Prisma.time_sheetsWhereUniqueInput } /** * time_sheets deleteMany */ export type time_sheetsDeleteManyArgs = { /** * Filter which time_sheets to delete */ where?: Prisma.time_sheetsWhereInput /** * Limit how many time_sheets to delete. */ limit?: number } /** * time_sheets without action */ export type time_sheetsDefaultArgs = { /** * Select specific fields to fetch from the time_sheets */ select?: Prisma.time_sheetsSelect | null /** * Omit specific fields from the time_sheets */ omit?: Prisma.time_sheetsOmit | null }