
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `service` 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 service
 * 
 */
export type serviceModel = runtime.Types.Result.DefaultSelection<Prisma.$servicePayload>

export type AggregateService = {
  _count: ServiceCountAggregateOutputType | null
  _avg: ServiceAvgAggregateOutputType | null
  _sum: ServiceSumAggregateOutputType | null
  _min: ServiceMinAggregateOutputType | null
  _max: ServiceMaxAggregateOutputType | null
}

export type ServiceAvgAggregateOutputType = {
  id: number | null
  date_orig: number | null
  date_suspended: number | null
  date_next_invoice: number | null
  date_last_invoice: number | null
  delivery_id: number | null
  device_id: number | null
  product_id: number | null
  payment_recurrence: number | null
  status: number | null
  hijack: number | null
  hijack_price: number | null
  hijack_download_speed: number | null
  hijack_upload_speed: number | null
  hijack_quota_day: number | null
  hijack_quota_night: number | null
  date_end_contract: number | null
  actif_until: number | null
  forfait_internet: number | null
}

export type ServiceSumAggregateOutputType = {
  id: bigint | null
  date_orig: bigint | null
  date_suspended: bigint | null
  date_next_invoice: bigint | null
  date_last_invoice: bigint | null
  delivery_id: number | null
  device_id: number | null
  product_id: number | null
  payment_recurrence: number | null
  status: number | null
  hijack: number | null
  hijack_price: number | null
  hijack_download_speed: bigint | null
  hijack_upload_speed: bigint | null
  hijack_quota_day: bigint | null
  hijack_quota_night: bigint | null
  date_end_contract: bigint | null
  actif_until: bigint | null
  forfait_internet: number | null
}

export type ServiceMinAggregateOutputType = {
  id: bigint | null
  date_orig: bigint | null
  date_suspended: bigint | null
  date_next_invoice: bigint | null
  date_last_invoice: bigint | null
  delivery_id: number | null
  device_id: number | null
  product_id: number | null
  comment: string | null
  payment_recurrence: number | null
  status: number | null
  hijack: number | null
  hijack_price: number | null
  hijack_desc: string | null
  hijack_download_speed: bigint | null
  hijack_upload_speed: bigint | null
  hijack_quota_day: bigint | null
  hijack_quota_night: bigint | null
  date_end_contract: bigint | null
  actif_until: bigint | null
  forfait_internet: number | null
  radius_user: string | null
  radius_pwd: string | null
  radius_conso: boolean | null
}

export type ServiceMaxAggregateOutputType = {
  id: bigint | null
  date_orig: bigint | null
  date_suspended: bigint | null
  date_next_invoice: bigint | null
  date_last_invoice: bigint | null
  delivery_id: number | null
  device_id: number | null
  product_id: number | null
  comment: string | null
  payment_recurrence: number | null
  status: number | null
  hijack: number | null
  hijack_price: number | null
  hijack_desc: string | null
  hijack_download_speed: bigint | null
  hijack_upload_speed: bigint | null
  hijack_quota_day: bigint | null
  hijack_quota_night: bigint | null
  date_end_contract: bigint | null
  actif_until: bigint | null
  forfait_internet: number | null
  radius_user: string | null
  radius_pwd: string | null
  radius_conso: boolean | null
}

export type ServiceCountAggregateOutputType = {
  id: number
  date_orig: number
  date_suspended: number
  date_next_invoice: number
  date_last_invoice: number
  delivery_id: number
  device_id: number
  product_id: number
  comment: number
  payment_recurrence: number
  status: number
  hijack: number
  hijack_price: number
  hijack_desc: number
  hijack_download_speed: number
  hijack_upload_speed: number
  hijack_quota_day: number
  hijack_quota_night: number
  date_end_contract: number
  actif_until: number
  forfait_internet: number
  radius_user: number
  radius_pwd: number
  radius_conso: number
  _all: number
}


export type ServiceAvgAggregateInputType = {
  id?: true
  date_orig?: true
  date_suspended?: true
  date_next_invoice?: true
  date_last_invoice?: true
  delivery_id?: true
  device_id?: true
  product_id?: true
  payment_recurrence?: true
  status?: true
  hijack?: true
  hijack_price?: true
  hijack_download_speed?: true
  hijack_upload_speed?: true
  hijack_quota_day?: true
  hijack_quota_night?: true
  date_end_contract?: true
  actif_until?: true
  forfait_internet?: true
}

export type ServiceSumAggregateInputType = {
  id?: true
  date_orig?: true
  date_suspended?: true
  date_next_invoice?: true
  date_last_invoice?: true
  delivery_id?: true
  device_id?: true
  product_id?: true
  payment_recurrence?: true
  status?: true
  hijack?: true
  hijack_price?: true
  hijack_download_speed?: true
  hijack_upload_speed?: true
  hijack_quota_day?: true
  hijack_quota_night?: true
  date_end_contract?: true
  actif_until?: true
  forfait_internet?: true
}

