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

export type AggregateLocationPoint = {
  _count: LocationPointCountAggregateOutputType | null
  _avg: LocationPointAvgAggregateOutputType | null
  _sum: LocationPointSumAggregateOutputType | null
  _min: LocationPointMinAggregateOutputType | null
  _max: LocationPointMaxAggregateOutputType | null
}

export type LocationPointAvgAggregateOutputType = {
  lat: number | null
  lng: number | null
  accuracy: number | null
  battery: number | null
}

export type LocationPointSumAggregateOutputType = {
  lat: number | null
  lng: number | null
  accuracy: number | null
  battery: number | null
}

export type LocationPointMinAggregateOutputType = {
  id: string | null
  deviceId: string | null
  lat: number | null
  lng: number | null
  accuracy: number | null
  battery: number | null
  recordedAt: Date | null
  createdAt: Date | null
}

export type LocationPointMaxAggregateOutputType = {
  id: string | null
  deviceId: string | null
  lat: number | null
  lng: number | null
  accuracy: number | null
  battery: number | null
  recordedAt: Date | null
  createdAt: Date | null
}

export type LocationPointCountAggregateOutputType = {
  id: number
  deviceId: number
  lat: number
  lng: number
  accuracy: number
  battery: number
  recordedAt: number
  createdAt: number
  _all: number
}


export type LocationPointAvgAggregateInputType = {
  lat?: true
  lng?: true
  accuracy?: true
  battery?: true
}

export type LocationPointSumAggregateInputType = {
  lat?: true
  lng?: true
  accuracy?: true
  battery?: true
}

export type LocationPointMinAggregateInputType = {
  id?: true
  deviceId?: true
  lat?: true
  lng?: true
  accuracy?: true
  battery?: true
  recordedAt?: true
  createdAt?: true
}

export type LocationPointMaxAggregateInputType = {
  id?: true
  deviceId?: true
  lat?: true
  lng?: true
  accuracy?: true
  battery?: true
  recordedAt?: true
  createdAt?: true
}

export type LocationPointCountAggregateInputType = {
  id?: true
  deviceId?: true
  lat?: true
  lng?: true
  accuracy?: true
  battery?: true
  recordedAt?: true
  createdAt?: true
  _all?: true
}

export type LocationPointAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which LocationPoint to aggregate.
   */
  where?: Prisma.LocationPointWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of LocationPoints to fetch.
   */
  orderBy?: Prisma.LocationPointOrderByWithRelationInput | Prisma.LocationPointOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.LocationPointWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` LocationPoints 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` LocationPoints.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned LocationPoints
  **/
  _count?: true | LocationPointCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: LocationPointAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: LocationPointSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: LocationPointMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: LocationPointMaxAggregateInputType
}

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




export type LocationPointGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.LocationPointWhereInput
  orderBy?: Prisma.LocationPointOrderByWithAggregationInput | Prisma.LocationPointOrderByWithAggregationInput[]
  by: Prisma.LocationPointScalarFieldEnum[] | Prisma.LocationPointScalarFieldEnum
  having?: Prisma.LocationPointScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: LocationPointCountAggregateInputType | true
  _avg?: LocationPointAvgAggregateInputType
  _sum?: LocationPointSumAggregateInputType
  _min?: LocationPointMinAggregateInputType
  _max?: LocationPointMaxAggregateInputType
}

export type LocationPointGroupByOutputType = {
  id: string
  deviceId: string
  lat: number
  lng: number
  accuracy: number | null
  battery: number | null
  recordedAt: Date
  createdAt: Date
  _count: LocationPointCountAggregateOutputType | null
  _avg: LocationPointAvgAggregateOutputType | null
  _sum: LocationPointSumAggregateOutputType | null
  _min: LocationPointMinAggregateOutputType | null
  _max: LocationPointMaxAggregateOutputType | null
}

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



