/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `sick_leave` 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 sick_leave * */ export type sick_leaveModel = runtime.Types.Result.DefaultSelection export type AggregateSick_leave = { _count: Sick_leaveCountAggregateOutputType | null _avg: Sick_leaveAvgAggregateOutputType | null _sum: Sick_leaveSumAggregateOutputType | null _min: Sick_leaveMinAggregateOutputType | null _max: Sick_leaveMaxAggregateOutputType | null } export type Sick_leaveAvgAggregateOutputType = { accumulated: number | null consumed: number | null year: number | null created_at: number | null updated_at: number | null } export type Sick_leaveSumAggregateOutputType = { accumulated: number | null consumed: number | null year: number | null created_at: bigint | null updated_at: bigint | null } export type Sick_leaveMinAggregateOutputType = { id: string | null employee_id: string | null accumulated: number | null consumed: number | null year: number | null created_at: bigint | null updated_at: bigint | null } export type Sick_leaveMaxAggregateOutputType = { id: string | null employee_id: string | null accumulated: number | null consumed: number | null year: number | null created_at: bigint | null updated_at: bigint | null } export type Sick_leaveCountAggregateOutputType = { id: number employee_id: number accumulated: number consumed: number year: number created_at: number updated_at: number _all: number } export type Sick_leaveAvgAggregateInputType = { accumulated?: true consumed?: true year?: true created_at?: true updated_at?: true } export type Sick_leaveSumAggregateInputType = { accumulated?: true consumed?: true year?: true created_at?: true updated_at?: true } export type Sick_leaveMinAggregateInputType = { id?: true employee_id?: true accumulated?: true consumed?: true year?: true created_at?: true updated_at?: true } export type Sick_leaveMaxAggregateInputType = { id?: true employee_id?: true accumulated?: true consumed?: true year?: true created_at?: true updated_at?: true } export type Sick_leaveCountAggregateInputType = { id?: true employee_id?: true accumulated?: true consumed?: true year?: true created_at?: true updated_at?: true _all?: true } export type Sick_leaveAggregateArgs = { /** * Filter which sick_leave to aggregate. */ where?: Prisma.sick_leaveWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of sick_leaves to fetch. */ orderBy?: Prisma.sick_leaveOrderByWithRelationInput | Prisma.sick_leaveOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.sick_leaveWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` sick_leaves 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` sick_leaves. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned sick_leaves **/ _count?: true | Sick_leaveCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Sick_leaveAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Sick_leaveSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Sick_leaveMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Sick_leaveMaxAggregateInputType } export type GetSick_leaveAggregateType = { [P in keyof T & keyof AggregateSick_leave]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type sick_leaveGroupByArgs = { where?: Prisma.sick_leaveWhereInput orderBy?: Prisma.sick_leaveOrderByWithAggregationInput | Prisma.sick_leaveOrderByWithAggregationInput[] by: Prisma.Sick_leaveScalarFieldEnum[] | Prisma.Sick_leaveScalarFieldEnum having?: Prisma.sick_leaveScalarWhereWithAggregatesInput take?: number skip?: number _count?: Sick_leaveCountAggregateInputType | true _avg?: Sick_leaveAvgAggregateInputType _sum?: Sick_leaveSumAggregateInputType _min?: Sick_leaveMinAggregateInputType _max?: Sick_leaveMaxAggregateInputType } export type Sick_leaveGroupByOutputType = { id: string employee_id: string | null accumulated: number | null consumed: number | null year: number | null created_at: bigint | null updated_at: bigint | null _count: Sick_leaveCountAggregateOutputType | null _avg: Sick_leaveAvgAggregateOutputType | null _sum: Sick_leaveSumAggregateOutputType | null _min: Sick_leaveMinAggregateOutputType | null _max: Sick_leaveMaxAggregateOutputType | null } type GetSick_leaveGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Sick_leaveGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type sick_leaveWhereInput = { AND?: Prisma.sick_leaveWhereInput | Prisma.sick_leaveWhereInput[] OR?: Prisma.sick_leaveWhereInput[] NOT?: Prisma.sick_leaveWhereInput | Prisma.sick_leaveWhereInput[] id?: Prisma.UuidFilter<"sick_leave"> | string employee_id?: Prisma.StringNullableFilter<"sick_leave"> | string | null accumulated?: Prisma.FloatNullableFilter<"sick_leave"> | number | null consumed?: Prisma.FloatNullableFilter<"sick_leave"> | number | null year?: Prisma.IntNullableFilter<"sick_leave"> | number | null created_at?: Prisma.BigIntNullableFilter<"sick_leave"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"sick_leave"> | bigint | number | null } export type sick_leaveOrderByWithRelationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrderInput | Prisma.SortOrder accumulated?: Prisma.SortOrderInput | Prisma.SortOrder consumed?: Prisma.SortOrderInput | Prisma.SortOrder year?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder } export type sick_leaveWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.sick_leaveWhereInput | Prisma.sick_leaveWhereInput[] OR?: Prisma.sick_leaveWhereInput[] NOT?: Prisma.sick_leaveWhereInput | Prisma.sick_leaveWhereInput[] employee_id?: Prisma.StringNullableFilter<"sick_leave"> | string | null accumulated?: Prisma.FloatNullableFilter<"sick_leave"> | number | null consumed?: Prisma.FloatNullableFilter<"sick_leave"> | number | null year?: Prisma.IntNullableFilter<"sick_leave"> | number | null created_at?: Prisma.BigIntNullableFilter<"sick_leave"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"sick_leave"> | bigint | number | null }, "id"> export type sick_leaveOrderByWithAggregationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrderInput | Prisma.SortOrder accumulated?: Prisma.SortOrderInput | Prisma.SortOrder consumed?: Prisma.SortOrderInput | Prisma.SortOrder year?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.sick_leaveCountOrderByAggregateInput _avg?: Prisma.sick_leaveAvgOrderByAggregateInput _max?: Prisma.sick_leaveMaxOrderByAggregateInput _min?: Prisma.sick_leaveMinOrderByAggregateInput _sum?: Prisma.sick_leaveSumOrderByAggregateInput } export type sick_leaveScalarWhereWithAggregatesInput = { AND?: Prisma.sick_leaveScalarWhereWithAggregatesInput | Prisma.sick_leaveScalarWhereWithAggregatesInput[] OR?: Prisma.sick_leaveScalarWhereWithAggregatesInput[] NOT?: Prisma.sick_leaveScalarWhereWithAggregatesInput | Prisma.sick_leaveScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"sick_leave"> | string employee_id?: Prisma.StringNullableWithAggregatesFilter<"sick_leave"> | string | null accumulated?: Prisma.FloatNullableWithAggregatesFilter<"sick_leave"> | number | null consumed?: Prisma.FloatNullableWithAggregatesFilter<"sick_leave"> | number | null year?: Prisma.IntNullableWithAggregatesFilter<"sick_leave"> | number | null created_at?: Prisma.BigIntNullableWithAggregatesFilter<"sick_leave"> | bigint | number | null updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"sick_leave"> | bigint | number | null } export type sick_leaveCreateInput = { id: string employee_id?: string | null accumulated?: number | null consumed?: number | null year?: number | null created_at?: bigint | number | null updated_at?: bigint | number | null } export type sick_leaveUncheckedCreateInput = { id: string employee_id?: string | null accumulated?: number | null consumed?: number | null year?: number | null created_at?: bigint | number | null updated_at?: bigint | number | null } export type sick_leaveUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type sick_leaveUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type sick_leaveCreateManyInput = { id: string employee_id?: string | null accumulated?: number | null consumed?: number | null year?: number | null created_at?: bigint | number | null updated_at?: bigint | number | null } export type sick_leaveUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type sick_leaveUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type sick_leaveCountOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder accumulated?: Prisma.SortOrder consumed?: Prisma.SortOrder year?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type sick_leaveAvgOrderByAggregateInput = { accumulated?: Prisma.SortOrder consumed?: Prisma.SortOrder year?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type sick_leaveMaxOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder accumulated?: Prisma.SortOrder consumed?: Prisma.SortOrder year?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type sick_leaveMinOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder accumulated?: Prisma.SortOrder consumed?: Prisma.SortOrder year?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type sick_leaveSumOrderByAggregateInput = { accumulated?: Prisma.SortOrder consumed?: Prisma.SortOrder year?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type sick_leaveSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean accumulated?: boolean consumed?: boolean year?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["sick_leave"]> export type sick_leaveSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean accumulated?: boolean consumed?: boolean year?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["sick_leave"]> export type sick_leaveSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean accumulated?: boolean consumed?: boolean year?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["sick_leave"]> export type sick_leaveSelectScalar = { id?: boolean employee_id?: boolean accumulated?: boolean consumed?: boolean year?: boolean created_at?: boolean updated_at?: boolean } export type sick_leaveOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "accumulated" | "consumed" | "year" | "created_at" | "updated_at", ExtArgs["result"]["sick_leave"]> export type $sick_leavePayload = { name: "sick_leave" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string employee_id: string | null accumulated: number | null consumed: number | null year: number | null created_at: bigint | null updated_at: bigint | null }, ExtArgs["result"]["sick_leave"]> composites: {} } export type sick_leaveGetPayload = runtime.Types.Result.GetResult export type sick_leaveCountArgs = Omit & { select?: Sick_leaveCountAggregateInputType | true } export interface sick_leaveDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['sick_leave'], meta: { name: 'sick_leave' } } /** * Find zero or one Sick_leave that matches the filter. * @param {sick_leaveFindUniqueArgs} args - Arguments to find a Sick_leave * @example * // Get one Sick_leave * const sick_leave = await prisma.sick_leave.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Sick_leave that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {sick_leaveFindUniqueOrThrowArgs} args - Arguments to find a Sick_leave * @example * // Get one Sick_leave * const sick_leave = await prisma.sick_leave.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Sick_leave 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 {sick_leaveFindFirstArgs} args - Arguments to find a Sick_leave * @example * // Get one Sick_leave * const sick_leave = await prisma.sick_leave.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Sick_leave 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 {sick_leaveFindFirstOrThrowArgs} args - Arguments to find a Sick_leave * @example * // Get one Sick_leave * const sick_leave = await prisma.sick_leave.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Sick_leaves 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 {sick_leaveFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sick_leaves * const sick_leaves = await prisma.sick_leave.findMany() * * // Get first 10 Sick_leaves * const sick_leaves = await prisma.sick_leave.findMany({ take: 10 }) * * // Only select the `id` * const sick_leaveWithIdOnly = await prisma.sick_leave.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Sick_leave. * @param {sick_leaveCreateArgs} args - Arguments to create a Sick_leave. * @example * // Create one Sick_leave * const Sick_leave = await prisma.sick_leave.create({ * data: { * // ... data to create a Sick_leave * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Sick_leaves. * @param {sick_leaveCreateManyArgs} args - Arguments to create many Sick_leaves. * @example * // Create many Sick_leaves * const sick_leave = await prisma.sick_leave.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Sick_leaves and returns the data saved in the database. * @param {sick_leaveCreateManyAndReturnArgs} args - Arguments to create many Sick_leaves. * @example * // Create many Sick_leaves * const sick_leave = await prisma.sick_leave.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Sick_leaves and only return the `id` * const sick_leaveWithIdOnly = await prisma.sick_leave.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 Sick_leave. * @param {sick_leaveDeleteArgs} args - Arguments to delete one Sick_leave. * @example * // Delete one Sick_leave * const Sick_leave = await prisma.sick_leave.delete({ * where: { * // ... filter to delete one Sick_leave * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Sick_leave. * @param {sick_leaveUpdateArgs} args - Arguments to update one Sick_leave. * @example * // Update one Sick_leave * const sick_leave = await prisma.sick_leave.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Sick_leaves. * @param {sick_leaveDeleteManyArgs} args - Arguments to filter Sick_leaves to delete. * @example * // Delete a few Sick_leaves * const { count } = await prisma.sick_leave.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sick_leaves. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {sick_leaveUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sick_leaves * const sick_leave = await prisma.sick_leave.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sick_leaves and returns the data updated in the database. * @param {sick_leaveUpdateManyAndReturnArgs} args - Arguments to update many Sick_leaves. * @example * // Update many Sick_leaves * const sick_leave = await prisma.sick_leave.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Sick_leaves and only return the `id` * const sick_leaveWithIdOnly = await prisma.sick_leave.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 Sick_leave. * @param {sick_leaveUpsertArgs} args - Arguments to update or create a Sick_leave. * @example * // Update or create a Sick_leave * const sick_leave = await prisma.sick_leave.upsert({ * create: { * // ... data to create a Sick_leave * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Sick_leave we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Sick_leaves. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {sick_leaveCountArgs} args - Arguments to filter Sick_leaves to count. * @example * // Count the number of Sick_leaves * const count = await prisma.sick_leave.count({ * where: { * // ... the filter for the Sick_leaves 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 Sick_leave. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Sick_leaveAggregateArgs} 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 Sick_leave. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {sick_leaveGroupByArgs} 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 sick_leaveGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: sick_leaveGroupByArgs['orderBy'] } : { orderBy?: sick_leaveGroupByArgs['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 ? GetSick_leaveGroupByPayload : Prisma.PrismaPromise /** * Fields of the sick_leave model */ readonly fields: sick_leaveFieldRefs; } /** * The delegate class that acts as a "Promise-like" for sick_leave. * 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__sick_leaveClient 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 sick_leave model */ export interface sick_leaveFieldRefs { readonly id: Prisma.FieldRef<"sick_leave", 'String'> readonly employee_id: Prisma.FieldRef<"sick_leave", 'String'> readonly accumulated: Prisma.FieldRef<"sick_leave", 'Float'> readonly consumed: Prisma.FieldRef<"sick_leave", 'Float'> readonly year: Prisma.FieldRef<"sick_leave", 'Int'> readonly created_at: Prisma.FieldRef<"sick_leave", 'BigInt'> readonly updated_at: Prisma.FieldRef<"sick_leave", 'BigInt'> } // Custom InputTypes /** * sick_leave findUnique */ export type sick_leaveFindUniqueArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * Filter, which sick_leave to fetch. */ where: Prisma.sick_leaveWhereUniqueInput } /** * sick_leave findUniqueOrThrow */ export type sick_leaveFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * Filter, which sick_leave to fetch. */ where: Prisma.sick_leaveWhereUniqueInput } /** * sick_leave findFirst */ export type sick_leaveFindFirstArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * Filter, which sick_leave to fetch. */ where?: Prisma.sick_leaveWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of sick_leaves to fetch. */ orderBy?: Prisma.sick_leaveOrderByWithRelationInput | Prisma.sick_leaveOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for sick_leaves. */ cursor?: Prisma.sick_leaveWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` sick_leaves 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` sick_leaves. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of sick_leaves. */ distinct?: Prisma.Sick_leaveScalarFieldEnum | Prisma.Sick_leaveScalarFieldEnum[] } /** * sick_leave findFirstOrThrow */ export type sick_leaveFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * Filter, which sick_leave to fetch. */ where?: Prisma.sick_leaveWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of sick_leaves to fetch. */ orderBy?: Prisma.sick_leaveOrderByWithRelationInput | Prisma.sick_leaveOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for sick_leaves. */ cursor?: Prisma.sick_leaveWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` sick_leaves 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` sick_leaves. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of sick_leaves. */ distinct?: Prisma.Sick_leaveScalarFieldEnum | Prisma.Sick_leaveScalarFieldEnum[] } /** * sick_leave findMany */ export type sick_leaveFindManyArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * Filter, which sick_leaves to fetch. */ where?: Prisma.sick_leaveWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of sick_leaves to fetch. */ orderBy?: Prisma.sick_leaveOrderByWithRelationInput | Prisma.sick_leaveOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing sick_leaves. */ cursor?: Prisma.sick_leaveWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` sick_leaves 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` sick_leaves. */ skip?: number distinct?: Prisma.Sick_leaveScalarFieldEnum | Prisma.Sick_leaveScalarFieldEnum[] } /** * sick_leave create */ export type sick_leaveCreateArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * The data needed to create a sick_leave. */ data: Prisma.XOR } /** * sick_leave createMany */ export type sick_leaveCreateManyArgs = { /** * The data used to create many sick_leaves. */ data: Prisma.sick_leaveCreateManyInput | Prisma.sick_leaveCreateManyInput[] skipDuplicates?: boolean } /** * sick_leave createManyAndReturn */ export type sick_leaveCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelectCreateManyAndReturn | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * The data used to create many sick_leaves. */ data: Prisma.sick_leaveCreateManyInput | Prisma.sick_leaveCreateManyInput[] skipDuplicates?: boolean } /** * sick_leave update */ export type sick_leaveUpdateArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * The data needed to update a sick_leave. */ data: Prisma.XOR /** * Choose, which sick_leave to update. */ where: Prisma.sick_leaveWhereUniqueInput } /** * sick_leave updateMany */ export type sick_leaveUpdateManyArgs = { /** * The data used to update sick_leaves. */ data: Prisma.XOR /** * Filter which sick_leaves to update */ where?: Prisma.sick_leaveWhereInput /** * Limit how many sick_leaves to update. */ limit?: number } /** * sick_leave updateManyAndReturn */ export type sick_leaveUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelectUpdateManyAndReturn | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * The data used to update sick_leaves. */ data: Prisma.XOR /** * Filter which sick_leaves to update */ where?: Prisma.sick_leaveWhereInput /** * Limit how many sick_leaves to update. */ limit?: number } /** * sick_leave upsert */ export type sick_leaveUpsertArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * The filter to search for the sick_leave to update in case it exists. */ where: Prisma.sick_leaveWhereUniqueInput /** * In case the sick_leave found by the `where` argument doesn't exist, create a new sick_leave with this data. */ create: Prisma.XOR /** * In case the sick_leave was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * sick_leave delete */ export type sick_leaveDeleteArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null /** * Filter which sick_leave to delete. */ where: Prisma.sick_leaveWhereUniqueInput } /** * sick_leave deleteMany */ export type sick_leaveDeleteManyArgs = { /** * Filter which sick_leaves to delete */ where?: Prisma.sick_leaveWhereInput /** * Limit how many sick_leaves to delete. */ limit?: number } /** * sick_leave without action */ export type sick_leaveDefaultArgs = { /** * Select specific fields to fetch from the sick_leave */ select?: Prisma.sick_leaveSelect | null /** * Omit specific fields from the sick_leave */ omit?: Prisma.sick_leaveOmit | null }