export type ServiceMinAggregateInputType = {
  id?: true
  date_orig?: true
  date_suspended?: true
  date_next_invoice?: true
  date_last_invoice?: true
  delivery_id?: true
  device_id?: true
  product_id?: true
  comment?: true
  payment_recurrence?: true
  status?: true
  hijack?: true
  hijack_price?: true
  hijack_desc?: true
  hijack_download_speed?: true
  hijack_upload_speed?: true
  hijack_quota_day?: true
  hijack_quota_night?: true
  date_end_contract?: true
  actif_until?: true
  forfait_internet?: true
  radius_user?: true
  radius_pwd?: true
  radius_conso?: true
}

export type ServiceMaxAggregateInputType = {
  id?: true
  date_orig?: true
  date_suspended?: true
  date_next_invoice?: true
  date_last_invoice?: true
  delivery_id?: true
  device_id?: true
  product_id?: true
  comment?: true
  payment_recurrence?: true
  status?: true
  hijack?: true
  hijack_price?: true
  hijack_desc?: true
  hijack_download_speed?: true
  hijack_upload_speed?: true
  hijack_quota_day?: true
  hijack_quota_night?: true
  date_end_contract?: true
  actif_until?: true
  forfait_internet?: true
  radius_user?: true
  radius_pwd?: true
  radius_conso?: true
}

export type ServiceCountAggregateInputType = {
  id?: true
  date_orig?: true
  date_suspended?: true
  date_next_invoice?: true
  date_last_invoice?: true
  delivery_id?: true
  device_id?: true
  product_id?: true
  comment?: true
  payment_recurrence?: true
  status?: true
  hijack?: true
  hijack_price?: true
  hijack_desc?: true
  hijack_download_speed?: true
  hijack_upload_speed?: true
  hijack_quota_day?: true
  hijack_quota_night?: true
  date_end_contract?: true
  actif_until?: true
  forfait_internet?: true
  radius_user?: true
  radius_pwd?: true
  radius_conso?: true
  _all?: true
}

export type ServiceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which service to aggregate.
   */
  where?: Prisma.serviceWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of services to fetch.
   */
  orderBy?: Prisma.serviceOrderByWithRelationInput | Prisma.serviceOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.serviceWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` services 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` services.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned services
  **/
  _count?: true | ServiceCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: ServiceAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: ServiceSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ServiceMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ServiceMaxAggregateInputType
}

export type GetServiceAggregateType<T extends ServiceAggregateArgs> = {
      [P in keyof T & keyof AggregateService]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateService[P]>
    : Prisma.GetScalarType<T[P], AggregateService[P]>
}




export type serviceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.serviceWhereInput
  orderBy?: Prisma.serviceOrderByWithAggregationInput | Prisma.serviceOrderByWithAggregationInput[]
  by: Prisma.ServiceScalarFieldEnum[] | Prisma.ServiceScalarFieldEnum
  having?: Prisma.serviceScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ServiceCountAggregateInputType | true
  _avg?: ServiceAvgAggregateInputType
  _sum?: ServiceSumAggregateInputType
  _min?: ServiceMinAggregateInputType
  _max?: ServiceMaxAggregateInputType
}

export type ServiceGroupByOutputType = {
  id: bigint
  date_orig: bigint | null
  date_suspended: bigint | null
  date_next_invoice: bigint | null
  date_last_invoice: bigint | null
  delivery_id: number | null
  device_id: number
  product_id: number | null
  comment: string | null
  payment_recurrence: number | null
  status: number | null
  hijack: number
  hijack_price: number
  hijack_desc: string | null
  hijack_download_speed: bigint | null
  hijack_upload_speed: bigint | null
  hijack_quota_day: bigint | null
  hijack_quota_night: bigint | null
  date_end_contract: bigint | null
  actif_until: bigint | null
  forfait_internet: number
  radius_user: string
  radius_pwd: string
  radius_conso: boolean
  _count: ServiceCountAggregateOutputType | null
  _avg: ServiceAvgAggregateOutputType | null
  _sum: ServiceSumAggregateOutputType | null
  _min: ServiceMinAggregateOutputType | null
  _max: ServiceMaxAggregateOutputType | null
}

type GetServiceGroupByPayload<T extends serviceGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<ServiceGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof ServiceGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], ServiceGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], ServiceGroupByOutputType[P]>
      }
    >
  >



export type serviceWhereInput = {
  AND?: Prisma.serviceWhereInput | Prisma.serviceWhereInput[]
  OR?: Prisma.serviceWhereInput[]
  NOT?: Prisma.serviceWhereInput | Prisma.serviceWhereInput[]
  id?: Prisma.BigIntFilter<"service"> | bigint | number
  date_orig?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  date_suspended?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  date_next_invoice?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  date_last_invoice?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  delivery_id?: Prisma.IntNullableFilter<"service"> | number | null
  device_id?: Prisma.IntFilter<"service"> | number
  product_id?: Prisma.IntNullableFilter<"service"> | number | null
  comment?: Prisma.StringNullableFilter<"service"> | string | null
  payment_recurrence?: Prisma.IntNullableFilter<"service"> | number | null
  status?: Prisma.IntNullableFilter<"service"> | number | null
  hijack?: Prisma.IntFilter<"service"> | number
  hijack_price?: Prisma.FloatFilter<"service"> | number
  hijack_desc?: Prisma.StringNullableFilter<"service"> | string | null
  hijack_download_speed?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  hijack_upload_speed?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  hijack_quota_day?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  hijack_quota_night?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  date_end_contract?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  actif_until?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  forfait_internet?: Prisma.IntFilter<"service"> | number
  radius_user?: Prisma.StringFilter<"service"> | string
  radius_pwd?: Prisma.StringFilter<"service"> | string
  radius_conso?: Prisma.BoolFilter<"service"> | boolean
}