export type LocationPointWhereInput = {
  AND?: Prisma.LocationPointWhereInput | Prisma.LocationPointWhereInput[]
  OR?: Prisma.LocationPointWhereInput[]
  NOT?: Prisma.LocationPointWhereInput | Prisma.LocationPointWhereInput[]
  id?: Prisma.StringFilter<"LocationPoint"> | string
  deviceId?: Prisma.StringFilter<"LocationPoint"> | string
  lat?: Prisma.FloatFilter<"LocationPoint"> | number
  lng?: Prisma.FloatFilter<"LocationPoint"> | number
  accuracy?: Prisma.FloatNullableFilter<"LocationPoint"> | number | null
  battery?: Prisma.IntNullableFilter<"LocationPoint"> | number | null
  recordedAt?: Prisma.DateTimeFilter<"LocationPoint"> | Date | string
  createdAt?: Prisma.DateTimeFilter<"LocationPoint"> | Date | string
  device?: Prisma.XOR<Prisma.DeviceScalarRelationFilter, Prisma.DeviceWhereInput>
}

export type LocationPointOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  deviceId?: Prisma.SortOrder
  lat?: Prisma.SortOrder
  lng?: Prisma.SortOrder
  accuracy?: Prisma.SortOrderInput | Prisma.SortOrder
  battery?: Prisma.SortOrderInput | Prisma.SortOrder
  recordedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  device?: Prisma.DeviceOrderByWithRelationInput
}

export type LocationPointWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.LocationPointWhereInput | Prisma.LocationPointWhereInput[]
  OR?: Prisma.LocationPointWhereInput[]
  NOT?: Prisma.LocationPointWhereInput | Prisma.LocationPointWhereInput[]
  deviceId?: Prisma.StringFilter<"LocationPoint"> | string
  lat?: Prisma.FloatFilter<"LocationPoint"> | number
  lng?: Prisma.FloatFilter<"LocationPoint"> | number
  accuracy?: Prisma.FloatNullableFilter<"LocationPoint"> | number | null
  battery?: Prisma.IntNullableFilter<"LocationPoint"> | number | null
  recordedAt?: Prisma.DateTimeFilter<"LocationPoint"> | Date | string
  createdAt?: Prisma.DateTimeFilter<"LocationPoint"> | Date | string
  device?: Prisma.XOR<Prisma.DeviceScalarRelationFilter, Prisma.DeviceWhereInput>
}, "id">

export type LocationPointOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  deviceId?: Prisma.SortOrder
  lat?: Prisma.SortOrder
  lng?: Prisma.SortOrder
  accuracy?: Prisma.SortOrderInput | Prisma.SortOrder
  battery?: Prisma.SortOrderInput | Prisma.SortOrder
  recordedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.LocationPointCountOrderByAggregateInput
  _avg?: Prisma.LocationPointAvgOrderByAggregateInput
  _max?: Prisma.LocationPointMaxOrderByAggregateInput
  _min?: Prisma.LocationPointMinOrderByAggregateInput
  _sum?: Prisma.LocationPointSumOrderByAggregateInput
}

export type LocationPointScalarWhereWithAggregatesInput = {
  AND?: Prisma.LocationPointScalarWhereWithAggregatesInput | Prisma.LocationPointScalarWhereWithAggregatesInput[]
  OR?: Prisma.LocationPointScalarWhereWithAggregatesInput[]
  NOT?: Prisma.LocationPointScalarWhereWithAggregatesInput | Prisma.LocationPointScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"LocationPoint"> | string
  deviceId?: Prisma.StringWithAggregatesFilter<"LocationPoint"> | string
  lat?: Prisma.FloatWithAggregatesFilter<"LocationPoint"> | number
  lng?: Prisma.FloatWithAggregatesFilter<"LocationPoint"> | number
  accuracy?: Prisma.FloatNullableWithAggregatesFilter<"LocationPoint"> | number | null
  battery?: Prisma.IntNullableWithAggregatesFilter<"LocationPoint"> | number | null
  recordedAt?: Prisma.DateTimeWithAggregatesFilter<"LocationPoint"> | Date | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"LocationPoint"> | Date | string
}

