/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `EmployeePayslip` 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.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model EmployeePayslip * A payslip PDF for one employee for one period. The bytes live in a File * (referenced by bare `fileId`). Opening the payslip marks it read * (`isRead`/`readAt`) and writes an audit event per read. Soft-delete via * `archivedAt`. */ export type EmployeePayslipModel = runtime.Types.Result.DefaultSelection export type AggregateEmployeePayslip = { _count: EmployeePayslipCountAggregateOutputType | null _avg: EmployeePayslipAvgAggregateOutputType | null _sum: EmployeePayslipSumAggregateOutputType | null _min: EmployeePayslipMinAggregateOutputType | null _max: EmployeePayslipMaxAggregateOutputType | null } export type EmployeePayslipAvgAggregateOutputType = { periodYear: number | null periodMonth: number | null } export type EmployeePayslipSumAggregateOutputType = { periodYear: number | null periodMonth: number | null } export type EmployeePayslipMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null employeeUserId: string | null uploadedByUserId: string | null periodYear: number | null periodMonth: number | null fileId: string | null isRead: boolean | null readAt: Date | null isDemoData: boolean | null archivedAt: Date | null } export type EmployeePayslipMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null employeeUserId: string | null uploadedByUserId: string | null periodYear: number | null periodMonth: number | null fileId: string | null isRead: boolean | null readAt: Date | null isDemoData: boolean | null archivedAt: Date | null } export type EmployeePayslipCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number employeeUserId: number uploadedByUserId: number periodYear: number periodMonth: number fileId: number isRead: number readAt: number isDemoData: number archivedAt: number _all: number } export type EmployeePayslipAvgAggregateInputType = { periodYear?: true periodMonth?: true } export type EmployeePayslipSumAggregateInputType = { periodYear?: true periodMonth?: true } export type EmployeePayslipMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true employeeUserId?: true uploadedByUserId?: true periodYear?: true periodMonth?: true fileId?: true isRead?: true readAt?: true isDemoData?: true archivedAt?: true } export type EmployeePayslipMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true employeeUserId?: true uploadedByUserId?: true periodYear?: true periodMonth?: true fileId?: true isRead?: true readAt?: true isDemoData?: true archivedAt?: true } export type EmployeePayslipCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true employeeUserId?: true uploadedByUserId?: true periodYear?: true periodMonth?: true fileId?: true isRead?: true readAt?: true isDemoData?: true archivedAt?: true _all?: true } export type EmployeePayslipAggregateArgs = { /** * Filter which EmployeePayslip to aggregate. */ where?: Prisma.EmployeePayslipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmployeePayslips to fetch. */ orderBy?: Prisma.EmployeePayslipOrderByWithRelationInput | Prisma.EmployeePayslipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EmployeePayslipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmployeePayslips 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` EmployeePayslips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EmployeePayslips **/ _count?: true | EmployeePayslipCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EmployeePayslipAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EmployeePayslipSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EmployeePayslipMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EmployeePayslipMaxAggregateInputType } export type GetEmployeePayslipAggregateType = { [P in keyof T & keyof AggregateEmployeePayslip]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type EmployeePayslipGroupByArgs = { where?: Prisma.EmployeePayslipWhereInput orderBy?: Prisma.EmployeePayslipOrderByWithAggregationInput | Prisma.EmployeePayslipOrderByWithAggregationInput[] by: Prisma.EmployeePayslipScalarFieldEnum[] | Prisma.EmployeePayslipScalarFieldEnum having?: Prisma.EmployeePayslipScalarWhereWithAggregatesInput take?: number skip?: number _count?: EmployeePayslipCountAggregateInputType | true _avg?: EmployeePayslipAvgAggregateInputType _sum?: EmployeePayslipSumAggregateInputType _min?: EmployeePayslipMinAggregateInputType _max?: EmployeePayslipMaxAggregateInputType } export type EmployeePayslipGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string employeeUserId: string uploadedByUserId: string periodYear: number periodMonth: number fileId: string isRead: boolean readAt: Date | null isDemoData: boolean archivedAt: Date | null _count: EmployeePayslipCountAggregateOutputType | null _avg: EmployeePayslipAvgAggregateOutputType | null _sum: EmployeePayslipSumAggregateOutputType | null _min: EmployeePayslipMinAggregateOutputType | null _max: EmployeePayslipMaxAggregateOutputType | null } export type GetEmployeePayslipGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof EmployeePayslipGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type EmployeePayslipWhereInput = { AND?: Prisma.EmployeePayslipWhereInput | Prisma.EmployeePayslipWhereInput[] OR?: Prisma.EmployeePayslipWhereInput[] NOT?: Prisma.EmployeePayslipWhereInput | Prisma.EmployeePayslipWhereInput[] id?: Prisma.StringFilter<"EmployeePayslip"> | string createdAt?: Prisma.DateTimeFilter<"EmployeePayslip"> | Date | string updatedAt?: Prisma.DateTimeFilter<"EmployeePayslip"> | Date | string tenantId?: Prisma.StringFilter<"EmployeePayslip"> | string employeeUserId?: Prisma.StringFilter<"EmployeePayslip"> | string uploadedByUserId?: Prisma.StringFilter<"EmployeePayslip"> | string periodYear?: Prisma.IntFilter<"EmployeePayslip"> | number periodMonth?: Prisma.IntFilter<"EmployeePayslip"> | number fileId?: Prisma.StringFilter<"EmployeePayslip"> | string isRead?: Prisma.BoolFilter<"EmployeePayslip"> | boolean readAt?: Prisma.DateTimeNullableFilter<"EmployeePayslip"> | Date | string | null isDemoData?: Prisma.BoolFilter<"EmployeePayslip"> | boolean archivedAt?: Prisma.DateTimeNullableFilter<"EmployeePayslip"> | Date | string | null } export type EmployeePayslipOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder employeeUserId?: Prisma.SortOrder uploadedByUserId?: Prisma.SortOrder periodYear?: Prisma.SortOrder periodMonth?: Prisma.SortOrder fileId?: Prisma.SortOrder isRead?: Prisma.SortOrder readAt?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder } export type EmployeePayslipWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId_employeeUserId_periodYear_periodMonth?: Prisma.EmployeePayslipTenantIdEmployeeUserIdPeriodYearPeriodMonthCompoundUniqueInput AND?: Prisma.EmployeePayslipWhereInput | Prisma.EmployeePayslipWhereInput[] OR?: Prisma.EmployeePayslipWhereInput[] NOT?: Prisma.EmployeePayslipWhereInput | Prisma.EmployeePayslipWhereInput[] createdAt?: Prisma.DateTimeFilter<"EmployeePayslip"> | Date | string updatedAt?: Prisma.DateTimeFilter<"EmployeePayslip"> | Date | string tenantId?: Prisma.StringFilter<"EmployeePayslip"> | string employeeUserId?: Prisma.StringFilter<"EmployeePayslip"> | string uploadedByUserId?: Prisma.StringFilter<"EmployeePayslip"> | string periodYear?: Prisma.IntFilter<"EmployeePayslip"> | number periodMonth?: Prisma.IntFilter<"EmployeePayslip"> | number fileId?: Prisma.StringFilter<"EmployeePayslip"> | string isRead?: Prisma.BoolFilter<"EmployeePayslip"> | boolean readAt?: Prisma.DateTimeNullableFilter<"EmployeePayslip"> | Date | string | null isDemoData?: Prisma.BoolFilter<"EmployeePayslip"> | boolean archivedAt?: Prisma.DateTimeNullableFilter<"EmployeePayslip"> | Date | string | null }, "id" | "tenantId_employeeUserId_periodYear_periodMonth"> export type EmployeePayslipOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder employeeUserId?: Prisma.SortOrder uploadedByUserId?: Prisma.SortOrder periodYear?: Prisma.SortOrder periodMonth?: Prisma.SortOrder fileId?: Prisma.SortOrder isRead?: Prisma.SortOrder readAt?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.EmployeePayslipCountOrderByAggregateInput _avg?: Prisma.EmployeePayslipAvgOrderByAggregateInput _max?: Prisma.EmployeePayslipMaxOrderByAggregateInput _min?: Prisma.EmployeePayslipMinOrderByAggregateInput _sum?: Prisma.EmployeePayslipSumOrderByAggregateInput } export type EmployeePayslipScalarWhereWithAggregatesInput = { AND?: Prisma.EmployeePayslipScalarWhereWithAggregatesInput | Prisma.EmployeePayslipScalarWhereWithAggregatesInput[] OR?: Prisma.EmployeePayslipScalarWhereWithAggregatesInput[] NOT?: Prisma.EmployeePayslipScalarWhereWithAggregatesInput | Prisma.EmployeePayslipScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"EmployeePayslip"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"EmployeePayslip"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"EmployeePayslip"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"EmployeePayslip"> | string employeeUserId?: Prisma.StringWithAggregatesFilter<"EmployeePayslip"> | string uploadedByUserId?: Prisma.StringWithAggregatesFilter<"EmployeePayslip"> | string periodYear?: Prisma.IntWithAggregatesFilter<"EmployeePayslip"> | number periodMonth?: Prisma.IntWithAggregatesFilter<"EmployeePayslip"> | number fileId?: Prisma.StringWithAggregatesFilter<"EmployeePayslip"> | string isRead?: Prisma.BoolWithAggregatesFilter<"EmployeePayslip"> | boolean readAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EmployeePayslip"> | Date | string | null isDemoData?: Prisma.BoolWithAggregatesFilter<"EmployeePayslip"> | boolean archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EmployeePayslip"> | Date | string | null } export type EmployeePayslipCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string employeeUserId: string uploadedByUserId: string periodYear: number periodMonth: number fileId: string isRead?: boolean readAt?: Date | string | null isDemoData?: boolean archivedAt?: Date | string | null } export type EmployeePayslipUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string employeeUserId: string uploadedByUserId: string periodYear: number periodMonth: number fileId: string isRead?: boolean readAt?: Date | string | null isDemoData?: boolean archivedAt?: Date | string | null } export type EmployeePayslipUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string uploadedByUserId?: Prisma.StringFieldUpdateOperationsInput | string periodYear?: Prisma.IntFieldUpdateOperationsInput | number periodMonth?: Prisma.IntFieldUpdateOperationsInput | number fileId?: Prisma.StringFieldUpdateOperationsInput | string isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type EmployeePayslipUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string uploadedByUserId?: Prisma.StringFieldUpdateOperationsInput | string periodYear?: Prisma.IntFieldUpdateOperationsInput | number periodMonth?: Prisma.IntFieldUpdateOperationsInput | number fileId?: Prisma.StringFieldUpdateOperationsInput | string isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type EmployeePayslipCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string employeeUserId: string uploadedByUserId: string periodYear: number periodMonth: number fileId: string isRead?: boolean readAt?: Date | string | null isDemoData?: boolean archivedAt?: Date | string | null } export type EmployeePayslipUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string uploadedByUserId?: Prisma.StringFieldUpdateOperationsInput | string periodYear?: Prisma.IntFieldUpdateOperationsInput | number periodMonth?: Prisma.IntFieldUpdateOperationsInput | number fileId?: Prisma.StringFieldUpdateOperationsInput | string isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type EmployeePayslipUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string uploadedByUserId?: Prisma.StringFieldUpdateOperationsInput | string periodYear?: Prisma.IntFieldUpdateOperationsInput | number periodMonth?: Prisma.IntFieldUpdateOperationsInput | number fileId?: Prisma.StringFieldUpdateOperationsInput | string isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type EmployeePayslipTenantIdEmployeeUserIdPeriodYearPeriodMonthCompoundUniqueInput = { tenantId: string employeeUserId: string periodYear: number periodMonth: number } export type EmployeePayslipCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder employeeUserId?: Prisma.SortOrder uploadedByUserId?: Prisma.SortOrder periodYear?: Prisma.SortOrder periodMonth?: Prisma.SortOrder fileId?: Prisma.SortOrder isRead?: Prisma.SortOrder readAt?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type EmployeePayslipAvgOrderByAggregateInput = { periodYear?: Prisma.SortOrder periodMonth?: Prisma.SortOrder } export type EmployeePayslipMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder employeeUserId?: Prisma.SortOrder uploadedByUserId?: Prisma.SortOrder periodYear?: Prisma.SortOrder periodMonth?: Prisma.SortOrder fileId?: Prisma.SortOrder isRead?: Prisma.SortOrder readAt?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type EmployeePayslipMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder employeeUserId?: Prisma.SortOrder uploadedByUserId?: Prisma.SortOrder periodYear?: Prisma.SortOrder periodMonth?: Prisma.SortOrder fileId?: Prisma.SortOrder isRead?: Prisma.SortOrder readAt?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type EmployeePayslipSumOrderByAggregateInput = { periodYear?: Prisma.SortOrder periodMonth?: Prisma.SortOrder } export type EmployeePayslipSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean employeeUserId?: boolean uploadedByUserId?: boolean periodYear?: boolean periodMonth?: boolean fileId?: boolean isRead?: boolean readAt?: boolean isDemoData?: boolean archivedAt?: boolean }, ExtArgs["result"]["employeePayslip"]> export type EmployeePayslipSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean employeeUserId?: boolean uploadedByUserId?: boolean periodYear?: boolean periodMonth?: boolean fileId?: boolean isRead?: boolean readAt?: boolean isDemoData?: boolean archivedAt?: boolean }, ExtArgs["result"]["employeePayslip"]> export type EmployeePayslipSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean employeeUserId?: boolean uploadedByUserId?: boolean periodYear?: boolean periodMonth?: boolean fileId?: boolean isRead?: boolean readAt?: boolean isDemoData?: boolean archivedAt?: boolean }, ExtArgs["result"]["employeePayslip"]> export type EmployeePayslipSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean employeeUserId?: boolean uploadedByUserId?: boolean periodYear?: boolean periodMonth?: boolean fileId?: boolean isRead?: boolean readAt?: boolean isDemoData?: boolean archivedAt?: boolean } export type EmployeePayslipOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "employeeUserId" | "uploadedByUserId" | "periodYear" | "periodMonth" | "fileId" | "isRead" | "readAt" | "isDemoData" | "archivedAt", ExtArgs["result"]["employeePayslip"]> export type $EmployeePayslipPayload = { name: "EmployeePayslip" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string employeeUserId: string uploadedByUserId: string periodYear: number periodMonth: number fileId: string isRead: boolean readAt: Date | null isDemoData: boolean archivedAt: Date | null }, ExtArgs["result"]["employeePayslip"]> composites: {} } export type EmployeePayslipGetPayload = runtime.Types.Result.GetResult export type EmployeePayslipCountArgs = Omit & { select?: EmployeePayslipCountAggregateInputType | true } export interface EmployeePayslipDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EmployeePayslip'], meta: { name: 'EmployeePayslip' } } /** * Find zero or one EmployeePayslip that matches the filter. * @param {EmployeePayslipFindUniqueArgs} args - Arguments to find a EmployeePayslip * @example * // Get one EmployeePayslip * const employeePayslip = await prisma.employeePayslip.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeePayslipClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one EmployeePayslip that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EmployeePayslipFindUniqueOrThrowArgs} args - Arguments to find a EmployeePayslip * @example * // Get one EmployeePayslip * const employeePayslip = await prisma.employeePayslip.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeePayslipClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first EmployeePayslip 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 {EmployeePayslipFindFirstArgs} args - Arguments to find a EmployeePayslip * @example * // Get one EmployeePayslip * const employeePayslip = await prisma.employeePayslip.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EmployeePayslipClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first EmployeePayslip 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 {EmployeePayslipFindFirstOrThrowArgs} args - Arguments to find a EmployeePayslip * @example * // Get one EmployeePayslip * const employeePayslip = await prisma.employeePayslip.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EmployeePayslipClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more EmployeePayslips 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 {EmployeePayslipFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EmployeePayslips * const employeePayslips = await prisma.employeePayslip.findMany() * * // Get first 10 EmployeePayslips * const employeePayslips = await prisma.employeePayslip.findMany({ take: 10 }) * * // Only select the `id` * const employeePayslipWithIdOnly = await prisma.employeePayslip.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a EmployeePayslip. * @param {EmployeePayslipCreateArgs} args - Arguments to create a EmployeePayslip. * @example * // Create one EmployeePayslip * const EmployeePayslip = await prisma.employeePayslip.create({ * data: { * // ... data to create a EmployeePayslip * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeePayslipClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many EmployeePayslips. * @param {EmployeePayslipCreateManyArgs} args - Arguments to create many EmployeePayslips. * @example * // Create many EmployeePayslips * const employeePayslip = await prisma.employeePayslip.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many EmployeePayslips and returns the data saved in the database. * @param {EmployeePayslipCreateManyAndReturnArgs} args - Arguments to create many EmployeePayslips. * @example * // Create many EmployeePayslips * const employeePayslip = await prisma.employeePayslip.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EmployeePayslips and only return the `id` * const employeePayslipWithIdOnly = await prisma.employeePayslip.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 EmployeePayslip. * @param {EmployeePayslipDeleteArgs} args - Arguments to delete one EmployeePayslip. * @example * // Delete one EmployeePayslip * const EmployeePayslip = await prisma.employeePayslip.delete({ * where: { * // ... filter to delete one EmployeePayslip * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeePayslipClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one EmployeePayslip. * @param {EmployeePayslipUpdateArgs} args - Arguments to update one EmployeePayslip. * @example * // Update one EmployeePayslip * const employeePayslip = await prisma.employeePayslip.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeePayslipClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more EmployeePayslips. * @param {EmployeePayslipDeleteManyArgs} args - Arguments to filter EmployeePayslips to delete. * @example * // Delete a few EmployeePayslips * const { count } = await prisma.employeePayslip.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmployeePayslips. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmployeePayslipUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EmployeePayslips * const employeePayslip = await prisma.employeePayslip.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmployeePayslips and returns the data updated in the database. * @param {EmployeePayslipUpdateManyAndReturnArgs} args - Arguments to update many EmployeePayslips. * @example * // Update many EmployeePayslips * const employeePayslip = await prisma.employeePayslip.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more EmployeePayslips and only return the `id` * const employeePayslipWithIdOnly = await prisma.employeePayslip.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 EmployeePayslip. * @param {EmployeePayslipUpsertArgs} args - Arguments to update or create a EmployeePayslip. * @example * // Update or create a EmployeePayslip * const employeePayslip = await prisma.employeePayslip.upsert({ * create: { * // ... data to create a EmployeePayslip * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EmployeePayslip we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeePayslipClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of EmployeePayslips. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmployeePayslipCountArgs} args - Arguments to filter EmployeePayslips to count. * @example * // Count the number of EmployeePayslips * const count = await prisma.employeePayslip.count({ * where: { * // ... the filter for the EmployeePayslips 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 EmployeePayslip. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmployeePayslipAggregateArgs} 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 EmployeePayslip. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmployeePayslipGroupByArgs} 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 EmployeePayslipGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EmployeePayslipGroupByArgs['orderBy'] } : { orderBy?: EmployeePayslipGroupByArgs['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 ? GetEmployeePayslipGroupByPayload : Prisma.PrismaPromise /** * Fields of the EmployeePayslip model */ readonly fields: EmployeePayslipFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EmployeePayslip. * 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__EmployeePayslipClient 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 EmployeePayslip model */ export interface EmployeePayslipFieldRefs { readonly id: Prisma.FieldRef<"EmployeePayslip", 'String'> readonly createdAt: Prisma.FieldRef<"EmployeePayslip", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"EmployeePayslip", 'DateTime'> readonly tenantId: Prisma.FieldRef<"EmployeePayslip", 'String'> readonly employeeUserId: Prisma.FieldRef<"EmployeePayslip", 'String'> readonly uploadedByUserId: Prisma.FieldRef<"EmployeePayslip", 'String'> readonly periodYear: Prisma.FieldRef<"EmployeePayslip", 'Int'> readonly periodMonth: Prisma.FieldRef<"EmployeePayslip", 'Int'> readonly fileId: Prisma.FieldRef<"EmployeePayslip", 'String'> readonly isRead: Prisma.FieldRef<"EmployeePayslip", 'Boolean'> readonly readAt: Prisma.FieldRef<"EmployeePayslip", 'DateTime'> readonly isDemoData: Prisma.FieldRef<"EmployeePayslip", 'Boolean'> readonly archivedAt: Prisma.FieldRef<"EmployeePayslip", 'DateTime'> } // Custom InputTypes /** * EmployeePayslip findUnique */ export type EmployeePayslipFindUniqueArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * Filter, which EmployeePayslip to fetch. */ where: Prisma.EmployeePayslipWhereUniqueInput } /** * EmployeePayslip findUniqueOrThrow */ export type EmployeePayslipFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * Filter, which EmployeePayslip to fetch. */ where: Prisma.EmployeePayslipWhereUniqueInput } /** * EmployeePayslip findFirst */ export type EmployeePayslipFindFirstArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * Filter, which EmployeePayslip to fetch. */ where?: Prisma.EmployeePayslipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmployeePayslips to fetch. */ orderBy?: Prisma.EmployeePayslipOrderByWithRelationInput | Prisma.EmployeePayslipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmployeePayslips. */ cursor?: Prisma.EmployeePayslipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmployeePayslips 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` EmployeePayslips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmployeePayslips. */ distinct?: Prisma.EmployeePayslipScalarFieldEnum | Prisma.EmployeePayslipScalarFieldEnum[] } /** * EmployeePayslip findFirstOrThrow */ export type EmployeePayslipFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * Filter, which EmployeePayslip to fetch. */ where?: Prisma.EmployeePayslipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmployeePayslips to fetch. */ orderBy?: Prisma.EmployeePayslipOrderByWithRelationInput | Prisma.EmployeePayslipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmployeePayslips. */ cursor?: Prisma.EmployeePayslipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmployeePayslips 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` EmployeePayslips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmployeePayslips. */ distinct?: Prisma.EmployeePayslipScalarFieldEnum | Prisma.EmployeePayslipScalarFieldEnum[] } /** * EmployeePayslip findMany */ export type EmployeePayslipFindManyArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * Filter, which EmployeePayslips to fetch. */ where?: Prisma.EmployeePayslipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmployeePayslips to fetch. */ orderBy?: Prisma.EmployeePayslipOrderByWithRelationInput | Prisma.EmployeePayslipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EmployeePayslips. */ cursor?: Prisma.EmployeePayslipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmployeePayslips 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` EmployeePayslips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmployeePayslips. */ distinct?: Prisma.EmployeePayslipScalarFieldEnum | Prisma.EmployeePayslipScalarFieldEnum[] } /** * EmployeePayslip create */ export type EmployeePayslipCreateArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * The data needed to create a EmployeePayslip. */ data: Prisma.XOR } /** * EmployeePayslip createMany */ export type EmployeePayslipCreateManyArgs = { /** * The data used to create many EmployeePayslips. */ data: Prisma.EmployeePayslipCreateManyInput | Prisma.EmployeePayslipCreateManyInput[] skipDuplicates?: boolean } /** * EmployeePayslip createManyAndReturn */ export type EmployeePayslipCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelectCreateManyAndReturn | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * The data used to create many EmployeePayslips. */ data: Prisma.EmployeePayslipCreateManyInput | Prisma.EmployeePayslipCreateManyInput[] skipDuplicates?: boolean } /** * EmployeePayslip update */ export type EmployeePayslipUpdateArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * The data needed to update a EmployeePayslip. */ data: Prisma.XOR /** * Choose, which EmployeePayslip to update. */ where: Prisma.EmployeePayslipWhereUniqueInput } /** * EmployeePayslip updateMany */ export type EmployeePayslipUpdateManyArgs = { /** * The data used to update EmployeePayslips. */ data: Prisma.XOR /** * Filter which EmployeePayslips to update */ where?: Prisma.EmployeePayslipWhereInput /** * Limit how many EmployeePayslips to update. */ limit?: number } /** * EmployeePayslip updateManyAndReturn */ export type EmployeePayslipUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelectUpdateManyAndReturn | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * The data used to update EmployeePayslips. */ data: Prisma.XOR /** * Filter which EmployeePayslips to update */ where?: Prisma.EmployeePayslipWhereInput /** * Limit how many EmployeePayslips to update. */ limit?: number } /** * EmployeePayslip upsert */ export type EmployeePayslipUpsertArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * The filter to search for the EmployeePayslip to update in case it exists. */ where: Prisma.EmployeePayslipWhereUniqueInput /** * In case the EmployeePayslip found by the `where` argument doesn't exist, create a new EmployeePayslip with this data. */ create: Prisma.XOR /** * In case the EmployeePayslip was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * EmployeePayslip delete */ export type EmployeePayslipDeleteArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null /** * Filter which EmployeePayslip to delete. */ where: Prisma.EmployeePayslipWhereUniqueInput } /** * EmployeePayslip deleteMany */ export type EmployeePayslipDeleteManyArgs = { /** * Filter which EmployeePayslips to delete */ where?: Prisma.EmployeePayslipWhereInput /** * Limit how many EmployeePayslips to delete. */ limit?: number } /** * EmployeePayslip without action */ export type EmployeePayslipDefaultArgs = { /** * Select specific fields to fetch from the EmployeePayslip */ select?: Prisma.EmployeePayslipSelect | null /** * Omit specific fields from the EmployeePayslip */ omit?: Prisma.EmployeePayslipOmit | null }