export type serviceOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
  date_suspended?: Prisma.SortOrderInput | Prisma.SortOrder
  date_next_invoice?: Prisma.SortOrderInput | Prisma.SortOrder
  date_last_invoice?: Prisma.SortOrderInput | Prisma.SortOrder
  delivery_id?: Prisma.SortOrderInput | Prisma.SortOrder
  device_id?: Prisma.SortOrder
  product_id?: Prisma.SortOrderInput | Prisma.SortOrder
  comment?: Prisma.SortOrderInput | Prisma.SortOrder
  payment_recurrence?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack?: Prisma.SortOrder
  hijack_price?: Prisma.SortOrder
  hijack_desc?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack_download_speed?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack_upload_speed?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack_quota_day?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack_quota_night?: Prisma.SortOrderInput | Prisma.SortOrder
  date_end_contract?: Prisma.SortOrderInput | Prisma.SortOrder
  actif_until?: Prisma.SortOrderInput | Prisma.SortOrder
  forfait_internet?: Prisma.SortOrder
  radius_user?: Prisma.SortOrder
  radius_pwd?: Prisma.SortOrder
  radius_conso?: Prisma.SortOrder
  _relevance?: Prisma.serviceOrderByRelevanceInput
}

export type serviceWhereUniqueInput = Prisma.AtLeast<{
  id?: bigint | number
  AND?: Prisma.serviceWhereInput | Prisma.serviceWhereInput[]
  OR?: Prisma.serviceWhereInput[]
  NOT?: Prisma.serviceWhereInput | Prisma.serviceWhereInput[]
  date_orig?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  date_suspended?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  date_next_invoice?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  date_last_invoice?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  delivery_id?: Prisma.IntNullableFilter<"service"> | number | null
  device_id?: Prisma.IntFilter<"service"> | number
  product_id?: Prisma.IntNullableFilter<"service"> | number | null
  comment?: Prisma.StringNullableFilter<"service"> | string | null
  payment_recurrence?: Prisma.IntNullableFilter<"service"> | number | null
  status?: Prisma.IntNullableFilter<"service"> | number | null
  hijack?: Prisma.IntFilter<"service"> | number
  hijack_price?: Prisma.FloatFilter<"service"> | number
  hijack_desc?: Prisma.StringNullableFilter<"service"> | string | null
  hijack_download_speed?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  hijack_upload_speed?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  hijack_quota_day?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  hijack_quota_night?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  date_end_contract?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  actif_until?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null
  forfait_internet?: Prisma.IntFilter<"service"> | number
  radius_user?: Prisma.StringFilter<"service"> | string
  radius_pwd?: Prisma.StringFilter<"service"> | string
  radius_conso?: Prisma.BoolFilter<"service"> | boolean
}, "id">

export type serviceOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
  date_suspended?: Prisma.SortOrderInput | Prisma.SortOrder
  date_next_invoice?: Prisma.SortOrderInput | Prisma.SortOrder
  date_last_invoice?: Prisma.SortOrderInput | Prisma.SortOrder
  delivery_id?: Prisma.SortOrderInput | Prisma.SortOrder
  device_id?: Prisma.SortOrder
  product_id?: Prisma.SortOrderInput | Prisma.SortOrder
  comment?: Prisma.SortOrderInput | Prisma.SortOrder
  payment_recurrence?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack?: Prisma.SortOrder
  hijack_price?: Prisma.SortOrder
  hijack_desc?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack_download_speed?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack_upload_speed?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack_quota_day?: Prisma.SortOrderInput | Prisma.SortOrder
  hijack_quota_night?: Prisma.SortOrderInput | Prisma.SortOrder
  date_end_contract?: Prisma.SortOrderInput | Prisma.SortOrder
  actif_until?: Prisma.SortOrderInput | Prisma.SortOrder
  forfait_internet?: Prisma.SortOrder
  radius_user?: Prisma.SortOrder
  radius_pwd?: Prisma.SortOrder
  radius_conso?: Prisma.SortOrder
  _count?: Prisma.serviceCountOrderByAggregateInput
  _avg?: Prisma.serviceAvgOrderByAggregateInput
  _max?: Prisma.serviceMaxOrderByAggregateInput
  _min?: Prisma.serviceMinOrderByAggregateInput
  _sum?: Prisma.serviceSumOrderByAggregateInput
}