export type LocationPointCreateInput = {
  id?: string
  lat: number
  lng: number
  accuracy?: number | null
  battery?: number | null
  recordedAt: Date | string
  createdAt?: Date | string
  device: Prisma.DeviceCreateNestedOneWithoutLocationsInput
}

export type LocationPointUncheckedCreateInput = {
  id?: string
  deviceId: string
  lat: number
  lng: number
  accuracy?: number | null
  battery?: number | null
  recordedAt: Date | string
  createdAt?: Date | string
}

export type LocationPointUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lat?: Prisma.FloatFieldUpdateOperationsInput | number
  lng?: Prisma.FloatFieldUpdateOperationsInput | number
  accuracy?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  device?: Prisma.DeviceUpdateOneRequiredWithoutLocationsNestedInput
}

export type LocationPointUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  deviceId?: Prisma.StringFieldUpdateOperationsInput | string
  lat?: Prisma.FloatFieldUpdateOperationsInput | number
  lng?: Prisma.FloatFieldUpdateOperationsInput | number
  accuracy?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type LocationPointCreateManyInput = {
  id?: string
  deviceId: string
  lat: number
  lng: number
  accuracy?: number | null
  battery?: number | null
  recordedAt: Date | string
  createdAt?: Date | string
}

export type LocationPointUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lat?: Prisma.FloatFieldUpdateOperationsInput | number
  lng?: Prisma.FloatFieldUpdateOperationsInput | number
  accuracy?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type LocationPointUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  deviceId?: Prisma.StringFieldUpdateOperationsInput | string
  lat?: Prisma.FloatFieldUpdateOperationsInput | number
  lng?: Prisma.FloatFieldUpdateOperationsInput | number
  accuracy?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type LocationPointListRelationFilter = {
  every?: Prisma.LocationPointWhereInput
  some?: Prisma.LocationPointWhereInput
  none?: Prisma.LocationPointWhereInput
}

export type LocationPointOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type LocationPointCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  deviceId?: Prisma.SortOrder
  lat?: Prisma.SortOrder
  lng?: Prisma.SortOrder
  accuracy?: Prisma.SortOrder
  battery?: Prisma.SortOrder
  recordedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type LocationPointAvgOrderByAggregateInput = {
  lat?: Prisma.SortOrder
  lng?: Prisma.SortOrder
  accuracy?: Prisma.SortOrder
  battery?: Prisma.SortOrder
}

export type LocationPointMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  deviceId?: Prisma.SortOrder
  lat?: Prisma.SortOrder
  lng?: Prisma.SortOrder
  accuracy?: Prisma.SortOrder
  battery?: Prisma.SortOrder
  recordedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type LocationPointMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  deviceId?: Prisma.SortOrder
  lat?: Prisma.SortOrder
  lng?: Prisma.SortOrder
  accuracy?: Prisma.SortOrder
  battery?: Prisma.SortOrder
  recordedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type LocationPointSumOrderByAggregateInput = {
  lat?: Prisma.SortOrder
  lng?: Prisma.SortOrder
  accuracy?: Prisma.SortOrder
  battery?: Prisma.SortOrder
}

export type LocationPointCreateNestedManyWithoutDeviceInput = {
  create?: Prisma.XOR<Prisma.LocationPointCreateWithoutDeviceInput, Prisma.LocationPointUncheckedCreateWithoutDeviceInput> | Prisma.LocationPointCreateWithoutDeviceInput[] | Prisma.LocationPointUncheckedCreateWithoutDeviceInput[]
  connectOrCreate?: Prisma.LocationPointCreateOrConnectWithoutDeviceInput | Prisma.LocationPointCreateOrConnectWithoutDeviceInput[]
  createMany?: Prisma.LocationPointCreateManyDeviceInputEnvelope
  connect?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
}

export type LocationPointUncheckedCreateNestedManyWithoutDeviceInput = {
  create?: Prisma.XOR<Prisma.LocationPointCreateWithoutDeviceInput, Prisma.LocationPointUncheckedCreateWithoutDeviceInput> | Prisma.LocationPointCreateWithoutDeviceInput[] | Prisma.LocationPointUncheckedCreateWithoutDeviceInput[]
  connectOrCreate?: Prisma.LocationPointCreateOrConnectWithoutDeviceInput | Prisma.LocationPointCreateOrConnectWithoutDeviceInput[]
  createMany?: Prisma.LocationPointCreateManyDeviceInputEnvelope
  connect?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
}

