/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `carte_temps` 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 carte_temps * */ export type carte_tempsModel = runtime.Types.Result.DefaultSelection export type AggregateCarte_temps = { _count: Carte_tempsCountAggregateOutputType | null _avg: Carte_tempsAvgAggregateOutputType | null _sum: Carte_tempsSumAggregateOutputType | null _min: Carte_tempsMinAggregateOutputType | null _max: Carte_tempsMaxAggregateOutputType | null } export type Carte_tempsAvgAggregateOutputType = { id: number | null week: number | null year: number | null date: number | null staff_id: number | null start_am: number | null end_am: number | null start_pm: number | null end_pm: number | null start_night: number | null end_night: number | null relais: number | null conge: number | null } export type Carte_tempsSumAggregateOutputType = { id: number | null week: number | null year: number | null date: bigint | null staff_id: bigint | null start_am: bigint | null end_am: bigint | null start_pm: bigint | null end_pm: bigint | null start_night: bigint | null end_night: bigint | null relais: number | null conge: number | null } export type Carte_tempsMinAggregateOutputType = { id: number | null week: number | null year: number | null date: bigint | null staff_id: bigint | null start_am: bigint | null end_am: bigint | null start_pm: bigint | null end_pm: bigint | null start_night: bigint | null end_night: bigint | null relais: number | null comment: string | null note_int: string | null conge: number | null appr: string | null appr_dir: string | null } export type Carte_tempsMaxAggregateOutputType = { id: number | null week: number | null year: number | null date: bigint | null staff_id: bigint | null start_am: bigint | null end_am: bigint | null start_pm: bigint | null end_pm: bigint | null start_night: bigint | null end_night: bigint | null relais: number | null comment: string | null note_int: string | null conge: number | null appr: string | null appr_dir: string | null } export type Carte_tempsCountAggregateOutputType = { id: number week: number year: number date: number staff_id: number start_am: number end_am: number start_pm: number end_pm: number start_night: number end_night: number relais: number comment: number note_int: number conge: number appr: number appr_dir: number _all: number } export type Carte_tempsAvgAggregateInputType = { id?: true week?: true year?: true date?: true staff_id?: true start_am?: true end_am?: true start_pm?: true end_pm?: true start_night?: true end_night?: true relais?: true conge?: true } export type Carte_tempsSumAggregateInputType = { id?: true week?: true year?: true date?: true staff_id?: true start_am?: true end_am?: true start_pm?: true end_pm?: true start_night?: true end_night?: true relais?: true conge?: true } export type Carte_tempsMinAggregateInputType = { id?: true week?: true year?: true date?: true staff_id?: true start_am?: true end_am?: true start_pm?: true end_pm?: true start_night?: true end_night?: true relais?: true comment?: true note_int?: true conge?: true appr?: true appr_dir?: true } export type Carte_tempsMaxAggregateInputType = { id?: true week?: true year?: true date?: true staff_id?: true start_am?: true end_am?: true start_pm?: true end_pm?: true start_night?: true end_night?: true relais?: true comment?: true note_int?: true conge?: true appr?: true appr_dir?: true } export type Carte_tempsCountAggregateInputType = { id?: true week?: true year?: true date?: true staff_id?: true start_am?: true end_am?: true start_pm?: true end_pm?: true start_night?: true end_night?: true relais?: true comment?: true note_int?: true conge?: true appr?: true appr_dir?: true _all?: true } export type Carte_tempsAggregateArgs = { /** * Filter which carte_temps to aggregate. */ where?: Prisma.carte_tempsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of carte_temps to fetch. */ orderBy?: Prisma.carte_tempsOrderByWithRelationInput | Prisma.carte_tempsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.carte_tempsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` carte_temps 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` carte_temps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned carte_temps **/ _count?: true | Carte_tempsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Carte_tempsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Carte_tempsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Carte_tempsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Carte_tempsMaxAggregateInputType } export type GetCarte_tempsAggregateType = { [P in keyof T & keyof AggregateCarte_temps]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type carte_tempsGroupByArgs = { where?: Prisma.carte_tempsWhereInput orderBy?: Prisma.carte_tempsOrderByWithAggregationInput | Prisma.carte_tempsOrderByWithAggregationInput[] by: Prisma.Carte_tempsScalarFieldEnum[] | Prisma.Carte_tempsScalarFieldEnum having?: Prisma.carte_tempsScalarWhereWithAggregatesInput take?: number skip?: number _count?: Carte_tempsCountAggregateInputType | true _avg?: Carte_tempsAvgAggregateInputType _sum?: Carte_tempsSumAggregateInputType _min?: Carte_tempsMinAggregateInputType _max?: Carte_tempsMaxAggregateInputType } export type Carte_tempsGroupByOutputType = { id: number week: number year: number | null date: bigint staff_id: bigint start_am: bigint | null end_am: bigint | null start_pm: bigint | null end_pm: bigint | null start_night: bigint | null end_night: bigint | null relais: number | null comment: string | null note_int: string | null conge: number appr: string | null appr_dir: string | null _count: Carte_tempsCountAggregateOutputType | null _avg: Carte_tempsAvgAggregateOutputType | null _sum: Carte_tempsSumAggregateOutputType | null _min: Carte_tempsMinAggregateOutputType | null _max: Carte_tempsMaxAggregateOutputType | null } type GetCarte_tempsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Carte_tempsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type carte_tempsWhereInput = { AND?: Prisma.carte_tempsWhereInput | Prisma.carte_tempsWhereInput[] OR?: Prisma.carte_tempsWhereInput[] NOT?: Prisma.carte_tempsWhereInput | Prisma.carte_tempsWhereInput[] id?: Prisma.IntFilter<"carte_temps"> | number week?: Prisma.IntFilter<"carte_temps"> | number year?: Prisma.IntNullableFilter<"carte_temps"> | number | null date?: Prisma.BigIntFilter<"carte_temps"> | bigint | number staff_id?: Prisma.BigIntFilter<"carte_temps"> | bigint | number start_am?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null end_am?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null start_pm?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null end_pm?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null start_night?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null end_night?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null relais?: Prisma.FloatNullableFilter<"carte_temps"> | number | null comment?: Prisma.StringNullableFilter<"carte_temps"> | string | null note_int?: Prisma.StringNullableFilter<"carte_temps"> | string | null conge?: Prisma.IntFilter<"carte_temps"> | number appr?: Prisma.StringNullableFilter<"carte_temps"> | string | null appr_dir?: Prisma.StringNullableFilter<"carte_temps"> | string | null } export type carte_tempsOrderByWithRelationInput = { id?: Prisma.SortOrder week?: Prisma.SortOrder year?: Prisma.SortOrderInput | Prisma.SortOrder date?: Prisma.SortOrder staff_id?: Prisma.SortOrder start_am?: Prisma.SortOrderInput | Prisma.SortOrder end_am?: Prisma.SortOrderInput | Prisma.SortOrder start_pm?: Prisma.SortOrderInput | Prisma.SortOrder end_pm?: Prisma.SortOrderInput | Prisma.SortOrder start_night?: Prisma.SortOrderInput | Prisma.SortOrder end_night?: Prisma.SortOrderInput | Prisma.SortOrder relais?: Prisma.SortOrderInput | Prisma.SortOrder comment?: Prisma.SortOrderInput | Prisma.SortOrder note_int?: Prisma.SortOrderInput | Prisma.SortOrder conge?: Prisma.SortOrder appr?: Prisma.SortOrderInput | Prisma.SortOrder appr_dir?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.carte_tempsOrderByRelevanceInput } export type carte_tempsWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.carte_tempsWhereInput | Prisma.carte_tempsWhereInput[] OR?: Prisma.carte_tempsWhereInput[] NOT?: Prisma.carte_tempsWhereInput | Prisma.carte_tempsWhereInput[] week?: Prisma.IntFilter<"carte_temps"> | number year?: Prisma.IntNullableFilter<"carte_temps"> | number | null date?: Prisma.BigIntFilter<"carte_temps"> | bigint | number staff_id?: Prisma.BigIntFilter<"carte_temps"> | bigint | number start_am?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null end_am?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null start_pm?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null end_pm?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null start_night?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null end_night?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null relais?: Prisma.FloatNullableFilter<"carte_temps"> | number | null comment?: Prisma.StringNullableFilter<"carte_temps"> | string | null note_int?: Prisma.StringNullableFilter<"carte_temps"> | string | null conge?: Prisma.IntFilter<"carte_temps"> | number appr?: Prisma.StringNullableFilter<"carte_temps"> | string | null appr_dir?: Prisma.StringNullableFilter<"carte_temps"> | string | null }, "id"> export type carte_tempsOrderByWithAggregationInput = { id?: Prisma.SortOrder week?: Prisma.SortOrder year?: Prisma.SortOrderInput | Prisma.SortOrder date?: Prisma.SortOrder staff_id?: Prisma.SortOrder start_am?: Prisma.SortOrderInput | Prisma.SortOrder end_am?: Prisma.SortOrderInput | Prisma.SortOrder start_pm?: Prisma.SortOrderInput | Prisma.SortOrder end_pm?: Prisma.SortOrderInput | Prisma.SortOrder start_night?: Prisma.SortOrderInput | Prisma.SortOrder end_night?: Prisma.SortOrderInput | Prisma.SortOrder relais?: Prisma.SortOrderInput | Prisma.SortOrder comment?: Prisma.SortOrderInput | Prisma.SortOrder note_int?: Prisma.SortOrderInput | Prisma.SortOrder conge?: Prisma.SortOrder appr?: Prisma.SortOrderInput | Prisma.SortOrder appr_dir?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.carte_tempsCountOrderByAggregateInput _avg?: Prisma.carte_tempsAvgOrderByAggregateInput _max?: Prisma.carte_tempsMaxOrderByAggregateInput _min?: Prisma.carte_tempsMinOrderByAggregateInput _sum?: Prisma.carte_tempsSumOrderByAggregateInput } export type carte_tempsScalarWhereWithAggregatesInput = { AND?: Prisma.carte_tempsScalarWhereWithAggregatesInput | Prisma.carte_tempsScalarWhereWithAggregatesInput[] OR?: Prisma.carte_tempsScalarWhereWithAggregatesInput[] NOT?: Prisma.carte_tempsScalarWhereWithAggregatesInput | Prisma.carte_tempsScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"carte_temps"> | number week?: Prisma.IntWithAggregatesFilter<"carte_temps"> | number year?: Prisma.IntNullableWithAggregatesFilter<"carte_temps"> | number | null date?: Prisma.BigIntWithAggregatesFilter<"carte_temps"> | bigint | number staff_id?: Prisma.BigIntWithAggregatesFilter<"carte_temps"> | bigint | number start_am?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null end_am?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null start_pm?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null end_pm?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null start_night?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null end_night?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null relais?: Prisma.FloatNullableWithAggregatesFilter<"carte_temps"> | number | null comment?: Prisma.StringNullableWithAggregatesFilter<"carte_temps"> | string | null note_int?: Prisma.StringNullableWithAggregatesFilter<"carte_temps"> | string | null conge?: Prisma.IntWithAggregatesFilter<"carte_temps"> | number appr?: Prisma.StringNullableWithAggregatesFilter<"carte_temps"> | string | null appr_dir?: Prisma.StringNullableWithAggregatesFilter<"carte_temps"> | string | null } export type carte_tempsCreateInput = { week: number year?: number | null date: bigint | number staff_id: bigint | number start_am?: bigint | number | null end_am?: bigint | number | null start_pm?: bigint | number | null end_pm?: bigint | number | null start_night?: bigint | number | null end_night?: bigint | number | null relais?: number | null comment?: string | null note_int?: string | null conge?: number appr?: string | null appr_dir?: string | null } export type carte_tempsUncheckedCreateInput = { id?: number week: number year?: number | null date: bigint | number staff_id: bigint | number start_am?: bigint | number | null end_am?: bigint | number | null start_pm?: bigint | number | null end_pm?: bigint | number | null start_night?: bigint | number | null end_night?: bigint | number | null relais?: number | null comment?: string | null note_int?: string | null conge?: number appr?: string | null appr_dir?: string | null } export type carte_tempsUpdateInput = { week?: Prisma.IntFieldUpdateOperationsInput | number year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number start_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null start_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null start_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null relais?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null note_int?: Prisma.NullableStringFieldUpdateOperationsInput | string | null conge?: Prisma.IntFieldUpdateOperationsInput | number appr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appr_dir?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type carte_tempsUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number week?: Prisma.IntFieldUpdateOperationsInput | number year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number start_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null start_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null start_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null relais?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null note_int?: Prisma.NullableStringFieldUpdateOperationsInput | string | null conge?: Prisma.IntFieldUpdateOperationsInput | number appr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appr_dir?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type carte_tempsCreateManyInput = { id?: number week: number year?: number | null date: bigint | number staff_id: bigint | number start_am?: bigint | number | null end_am?: bigint | number | null start_pm?: bigint | number | null end_pm?: bigint | number | null start_night?: bigint | number | null end_night?: bigint | number | null relais?: number | null comment?: string | null note_int?: string | null conge?: number appr?: string | null appr_dir?: string | null } export type carte_tempsUpdateManyMutationInput = { week?: Prisma.IntFieldUpdateOperationsInput | number year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number start_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null start_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null start_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null relais?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null note_int?: Prisma.NullableStringFieldUpdateOperationsInput | string | null conge?: Prisma.IntFieldUpdateOperationsInput | number appr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appr_dir?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type carte_tempsUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number week?: Prisma.IntFieldUpdateOperationsInput | number year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number start_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null start_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null start_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null end_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null relais?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null note_int?: Prisma.NullableStringFieldUpdateOperationsInput | string | null conge?: Prisma.IntFieldUpdateOperationsInput | number appr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appr_dir?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type carte_tempsOrderByRelevanceInput = { fields: Prisma.carte_tempsOrderByRelevanceFieldEnum | Prisma.carte_tempsOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type carte_tempsCountOrderByAggregateInput = { id?: Prisma.SortOrder week?: Prisma.SortOrder year?: Prisma.SortOrder date?: Prisma.SortOrder staff_id?: Prisma.SortOrder start_am?: Prisma.SortOrder end_am?: Prisma.SortOrder start_pm?: Prisma.SortOrder end_pm?: Prisma.SortOrder start_night?: Prisma.SortOrder end_night?: Prisma.SortOrder relais?: Prisma.SortOrder comment?: Prisma.SortOrder note_int?: Prisma.SortOrder conge?: Prisma.SortOrder appr?: Prisma.SortOrder appr_dir?: Prisma.SortOrder } export type carte_tempsAvgOrderByAggregateInput = { id?: Prisma.SortOrder week?: Prisma.SortOrder year?: Prisma.SortOrder date?: Prisma.SortOrder staff_id?: Prisma.SortOrder start_am?: Prisma.SortOrder end_am?: Prisma.SortOrder start_pm?: Prisma.SortOrder end_pm?: Prisma.SortOrder start_night?: Prisma.SortOrder end_night?: Prisma.SortOrder relais?: Prisma.SortOrder conge?: Prisma.SortOrder } export type carte_tempsMaxOrderByAggregateInput = { id?: Prisma.SortOrder week?: Prisma.SortOrder year?: Prisma.SortOrder date?: Prisma.SortOrder staff_id?: Prisma.SortOrder start_am?: Prisma.SortOrder end_am?: Prisma.SortOrder start_pm?: Prisma.SortOrder end_pm?: Prisma.SortOrder start_night?: Prisma.SortOrder end_night?: Prisma.SortOrder relais?: Prisma.SortOrder comment?: Prisma.SortOrder note_int?: Prisma.SortOrder conge?: Prisma.SortOrder appr?: Prisma.SortOrder appr_dir?: Prisma.SortOrder } export type carte_tempsMinOrderByAggregateInput = { id?: Prisma.SortOrder week?: Prisma.SortOrder year?: Prisma.SortOrder date?: Prisma.SortOrder staff_id?: Prisma.SortOrder start_am?: Prisma.SortOrder end_am?: Prisma.SortOrder start_pm?: Prisma.SortOrder end_pm?: Prisma.SortOrder start_night?: Prisma.SortOrder end_night?: Prisma.SortOrder relais?: Prisma.SortOrder comment?: Prisma.SortOrder note_int?: Prisma.SortOrder conge?: Prisma.SortOrder appr?: Prisma.SortOrder appr_dir?: Prisma.SortOrder } export type carte_tempsSumOrderByAggregateInput = { id?: Prisma.SortOrder week?: Prisma.SortOrder year?: Prisma.SortOrder date?: Prisma.SortOrder staff_id?: Prisma.SortOrder start_am?: Prisma.SortOrder end_am?: Prisma.SortOrder start_pm?: Prisma.SortOrder end_pm?: Prisma.SortOrder start_night?: Prisma.SortOrder end_night?: Prisma.SortOrder relais?: Prisma.SortOrder conge?: Prisma.SortOrder } export type carte_tempsSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean week?: boolean year?: boolean date?: boolean staff_id?: boolean start_am?: boolean end_am?: boolean start_pm?: boolean end_pm?: boolean start_night?: boolean end_night?: boolean relais?: boolean comment?: boolean note_int?: boolean conge?: boolean appr?: boolean appr_dir?: boolean }, ExtArgs["result"]["carte_temps"]> export type carte_tempsSelectScalar = { id?: boolean week?: boolean year?: boolean date?: boolean staff_id?: boolean start_am?: boolean end_am?: boolean start_pm?: boolean end_pm?: boolean start_night?: boolean end_night?: boolean relais?: boolean comment?: boolean note_int?: boolean conge?: boolean appr?: boolean appr_dir?: boolean } export type carte_tempsOmit = runtime.Types.Extensions.GetOmit<"id" | "week" | "year" | "date" | "staff_id" | "start_am" | "end_am" | "start_pm" | "end_pm" | "start_night" | "end_night" | "relais" | "comment" | "note_int" | "conge" | "appr" | "appr_dir", ExtArgs["result"]["carte_temps"]> export type $carte_tempsPayload = { name: "carte_temps" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number week: number year: number | null date: bigint staff_id: bigint start_am: bigint | null end_am: bigint | null start_pm: bigint | null end_pm: bigint | null start_night: bigint | null end_night: bigint | null relais: number | null comment: string | null note_int: string | null conge: number appr: string | null appr_dir: string | null }, ExtArgs["result"]["carte_temps"]> composites: {} } export type carte_tempsGetPayload = runtime.Types.Result.GetResult export type carte_tempsCountArgs = Omit & { select?: Carte_tempsCountAggregateInputType | true } export interface carte_tempsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['carte_temps'], meta: { name: 'carte_temps' } } /** * Find zero or one Carte_temps that matches the filter. * @param {carte_tempsFindUniqueArgs} args - Arguments to find a Carte_temps * @example * // Get one Carte_temps * const carte_temps = await prisma.carte_temps.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Carte_temps that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {carte_tempsFindUniqueOrThrowArgs} args - Arguments to find a Carte_temps * @example * // Get one Carte_temps * const carte_temps = await prisma.carte_temps.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Carte_temps 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 {carte_tempsFindFirstArgs} args - Arguments to find a Carte_temps * @example * // Get one Carte_temps * const carte_temps = await prisma.carte_temps.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Carte_temps 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 {carte_tempsFindFirstOrThrowArgs} args - Arguments to find a Carte_temps * @example * // Get one Carte_temps * const carte_temps = await prisma.carte_temps.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Carte_temps 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 {carte_tempsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Carte_temps * const carte_temps = await prisma.carte_temps.findMany() * * // Get first 10 Carte_temps * const carte_temps = await prisma.carte_temps.findMany({ take: 10 }) * * // Only select the `id` * const carte_tempsWithIdOnly = await prisma.carte_temps.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Carte_temps. * @param {carte_tempsCreateArgs} args - Arguments to create a Carte_temps. * @example * // Create one Carte_temps * const Carte_temps = await prisma.carte_temps.create({ * data: { * // ... data to create a Carte_temps * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Carte_temps. * @param {carte_tempsCreateManyArgs} args - Arguments to create many Carte_temps. * @example * // Create many Carte_temps * const carte_temps = await prisma.carte_temps.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Carte_temps. * @param {carte_tempsDeleteArgs} args - Arguments to delete one Carte_temps. * @example * // Delete one Carte_temps * const Carte_temps = await prisma.carte_temps.delete({ * where: { * // ... filter to delete one Carte_temps * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Carte_temps. * @param {carte_tempsUpdateArgs} args - Arguments to update one Carte_temps. * @example * // Update one Carte_temps * const carte_temps = await prisma.carte_temps.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Carte_temps. * @param {carte_tempsDeleteManyArgs} args - Arguments to filter Carte_temps to delete. * @example * // Delete a few Carte_temps * const { count } = await prisma.carte_temps.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Carte_temps. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {carte_tempsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Carte_temps * const carte_temps = await prisma.carte_temps.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Carte_temps. * @param {carte_tempsUpsertArgs} args - Arguments to update or create a Carte_temps. * @example * // Update or create a Carte_temps * const carte_temps = await prisma.carte_temps.upsert({ * create: { * // ... data to create a Carte_temps * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Carte_temps we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Carte_temps. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {carte_tempsCountArgs} args - Arguments to filter Carte_temps to count. * @example * // Count the number of Carte_temps * const count = await prisma.carte_temps.count({ * where: { * // ... the filter for the Carte_temps 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 Carte_temps. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Carte_tempsAggregateArgs} 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 Carte_temps. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {carte_tempsGroupByArgs} 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 carte_tempsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: carte_tempsGroupByArgs['orderBy'] } : { orderBy?: carte_tempsGroupByArgs['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 ? GetCarte_tempsGroupByPayload : Prisma.PrismaPromise /** * Fields of the carte_temps model */ readonly fields: carte_tempsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for carte_temps. * 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__carte_tempsClient 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 carte_temps model */ export interface carte_tempsFieldRefs { readonly id: Prisma.FieldRef<"carte_temps", 'Int'> readonly week: Prisma.FieldRef<"carte_temps", 'Int'> readonly year: Prisma.FieldRef<"carte_temps", 'Int'> readonly date: Prisma.FieldRef<"carte_temps", 'BigInt'> readonly staff_id: Prisma.FieldRef<"carte_temps", 'BigInt'> readonly start_am: Prisma.FieldRef<"carte_temps", 'BigInt'> readonly end_am: Prisma.FieldRef<"carte_temps", 'BigInt'> readonly start_pm: Prisma.FieldRef<"carte_temps", 'BigInt'> readonly end_pm: Prisma.FieldRef<"carte_temps", 'BigInt'> readonly start_night: Prisma.FieldRef<"carte_temps", 'BigInt'> readonly end_night: Prisma.FieldRef<"carte_temps", 'BigInt'> readonly relais: Prisma.FieldRef<"carte_temps", 'Float'> readonly comment: Prisma.FieldRef<"carte_temps", 'String'> readonly note_int: Prisma.FieldRef<"carte_temps", 'String'> readonly conge: Prisma.FieldRef<"carte_temps", 'Int'> readonly appr: Prisma.FieldRef<"carte_temps", 'String'> readonly appr_dir: Prisma.FieldRef<"carte_temps", 'String'> } // Custom InputTypes /** * carte_temps findUnique */ export type carte_tempsFindUniqueArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null /** * Filter, which carte_temps to fetch. */ where: Prisma.carte_tempsWhereUniqueInput } /** * carte_temps findUniqueOrThrow */ export type carte_tempsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null /** * Filter, which carte_temps to fetch. */ where: Prisma.carte_tempsWhereUniqueInput } /** * carte_temps findFirst */ export type carte_tempsFindFirstArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null /** * Filter, which carte_temps to fetch. */ where?: Prisma.carte_tempsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of carte_temps to fetch. */ orderBy?: Prisma.carte_tempsOrderByWithRelationInput | Prisma.carte_tempsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for carte_temps. */ cursor?: Prisma.carte_tempsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` carte_temps 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` carte_temps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of carte_temps. */ distinct?: Prisma.Carte_tempsScalarFieldEnum | Prisma.Carte_tempsScalarFieldEnum[] } /** * carte_temps findFirstOrThrow */ export type carte_tempsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null /** * Filter, which carte_temps to fetch. */ where?: Prisma.carte_tempsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of carte_temps to fetch. */ orderBy?: Prisma.carte_tempsOrderByWithRelationInput | Prisma.carte_tempsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for carte_temps. */ cursor?: Prisma.carte_tempsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` carte_temps 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` carte_temps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of carte_temps. */ distinct?: Prisma.Carte_tempsScalarFieldEnum | Prisma.Carte_tempsScalarFieldEnum[] } /** * carte_temps findMany */ export type carte_tempsFindManyArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null /** * Filter, which carte_temps to fetch. */ where?: Prisma.carte_tempsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of carte_temps to fetch. */ orderBy?: Prisma.carte_tempsOrderByWithRelationInput | Prisma.carte_tempsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing carte_temps. */ cursor?: Prisma.carte_tempsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` carte_temps 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` carte_temps. */ skip?: number distinct?: Prisma.Carte_tempsScalarFieldEnum | Prisma.Carte_tempsScalarFieldEnum[] } /** * carte_temps create */ export type carte_tempsCreateArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null /** * The data needed to create a carte_temps. */ data: Prisma.XOR } /** * carte_temps createMany */ export type carte_tempsCreateManyArgs = { /** * The data used to create many carte_temps. */ data: Prisma.carte_tempsCreateManyInput | Prisma.carte_tempsCreateManyInput[] skipDuplicates?: boolean } /** * carte_temps update */ export type carte_tempsUpdateArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null /** * The data needed to update a carte_temps. */ data: Prisma.XOR /** * Choose, which carte_temps to update. */ where: Prisma.carte_tempsWhereUniqueInput } /** * carte_temps updateMany */ export type carte_tempsUpdateManyArgs = { /** * The data used to update carte_temps. */ data: Prisma.XOR /** * Filter which carte_temps to update */ where?: Prisma.carte_tempsWhereInput /** * Limit how many carte_temps to update. */ limit?: number } /** * carte_temps upsert */ export type carte_tempsUpsertArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null /** * The filter to search for the carte_temps to update in case it exists. */ where: Prisma.carte_tempsWhereUniqueInput /** * In case the carte_temps found by the `where` argument doesn't exist, create a new carte_temps with this data. */ create: Prisma.XOR /** * In case the carte_temps was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * carte_temps delete */ export type carte_tempsDeleteArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null /** * Filter which carte_temps to delete. */ where: Prisma.carte_tempsWhereUniqueInput } /** * carte_temps deleteMany */ export type carte_tempsDeleteManyArgs = { /** * Filter which carte_temps to delete */ where?: Prisma.carte_tempsWhereInput /** * Limit how many carte_temps to delete. */ limit?: number } /** * carte_temps without action */ export type carte_tempsDefaultArgs = { /** * Select specific fields to fetch from the carte_temps */ select?: Prisma.carte_tempsSelect | null /** * Omit specific fields from the carte_temps */ omit?: Prisma.carte_tempsOmit | null }