export type serviceScalarWhereWithAggregatesInput = {
  AND?: Prisma.serviceScalarWhereWithAggregatesInput | Prisma.serviceScalarWhereWithAggregatesInput[]
  OR?: Prisma.serviceScalarWhereWithAggregatesInput[]
  NOT?: Prisma.serviceScalarWhereWithAggregatesInput | Prisma.serviceScalarWhereWithAggregatesInput[]
  id?: Prisma.BigIntWithAggregatesFilter<"service"> | bigint | number
  date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  date_suspended?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  date_next_invoice?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  date_last_invoice?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  delivery_id?: Prisma.IntNullableWithAggregatesFilter<"service"> | number | null
  device_id?: Prisma.IntWithAggregatesFilter<"service"> | number
  product_id?: Prisma.IntNullableWithAggregatesFilter<"service"> | number | null
  comment?: Prisma.StringNullableWithAggregatesFilter<"service"> | string | null
  payment_recurrence?: Prisma.IntNullableWithAggregatesFilter<"service"> | number | null
  status?: Prisma.IntNullableWithAggregatesFilter<"service"> | number | null
  hijack?: Prisma.IntWithAggregatesFilter<"service"> | number
  hijack_price?: Prisma.FloatWithAggregatesFilter<"service"> | number
  hijack_desc?: Prisma.StringNullableWithAggregatesFilter<"service"> | string | null
  hijack_download_speed?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  hijack_upload_speed?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  hijack_quota_day?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  hijack_quota_night?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  date_end_contract?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  actif_until?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null
  forfait_internet?: Prisma.IntWithAggregatesFilter<"service"> | number
  radius_user?: Prisma.StringWithAggregatesFilter<"service"> | string
  radius_pwd?: Prisma.StringWithAggregatesFilter<"service"> | string
  radius_conso?: Prisma.BoolWithAggregatesFilter<"service"> | boolean
}

export type serviceCreateInput = {
  id?: bigint | number
  date_orig?: bigint | number | null
  date_suspended?: bigint | number | null
  date_next_invoice?: bigint | number | null
  date_last_invoice?: bigint | number | null
  delivery_id?: number | null
  device_id?: number
  product_id?: number | null
  comment?: string | null
  payment_recurrence?: number | null
  status?: number | null
  hijack?: number
  hijack_price?: number
  hijack_desc?: string | null
  hijack_download_speed?: bigint | number | null
  hijack_upload_speed?: bigint | number | null
  hijack_quota_day?: bigint | number | null
  hijack_quota_night?: bigint | number | null
  date_end_contract?: bigint | number | null
  actif_until?: bigint | number | null
  forfait_internet?: number
  radius_user: string
  radius_pwd: string
  radius_conso?: boolean
}

export type serviceUncheckedCreateInput = {
  id?: bigint | number
  date_orig?: bigint | number | null
  date_suspended?: bigint | number | null
  date_next_invoice?: bigint | number | null
  date_last_invoice?: bigint | number | null
  delivery_id?: number | null
  device_id?: number
  product_id?: number | null
  comment?: string | null
  payment_recurrence?: number | null
  status?: number | null
  hijack?: number
  hijack_price?: number
  hijack_desc?: string | null
  hijack_download_speed?: bigint | number | null
  hijack_upload_speed?: bigint | number | null
  hijack_quota_day?: bigint | number | null
  hijack_quota_night?: bigint | number | null
  date_end_contract?: bigint | number | null
  actif_until?: bigint | number | null
  forfait_internet?: number
  radius_user: string
  radius_pwd: string
  radius_conso?: boolean
}

export type serviceUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_suspended?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_next_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_last_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  delivery_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  device_id?: Prisma.IntFieldUpdateOperationsInput | number
  product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  payment_recurrence?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  hijack?: Prisma.IntFieldUpdateOperationsInput | number
  hijack_price?: Prisma.FloatFieldUpdateOperationsInput | number
  hijack_desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  hijack_download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_end_contract?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  actif_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  forfait_internet?: Prisma.IntFieldUpdateOperationsInput | number
  radius_user?: Prisma.StringFieldUpdateOperationsInput | string
  radius_pwd?: Prisma.StringFieldUpdateOperationsInput | string
  radius_conso?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type serviceUncheckedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_suspended?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_next_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_last_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  delivery_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  device_id?: Prisma.IntFieldUpdateOperationsInput | number
  product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  payment_recurrence?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  hijack?: Prisma.IntFieldUpdateOperationsInput | number
  hijack_price?: Prisma.FloatFieldUpdateOperationsInput | number
  hijack_desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  hijack_download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_end_contract?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  actif_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  forfait_internet?: Prisma.IntFieldUpdateOperationsInput | number
  radius_user?: Prisma.StringFieldUpdateOperationsInput | string
  radius_pwd?: Prisma.StringFieldUpdateOperationsInput | string
  radius_conso?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type serviceCreateManyInput = {
  id?: bigint | number
  date_orig?: bigint | number | null
  date_suspended?: bigint | number | null
  date_next_invoice?: bigint | number | null
  date_last_invoice?: bigint | number | null
  delivery_id?: number | null
  device_id?: number
  product_id?: number | null
  comment?: string | null
  payment_recurrence?: number | null
  status?: number | null
  hijack?: number
  hijack_price?: number
  hijack_desc?: string | null
  hijack_download_speed?: bigint | number | null
  hijack_upload_speed?: bigint | number | null
  hijack_quota_day?: bigint | number | null
  hijack_quota_night?: bigint | number | null
  date_end_contract?: bigint | number | null
  actif_until?: bigint | number | null
  forfait_internet?: number
  radius_user: string
  radius_pwd: string
  radius_conso?: boolean
}

export type serviceUpdateManyMutationInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_suspended?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_next_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_last_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  delivery_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  device_id?: Prisma.IntFieldUpdateOperationsInput | number
  product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  payment_recurrence?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  hijack?: Prisma.IntFieldUpdateOperationsInput | number
  hijack_price?: Prisma.FloatFieldUpdateOperationsInput | number
  hijack_desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  hijack_download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_end_contract?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  actif_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  forfait_internet?: Prisma.IntFieldUpdateOperationsInput | number
  radius_user?: Prisma.StringFieldUpdateOperationsInput | string
  radius_pwd?: Prisma.StringFieldUpdateOperationsInput | string
  radius_conso?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type serviceUncheckedUpdateManyInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_suspended?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_next_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_last_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  delivery_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  device_id?: Prisma.IntFieldUpdateOperationsInput | number
  product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  payment_recurrence?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  hijack?: Prisma.IntFieldUpdateOperationsInput | number
  hijack_price?: Prisma.FloatFieldUpdateOperationsInput | number
  hijack_desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  hijack_download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  hijack_quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_end_contract?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  actif_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  forfait_internet?: Prisma.IntFieldUpdateOperationsInput | number
  radius_user?: Prisma.StringFieldUpdateOperationsInput | string
  radius_pwd?: Prisma.StringFieldUpdateOperationsInput | string
  radius_conso?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type serviceOrderByRelevanceInput = {
  fields: Prisma.serviceOrderByRelevanceFieldEnum | Prisma.serviceOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type serviceCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  date_suspended?: Prisma.SortOrder
  date_next_invoice?: Prisma.SortOrder
  date_last_invoice?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  device_id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  payment_recurrence?: Prisma.SortOrder
  status?: Prisma.SortOrder
  hijack?: Prisma.SortOrder
  hijack_price?: Prisma.SortOrder
  hijack_desc?: Prisma.SortOrder
  hijack_download_speed?: Prisma.SortOrder
  hijack_upload_speed?: Prisma.SortOrder
  hijack_quota_day?: Prisma.SortOrder
  hijack_quota_night?: Prisma.SortOrder
  date_end_contract?: Prisma.SortOrder
  actif_until?: Prisma.SortOrder
  forfait_internet?: Prisma.SortOrder
  radius_user?: Prisma.SortOrder
  radius_pwd?: Prisma.SortOrder
  radius_conso?: Prisma.SortOrder
}

export type serviceAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  date_suspended?: Prisma.SortOrder
  date_next_invoice?: Prisma.SortOrder
  date_last_invoice?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  device_id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  payment_recurrence?: Prisma.SortOrder
  status?: Prisma.SortOrder
  hijack?: Prisma.SortOrder
  hijack_price?: Prisma.SortOrder
  hijack_download_speed?: Prisma.SortOrder
  hijack_upload_speed?: Prisma.SortOrder
  hijack_quota_day?: Prisma.SortOrder
  hijack_quota_night?: Prisma.SortOrder
  date_end_contract?: Prisma.SortOrder
  actif_until?: Prisma.SortOrder
  forfait_internet?: Prisma.SortOrder
}

export type serviceMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  date_suspended?: Prisma.SortOrder
  date_next_invoice?: Prisma.SortOrder
  date_last_invoice?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  device_id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  payment_recurrence?: Prisma.SortOrder
  status?: Prisma.SortOrder
  hijack?: Prisma.SortOrder
  hijack_price?: Prisma.SortOrder
  hijack_desc?: Prisma.SortOrder
  hijack_download_speed?: Prisma.SortOrder
  hijack_upload_speed?: Prisma.SortOrder
  hijack_quota_day?: Prisma.SortOrder
  hijack_quota_night?: Prisma.SortOrder
  date_end_contract?: Prisma.SortOrder
  actif_until?: Prisma.SortOrder
  forfait_internet?: Prisma.SortOrder
  radius_user?: Prisma.SortOrder
  radius_pwd?: Prisma.SortOrder
  radius_conso?: Prisma.SortOrder
}