export type LocationPointUpdateManyWithoutDeviceNestedInput = {
  create?: Prisma.XOR<Prisma.LocationPointCreateWithoutDeviceInput, Prisma.LocationPointUncheckedCreateWithoutDeviceInput> | Prisma.LocationPointCreateWithoutDeviceInput[] | Prisma.LocationPointUncheckedCreateWithoutDeviceInput[]
  connectOrCreate?: Prisma.LocationPointCreateOrConnectWithoutDeviceInput | Prisma.LocationPointCreateOrConnectWithoutDeviceInput[]
  upsert?: Prisma.LocationPointUpsertWithWhereUniqueWithoutDeviceInput | Prisma.LocationPointUpsertWithWhereUniqueWithoutDeviceInput[]
  createMany?: Prisma.LocationPointCreateManyDeviceInputEnvelope
  set?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
  disconnect?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
  delete?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
  connect?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
  update?: Prisma.LocationPointUpdateWithWhereUniqueWithoutDeviceInput | Prisma.LocationPointUpdateWithWhereUniqueWithoutDeviceInput[]
  updateMany?: Prisma.LocationPointUpdateManyWithWhereWithoutDeviceInput | Prisma.LocationPointUpdateManyWithWhereWithoutDeviceInput[]
  deleteMany?: Prisma.LocationPointScalarWhereInput | Prisma.LocationPointScalarWhereInput[]
}

export type LocationPointUncheckedUpdateManyWithoutDeviceNestedInput = {
  create?: Prisma.XOR<Prisma.LocationPointCreateWithoutDeviceInput, Prisma.LocationPointUncheckedCreateWithoutDeviceInput> | Prisma.LocationPointCreateWithoutDeviceInput[] | Prisma.LocationPointUncheckedCreateWithoutDeviceInput[]
  connectOrCreate?: Prisma.LocationPointCreateOrConnectWithoutDeviceInput | Prisma.LocationPointCreateOrConnectWithoutDeviceInput[]
  upsert?: Prisma.LocationPointUpsertWithWhereUniqueWithoutDeviceInput | Prisma.LocationPointUpsertWithWhereUniqueWithoutDeviceInput[]
  createMany?: Prisma.LocationPointCreateManyDeviceInputEnvelope
  set?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
  disconnect?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
  delete?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
  connect?: Prisma.LocationPointWhereUniqueInput | Prisma.LocationPointWhereUniqueInput[]
  update?: Prisma.LocationPointUpdateWithWhereUniqueWithoutDeviceInput | Prisma.LocationPointUpdateWithWhereUniqueWithoutDeviceInput[]
  updateMany?: Prisma.LocationPointUpdateManyWithWhereWithoutDeviceInput | Prisma.LocationPointUpdateManyWithWhereWithoutDeviceInput[]
  deleteMany?: Prisma.LocationPointScalarWhereInput | Prisma.LocationPointScalarWhereInput[]
}

