/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `PaidTimeOff` 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 PaidTimeOff * */ export type PaidTimeOffModel = runtime.Types.Result.DefaultSelection export type AggregatePaidTimeOff = { _count: PaidTimeOffCountAggregateOutputType | null _avg: PaidTimeOffAvgAggregateOutputType | null _sum: PaidTimeOffSumAggregateOutputType | null _min: PaidTimeOffMinAggregateOutputType | null _max: PaidTimeOffMaxAggregateOutputType | null } export type PaidTimeOffAvgAggregateOutputType = { id: number | null employee_id: number | null vacation_hours: runtime.Decimal | null banked_hours: runtime.Decimal | null sick_hours: runtime.Decimal | null } export type PaidTimeOffSumAggregateOutputType = { id: number | null employee_id: number | null vacation_hours: runtime.Decimal | null banked_hours: runtime.Decimal | null sick_hours: runtime.Decimal | null } export type PaidTimeOffMinAggregateOutputType = { id: number | null employee_id: number | null vacation_hours: runtime.Decimal | null banked_hours: runtime.Decimal | null sick_hours: runtime.Decimal | null last_updated: Date | null } export type PaidTimeOffMaxAggregateOutputType = { id: number | null employee_id: number | null vacation_hours: runtime.Decimal | null banked_hours: runtime.Decimal | null sick_hours: runtime.Decimal | null last_updated: Date | null } export type PaidTimeOffCountAggregateOutputType = { id: number employee_id: number vacation_hours: number banked_hours: number sick_hours: number last_updated: number _all: number } export type PaidTimeOffAvgAggregateInputType = { id?: true employee_id?: true vacation_hours?: true banked_hours?: true sick_hours?: true } export type PaidTimeOffSumAggregateInputType = { id?: true employee_id?: true vacation_hours?: true banked_hours?: true sick_hours?: true } export type PaidTimeOffMinAggregateInputType = { id?: true employee_id?: true vacation_hours?: true banked_hours?: true sick_hours?: true last_updated?: true } export type PaidTimeOffMaxAggregateInputType = { id?: true employee_id?: true vacation_hours?: true banked_hours?: true sick_hours?: true last_updated?: true } export type PaidTimeOffCountAggregateInputType = { id?: true employee_id?: true vacation_hours?: true banked_hours?: true sick_hours?: true last_updated?: true _all?: true } export type PaidTimeOffAggregateArgs = { /** * Filter which PaidTimeOff to aggregate. */ where?: Prisma.PaidTimeOffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PaidTimeOffs to fetch. */ orderBy?: Prisma.PaidTimeOffOrderByWithRelationInput | Prisma.PaidTimeOffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.PaidTimeOffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PaidTimeOffs 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` PaidTimeOffs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PaidTimeOffs **/ _count?: true | PaidTimeOffCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PaidTimeOffAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PaidTimeOffSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PaidTimeOffMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PaidTimeOffMaxAggregateInputType } export type GetPaidTimeOffAggregateType = { [P in keyof T & keyof AggregatePaidTimeOff]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type PaidTimeOffGroupByArgs = { where?: Prisma.PaidTimeOffWhereInput orderBy?: Prisma.PaidTimeOffOrderByWithAggregationInput | Prisma.PaidTimeOffOrderByWithAggregationInput[] by: Prisma.PaidTimeOffScalarFieldEnum[] | Prisma.PaidTimeOffScalarFieldEnum having?: Prisma.PaidTimeOffScalarWhereWithAggregatesInput take?: number skip?: number _count?: PaidTimeOffCountAggregateInputType | true _avg?: PaidTimeOffAvgAggregateInputType _sum?: PaidTimeOffSumAggregateInputType _min?: PaidTimeOffMinAggregateInputType _max?: PaidTimeOffMaxAggregateInputType } export type PaidTimeOffGroupByOutputType = { id: number employee_id: number vacation_hours: runtime.Decimal banked_hours: runtime.Decimal sick_hours: runtime.Decimal last_updated: Date | null _count: PaidTimeOffCountAggregateOutputType | null _avg: PaidTimeOffAvgAggregateOutputType | null _sum: PaidTimeOffSumAggregateOutputType | null _min: PaidTimeOffMinAggregateOutputType | null _max: PaidTimeOffMaxAggregateOutputType | null } type GetPaidTimeOffGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PaidTimeOffGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type PaidTimeOffWhereInput = { AND?: Prisma.PaidTimeOffWhereInput | Prisma.PaidTimeOffWhereInput[] OR?: Prisma.PaidTimeOffWhereInput[] NOT?: Prisma.PaidTimeOffWhereInput | Prisma.PaidTimeOffWhereInput[] id?: Prisma.IntFilter<"PaidTimeOff"> | number employee_id?: Prisma.IntFilter<"PaidTimeOff"> | number vacation_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Prisma.DateTimeNullableFilter<"PaidTimeOff"> | Date | string | null employee?: Prisma.XOR } export type PaidTimeOffOrderByWithRelationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder vacation_hours?: Prisma.SortOrder banked_hours?: Prisma.SortOrder sick_hours?: Prisma.SortOrder last_updated?: Prisma.SortOrderInput | Prisma.SortOrder employee?: Prisma.EmployeesOrderByWithRelationInput } export type PaidTimeOffWhereUniqueInput = Prisma.AtLeast<{ id?: number employee_id?: number AND?: Prisma.PaidTimeOffWhereInput | Prisma.PaidTimeOffWhereInput[] OR?: Prisma.PaidTimeOffWhereInput[] NOT?: Prisma.PaidTimeOffWhereInput | Prisma.PaidTimeOffWhereInput[] vacation_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Prisma.DateTimeNullableFilter<"PaidTimeOff"> | Date | string | null employee?: Prisma.XOR }, "id" | "employee_id"> export type PaidTimeOffOrderByWithAggregationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder vacation_hours?: Prisma.SortOrder banked_hours?: Prisma.SortOrder sick_hours?: Prisma.SortOrder last_updated?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.PaidTimeOffCountOrderByAggregateInput _avg?: Prisma.PaidTimeOffAvgOrderByAggregateInput _max?: Prisma.PaidTimeOffMaxOrderByAggregateInput _min?: Prisma.PaidTimeOffMinOrderByAggregateInput _sum?: Prisma.PaidTimeOffSumOrderByAggregateInput } export type PaidTimeOffScalarWhereWithAggregatesInput = { AND?: Prisma.PaidTimeOffScalarWhereWithAggregatesInput | Prisma.PaidTimeOffScalarWhereWithAggregatesInput[] OR?: Prisma.PaidTimeOffScalarWhereWithAggregatesInput[] NOT?: Prisma.PaidTimeOffScalarWhereWithAggregatesInput | Prisma.PaidTimeOffScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"PaidTimeOff"> | number employee_id?: Prisma.IntWithAggregatesFilter<"PaidTimeOff"> | number vacation_hours?: Prisma.DecimalWithAggregatesFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: Prisma.DecimalWithAggregatesFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: Prisma.DecimalWithAggregatesFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Prisma.DateTimeNullableWithAggregatesFilter<"PaidTimeOff"> | Date | string | null } export type PaidTimeOffCreateInput = { vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Date | string | null employee: Prisma.EmployeesCreateNestedOneWithoutPaid_time_offInput } export type PaidTimeOffUncheckedCreateInput = { id?: number employee_id: number vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Date | string | null } export type PaidTimeOffUpdateInput = { vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null employee?: Prisma.EmployeesUpdateOneRequiredWithoutPaid_time_offNestedInput } export type PaidTimeOffUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type PaidTimeOffCreateManyInput = { id?: number employee_id: number vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Date | string | null } export type PaidTimeOffUpdateManyMutationInput = { vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type PaidTimeOffUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type PaidTimeOffNullableScalarRelationFilter = { is?: Prisma.PaidTimeOffWhereInput | null isNot?: Prisma.PaidTimeOffWhereInput | null } export type PaidTimeOffCountOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder vacation_hours?: Prisma.SortOrder banked_hours?: Prisma.SortOrder sick_hours?: Prisma.SortOrder last_updated?: Prisma.SortOrder } export type PaidTimeOffAvgOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder vacation_hours?: Prisma.SortOrder banked_hours?: Prisma.SortOrder sick_hours?: Prisma.SortOrder } export type PaidTimeOffMaxOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder vacation_hours?: Prisma.SortOrder banked_hours?: Prisma.SortOrder sick_hours?: Prisma.SortOrder last_updated?: Prisma.SortOrder } export type PaidTimeOffMinOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder vacation_hours?: Prisma.SortOrder banked_hours?: Prisma.SortOrder sick_hours?: Prisma.SortOrder last_updated?: Prisma.SortOrder } export type PaidTimeOffSumOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder vacation_hours?: Prisma.SortOrder banked_hours?: Prisma.SortOrder sick_hours?: Prisma.SortOrder } export type PaidTimeOffCreateNestedOneWithoutEmployeeInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PaidTimeOffCreateOrConnectWithoutEmployeeInput connect?: Prisma.PaidTimeOffWhereUniqueInput } export type PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PaidTimeOffCreateOrConnectWithoutEmployeeInput connect?: Prisma.PaidTimeOffWhereUniqueInput } export type PaidTimeOffUpdateOneWithoutEmployeeNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PaidTimeOffCreateOrConnectWithoutEmployeeInput upsert?: Prisma.PaidTimeOffUpsertWithoutEmployeeInput disconnect?: Prisma.PaidTimeOffWhereInput | boolean delete?: Prisma.PaidTimeOffWhereInput | boolean connect?: Prisma.PaidTimeOffWhereUniqueInput update?: Prisma.XOR, Prisma.PaidTimeOffUncheckedUpdateWithoutEmployeeInput> } export type PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PaidTimeOffCreateOrConnectWithoutEmployeeInput upsert?: Prisma.PaidTimeOffUpsertWithoutEmployeeInput disconnect?: Prisma.PaidTimeOffWhereInput | boolean delete?: Prisma.PaidTimeOffWhereInput | boolean connect?: Prisma.PaidTimeOffWhereUniqueInput update?: Prisma.XOR, Prisma.PaidTimeOffUncheckedUpdateWithoutEmployeeInput> } export type DecimalFieldUpdateOperationsInput = { set?: runtime.Decimal | runtime.DecimalJsLike | number | string increment?: runtime.Decimal | runtime.DecimalJsLike | number | string decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string divide?: runtime.Decimal | runtime.DecimalJsLike | number | string } export type PaidTimeOffCreateWithoutEmployeeInput = { vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Date | string | null } export type PaidTimeOffUncheckedCreateWithoutEmployeeInput = { id?: number vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Date | string | null } export type PaidTimeOffCreateOrConnectWithoutEmployeeInput = { where: Prisma.PaidTimeOffWhereUniqueInput create: Prisma.XOR } export type PaidTimeOffUpsertWithoutEmployeeInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.PaidTimeOffWhereInput } export type PaidTimeOffUpdateToOneWithWhereWithoutEmployeeInput = { where?: Prisma.PaidTimeOffWhereInput data: Prisma.XOR } export type PaidTimeOffUpdateWithoutEmployeeInput = { vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type PaidTimeOffUncheckedUpdateWithoutEmployeeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type PaidTimeOffSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean vacation_hours?: boolean banked_hours?: boolean sick_hours?: boolean last_updated?: boolean employee?: boolean | Prisma.EmployeesDefaultArgs }, ExtArgs["result"]["paidTimeOff"]> export type PaidTimeOffSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean vacation_hours?: boolean banked_hours?: boolean sick_hours?: boolean last_updated?: boolean employee?: boolean | Prisma.EmployeesDefaultArgs }, ExtArgs["result"]["paidTimeOff"]> export type PaidTimeOffSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean vacation_hours?: boolean banked_hours?: boolean sick_hours?: boolean last_updated?: boolean employee?: boolean | Prisma.EmployeesDefaultArgs }, ExtArgs["result"]["paidTimeOff"]> export type PaidTimeOffSelectScalar = { id?: boolean employee_id?: boolean vacation_hours?: boolean banked_hours?: boolean sick_hours?: boolean last_updated?: boolean } export type PaidTimeOffOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "vacation_hours" | "banked_hours" | "sick_hours" | "last_updated", ExtArgs["result"]["paidTimeOff"]> export type PaidTimeOffInclude = { employee?: boolean | Prisma.EmployeesDefaultArgs } export type PaidTimeOffIncludeCreateManyAndReturn = { employee?: boolean | Prisma.EmployeesDefaultArgs } export type PaidTimeOffIncludeUpdateManyAndReturn = { employee?: boolean | Prisma.EmployeesDefaultArgs } export type $PaidTimeOffPayload = { name: "PaidTimeOff" objects: { employee: Prisma.$EmployeesPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number employee_id: number vacation_hours: runtime.Decimal banked_hours: runtime.Decimal sick_hours: runtime.Decimal last_updated: Date | null }, ExtArgs["result"]["paidTimeOff"]> composites: {} } export type PaidTimeOffGetPayload = runtime.Types.Result.GetResult export type PaidTimeOffCountArgs = Omit & { select?: PaidTimeOffCountAggregateInputType | true } export interface PaidTimeOffDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PaidTimeOff'], meta: { name: 'PaidTimeOff' } } /** * Find zero or one PaidTimeOff that matches the filter. * @param {PaidTimeOffFindUniqueArgs} args - Arguments to find a PaidTimeOff * @example * // Get one PaidTimeOff * const paidTimeOff = await prisma.paidTimeOff.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PaidTimeOff that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PaidTimeOffFindUniqueOrThrowArgs} args - Arguments to find a PaidTimeOff * @example * // Get one PaidTimeOff * const paidTimeOff = await prisma.paidTimeOff.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PaidTimeOff 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 {PaidTimeOffFindFirstArgs} args - Arguments to find a PaidTimeOff * @example * // Get one PaidTimeOff * const paidTimeOff = await prisma.paidTimeOff.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PaidTimeOff 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 {PaidTimeOffFindFirstOrThrowArgs} args - Arguments to find a PaidTimeOff * @example * // Get one PaidTimeOff * const paidTimeOff = await prisma.paidTimeOff.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PaidTimeOffs 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 {PaidTimeOffFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PaidTimeOffs * const paidTimeOffs = await prisma.paidTimeOff.findMany() * * // Get first 10 PaidTimeOffs * const paidTimeOffs = await prisma.paidTimeOff.findMany({ take: 10 }) * * // Only select the `id` * const paidTimeOffWithIdOnly = await prisma.paidTimeOff.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a PaidTimeOff. * @param {PaidTimeOffCreateArgs} args - Arguments to create a PaidTimeOff. * @example * // Create one PaidTimeOff * const PaidTimeOff = await prisma.paidTimeOff.create({ * data: { * // ... data to create a PaidTimeOff * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PaidTimeOffs. * @param {PaidTimeOffCreateManyArgs} args - Arguments to create many PaidTimeOffs. * @example * // Create many PaidTimeOffs * const paidTimeOff = await prisma.paidTimeOff.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many PaidTimeOffs and returns the data saved in the database. * @param {PaidTimeOffCreateManyAndReturnArgs} args - Arguments to create many PaidTimeOffs. * @example * // Create many PaidTimeOffs * const paidTimeOff = await prisma.paidTimeOff.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PaidTimeOffs and only return the `id` * const paidTimeOffWithIdOnly = await prisma.paidTimeOff.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 PaidTimeOff. * @param {PaidTimeOffDeleteArgs} args - Arguments to delete one PaidTimeOff. * @example * // Delete one PaidTimeOff * const PaidTimeOff = await prisma.paidTimeOff.delete({ * where: { * // ... filter to delete one PaidTimeOff * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PaidTimeOff. * @param {PaidTimeOffUpdateArgs} args - Arguments to update one PaidTimeOff. * @example * // Update one PaidTimeOff * const paidTimeOff = await prisma.paidTimeOff.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PaidTimeOffs. * @param {PaidTimeOffDeleteManyArgs} args - Arguments to filter PaidTimeOffs to delete. * @example * // Delete a few PaidTimeOffs * const { count } = await prisma.paidTimeOff.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PaidTimeOffs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaidTimeOffUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PaidTimeOffs * const paidTimeOff = await prisma.paidTimeOff.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PaidTimeOffs and returns the data updated in the database. * @param {PaidTimeOffUpdateManyAndReturnArgs} args - Arguments to update many PaidTimeOffs. * @example * // Update many PaidTimeOffs * const paidTimeOff = await prisma.paidTimeOff.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PaidTimeOffs and only return the `id` * const paidTimeOffWithIdOnly = await prisma.paidTimeOff.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 PaidTimeOff. * @param {PaidTimeOffUpsertArgs} args - Arguments to update or create a PaidTimeOff. * @example * // Update or create a PaidTimeOff * const paidTimeOff = await prisma.paidTimeOff.upsert({ * create: { * // ... data to create a PaidTimeOff * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PaidTimeOff we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PaidTimeOffs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaidTimeOffCountArgs} args - Arguments to filter PaidTimeOffs to count. * @example * // Count the number of PaidTimeOffs * const count = await prisma.paidTimeOff.count({ * where: { * // ... the filter for the PaidTimeOffs 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 PaidTimeOff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaidTimeOffAggregateArgs} 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 PaidTimeOff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaidTimeOffGroupByArgs} 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 PaidTimeOffGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: PaidTimeOffGroupByArgs['orderBy'] } : { orderBy?: PaidTimeOffGroupByArgs['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 ? GetPaidTimeOffGroupByPayload : Prisma.PrismaPromise /** * Fields of the PaidTimeOff model */ readonly fields: PaidTimeOffFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PaidTimeOff. * 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__PaidTimeOffClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" employee = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmployeesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 PaidTimeOff model */ export interface PaidTimeOffFieldRefs { readonly id: Prisma.FieldRef<"PaidTimeOff", 'Int'> readonly employee_id: Prisma.FieldRef<"PaidTimeOff", 'Int'> readonly vacation_hours: Prisma.FieldRef<"PaidTimeOff", 'Decimal'> readonly banked_hours: Prisma.FieldRef<"PaidTimeOff", 'Decimal'> readonly sick_hours: Prisma.FieldRef<"PaidTimeOff", 'Decimal'> readonly last_updated: Prisma.FieldRef<"PaidTimeOff", 'DateTime'> } // Custom InputTypes /** * PaidTimeOff findUnique */ export type PaidTimeOffFindUniqueArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null /** * Filter, which PaidTimeOff to fetch. */ where: Prisma.PaidTimeOffWhereUniqueInput } /** * PaidTimeOff findUniqueOrThrow */ export type PaidTimeOffFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null /** * Filter, which PaidTimeOff to fetch. */ where: Prisma.PaidTimeOffWhereUniqueInput } /** * PaidTimeOff findFirst */ export type PaidTimeOffFindFirstArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null /** * Filter, which PaidTimeOff to fetch. */ where?: Prisma.PaidTimeOffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PaidTimeOffs to fetch. */ orderBy?: Prisma.PaidTimeOffOrderByWithRelationInput | Prisma.PaidTimeOffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PaidTimeOffs. */ cursor?: Prisma.PaidTimeOffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PaidTimeOffs 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` PaidTimeOffs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PaidTimeOffs. */ distinct?: Prisma.PaidTimeOffScalarFieldEnum | Prisma.PaidTimeOffScalarFieldEnum[] } /** * PaidTimeOff findFirstOrThrow */ export type PaidTimeOffFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null /** * Filter, which PaidTimeOff to fetch. */ where?: Prisma.PaidTimeOffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PaidTimeOffs to fetch. */ orderBy?: Prisma.PaidTimeOffOrderByWithRelationInput | Prisma.PaidTimeOffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PaidTimeOffs. */ cursor?: Prisma.PaidTimeOffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PaidTimeOffs 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` PaidTimeOffs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PaidTimeOffs. */ distinct?: Prisma.PaidTimeOffScalarFieldEnum | Prisma.PaidTimeOffScalarFieldEnum[] } /** * PaidTimeOff findMany */ export type PaidTimeOffFindManyArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null /** * Filter, which PaidTimeOffs to fetch. */ where?: Prisma.PaidTimeOffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PaidTimeOffs to fetch. */ orderBy?: Prisma.PaidTimeOffOrderByWithRelationInput | Prisma.PaidTimeOffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PaidTimeOffs. */ cursor?: Prisma.PaidTimeOffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PaidTimeOffs 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` PaidTimeOffs. */ skip?: number distinct?: Prisma.PaidTimeOffScalarFieldEnum | Prisma.PaidTimeOffScalarFieldEnum[] } /** * PaidTimeOff create */ export type PaidTimeOffCreateArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null /** * The data needed to create a PaidTimeOff. */ data: Prisma.XOR } /** * PaidTimeOff createMany */ export type PaidTimeOffCreateManyArgs = { /** * The data used to create many PaidTimeOffs. */ data: Prisma.PaidTimeOffCreateManyInput | Prisma.PaidTimeOffCreateManyInput[] skipDuplicates?: boolean } /** * PaidTimeOff createManyAndReturn */ export type PaidTimeOffCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelectCreateManyAndReturn | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * The data used to create many PaidTimeOffs. */ data: Prisma.PaidTimeOffCreateManyInput | Prisma.PaidTimeOffCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffIncludeCreateManyAndReturn | null } /** * PaidTimeOff update */ export type PaidTimeOffUpdateArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null /** * The data needed to update a PaidTimeOff. */ data: Prisma.XOR /** * Choose, which PaidTimeOff to update. */ where: Prisma.PaidTimeOffWhereUniqueInput } /** * PaidTimeOff updateMany */ export type PaidTimeOffUpdateManyArgs = { /** * The data used to update PaidTimeOffs. */ data: Prisma.XOR /** * Filter which PaidTimeOffs to update */ where?: Prisma.PaidTimeOffWhereInput /** * Limit how many PaidTimeOffs to update. */ limit?: number } /** * PaidTimeOff updateManyAndReturn */ export type PaidTimeOffUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelectUpdateManyAndReturn | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * The data used to update PaidTimeOffs. */ data: Prisma.XOR /** * Filter which PaidTimeOffs to update */ where?: Prisma.PaidTimeOffWhereInput /** * Limit how many PaidTimeOffs to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffIncludeUpdateManyAndReturn | null } /** * PaidTimeOff upsert */ export type PaidTimeOffUpsertArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null /** * The filter to search for the PaidTimeOff to update in case it exists. */ where: Prisma.PaidTimeOffWhereUniqueInput /** * In case the PaidTimeOff found by the `where` argument doesn't exist, create a new PaidTimeOff with this data. */ create: Prisma.XOR /** * In case the PaidTimeOff was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * PaidTimeOff delete */ export type PaidTimeOffDeleteArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null /** * Filter which PaidTimeOff to delete. */ where: Prisma.PaidTimeOffWhereUniqueInput } /** * PaidTimeOff deleteMany */ export type PaidTimeOffDeleteManyArgs = { /** * Filter which PaidTimeOffs to delete */ where?: Prisma.PaidTimeOffWhereInput /** * Limit how many PaidTimeOffs to delete. */ limit?: number } /** * PaidTimeOff without action */ export type PaidTimeOffDefaultArgs = { /** * Select specific fields to fetch from the PaidTimeOff */ select?: Prisma.PaidTimeOffSelect | null /** * Omit specific fields from the PaidTimeOff */ omit?: Prisma.PaidTimeOffOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PaidTimeOffInclude | null }