export type serviceMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  date_suspended?: Prisma.SortOrder
  date_next_invoice?: Prisma.SortOrder
  date_last_invoice?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  device_id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  payment_recurrence?: Prisma.SortOrder
  status?: Prisma.SortOrder
  hijack?: Prisma.SortOrder
  hijack_price?: Prisma.SortOrder
  hijack_desc?: Prisma.SortOrder
  hijack_download_speed?: Prisma.SortOrder
  hijack_upload_speed?: Prisma.SortOrder
  hijack_quota_day?: Prisma.SortOrder
  hijack_quota_night?: Prisma.SortOrder
  date_end_contract?: Prisma.SortOrder
  actif_until?: Prisma.SortOrder
  forfait_internet?: Prisma.SortOrder
  radius_user?: Prisma.SortOrder
  radius_pwd?: Prisma.SortOrder
  radius_conso?: Prisma.SortOrder
}

export type serviceSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  date_suspended?: Prisma.SortOrder
  date_next_invoice?: Prisma.SortOrder
  date_last_invoice?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  device_id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  payment_recurrence?: Prisma.SortOrder
  status?: Prisma.SortOrder
  hijack?: Prisma.SortOrder
  hijack_price?: Prisma.SortOrder
  hijack_download_speed?: Prisma.SortOrder
  hijack_upload_speed?: Prisma.SortOrder
  hijack_quota_day?: Prisma.SortOrder
  hijack_quota_night?: Prisma.SortOrder
  date_end_contract?: Prisma.SortOrder
  actif_until?: Prisma.SortOrder
  forfait_internet?: Prisma.SortOrder
}



export type serviceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  date_orig?: boolean
  date_suspended?: boolean
  date_next_invoice?: boolean
  date_last_invoice?: boolean
  delivery_id?: boolean
  device_id?: boolean
  product_id?: boolean
  comment?: boolean
  payment_recurrence?: boolean
  status?: boolean
  hijack?: boolean
  hijack_price?: boolean
  hijack_desc?: boolean
  hijack_download_speed?: boolean
  hijack_upload_speed?: boolean
  hijack_quota_day?: boolean
  hijack_quota_night?: boolean
  date_end_contract?: boolean
  actif_until?: boolean
  forfait_internet?: boolean
  radius_user?: boolean
  radius_pwd?: boolean
  radius_conso?: boolean
}, ExtArgs["result"]["service"]>



export type serviceSelectScalar = {
  id?: boolean
  date_orig?: boolean
  date_suspended?: boolean
  date_next_invoice?: boolean
  date_last_invoice?: boolean
  delivery_id?: boolean
  device_id?: boolean
  product_id?: boolean
  comment?: boolean
  payment_recurrence?: boolean
  status?: boolean
  hijack?: boolean
  hijack_price?: boolean
  hijack_desc?: boolean
  hijack_download_speed?: boolean
  hijack_upload_speed?: boolean
  hijack_quota_day?: boolean
  hijack_quota_night?: boolean
  date_end_contract?: boolean
  actif_until?: boolean
  forfait_internet?: boolean
  radius_user?: boolean
  radius_pwd?: boolean
  radius_conso?: boolean
}

export type serviceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "date_suspended" | "date_next_invoice" | "date_last_invoice" | "delivery_id" | "device_id" | "product_id" | "comment" | "payment_recurrence" | "status" | "hijack" | "hijack_price" | "hijack_desc" | "hijack_download_speed" | "hijack_upload_speed" | "hijack_quota_day" | "hijack_quota_night" | "date_end_contract" | "actif_until" | "forfait_internet" | "radius_user" | "radius_pwd" | "radius_conso", ExtArgs["result"]["service"]>

export type $servicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "service"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: bigint
    date_orig: bigint | null
    date_suspended: bigint | null
    date_next_invoice: bigint | null
    date_last_invoice: bigint | null
    delivery_id: number | null
    device_id: number
    product_id: number | null
    comment: string | null
    payment_recurrence: number | null
    status: number | null
    hijack: number
    hijack_price: number
    hijack_desc: string | null
    hijack_download_speed: bigint | null
    hijack_upload_speed: bigint | null
    hijack_quota_day: bigint | null
    hijack_quota_night: bigint | null
    date_end_contract: bigint | null
    actif_until: bigint | null
    forfait_internet: number
    radius_user: string
    radius_pwd: string
    radius_conso: boolean
  }, ExtArgs["result"]["service"]>
  composites: {}
}

export type serviceGetPayload<S extends boolean | null | undefined | serviceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$servicePayload, S>

export type serviceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<serviceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: ServiceCountAggregateInputType | true
  }