export type NullableFloatFieldUpdateOperationsInput = {
  set?: number | null
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type NullableIntFieldUpdateOperationsInput = {
  set?: number | null
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type LocationPointCreateWithoutDeviceInput = {
  id?: string
  lat: number
  lng: number
  accuracy?: number | null
  battery?: number | null
  recordedAt: Date | string
  createdAt?: Date | string
}

export type LocationPointUncheckedCreateWithoutDeviceInput = {
  id?: string
  lat: number
  lng: number
  accuracy?: number | null
  battery?: number | null
  recordedAt: Date | string
  createdAt?: Date | string
}

export type LocationPointCreateOrConnectWithoutDeviceInput = {
  where: Prisma.LocationPointWhereUniqueInput
  create: Prisma.XOR<Prisma.LocationPointCreateWithoutDeviceInput, Prisma.LocationPointUncheckedCreateWithoutDeviceInput>
}

export type LocationPointCreateManyDeviceInputEnvelope = {
  data: Prisma.LocationPointCreateManyDeviceInput | Prisma.LocationPointCreateManyDeviceInput[]
  skipDuplicates?: boolean
}

export type LocationPointUpsertWithWhereUniqueWithoutDeviceInput = {
  where: Prisma.LocationPointWhereUniqueInput
  update: Prisma.XOR<Prisma.LocationPointUpdateWithoutDeviceInput, Prisma.LocationPointUncheckedUpdateWithoutDeviceInput>
  create: Prisma.XOR<Prisma.LocationPointCreateWithoutDeviceInput, Prisma.LocationPointUncheckedCreateWithoutDeviceInput>
}

export type LocationPointUpdateWithWhereUniqueWithoutDeviceInput = {
  where: Prisma.LocationPointWhereUniqueInput
  data: Prisma.XOR<Prisma.LocationPointUpdateWithoutDeviceInput, Prisma.LocationPointUncheckedUpdateWithoutDeviceInput>
}

export type LocationPointUpdateManyWithWhereWithoutDeviceInput = {
  where: Prisma.LocationPointScalarWhereInput
  data: Prisma.XOR<Prisma.LocationPointUpdateManyMutationInput, Prisma.LocationPointUncheckedUpdateManyWithoutDeviceInput>
}

export type LocationPointScalarWhereInput = {
  AND?: Prisma.LocationPointScalarWhereInput | Prisma.LocationPointScalarWhereInput[]
  OR?: Prisma.LocationPointScalarWhereInput[]
  NOT?: Prisma.LocationPointScalarWhereInput | Prisma.LocationPointScalarWhereInput[]
  id?: Prisma.StringFilter<"LocationPoint"> | string
  deviceId?: Prisma.StringFilter<"LocationPoint"> | string
  lat?: Prisma.FloatFilter<"LocationPoint"> | number
  lng?: Prisma.FloatFilter<"LocationPoint"> | number
  accuracy?: Prisma.FloatNullableFilter<"LocationPoint"> | number | null
  battery?: Prisma.IntNullableFilter<"LocationPoint"> | number | null
  recordedAt?: Prisma.DateTimeFilter<"LocationPoint"> | Date | string
  createdAt?: Prisma.DateTimeFilter<"LocationPoint"> | Date | string
}

export type LocationPointCreateManyDeviceInput = {
  id?: string
  lat: number
  lng: number
  accuracy?: number | null
  battery?: number | null
  recordedAt: Date | string
  createdAt?: Date | string
}

export type LocationPointUpdateWithoutDeviceInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lat?: Prisma.FloatFieldUpdateOperationsInput | number
  lng?: Prisma.FloatFieldUpdateOperationsInput | number
  accuracy?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type LocationPointUncheckedUpdateWithoutDeviceInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lat?: Prisma.FloatFieldUpdateOperationsInput | number
  lng?: Prisma.FloatFieldUpdateOperationsInput | number
  accuracy?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type LocationPointUncheckedUpdateManyWithoutDeviceInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lat?: Prisma.FloatFieldUpdateOperationsInput | number
  lng?: Prisma.FloatFieldUpdateOperationsInput | number
  accuracy?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type LocationPointSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  deviceId?: boolean
  lat?: boolean
  lng?: boolean
  accuracy?: boolean
  battery?: boolean
  recordedAt?: boolean
  createdAt?: boolean
  device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["locationPoint"]>

export type LocationPointSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  deviceId?: boolean
  lat?: boolean
  lng?: boolean
  accuracy?: boolean
  battery?: boolean
  recordedAt?: boolean
  createdAt?: boolean
  device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["locationPoint"]>

export type LocationPointSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  deviceId?: boolean
  lat?: boolean
  lng?: boolean
  accuracy?: boolean
  battery?: boolean
  recordedAt?: boolean
  createdAt?: boolean
  device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["locationPoint"]>

export type LocationPointSelectScalar = {
  id?: boolean
  deviceId?: boolean
  lat?: boolean
  lng?: boolean
  accuracy?: boolean
  battery?: boolean
  recordedAt?: boolean
  createdAt?: boolean
}

export type LocationPointOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "deviceId" | "lat" | "lng" | "accuracy" | "battery" | "recordedAt" | "createdAt", ExtArgs["result"]["locationPoint"]>
export type LocationPointInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
}
export type LocationPointIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
}
export type LocationPointIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
}

