/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `staff` 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 staff * */ export type staffModel = runtime.Types.Result.DefaultSelection export type AggregateStaff = { _count: StaffCountAggregateOutputType | null _avg: StaffAvgAggregateOutputType | null _sum: StaffSumAggregateOutputType | null _min: StaffMinAggregateOutputType | null _max: StaffMaxAggregateOutputType | null } export type StaffAvgAggregateOutputType = { id: number | null status: number | null matricule_desjardins: number | null ldap_id: number | null } export type StaffSumAggregateOutputType = { id: number | null status: number | null matricule_desjardins: number | null ldap_id: number | null } export type StaffMinAggregateOutputType = { id: number | null status: number | null username: string | null password: string | null vpn: string | null first_name: string | null last_name: string | null email: string | null ext: string | null cell: string | null gpin: string | null rights: string | null date_embauche: string | null fete: string | null supp: string | null group_ad: string | null dept_list: string | null notification: string | null darkmode: boolean | null matricule_desjardins: number | null compagnie_desjardins: string | null ldap_id: number | null } export type StaffMaxAggregateOutputType = { id: number | null status: number | null username: string | null password: string | null vpn: string | null first_name: string | null last_name: string | null email: string | null ext: string | null cell: string | null gpin: string | null rights: string | null date_embauche: string | null fete: string | null supp: string | null group_ad: string | null dept_list: string | null notification: string | null darkmode: boolean | null matricule_desjardins: number | null compagnie_desjardins: string | null ldap_id: number | null } export type StaffCountAggregateOutputType = { id: number status: number username: number password: number vpn: number first_name: number last_name: number email: number ext: number cell: number gpin: number rights: number date_embauche: number fete: number supp: number group_ad: number dept_list: number notification: number darkmode: number matricule_desjardins: number compagnie_desjardins: number ldap_id: number _all: number } export type StaffAvgAggregateInputType = { id?: true status?: true matricule_desjardins?: true ldap_id?: true } export type StaffSumAggregateInputType = { id?: true status?: true matricule_desjardins?: true ldap_id?: true } export type StaffMinAggregateInputType = { id?: true status?: true username?: true password?: true vpn?: true first_name?: true last_name?: true email?: true ext?: true cell?: true gpin?: true rights?: true date_embauche?: true fete?: true supp?: true group_ad?: true dept_list?: true notification?: true darkmode?: true matricule_desjardins?: true compagnie_desjardins?: true ldap_id?: true } export type StaffMaxAggregateInputType = { id?: true status?: true username?: true password?: true vpn?: true first_name?: true last_name?: true email?: true ext?: true cell?: true gpin?: true rights?: true date_embauche?: true fete?: true supp?: true group_ad?: true dept_list?: true notification?: true darkmode?: true matricule_desjardins?: true compagnie_desjardins?: true ldap_id?: true } export type StaffCountAggregateInputType = { id?: true status?: true username?: true password?: true vpn?: true first_name?: true last_name?: true email?: true ext?: true cell?: true gpin?: true rights?: true date_embauche?: true fete?: true supp?: true group_ad?: true dept_list?: true notification?: true darkmode?: true matricule_desjardins?: true compagnie_desjardins?: true ldap_id?: true _all?: true } export type StaffAggregateArgs = { /** * Filter which staff to aggregate. */ where?: Prisma.staffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of staff to fetch. */ orderBy?: Prisma.staffOrderByWithRelationInput | Prisma.staffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.staffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` staff 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` staff. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned staff **/ _count?: true | StaffCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StaffAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StaffSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StaffMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StaffMaxAggregateInputType } export type GetStaffAggregateType = { [P in keyof T & keyof AggregateStaff]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type staffGroupByArgs = { where?: Prisma.staffWhereInput orderBy?: Prisma.staffOrderByWithAggregationInput | Prisma.staffOrderByWithAggregationInput[] by: Prisma.StaffScalarFieldEnum[] | Prisma.StaffScalarFieldEnum having?: Prisma.staffScalarWhereWithAggregatesInput take?: number skip?: number _count?: StaffCountAggregateInputType | true _avg?: StaffAvgAggregateInputType _sum?: StaffSumAggregateInputType _min?: StaffMinAggregateInputType _max?: StaffMaxAggregateInputType } export type StaffGroupByOutputType = { id: number status: number username: string password: string vpn: string first_name: string last_name: string email: string ext: string cell: string gpin: string | null rights: string date_embauche: string | null fete: string | null supp: string | null group_ad: string dept_list: string notification: string darkmode: boolean matricule_desjardins: number | null compagnie_desjardins: string | null ldap_id: number | null _count: StaffCountAggregateOutputType | null _avg: StaffAvgAggregateOutputType | null _sum: StaffSumAggregateOutputType | null _min: StaffMinAggregateOutputType | null _max: StaffMaxAggregateOutputType | null } type GetStaffGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof StaffGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type staffWhereInput = { AND?: Prisma.staffWhereInput | Prisma.staffWhereInput[] OR?: Prisma.staffWhereInput[] NOT?: Prisma.staffWhereInput | Prisma.staffWhereInput[] id?: Prisma.IntFilter<"staff"> | number status?: Prisma.IntFilter<"staff"> | number username?: Prisma.StringFilter<"staff"> | string password?: Prisma.StringFilter<"staff"> | string vpn?: Prisma.StringFilter<"staff"> | string first_name?: Prisma.StringFilter<"staff"> | string last_name?: Prisma.StringFilter<"staff"> | string email?: Prisma.StringFilter<"staff"> | string ext?: Prisma.StringFilter<"staff"> | string cell?: Prisma.StringFilter<"staff"> | string gpin?: Prisma.StringNullableFilter<"staff"> | string | null rights?: Prisma.StringFilter<"staff"> | string date_embauche?: Prisma.StringNullableFilter<"staff"> | string | null fete?: Prisma.StringNullableFilter<"staff"> | string | null supp?: Prisma.StringNullableFilter<"staff"> | string | null group_ad?: Prisma.StringFilter<"staff"> | string dept_list?: Prisma.StringFilter<"staff"> | string notification?: Prisma.StringFilter<"staff"> | string darkmode?: Prisma.BoolFilter<"staff"> | boolean matricule_desjardins?: Prisma.IntNullableFilter<"staff"> | number | null compagnie_desjardins?: Prisma.StringNullableFilter<"staff"> | string | null ldap_id?: Prisma.IntNullableFilter<"staff"> | number | null } export type staffOrderByWithRelationInput = { id?: Prisma.SortOrder status?: Prisma.SortOrder username?: Prisma.SortOrder password?: Prisma.SortOrder vpn?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder email?: Prisma.SortOrder ext?: Prisma.SortOrder cell?: Prisma.SortOrder gpin?: Prisma.SortOrderInput | Prisma.SortOrder rights?: Prisma.SortOrder date_embauche?: Prisma.SortOrderInput | Prisma.SortOrder fete?: Prisma.SortOrderInput | Prisma.SortOrder supp?: Prisma.SortOrderInput | Prisma.SortOrder group_ad?: Prisma.SortOrder dept_list?: Prisma.SortOrder notification?: Prisma.SortOrder darkmode?: Prisma.SortOrder matricule_desjardins?: Prisma.SortOrderInput | Prisma.SortOrder compagnie_desjardins?: Prisma.SortOrderInput | Prisma.SortOrder ldap_id?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.staffOrderByRelevanceInput } export type staffWhereUniqueInput = Prisma.AtLeast<{ id?: number username?: string AND?: Prisma.staffWhereInput | Prisma.staffWhereInput[] OR?: Prisma.staffWhereInput[] NOT?: Prisma.staffWhereInput | Prisma.staffWhereInput[] status?: Prisma.IntFilter<"staff"> | number password?: Prisma.StringFilter<"staff"> | string vpn?: Prisma.StringFilter<"staff"> | string first_name?: Prisma.StringFilter<"staff"> | string last_name?: Prisma.StringFilter<"staff"> | string email?: Prisma.StringFilter<"staff"> | string ext?: Prisma.StringFilter<"staff"> | string cell?: Prisma.StringFilter<"staff"> | string gpin?: Prisma.StringNullableFilter<"staff"> | string | null rights?: Prisma.StringFilter<"staff"> | string date_embauche?: Prisma.StringNullableFilter<"staff"> | string | null fete?: Prisma.StringNullableFilter<"staff"> | string | null supp?: Prisma.StringNullableFilter<"staff"> | string | null group_ad?: Prisma.StringFilter<"staff"> | string dept_list?: Prisma.StringFilter<"staff"> | string notification?: Prisma.StringFilter<"staff"> | string darkmode?: Prisma.BoolFilter<"staff"> | boolean matricule_desjardins?: Prisma.IntNullableFilter<"staff"> | number | null compagnie_desjardins?: Prisma.StringNullableFilter<"staff"> | string | null ldap_id?: Prisma.IntNullableFilter<"staff"> | number | null }, "id" | "username"> export type staffOrderByWithAggregationInput = { id?: Prisma.SortOrder status?: Prisma.SortOrder username?: Prisma.SortOrder password?: Prisma.SortOrder vpn?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder email?: Prisma.SortOrder ext?: Prisma.SortOrder cell?: Prisma.SortOrder gpin?: Prisma.SortOrderInput | Prisma.SortOrder rights?: Prisma.SortOrder date_embauche?: Prisma.SortOrderInput | Prisma.SortOrder fete?: Prisma.SortOrderInput | Prisma.SortOrder supp?: Prisma.SortOrderInput | Prisma.SortOrder group_ad?: Prisma.SortOrder dept_list?: Prisma.SortOrder notification?: Prisma.SortOrder darkmode?: Prisma.SortOrder matricule_desjardins?: Prisma.SortOrderInput | Prisma.SortOrder compagnie_desjardins?: Prisma.SortOrderInput | Prisma.SortOrder ldap_id?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.staffCountOrderByAggregateInput _avg?: Prisma.staffAvgOrderByAggregateInput _max?: Prisma.staffMaxOrderByAggregateInput _min?: Prisma.staffMinOrderByAggregateInput _sum?: Prisma.staffSumOrderByAggregateInput } export type staffScalarWhereWithAggregatesInput = { AND?: Prisma.staffScalarWhereWithAggregatesInput | Prisma.staffScalarWhereWithAggregatesInput[] OR?: Prisma.staffScalarWhereWithAggregatesInput[] NOT?: Prisma.staffScalarWhereWithAggregatesInput | Prisma.staffScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"staff"> | number status?: Prisma.IntWithAggregatesFilter<"staff"> | number username?: Prisma.StringWithAggregatesFilter<"staff"> | string password?: Prisma.StringWithAggregatesFilter<"staff"> | string vpn?: Prisma.StringWithAggregatesFilter<"staff"> | string first_name?: Prisma.StringWithAggregatesFilter<"staff"> | string last_name?: Prisma.StringWithAggregatesFilter<"staff"> | string email?: Prisma.StringWithAggregatesFilter<"staff"> | string ext?: Prisma.StringWithAggregatesFilter<"staff"> | string cell?: Prisma.StringWithAggregatesFilter<"staff"> | string gpin?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null rights?: Prisma.StringWithAggregatesFilter<"staff"> | string date_embauche?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null fete?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null supp?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null group_ad?: Prisma.StringWithAggregatesFilter<"staff"> | string dept_list?: Prisma.StringWithAggregatesFilter<"staff"> | string notification?: Prisma.StringWithAggregatesFilter<"staff"> | string darkmode?: Prisma.BoolWithAggregatesFilter<"staff"> | boolean matricule_desjardins?: Prisma.IntNullableWithAggregatesFilter<"staff"> | number | null compagnie_desjardins?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null ldap_id?: Prisma.IntNullableWithAggregatesFilter<"staff"> | number | null } export type staffCreateInput = { status: number username: string password: string vpn: string first_name: string last_name: string email: string ext: string cell: string gpin?: string | null rights: string date_embauche?: string | null fete?: string | null supp?: string | null group_ad?: string dept_list: string notification: string darkmode?: boolean matricule_desjardins?: number | null compagnie_desjardins?: string | null ldap_id?: number | null } export type staffUncheckedCreateInput = { id?: number status: number username: string password: string vpn: string first_name: string last_name: string email: string ext: string cell: string gpin?: string | null rights: string date_embauche?: string | null fete?: string | null supp?: string | null group_ad?: string dept_list: string notification: string darkmode?: boolean matricule_desjardins?: number | null compagnie_desjardins?: string | null ldap_id?: number | null } export type staffUpdateInput = { status?: Prisma.IntFieldUpdateOperationsInput | number username?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string vpn?: Prisma.StringFieldUpdateOperationsInput | string first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string ext?: Prisma.StringFieldUpdateOperationsInput | string cell?: Prisma.StringFieldUpdateOperationsInput | string gpin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rights?: Prisma.StringFieldUpdateOperationsInput | string date_embauche?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null supp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null group_ad?: Prisma.StringFieldUpdateOperationsInput | string dept_list?: Prisma.StringFieldUpdateOperationsInput | string notification?: Prisma.StringFieldUpdateOperationsInput | string darkmode?: Prisma.BoolFieldUpdateOperationsInput | boolean matricule_desjardins?: Prisma.NullableIntFieldUpdateOperationsInput | number | null compagnie_desjardins?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ldap_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null } export type staffUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.IntFieldUpdateOperationsInput | number username?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string vpn?: Prisma.StringFieldUpdateOperationsInput | string first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string ext?: Prisma.StringFieldUpdateOperationsInput | string cell?: Prisma.StringFieldUpdateOperationsInput | string gpin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rights?: Prisma.StringFieldUpdateOperationsInput | string date_embauche?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null supp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null group_ad?: Prisma.StringFieldUpdateOperationsInput | string dept_list?: Prisma.StringFieldUpdateOperationsInput | string notification?: Prisma.StringFieldUpdateOperationsInput | string darkmode?: Prisma.BoolFieldUpdateOperationsInput | boolean matricule_desjardins?: Prisma.NullableIntFieldUpdateOperationsInput | number | null compagnie_desjardins?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ldap_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null } export type staffCreateManyInput = { id?: number status: number username: string password: string vpn: string first_name: string last_name: string email: string ext: string cell: string gpin?: string | null rights: string date_embauche?: string | null fete?: string | null supp?: string | null group_ad?: string dept_list: string notification: string darkmode?: boolean matricule_desjardins?: number | null compagnie_desjardins?: string | null ldap_id?: number | null } export type staffUpdateManyMutationInput = { status?: Prisma.IntFieldUpdateOperationsInput | number username?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string vpn?: Prisma.StringFieldUpdateOperationsInput | string first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string ext?: Prisma.StringFieldUpdateOperationsInput | string cell?: Prisma.StringFieldUpdateOperationsInput | string gpin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rights?: Prisma.StringFieldUpdateOperationsInput | string date_embauche?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null supp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null group_ad?: Prisma.StringFieldUpdateOperationsInput | string dept_list?: Prisma.StringFieldUpdateOperationsInput | string notification?: Prisma.StringFieldUpdateOperationsInput | string darkmode?: Prisma.BoolFieldUpdateOperationsInput | boolean matricule_desjardins?: Prisma.NullableIntFieldUpdateOperationsInput | number | null compagnie_desjardins?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ldap_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null } export type staffUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.IntFieldUpdateOperationsInput | number username?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string vpn?: Prisma.StringFieldUpdateOperationsInput | string first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string ext?: Prisma.StringFieldUpdateOperationsInput | string cell?: Prisma.StringFieldUpdateOperationsInput | string gpin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rights?: Prisma.StringFieldUpdateOperationsInput | string date_embauche?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null supp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null group_ad?: Prisma.StringFieldUpdateOperationsInput | string dept_list?: Prisma.StringFieldUpdateOperationsInput | string notification?: Prisma.StringFieldUpdateOperationsInput | string darkmode?: Prisma.BoolFieldUpdateOperationsInput | boolean matricule_desjardins?: Prisma.NullableIntFieldUpdateOperationsInput | number | null compagnie_desjardins?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ldap_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null } export type staffOrderByRelevanceInput = { fields: Prisma.staffOrderByRelevanceFieldEnum | Prisma.staffOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type staffCountOrderByAggregateInput = { id?: Prisma.SortOrder status?: Prisma.SortOrder username?: Prisma.SortOrder password?: Prisma.SortOrder vpn?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder email?: Prisma.SortOrder ext?: Prisma.SortOrder cell?: Prisma.SortOrder gpin?: Prisma.SortOrder rights?: Prisma.SortOrder date_embauche?: Prisma.SortOrder fete?: Prisma.SortOrder supp?: Prisma.SortOrder group_ad?: Prisma.SortOrder dept_list?: Prisma.SortOrder notification?: Prisma.SortOrder darkmode?: Prisma.SortOrder matricule_desjardins?: Prisma.SortOrder compagnie_desjardins?: Prisma.SortOrder ldap_id?: Prisma.SortOrder } export type staffAvgOrderByAggregateInput = { id?: Prisma.SortOrder status?: Prisma.SortOrder matricule_desjardins?: Prisma.SortOrder ldap_id?: Prisma.SortOrder } export type staffMaxOrderByAggregateInput = { id?: Prisma.SortOrder status?: Prisma.SortOrder username?: Prisma.SortOrder password?: Prisma.SortOrder vpn?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder email?: Prisma.SortOrder ext?: Prisma.SortOrder cell?: Prisma.SortOrder gpin?: Prisma.SortOrder rights?: Prisma.SortOrder date_embauche?: Prisma.SortOrder fete?: Prisma.SortOrder supp?: Prisma.SortOrder group_ad?: Prisma.SortOrder dept_list?: Prisma.SortOrder notification?: Prisma.SortOrder darkmode?: Prisma.SortOrder matricule_desjardins?: Prisma.SortOrder compagnie_desjardins?: Prisma.SortOrder ldap_id?: Prisma.SortOrder } export type staffMinOrderByAggregateInput = { id?: Prisma.SortOrder status?: Prisma.SortOrder username?: Prisma.SortOrder password?: Prisma.SortOrder vpn?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder email?: Prisma.SortOrder ext?: Prisma.SortOrder cell?: Prisma.SortOrder gpin?: Prisma.SortOrder rights?: Prisma.SortOrder date_embauche?: Prisma.SortOrder fete?: Prisma.SortOrder supp?: Prisma.SortOrder group_ad?: Prisma.SortOrder dept_list?: Prisma.SortOrder notification?: Prisma.SortOrder darkmode?: Prisma.SortOrder matricule_desjardins?: Prisma.SortOrder compagnie_desjardins?: Prisma.SortOrder ldap_id?: Prisma.SortOrder } export type staffSumOrderByAggregateInput = { id?: Prisma.SortOrder status?: Prisma.SortOrder matricule_desjardins?: Prisma.SortOrder ldap_id?: Prisma.SortOrder } export type staffSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean status?: boolean username?: boolean password?: boolean vpn?: boolean first_name?: boolean last_name?: boolean email?: boolean ext?: boolean cell?: boolean gpin?: boolean rights?: boolean date_embauche?: boolean fete?: boolean supp?: boolean group_ad?: boolean dept_list?: boolean notification?: boolean darkmode?: boolean matricule_desjardins?: boolean compagnie_desjardins?: boolean ldap_id?: boolean }, ExtArgs["result"]["staff"]> export type staffSelectScalar = { id?: boolean status?: boolean username?: boolean password?: boolean vpn?: boolean first_name?: boolean last_name?: boolean email?: boolean ext?: boolean cell?: boolean gpin?: boolean rights?: boolean date_embauche?: boolean fete?: boolean supp?: boolean group_ad?: boolean dept_list?: boolean notification?: boolean darkmode?: boolean matricule_desjardins?: boolean compagnie_desjardins?: boolean ldap_id?: boolean } export type staffOmit = runtime.Types.Extensions.GetOmit<"id" | "status" | "username" | "password" | "vpn" | "first_name" | "last_name" | "email" | "ext" | "cell" | "gpin" | "rights" | "date_embauche" | "fete" | "supp" | "group_ad" | "dept_list" | "notification" | "darkmode" | "matricule_desjardins" | "compagnie_desjardins" | "ldap_id", ExtArgs["result"]["staff"]> export type $staffPayload = { name: "staff" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number status: number username: string password: string vpn: string first_name: string last_name: string email: string ext: string cell: string gpin: string | null rights: string date_embauche: string | null fete: string | null supp: string | null group_ad: string dept_list: string notification: string darkmode: boolean matricule_desjardins: number | null compagnie_desjardins: string | null ldap_id: number | null }, ExtArgs["result"]["staff"]> composites: {} } export type staffGetPayload = runtime.Types.Result.GetResult export type staffCountArgs = Omit & { select?: StaffCountAggregateInputType | true } export interface staffDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['staff'], meta: { name: 'staff' } } /** * Find zero or one Staff that matches the filter. * @param {staffFindUniqueArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Staff that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {staffFindUniqueOrThrowArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Staff 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 {staffFindFirstArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Staff 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 {staffFindFirstOrThrowArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Staff 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 {staffFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Staff * const staff = await prisma.staff.findMany() * * // Get first 10 Staff * const staff = await prisma.staff.findMany({ take: 10 }) * * // Only select the `id` * const staffWithIdOnly = await prisma.staff.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Staff. * @param {staffCreateArgs} args - Arguments to create a Staff. * @example * // Create one Staff * const Staff = await prisma.staff.create({ * data: { * // ... data to create a Staff * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Staff. * @param {staffCreateManyArgs} args - Arguments to create many Staff. * @example * // Create many Staff * const staff = await prisma.staff.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Staff. * @param {staffDeleteArgs} args - Arguments to delete one Staff. * @example * // Delete one Staff * const Staff = await prisma.staff.delete({ * where: { * // ... filter to delete one Staff * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Staff. * @param {staffUpdateArgs} args - Arguments to update one Staff. * @example * // Update one Staff * const staff = await prisma.staff.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Staff. * @param {staffDeleteManyArgs} args - Arguments to filter Staff to delete. * @example * // Delete a few Staff * const { count } = await prisma.staff.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {staffUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Staff * const staff = await prisma.staff.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Staff. * @param {staffUpsertArgs} args - Arguments to update or create a Staff. * @example * // Update or create a Staff * const staff = await prisma.staff.upsert({ * create: { * // ... data to create a Staff * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Staff we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {staffCountArgs} args - Arguments to filter Staff to count. * @example * // Count the number of Staff * const count = await prisma.staff.count({ * where: { * // ... the filter for the Staff 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 Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffAggregateArgs} 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 Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {staffGroupByArgs} 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 staffGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: staffGroupByArgs['orderBy'] } : { orderBy?: staffGroupByArgs['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 ? GetStaffGroupByPayload : Prisma.PrismaPromise /** * Fields of the staff model */ readonly fields: staffFieldRefs; } /** * The delegate class that acts as a "Promise-like" for staff. * 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__staffClient 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 staff model */ export interface staffFieldRefs { readonly id: Prisma.FieldRef<"staff", 'Int'> readonly status: Prisma.FieldRef<"staff", 'Int'> readonly username: Prisma.FieldRef<"staff", 'String'> readonly password: Prisma.FieldRef<"staff", 'String'> readonly vpn: Prisma.FieldRef<"staff", 'String'> readonly first_name: Prisma.FieldRef<"staff", 'String'> readonly last_name: Prisma.FieldRef<"staff", 'String'> readonly email: Prisma.FieldRef<"staff", 'String'> readonly ext: Prisma.FieldRef<"staff", 'String'> readonly cell: Prisma.FieldRef<"staff", 'String'> readonly gpin: Prisma.FieldRef<"staff", 'String'> readonly rights: Prisma.FieldRef<"staff", 'String'> readonly date_embauche: Prisma.FieldRef<"staff", 'String'> readonly fete: Prisma.FieldRef<"staff", 'String'> readonly supp: Prisma.FieldRef<"staff", 'String'> readonly group_ad: Prisma.FieldRef<"staff", 'String'> readonly dept_list: Prisma.FieldRef<"staff", 'String'> readonly notification: Prisma.FieldRef<"staff", 'String'> readonly darkmode: Prisma.FieldRef<"staff", 'Boolean'> readonly matricule_desjardins: Prisma.FieldRef<"staff", 'Int'> readonly compagnie_desjardins: Prisma.FieldRef<"staff", 'String'> readonly ldap_id: Prisma.FieldRef<"staff", 'Int'> } // Custom InputTypes /** * staff findUnique */ export type staffFindUniqueArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null /** * Filter, which staff to fetch. */ where: Prisma.staffWhereUniqueInput } /** * staff findUniqueOrThrow */ export type staffFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null /** * Filter, which staff to fetch. */ where: Prisma.staffWhereUniqueInput } /** * staff findFirst */ export type staffFindFirstArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null /** * Filter, which staff to fetch. */ where?: Prisma.staffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of staff to fetch. */ orderBy?: Prisma.staffOrderByWithRelationInput | Prisma.staffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for staff. */ cursor?: Prisma.staffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` staff 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` staff. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of staff. */ distinct?: Prisma.StaffScalarFieldEnum | Prisma.StaffScalarFieldEnum[] } /** * staff findFirstOrThrow */ export type staffFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null /** * Filter, which staff to fetch. */ where?: Prisma.staffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of staff to fetch. */ orderBy?: Prisma.staffOrderByWithRelationInput | Prisma.staffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for staff. */ cursor?: Prisma.staffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` staff 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` staff. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of staff. */ distinct?: Prisma.StaffScalarFieldEnum | Prisma.StaffScalarFieldEnum[] } /** * staff findMany */ export type staffFindManyArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null /** * Filter, which staff to fetch. */ where?: Prisma.staffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of staff to fetch. */ orderBy?: Prisma.staffOrderByWithRelationInput | Prisma.staffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing staff. */ cursor?: Prisma.staffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` staff 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` staff. */ skip?: number distinct?: Prisma.StaffScalarFieldEnum | Prisma.StaffScalarFieldEnum[] } /** * staff create */ export type staffCreateArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null /** * The data needed to create a staff. */ data: Prisma.XOR } /** * staff createMany */ export type staffCreateManyArgs = { /** * The data used to create many staff. */ data: Prisma.staffCreateManyInput | Prisma.staffCreateManyInput[] skipDuplicates?: boolean } /** * staff update */ export type staffUpdateArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null /** * The data needed to update a staff. */ data: Prisma.XOR /** * Choose, which staff to update. */ where: Prisma.staffWhereUniqueInput } /** * staff updateMany */ export type staffUpdateManyArgs = { /** * The data used to update staff. */ data: Prisma.XOR /** * Filter which staff to update */ where?: Prisma.staffWhereInput /** * Limit how many staff to update. */ limit?: number } /** * staff upsert */ export type staffUpsertArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null /** * The filter to search for the staff to update in case it exists. */ where: Prisma.staffWhereUniqueInput /** * In case the staff found by the `where` argument doesn't exist, create a new staff with this data. */ create: Prisma.XOR /** * In case the staff was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * staff delete */ export type staffDeleteArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null /** * Filter which staff to delete. */ where: Prisma.staffWhereUniqueInput } /** * staff deleteMany */ export type staffDeleteManyArgs = { /** * Filter which staff to delete */ where?: Prisma.staffWhereInput /** * Limit how many staff to delete. */ limit?: number } /** * staff without action */ export type staffDefaultArgs = { /** * Select specific fields to fetch from the staff */ select?: Prisma.staffSelect | null /** * Omit specific fields from the staff */ omit?: Prisma.staffOmit | null }