export interface serviceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['service'], meta: { name: 'service' } }
  /**
   * Find zero or one Service that matches the filter.
   * @param {serviceFindUniqueArgs} args - Arguments to find a Service
   * @example
   * // Get one Service
   * const service = await prisma.service.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends serviceFindUniqueArgs>(args: Prisma.SelectSubset<T, serviceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__serviceClient<runtime.Types.Result.GetResult<Prisma.$servicePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one Service that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {serviceFindUniqueOrThrowArgs} args - Arguments to find a Service
   * @example
   * // Get one Service
   * const service = await prisma.service.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends serviceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, serviceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__serviceClient<runtime.Types.Result.GetResult<Prisma.$servicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Service 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 {serviceFindFirstArgs} args - Arguments to find a Service
   * @example
   * // Get one Service
   * const service = await prisma.service.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends serviceFindFirstArgs>(args?: Prisma.SelectSubset<T, serviceFindFirstArgs<ExtArgs>>): Prisma.Prisma__serviceClient<runtime.Types.Result.GetResult<Prisma.$servicePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Service 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 {serviceFindFirstOrThrowArgs} args - Arguments to find a Service
   * @example
   * // Get one Service
   * const service = await prisma.service.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends serviceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, serviceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__serviceClient<runtime.Types.Result.GetResult<Prisma.$servicePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more Services 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 {serviceFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Services
   * const services = await prisma.service.findMany()
   * 
   * // Get first 10 Services
   * const services = await prisma.service.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const serviceWithIdOnly = await prisma.service.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends serviceFindManyArgs>(args?: Prisma.SelectSubset<T, serviceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$servicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a Service.
   * @param {serviceCreateArgs} args - Arguments to create a Service.
   * @example
   * // Create one Service
   * const Service = await prisma.service.create({
   *   data: {
   *     // ... data to create a Service
   *   }
   * })
   * 
   */
  create<T extends serviceCreateArgs>(args: Prisma.SelectSubset<T, serviceCreateArgs<ExtArgs>>): Prisma.Prisma__serviceClient<runtime.Types.Result.GetResult<Prisma.$servicePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many Services.
   * @param {serviceCreateManyArgs} args - Arguments to create many Services.
   * @example
   * // Create many Services
   * const service = await prisma.service.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends serviceCreateManyArgs>(args?: Prisma.SelectSubset<T, serviceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Delete a Service.
   * @param {serviceDeleteArgs} args - Arguments to delete one Service.
   * @example
   * // Delete one Service
   * const Service = await prisma.service.delete({
   *   where: {
   *     // ... filter to delete one Service
   *   }
   * })
   * 
   */
  delete<T extends serviceDeleteArgs>(args: Prisma.SelectSubset<T, serviceDeleteArgs<ExtArgs>>): Prisma.Prisma__serviceClient<runtime.Types.Result.GetResult<Prisma.$servicePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one Service.
   * @param {serviceUpdateArgs} args - Arguments to update one Service.
   * @example
   * // Update one Service
   * const service = await prisma.service.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends serviceUpdateArgs>(args: Prisma.SelectSubset<T, serviceUpdateArgs<ExtArgs>>): Prisma.Prisma__serviceClient<runtime.Types.Result.GetResult<Prisma.$servicePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more Services.
   * @param {serviceDeleteManyArgs} args - Arguments to filter Services to delete.
   * @example
   * // Delete a few Services
   * const { count } = await prisma.service.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends serviceDeleteManyArgs>(args?: Prisma.SelectSubset<T, serviceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Services.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {serviceUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many Services
   * const service = await prisma.service.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends serviceUpdateManyArgs>(args: Prisma.SelectSubset<T, serviceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create or update one Service.
   * @param {serviceUpsertArgs} args - Arguments to update or create a Service.
   * @example
   * // Update or create a Service
   * const service = await prisma.service.upsert({
   *   create: {
   *     // ... data to create a Service
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the Service we want to update
   *   }
   * })
   */
  upsert<T extends serviceUpsertArgs>(args: Prisma.SelectSubset<T, serviceUpsertArgs<ExtArgs>>): Prisma.Prisma__serviceClient<runtime.Types.Result.GetResult<Prisma.$servicePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of Services.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {serviceCountArgs} args - Arguments to filter Services to count.
   * @example
   * // Count the number of Services
   * const count = await prisma.service.count({
   *   where: {
   *     // ... the filter for the Services we want to count
   *   }
   * })
  **/
  count<T extends serviceCountArgs>(
    args?: Prisma.Subset<T, serviceCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], ServiceCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a Service.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ServiceAggregateArgs} 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<T extends ServiceAggregateArgs>(args: Prisma.Subset<T, ServiceAggregateArgs>): Prisma.PrismaPromise<GetServiceAggregateType<T>>

  /**
   * Group by Service.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {serviceGroupByArgs} 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 serviceGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: serviceGroupByArgs['orderBy'] }
      : { orderBy?: serviceGroupByArgs['orderBy'] },
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    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<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? 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<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? 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<T, serviceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetServiceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the service model
 */
readonly fields: serviceFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for service.
 * 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__serviceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * 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<T>
}




/**
 * Fields of the service model
 */
export interface serviceFieldRefs {
  readonly id: Prisma.FieldRef<"service", 'BigInt'>
  readonly date_orig: Prisma.FieldRef<"service", 'BigInt'>
  readonly date_suspended: Prisma.FieldRef<"service", 'BigInt'>
  readonly date_next_invoice: Prisma.FieldRef<"service", 'BigInt'>
  readonly date_last_invoice: Prisma.FieldRef<"service", 'BigInt'>
  readonly delivery_id: Prisma.FieldRef<"service", 'Int'>
  readonly device_id: Prisma.FieldRef<"service", 'Int'>
  readonly product_id: Prisma.FieldRef<"service", 'Int'>
  readonly comment: Prisma.FieldRef<"service", 'String'>
  readonly payment_recurrence: Prisma.FieldRef<"service", 'Int'>
  readonly status: Prisma.FieldRef<"service", 'Int'>
  readonly hijack: Prisma.FieldRef<"service", 'Int'>
  readonly hijack_price: Prisma.FieldRef<"service", 'Float'>
  readonly hijack_desc: Prisma.FieldRef<"service", 'String'>
  readonly hijack_download_speed: Prisma.FieldRef<"service", 'BigInt'>
  readonly hijack_upload_speed: Prisma.FieldRef<"service", 'BigInt'>
  readonly hijack_quota_day: Prisma.FieldRef<"service", 'BigInt'>
  readonly hijack_quota_night: Prisma.FieldRef<"service", 'BigInt'>
  readonly date_end_contract: Prisma.FieldRef<"service", 'BigInt'>
  readonly actif_until: Prisma.FieldRef<"service", 'BigInt'>
  readonly forfait_internet: Prisma.FieldRef<"service", 'Int'>
  readonly radius_user: Prisma.FieldRef<"service", 'String'>
  readonly radius_pwd: Prisma.FieldRef<"service", 'String'>
  readonly radius_conso: Prisma.FieldRef<"service", 'Boolean'>
}
    

// Custom InputTypes
/**
 * service findUnique
 */
export type serviceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
  /**
   * Filter, which service to fetch.
   */
  where: Prisma.serviceWhereUniqueInput
}

/**
 * service findUniqueOrThrow
 */
export type serviceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
  /**
   * Filter, which service to fetch.
   */
  where: Prisma.serviceWhereUniqueInput
}