export type $LocationPointPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "LocationPoint"
  objects: {
    device: Prisma.$DevicePayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    deviceId: string
    lat: number
    lng: number
    accuracy: number | null
    battery: number | null
    recordedAt: Date
    createdAt: Date
  }, ExtArgs["result"]["locationPoint"]>
  composites: {}
}

export type LocationPointGetPayload<S extends boolean | null | undefined | LocationPointDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LocationPointPayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many LocationPoints and returns the data saved in the database.
   * @param {LocationPointCreateManyAndReturnArgs} args - Arguments to create many LocationPoints.
   * @example
   * // Create many LocationPoints
   * const locationPoint = await prisma.locationPoint.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many LocationPoints and only return the `id`
   * const locationPointWithIdOnly = await prisma.locationPoint.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends LocationPointCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LocationPointCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LocationPointPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more LocationPoints and returns the data updated in the database.
   * @param {LocationPointUpdateManyAndReturnArgs} args - Arguments to update many LocationPoints.
   * @example
   * // Update many LocationPoints
   * const locationPoint = await prisma.locationPoint.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more LocationPoints and only return the `id`
   * const locationPointWithIdOnly = await prisma.locationPoint.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends LocationPointUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LocationPointUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LocationPointPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

  /**
   * Group by LocationPoint.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {LocationPointGroupByArgs} 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 LocationPointGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: LocationPointGroupByArgs['orderBy'] }
      : { orderBy?: LocationPointGroupByArgs['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, LocationPointGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLocationPointGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the LocationPoint model
 */
readonly fields: LocationPointFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for LocationPoint.
 * 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__LocationPointClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  device<T extends Prisma.DeviceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DeviceDefaultArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  /**
   * 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 LocationPoint model
 */
export interface LocationPointFieldRefs {
  readonly id: Prisma.FieldRef<"LocationPoint", 'String'>
  readonly deviceId: Prisma.FieldRef<"LocationPoint", 'String'>
  readonly lat: Prisma.FieldRef<"LocationPoint", 'Float'>
  readonly lng: Prisma.FieldRef<"LocationPoint", 'Float'>
  readonly accuracy: Prisma.FieldRef<"LocationPoint", 'Float'>
  readonly battery: Prisma.FieldRef<"LocationPoint", 'Int'>
  readonly recordedAt: Prisma.FieldRef<"LocationPoint", 'DateTime'>
  readonly createdAt: Prisma.FieldRef<"LocationPoint", 'DateTime'>
}
    

// Custom InputTypes
/**
 * LocationPoint findUnique
 */
export type LocationPointFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
  /**
   * Filter, which LocationPoint to fetch.
   */
  where: Prisma.LocationPointWhereUniqueInput
}

/**
 * LocationPoint findUniqueOrThrow
 */
export type LocationPointFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
  /**
   * Filter, which LocationPoint to fetch.
   */
  where: Prisma.LocationPointWhereUniqueInput
}

/**
 * LocationPoint findFirst
 */
export type LocationPointFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
  /**
   * Filter, which LocationPoint to fetch.
   */
  where?: Prisma.LocationPointWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of LocationPoints to fetch.
   */
  orderBy?: Prisma.LocationPointOrderByWithRelationInput | Prisma.LocationPointOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for LocationPoints.
   */
  cursor?: Prisma.LocationPointWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` LocationPoints 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` LocationPoints.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of LocationPoints.
   */
  distinct?: Prisma.LocationPointScalarFieldEnum | Prisma.LocationPointScalarFieldEnum[]
}

/**
 * LocationPoint findFirstOrThrow
 */
