/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `PayPeriods` 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 PayPeriods * */ export type PayPeriodsModel = runtime.Types.Result.DefaultSelection export type AggregatePayPeriods = { _count: PayPeriodsCountAggregateOutputType | null _avg: PayPeriodsAvgAggregateOutputType | null _sum: PayPeriodsSumAggregateOutputType | null _min: PayPeriodsMinAggregateOutputType | null _max: PayPeriodsMaxAggregateOutputType | null } export type PayPeriodsAvgAggregateOutputType = { pay_year: number | null pay_period_no: number | null } export type PayPeriodsSumAggregateOutputType = { pay_year: number | null pay_period_no: number | null } export type PayPeriodsMinAggregateOutputType = { pay_year: number | null pay_period_no: number | null period_start: Date | null period_end: Date | null payday: Date | null label: string | null } export type PayPeriodsMaxAggregateOutputType = { pay_year: number | null pay_period_no: number | null period_start: Date | null period_end: Date | null payday: Date | null label: string | null } export type PayPeriodsCountAggregateOutputType = { pay_year: number pay_period_no: number period_start: number period_end: number payday: number label: number _all: number } export type PayPeriodsAvgAggregateInputType = { pay_year?: true pay_period_no?: true } export type PayPeriodsSumAggregateInputType = { pay_year?: true pay_period_no?: true } export type PayPeriodsMinAggregateInputType = { pay_year?: true pay_period_no?: true period_start?: true period_end?: true payday?: true label?: true } export type PayPeriodsMaxAggregateInputType = { pay_year?: true pay_period_no?: true period_start?: true period_end?: true payday?: true label?: true } export type PayPeriodsCountAggregateInputType = { pay_year?: true pay_period_no?: true period_start?: true period_end?: true payday?: true label?: true _all?: true } export type PayPeriodsAggregateArgs = { /** * Filter which PayPeriods to aggregate. */ where?: Prisma.PayPeriodsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PayPeriods to fetch. */ orderBy?: Prisma.PayPeriodsOrderByWithRelationInput | Prisma.PayPeriodsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PayPeriods 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` PayPeriods. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PayPeriods **/ _count?: true | PayPeriodsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PayPeriodsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PayPeriodsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PayPeriodsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PayPeriodsMaxAggregateInputType } export type GetPayPeriodsAggregateType = { [P in keyof T & keyof AggregatePayPeriods]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type PayPeriodsGroupByArgs = { where?: Prisma.PayPeriodsWhereInput orderBy?: Prisma.PayPeriodsOrderByWithAggregationInput | Prisma.PayPeriodsOrderByWithAggregationInput[] by: Prisma.PayPeriodsScalarFieldEnum[] | Prisma.PayPeriodsScalarFieldEnum having?: Prisma.PayPeriodsScalarWhereWithAggregatesInput take?: number skip?: number _count?: PayPeriodsCountAggregateInputType | true _avg?: PayPeriodsAvgAggregateInputType _sum?: PayPeriodsSumAggregateInputType _min?: PayPeriodsMinAggregateInputType _max?: PayPeriodsMaxAggregateInputType } export type PayPeriodsGroupByOutputType = { pay_year: number pay_period_no: number period_start: Date period_end: Date payday: Date label: string _count: PayPeriodsCountAggregateOutputType | null _avg: PayPeriodsAvgAggregateOutputType | null _sum: PayPeriodsSumAggregateOutputType | null _min: PayPeriodsMinAggregateOutputType | null _max: PayPeriodsMaxAggregateOutputType | null } type GetPayPeriodsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PayPeriodsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type PayPeriodsWhereInput = { AND?: Prisma.PayPeriodsWhereInput | Prisma.PayPeriodsWhereInput[] OR?: Prisma.PayPeriodsWhereInput[] NOT?: Prisma.PayPeriodsWhereInput | Prisma.PayPeriodsWhereInput[] pay_year?: Prisma.IntFilter<"PayPeriods"> | number pay_period_no?: Prisma.IntFilter<"PayPeriods"> | number period_start?: Prisma.DateTimeFilter<"PayPeriods"> | Date | string period_end?: Prisma.DateTimeFilter<"PayPeriods"> | Date | string payday?: Prisma.DateTimeFilter<"PayPeriods"> | Date | string label?: Prisma.StringFilter<"PayPeriods"> | string } export type PayPeriodsOrderByWithRelationInput = { pay_year?: Prisma.SortOrder pay_period_no?: Prisma.SortOrder period_start?: Prisma.SortOrder period_end?: Prisma.SortOrder payday?: Prisma.SortOrder label?: Prisma.SortOrder } export type PayPeriodsOrderByWithAggregationInput = { pay_year?: Prisma.SortOrder pay_period_no?: Prisma.SortOrder period_start?: Prisma.SortOrder period_end?: Prisma.SortOrder payday?: Prisma.SortOrder label?: Prisma.SortOrder _count?: Prisma.PayPeriodsCountOrderByAggregateInput _avg?: Prisma.PayPeriodsAvgOrderByAggregateInput _max?: Prisma.PayPeriodsMaxOrderByAggregateInput _min?: Prisma.PayPeriodsMinOrderByAggregateInput _sum?: Prisma.PayPeriodsSumOrderByAggregateInput } export type PayPeriodsScalarWhereWithAggregatesInput = { AND?: Prisma.PayPeriodsScalarWhereWithAggregatesInput | Prisma.PayPeriodsScalarWhereWithAggregatesInput[] OR?: Prisma.PayPeriodsScalarWhereWithAggregatesInput[] NOT?: Prisma.PayPeriodsScalarWhereWithAggregatesInput | Prisma.PayPeriodsScalarWhereWithAggregatesInput[] pay_year?: Prisma.IntWithAggregatesFilter<"PayPeriods"> | number pay_period_no?: Prisma.IntWithAggregatesFilter<"PayPeriods"> | number period_start?: Prisma.DateTimeWithAggregatesFilter<"PayPeriods"> | Date | string period_end?: Prisma.DateTimeWithAggregatesFilter<"PayPeriods"> | Date | string payday?: Prisma.DateTimeWithAggregatesFilter<"PayPeriods"> | Date | string label?: Prisma.StringWithAggregatesFilter<"PayPeriods"> | string } export type PayPeriodsCountOrderByAggregateInput = { pay_year?: Prisma.SortOrder pay_period_no?: Prisma.SortOrder period_start?: Prisma.SortOrder period_end?: Prisma.SortOrder payday?: Prisma.SortOrder label?: Prisma.SortOrder } export type PayPeriodsAvgOrderByAggregateInput = { pay_year?: Prisma.SortOrder pay_period_no?: Prisma.SortOrder } export type PayPeriodsMaxOrderByAggregateInput = { pay_year?: Prisma.SortOrder pay_period_no?: Prisma.SortOrder period_start?: Prisma.SortOrder period_end?: Prisma.SortOrder payday?: Prisma.SortOrder label?: Prisma.SortOrder } export type PayPeriodsMinOrderByAggregateInput = { pay_year?: Prisma.SortOrder pay_period_no?: Prisma.SortOrder period_start?: Prisma.SortOrder period_end?: Prisma.SortOrder payday?: Prisma.SortOrder label?: Prisma.SortOrder } export type PayPeriodsSumOrderByAggregateInput = { pay_year?: Prisma.SortOrder pay_period_no?: Prisma.SortOrder } export type PayPeriodsSelect = runtime.Types.Extensions.GetSelect<{ pay_year?: boolean pay_period_no?: boolean period_start?: boolean period_end?: boolean payday?: boolean label?: boolean }, ExtArgs["result"]["payPeriods"]> export type PayPeriodsSelectScalar = { pay_year?: boolean pay_period_no?: boolean period_start?: boolean period_end?: boolean payday?: boolean label?: boolean } export type PayPeriodsOmit = runtime.Types.Extensions.GetOmit<"pay_year" | "pay_period_no" | "period_start" | "period_end" | "payday" | "label", ExtArgs["result"]["payPeriods"]> export type $PayPeriodsPayload = { name: "PayPeriods" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ pay_year: number pay_period_no: number period_start: Date period_end: Date payday: Date label: string }, ExtArgs["result"]["payPeriods"]> composites: {} } export type PayPeriodsGetPayload = runtime.Types.Result.GetResult export type PayPeriodsCountArgs = Omit & { select?: PayPeriodsCountAggregateInputType | true } export interface PayPeriodsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PayPeriods'], meta: { name: 'PayPeriods' } } /** * Find the first PayPeriods 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 {PayPeriodsFindFirstArgs} args - Arguments to find a PayPeriods * @example * // Get one PayPeriods * const payPeriods = await prisma.payPeriods.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst ? { orderBy: {} } : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys ? { orderBy: {} } : {}>(args?: Prisma.SelectSubset> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__PayPeriodsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PayPeriods 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 {PayPeriodsFindFirstOrThrowArgs} args - Arguments to find a PayPeriods * @example * // Get one PayPeriods * const payPeriods = await prisma.payPeriods.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow ? { orderBy: {} } : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys ? { orderBy: {} } : {}>(args?: Prisma.SelectSubset> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__PayPeriodsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PayPeriods 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 {PayPeriodsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PayPeriods * const payPeriods = await prisma.payPeriods.findMany() * * // Get first 10 PayPeriods * const payPeriods = await prisma.payPeriods.findMany({ take: 10 }) * * // Only select the `pay_year` * const payPeriodsWithPay_yearOnly = await prisma.payPeriods.findMany({ select: { pay_year: true } }) * */ findMany ? { orderBy: {} } : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys ? { orderBy: {} } : {}>(args?: Prisma.SelectSubset> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Count the number of PayPeriods. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PayPeriodsCountArgs} args - Arguments to filter PayPeriods to count. * @example * // Count the number of PayPeriods * const count = await prisma.payPeriods.count({ * where: { * // ... the filter for the PayPeriods 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 PayPeriods. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PayPeriodsAggregateArgs} 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 PayPeriods. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PayPeriodsGroupByArgs} 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 PayPeriodsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: PayPeriodsGroupByArgs['orderBy'] } : { orderBy?: PayPeriodsGroupByArgs['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 ? GetPayPeriodsGroupByPayload : Prisma.PrismaPromise /** * Fields of the PayPeriods model */ readonly fields: PayPeriodsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PayPeriods. * 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__PayPeriodsClient 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 PayPeriods model */ export interface PayPeriodsFieldRefs { readonly pay_year: Prisma.FieldRef<"PayPeriods", 'Int'> readonly pay_period_no: Prisma.FieldRef<"PayPeriods", 'Int'> readonly period_start: Prisma.FieldRef<"PayPeriods", 'DateTime'> readonly period_end: Prisma.FieldRef<"PayPeriods", 'DateTime'> readonly payday: Prisma.FieldRef<"PayPeriods", 'DateTime'> readonly label: Prisma.FieldRef<"PayPeriods", 'String'> } // Custom InputTypes /** * PayPeriods findFirst */ export type PayPeriodsFindFirstArgs = { /** * Select specific fields to fetch from the PayPeriods */ select?: Prisma.PayPeriodsSelect | null /** * Omit specific fields from the PayPeriods */ omit?: Prisma.PayPeriodsOmit | null /** * Filter, which PayPeriods to fetch. */ where?: Prisma.PayPeriodsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PayPeriods to fetch. */ orderBy?: Prisma.PayPeriodsOrderByWithRelationInput | Prisma.PayPeriodsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PayPeriods 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` PayPeriods. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PayPeriods. */ distinct?: Prisma.PayPeriodsScalarFieldEnum | Prisma.PayPeriodsScalarFieldEnum[] } /** * PayPeriods findFirstOrThrow */ export type PayPeriodsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PayPeriods */ select?: Prisma.PayPeriodsSelect | null /** * Omit specific fields from the PayPeriods */ omit?: Prisma.PayPeriodsOmit | null /** * Filter, which PayPeriods to fetch. */ where?: Prisma.PayPeriodsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PayPeriods to fetch. */ orderBy?: Prisma.PayPeriodsOrderByWithRelationInput | Prisma.PayPeriodsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PayPeriods 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` PayPeriods. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PayPeriods. */ distinct?: Prisma.PayPeriodsScalarFieldEnum | Prisma.PayPeriodsScalarFieldEnum[] } /** * PayPeriods findMany */ export type PayPeriodsFindManyArgs = { /** * Select specific fields to fetch from the PayPeriods */ select?: Prisma.PayPeriodsSelect | null /** * Omit specific fields from the PayPeriods */ omit?: Prisma.PayPeriodsOmit | null /** * Filter, which PayPeriods to fetch. */ where?: Prisma.PayPeriodsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PayPeriods to fetch. */ orderBy?: Prisma.PayPeriodsOrderByWithRelationInput | Prisma.PayPeriodsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PayPeriods 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` PayPeriods. */ skip?: number distinct?: Prisma.PayPeriodsScalarFieldEnum | Prisma.PayPeriodsScalarFieldEnum[] } /** * PayPeriods without action */ export type PayPeriodsDefaultArgs = { /** * Select specific fields to fetch from the PayPeriods */ select?: Prisma.PayPeriodsSelect | null /** * Omit specific fields from the PayPeriods */ omit?: Prisma.PayPeriodsOmit | null }