/**
 * service findFirst
 */
export type serviceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
  /**
   * Filter, which service to fetch.
   */
  where?: Prisma.serviceWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of services to fetch.
   */
  orderBy?: Prisma.serviceOrderByWithRelationInput | Prisma.serviceOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for services.
   */
  cursor?: Prisma.serviceWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` services 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` services.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of services.
   */
  distinct?: Prisma.ServiceScalarFieldEnum | Prisma.ServiceScalarFieldEnum[]
}

/**
 * service findFirstOrThrow
 */
export type serviceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
  /**
   * Filter, which service to fetch.
   */
  where?: Prisma.serviceWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of services to fetch.
   */
  orderBy?: Prisma.serviceOrderByWithRelationInput | Prisma.serviceOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for services.
   */
  cursor?: Prisma.serviceWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` services 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` services.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of services.
   */
  distinct?: Prisma.ServiceScalarFieldEnum | Prisma.ServiceScalarFieldEnum[]
}

/**
 * service findMany
 */
export type serviceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
  /**
   * Filter, which services to fetch.
   */
  where?: Prisma.serviceWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of services to fetch.
   */
  orderBy?: Prisma.serviceOrderByWithRelationInput | Prisma.serviceOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing services.
   */
  cursor?: Prisma.serviceWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` services 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` services.
   */
  skip?: number
  distinct?: Prisma.ServiceScalarFieldEnum | Prisma.ServiceScalarFieldEnum[]
}

/**
 * service create
 */
export type serviceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
  /**
   * The data needed to create a service.
   */
  data: Prisma.XOR<Prisma.serviceCreateInput, Prisma.serviceUncheckedCreateInput>
}

/**
 * service createMany
 */
export type serviceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many services.
   */
  data: Prisma.serviceCreateManyInput | Prisma.serviceCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * service update
 */
export type serviceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
  /**
   * The data needed to update a service.
   */
  data: Prisma.XOR<Prisma.serviceUpdateInput, Prisma.serviceUncheckedUpdateInput>
  /**
   * Choose, which service to update.
   */
  where: Prisma.serviceWhereUniqueInput
}

/**
 * service updateMany
 */
export type serviceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update services.
   */
  data: Prisma.XOR<Prisma.serviceUpdateManyMutationInput, Prisma.serviceUncheckedUpdateManyInput>
  /**
   * Filter which services to update
   */
  where?: Prisma.serviceWhereInput
  /**
   * Limit how many services to update.
   */
  limit?: number
}

/**
 * service upsert
 */
export type serviceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
  /**
   * The filter to search for the service to update in case it exists.
   */
  where: Prisma.serviceWhereUniqueInput
  /**
   * In case the service found by the `where` argument doesn't exist, create a new service with this data.
   */
  create: Prisma.XOR<Prisma.serviceCreateInput, Prisma.serviceUncheckedCreateInput>
  /**
   * In case the service was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.serviceUpdateInput, Prisma.serviceUncheckedUpdateInput>
}

/**
 * service delete
 */
export type serviceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
  /**
   * Filter which service to delete.
   */
  where: Prisma.serviceWhereUniqueInput
}

/**
 * service deleteMany
 */
export type serviceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which services to delete
   */
  where?: Prisma.serviceWhereInput
  /**
   * Limit how many services to delete.
   */
  limit?: number
}

/**
 * service without action
 */
export type serviceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the service
   */
  select?: Prisma.serviceSelect<ExtArgs> | null
  /**
   * Omit specific fields from the service
   */
  omit?: Prisma.serviceOmit<ExtArgs> | null
}