export type LocationPointFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
  /**
   * Filter, which LocationPoint to fetch.
   */
  where?: Prisma.LocationPointWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of LocationPoints to fetch.
   */
  orderBy?: Prisma.LocationPointOrderByWithRelationInput | Prisma.LocationPointOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for LocationPoints.
   */
  cursor?: Prisma.LocationPointWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` LocationPoints 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` LocationPoints.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of LocationPoints.
   */
  distinct?: Prisma.LocationPointScalarFieldEnum | Prisma.LocationPointScalarFieldEnum[]
}

/**
 * LocationPoint findMany
 */
export type LocationPointFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
  /**
   * Filter, which LocationPoints to fetch.
   */
  where?: Prisma.LocationPointWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of LocationPoints to fetch.
   */
  orderBy?: Prisma.LocationPointOrderByWithRelationInput | Prisma.LocationPointOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing LocationPoints.
   */
  cursor?: Prisma.LocationPointWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` LocationPoints 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` LocationPoints.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of LocationPoints.
   */
  distinct?: Prisma.LocationPointScalarFieldEnum | Prisma.LocationPointScalarFieldEnum[]
}

/**
 * LocationPoint create
 */
export type LocationPointCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
  /**
   * The data needed to create a LocationPoint.
   */
  data: Prisma.XOR<Prisma.LocationPointCreateInput, Prisma.LocationPointUncheckedCreateInput>
}

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

/**
 * LocationPoint createManyAndReturn
 */
export type LocationPointCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * The data used to create many LocationPoints.
   */
  data: Prisma.LocationPointCreateManyInput | Prisma.LocationPointCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * LocationPoint update
 */
export type LocationPointUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
  /**
   * The data needed to update a LocationPoint.
   */
  data: Prisma.XOR<Prisma.LocationPointUpdateInput, Prisma.LocationPointUncheckedUpdateInput>
  /**
   * Choose, which LocationPoint to update.
   */
  where: Prisma.LocationPointWhereUniqueInput
}

/**
 * LocationPoint updateMany
 */
export type LocationPointUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update LocationPoints.
   */
  data: Prisma.XOR<Prisma.LocationPointUpdateManyMutationInput, Prisma.LocationPointUncheckedUpdateManyInput>
  /**
   * Filter which LocationPoints to update
   */
  where?: Prisma.LocationPointWhereInput
  /**
   * Limit how many LocationPoints to update.
   */
  limit?: number
}

/**
 * LocationPoint updateManyAndReturn
 */
export type LocationPointUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * The data used to update LocationPoints.
   */
  data: Prisma.XOR<Prisma.LocationPointUpdateManyMutationInput, Prisma.LocationPointUncheckedUpdateManyInput>
  /**
   * Filter which LocationPoints to update
   */
  where?: Prisma.LocationPointWhereInput
  /**
   * Limit how many LocationPoints to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * LocationPoint upsert
 */
export type LocationPointUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
  /**
   * The filter to search for the LocationPoint to update in case it exists.
   */
  where: Prisma.LocationPointWhereUniqueInput
  /**
   * In case the LocationPoint found by the `where` argument doesn't exist, create a new LocationPoint with this data.
   */
  create: Prisma.XOR<Prisma.LocationPointCreateInput, Prisma.LocationPointUncheckedCreateInput>
  /**
   * In case the LocationPoint was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.LocationPointUpdateInput, Prisma.LocationPointUncheckedUpdateInput>
}

/**
 * LocationPoint delete
 */
export type LocationPointDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
  /**
   * Filter which LocationPoint to delete.
   */
  where: Prisma.LocationPointWhereUniqueInput
}

/**
 * LocationPoint deleteMany
 */
export type LocationPointDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which LocationPoints to delete
   */
  where?: Prisma.LocationPointWhereInput
  /**
   * Limit how many LocationPoints to delete.
   */
  limit?: number
}

/**
 * LocationPoint without action
 */
export type LocationPointDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LocationPoint
   */
  select?: Prisma.LocationPointSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LocationPoint
   */
  omit?: Prisma.LocationPointOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LocationPointInclude<ExtArgs> | null
}
