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

export type AggregatePixel = {
  _count: PixelCountAggregateOutputType | null
  _min: PixelMinAggregateOutputType | null
  _max: PixelMaxAggregateOutputType | null
}

export type PixelMinAggregateOutputType = {
  id: string | null
  name: string | null
  slug: string | null
  userId: string | null
  teamId: string | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
}

export type PixelMaxAggregateOutputType = {
  id: string | null
  name: string | null
  slug: string | null
  userId: string | null
  teamId: string | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
}

export type PixelCountAggregateOutputType = {
  id: number
  name: number
  slug: number
  userId: number
  teamId: number
  createdAt: number
  updatedAt: number
  deletedAt: number
  _all: number
}


export type PixelMinAggregateInputType = {
  id?: true
  name?: true
  slug?: true
  userId?: true
  teamId?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
}

export type PixelMaxAggregateInputType = {
  id?: true
  name?: true
  slug?: true
  userId?: true
  teamId?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
}

export type PixelCountAggregateInputType = {
  id?: true
  name?: true
  slug?: true
  userId?: true
  teamId?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
  _all?: true
}

export type PixelAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Pixel to aggregate.
   */
  where?: Prisma.PixelWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Pixels to fetch.
   */
  orderBy?: Prisma.PixelOrderByWithRelationInput | Prisma.PixelOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.PixelWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Pixels 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` Pixels.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned Pixels
  **/
  _count?: true | PixelCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: PixelMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: PixelMaxAggregateInputType
}

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




export type PixelGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.PixelWhereInput
  orderBy?: Prisma.PixelOrderByWithAggregationInput | Prisma.PixelOrderByWithAggregationInput[]
  by: Prisma.PixelScalarFieldEnum[] | Prisma.PixelScalarFieldEnum
  having?: Prisma.PixelScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: PixelCountAggregateInputType | true
  _min?: PixelMinAggregateInputType
  _max?: PixelMaxAggregateInputType
}

export type PixelGroupByOutputType = {
  id: string
  name: string
  slug: string
  userId: string | null
  teamId: string | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
  _count: PixelCountAggregateOutputType | null
  _min: PixelMinAggregateOutputType | null
  _max: PixelMaxAggregateOutputType | null
}

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



export type PixelWhereInput = {
  AND?: Prisma.PixelWhereInput | Prisma.PixelWhereInput[]
  OR?: Prisma.PixelWhereInput[]
  NOT?: Prisma.PixelWhereInput | Prisma.PixelWhereInput[]
  id?: Prisma.UuidFilter<"Pixel"> | string
  name?: Prisma.StringFilter<"Pixel"> | string
  slug?: Prisma.StringFilter<"Pixel"> | string
  userId?: Prisma.UuidNullableFilter<"Pixel"> | string | null
  teamId?: Prisma.UuidNullableFilter<"Pixel"> | string | null
  createdAt?: Prisma.DateTimeNullableFilter<"Pixel"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableFilter<"Pixel"> | Date | string | null
  deletedAt?: Prisma.DateTimeNullableFilter<"Pixel"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  team?: Prisma.XOR<Prisma.TeamNullableScalarRelationFilter, Prisma.TeamWhereInput> | null
}

export type PixelOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  teamId?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  user?: Prisma.UserOrderByWithRelationInput
  team?: Prisma.TeamOrderByWithRelationInput
}

export type PixelWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  slug?: string
  AND?: Prisma.PixelWhereInput | Prisma.PixelWhereInput[]
  OR?: Prisma.PixelWhereInput[]
  NOT?: Prisma.PixelWhereInput | Prisma.PixelWhereInput[]
  name?: Prisma.StringFilter<"Pixel"> | string
  userId?: Prisma.UuidNullableFilter<"Pixel"> | string | null
  teamId?: Prisma.UuidNullableFilter<"Pixel"> | string | null
  createdAt?: Prisma.DateTimeNullableFilter<"Pixel"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableFilter<"Pixel"> | Date | string | null
  deletedAt?: Prisma.DateTimeNullableFilter<"Pixel"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  team?: Prisma.XOR<Prisma.TeamNullableScalarRelationFilter, Prisma.TeamWhereInput> | null
}, "id" | "slug">

export type PixelOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  teamId?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.PixelCountOrderByAggregateInput
  _max?: Prisma.PixelMaxOrderByAggregateInput
  _min?: Prisma.PixelMinOrderByAggregateInput
}

export type PixelScalarWhereWithAggregatesInput = {
  AND?: Prisma.PixelScalarWhereWithAggregatesInput | Prisma.PixelScalarWhereWithAggregatesInput[]
  OR?: Prisma.PixelScalarWhereWithAggregatesInput[]
  NOT?: Prisma.PixelScalarWhereWithAggregatesInput | Prisma.PixelScalarWhereWithAggregatesInput[]
  id?: Prisma.UuidWithAggregatesFilter<"Pixel"> | string
  name?: Prisma.StringWithAggregatesFilter<"Pixel"> | string
  slug?: Prisma.StringWithAggregatesFilter<"Pixel"> | string
  userId?: Prisma.UuidNullableWithAggregatesFilter<"Pixel"> | string | null
  teamId?: Prisma.UuidNullableWithAggregatesFilter<"Pixel"> | string | null
  createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Pixel"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Pixel"> | Date | string | null
  deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Pixel"> | Date | string | null
}

export type PixelCreateInput = {
  id: string
  name: string
  slug: string
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  deletedAt?: Date | string | null
  user?: Prisma.UserCreateNestedOneWithoutPixelsInput
  team?: Prisma.TeamCreateNestedOneWithoutPixelsInput
}

export type PixelUncheckedCreateInput = {
  id: string
  name: string
  slug: string
  userId?: string | null
  teamId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  deletedAt?: Date | string | null
}

export type PixelUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  user?: Prisma.UserUpdateOneWithoutPixelsNestedInput
  team?: Prisma.TeamUpdateOneWithoutPixelsNestedInput
}

export type PixelUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type PixelCreateManyInput = {
  id: string
  name: string
  slug: string
  userId?: string | null
  teamId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  deletedAt?: Date | string | null
}

export type PixelUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type PixelUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type PixelListRelationFilter = {
  every?: Prisma.PixelWhereInput
  some?: Prisma.PixelWhereInput
  none?: Prisma.PixelWhereInput
}

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

export type PixelCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type PixelMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type PixelMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type PixelCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.PixelCreateWithoutUserInput, Prisma.PixelUncheckedCreateWithoutUserInput> | Prisma.PixelCreateWithoutUserInput[] | Prisma.PixelUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.PixelCreateOrConnectWithoutUserInput | Prisma.PixelCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.PixelCreateManyUserInputEnvelope
  connect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
}

export type PixelUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.PixelCreateWithoutUserInput, Prisma.PixelUncheckedCreateWithoutUserInput> | Prisma.PixelCreateWithoutUserInput[] | Prisma.PixelUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.PixelCreateOrConnectWithoutUserInput | Prisma.PixelCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.PixelCreateManyUserInputEnvelope
  connect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
}

export type PixelUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.PixelCreateWithoutUserInput, Prisma.PixelUncheckedCreateWithoutUserInput> | Prisma.PixelCreateWithoutUserInput[] | Prisma.PixelUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.PixelCreateOrConnectWithoutUserInput | Prisma.PixelCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.PixelUpsertWithWhereUniqueWithoutUserInput | Prisma.PixelUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.PixelCreateManyUserInputEnvelope
  set?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  disconnect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  delete?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  connect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  update?: Prisma.PixelUpdateWithWhereUniqueWithoutUserInput | Prisma.PixelUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.PixelUpdateManyWithWhereWithoutUserInput | Prisma.PixelUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.PixelScalarWhereInput | Prisma.PixelScalarWhereInput[]
}

export type PixelUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.PixelCreateWithoutUserInput, Prisma.PixelUncheckedCreateWithoutUserInput> | Prisma.PixelCreateWithoutUserInput[] | Prisma.PixelUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.PixelCreateOrConnectWithoutUserInput | Prisma.PixelCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.PixelUpsertWithWhereUniqueWithoutUserInput | Prisma.PixelUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.PixelCreateManyUserInputEnvelope
  set?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  disconnect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  delete?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  connect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  update?: Prisma.PixelUpdateWithWhereUniqueWithoutUserInput | Prisma.PixelUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.PixelUpdateManyWithWhereWithoutUserInput | Prisma.PixelUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.PixelScalarWhereInput | Prisma.PixelScalarWhereInput[]
}

export type PixelCreateNestedManyWithoutTeamInput = {
  create?: Prisma.XOR<Prisma.PixelCreateWithoutTeamInput, Prisma.PixelUncheckedCreateWithoutTeamInput> | Prisma.PixelCreateWithoutTeamInput[] | Prisma.PixelUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.PixelCreateOrConnectWithoutTeamInput | Prisma.PixelCreateOrConnectWithoutTeamInput[]
  createMany?: Prisma.PixelCreateManyTeamInputEnvelope
  connect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
}

export type PixelUncheckedCreateNestedManyWithoutTeamInput = {
  create?: Prisma.XOR<Prisma.PixelCreateWithoutTeamInput, Prisma.PixelUncheckedCreateWithoutTeamInput> | Prisma.PixelCreateWithoutTeamInput[] | Prisma.PixelUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.PixelCreateOrConnectWithoutTeamInput | Prisma.PixelCreateOrConnectWithoutTeamInput[]
  createMany?: Prisma.PixelCreateManyTeamInputEnvelope
  connect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
}

export type PixelUpdateManyWithoutTeamNestedInput = {
  create?: Prisma.XOR<Prisma.PixelCreateWithoutTeamInput, Prisma.PixelUncheckedCreateWithoutTeamInput> | Prisma.PixelCreateWithoutTeamInput[] | Prisma.PixelUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.PixelCreateOrConnectWithoutTeamInput | Prisma.PixelCreateOrConnectWithoutTeamInput[]
  upsert?: Prisma.PixelUpsertWithWhereUniqueWithoutTeamInput | Prisma.PixelUpsertWithWhereUniqueWithoutTeamInput[]
  createMany?: Prisma.PixelCreateManyTeamInputEnvelope
  set?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  disconnect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  delete?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  connect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  update?: Prisma.PixelUpdateWithWhereUniqueWithoutTeamInput | Prisma.PixelUpdateWithWhereUniqueWithoutTeamInput[]
  updateMany?: Prisma.PixelUpdateManyWithWhereWithoutTeamInput | Prisma.PixelUpdateManyWithWhereWithoutTeamInput[]
  deleteMany?: Prisma.PixelScalarWhereInput | Prisma.PixelScalarWhereInput[]
}

export type PixelUncheckedUpdateManyWithoutTeamNestedInput = {
  create?: Prisma.XOR<Prisma.PixelCreateWithoutTeamInput, Prisma.PixelUncheckedCreateWithoutTeamInput> | Prisma.PixelCreateWithoutTeamInput[] | Prisma.PixelUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.PixelCreateOrConnectWithoutTeamInput | Prisma.PixelCreateOrConnectWithoutTeamInput[]
  upsert?: Prisma.PixelUpsertWithWhereUniqueWithoutTeamInput | Prisma.PixelUpsertWithWhereUniqueWithoutTeamInput[]
  createMany?: Prisma.PixelCreateManyTeamInputEnvelope
  set?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  disconnect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  delete?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  connect?: Prisma.PixelWhereUniqueInput | Prisma.PixelWhereUniqueInput[]
  update?: Prisma.PixelUpdateWithWhereUniqueWithoutTeamInput | Prisma.PixelUpdateWithWhereUniqueWithoutTeamInput[]
  updateMany?: Prisma.PixelUpdateManyWithWhereWithoutTeamInput | Prisma.PixelUpdateManyWithWhereWithoutTeamInput[]
  deleteMany?: Prisma.PixelScalarWhereInput | Prisma.PixelScalarWhereInput[]
}

export type PixelCreateWithoutUserInput = {
  id: string
  name: string
  slug: string
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  deletedAt?: Date | string | null
  team?: Prisma.TeamCreateNestedOneWithoutPixelsInput
}

export type PixelUncheckedCreateWithoutUserInput = {
  id: string
  name: string
  slug: string
  teamId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  deletedAt?: Date | string | null
}

export type PixelCreateOrConnectWithoutUserInput = {
  where: Prisma.PixelWhereUniqueInput
  create: Prisma.XOR<Prisma.PixelCreateWithoutUserInput, Prisma.PixelUncheckedCreateWithoutUserInput>
}

export type PixelCreateManyUserInputEnvelope = {
  data: Prisma.PixelCreateManyUserInput | Prisma.PixelCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type PixelUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.PixelWhereUniqueInput
  update: Prisma.XOR<Prisma.PixelUpdateWithoutUserInput, Prisma.PixelUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.PixelCreateWithoutUserInput, Prisma.PixelUncheckedCreateWithoutUserInput>
}

export type PixelUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.PixelWhereUniqueInput
  data: Prisma.XOR<Prisma.PixelUpdateWithoutUserInput, Prisma.PixelUncheckedUpdateWithoutUserInput>
}

export type PixelUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.PixelScalarWhereInput
  data: Prisma.XOR<Prisma.PixelUpdateManyMutationInput, Prisma.PixelUncheckedUpdateManyWithoutUserInput>
}

export type PixelScalarWhereInput = {
  AND?: Prisma.PixelScalarWhereInput | Prisma.PixelScalarWhereInput[]
  OR?: Prisma.PixelScalarWhereInput[]
  NOT?: Prisma.PixelScalarWhereInput | Prisma.PixelScalarWhereInput[]
  id?: Prisma.UuidFilter<"Pixel"> | string
  name?: Prisma.StringFilter<"Pixel"> | string
  slug?: Prisma.StringFilter<"Pixel"> | string
  userId?: Prisma.UuidNullableFilter<"Pixel"> | string | null
  teamId?: Prisma.UuidNullableFilter<"Pixel"> | string | null
  createdAt?: Prisma.DateTimeNullableFilter<"Pixel"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableFilter<"Pixel"> | Date | string | null
  deletedAt?: Prisma.DateTimeNullableFilter<"Pixel"> | Date | string | null
}

export type PixelCreateWithoutTeamInput = {
  id: string
  name: string
  slug: string
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  deletedAt?: Date | string | null
  user?: Prisma.UserCreateNestedOneWithoutPixelsInput
}

export type PixelUncheckedCreateWithoutTeamInput = {
  id: string
  name: string
  slug: string
  userId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  deletedAt?: Date | string | null
}

export type PixelCreateOrConnectWithoutTeamInput = {
  where: Prisma.PixelWhereUniqueInput
  create: Prisma.XOR<Prisma.PixelCreateWithoutTeamInput, Prisma.PixelUncheckedCreateWithoutTeamInput>
}

export type PixelCreateManyTeamInputEnvelope = {
  data: Prisma.PixelCreateManyTeamInput | Prisma.PixelCreateManyTeamInput[]
  skipDuplicates?: boolean
}

export type PixelUpsertWithWhereUniqueWithoutTeamInput = {
  where: Prisma.PixelWhereUniqueInput
  update: Prisma.XOR<Prisma.PixelUpdateWithoutTeamInput, Prisma.PixelUncheckedUpdateWithoutTeamInput>
  create: Prisma.XOR<Prisma.PixelCreateWithoutTeamInput, Prisma.PixelUncheckedCreateWithoutTeamInput>
}

export type PixelUpdateWithWhereUniqueWithoutTeamInput = {
  where: Prisma.PixelWhereUniqueInput
  data: Prisma.XOR<Prisma.PixelUpdateWithoutTeamInput, Prisma.PixelUncheckedUpdateWithoutTeamInput>
}

export type PixelUpdateManyWithWhereWithoutTeamInput = {
  where: Prisma.PixelScalarWhereInput
  data: Prisma.XOR<Prisma.PixelUpdateManyMutationInput, Prisma.PixelUncheckedUpdateManyWithoutTeamInput>
}

export type PixelCreateManyUserInput = {
  id: string
  name: string
  slug: string
  teamId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  deletedAt?: Date | string | null
}

export type PixelUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  team?: Prisma.TeamUpdateOneWithoutPixelsNestedInput
}

export type PixelUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type PixelUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type PixelCreateManyTeamInput = {
  id: string
  name: string
  slug: string
  userId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  deletedAt?: Date | string | null
}

export type PixelUpdateWithoutTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  user?: Prisma.UserUpdateOneWithoutPixelsNestedInput
}

export type PixelUncheckedUpdateWithoutTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type PixelUncheckedUpdateManyWithoutTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type PixelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  slug?: boolean
  userId?: boolean
  teamId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  user?: boolean | Prisma.Pixel$userArgs<ExtArgs>
  team?: boolean | Prisma.Pixel$teamArgs<ExtArgs>
}, ExtArgs["result"]["pixel"]>

export type PixelSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  slug?: boolean
  userId?: boolean
  teamId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  user?: boolean | Prisma.Pixel$userArgs<ExtArgs>
  team?: boolean | Prisma.Pixel$teamArgs<ExtArgs>
}, ExtArgs["result"]["pixel"]>

export type PixelSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  slug?: boolean
  userId?: boolean
  teamId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  user?: boolean | Prisma.Pixel$userArgs<ExtArgs>
  team?: boolean | Prisma.Pixel$teamArgs<ExtArgs>
}, ExtArgs["result"]["pixel"]>

export type PixelSelectScalar = {
  id?: boolean
  name?: boolean
  slug?: boolean
  userId?: boolean
  teamId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
}

export type PixelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "slug" | "userId" | "teamId" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["pixel"]>
export type PixelInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.Pixel$userArgs<ExtArgs>
  team?: boolean | Prisma.Pixel$teamArgs<ExtArgs>
}
export type PixelIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.Pixel$userArgs<ExtArgs>
  team?: boolean | Prisma.Pixel$teamArgs<ExtArgs>
}
export type PixelIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.Pixel$userArgs<ExtArgs>
  team?: boolean | Prisma.Pixel$teamArgs<ExtArgs>
}

export type $PixelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Pixel"
  objects: {
    user: Prisma.$UserPayload<ExtArgs> | null
    team: Prisma.$TeamPayload<ExtArgs> | null
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    name: string
    slug: string
    userId: string | null
    teamId: string | null
    createdAt: Date | null
    updatedAt: Date | null
    deletedAt: Date | null
  }, ExtArgs["result"]["pixel"]>
  composites: {}
}

export type PixelGetPayload<S extends boolean | null | undefined | PixelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PixelPayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many Pixels and returns the data saved in the database.
   * @param {PixelCreateManyAndReturnArgs} args - Arguments to create many Pixels.
   * @example
   * // Create many Pixels
   * const pixel = await prisma.pixel.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Pixels and only return the `id`
   * const pixelWithIdOnly = await prisma.pixel.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 PixelCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PixelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PixelPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more Pixels and returns the data updated in the database.
   * @param {PixelUpdateManyAndReturnArgs} args - Arguments to update many Pixels.
   * @example
   * // Update many Pixels
   * const pixel = await prisma.pixel.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Pixels and only return the `id`
   * const pixelWithIdOnly = await prisma.pixel.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 PixelUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PixelUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PixelPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Pixel.
 * 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__PixelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  user<T extends Prisma.Pixel$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pixel$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  team<T extends Prisma.Pixel$teamArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pixel$teamArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<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 Pixel model
 */
export interface PixelFieldRefs {
  readonly id: Prisma.FieldRef<"Pixel", 'String'>
  readonly name: Prisma.FieldRef<"Pixel", 'String'>
  readonly slug: Prisma.FieldRef<"Pixel", 'String'>
  readonly userId: Prisma.FieldRef<"Pixel", 'String'>
  readonly teamId: Prisma.FieldRef<"Pixel", 'String'>
  readonly createdAt: Prisma.FieldRef<"Pixel", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Pixel", 'DateTime'>
  readonly deletedAt: Prisma.FieldRef<"Pixel", 'DateTime'>
}
    

// Custom InputTypes
/**
 * Pixel findUnique
 */
export type PixelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Pixel
   */
  select?: Prisma.PixelSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Pixel
   */
  omit?: Prisma.PixelOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PixelInclude<ExtArgs> | null
  /**
   * Filter, which Pixel to fetch.
   */
  where: Prisma.PixelWhereUniqueInput
}

/**
 * Pixel findUniqueOrThrow
 */
export type PixelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Pixel
   */
  select?: Prisma.PixelSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Pixel
   */
  omit?: Prisma.PixelOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PixelInclude<ExtArgs> | null
  /**
   * Filter, which Pixel to fetch.
   */
  where: Prisma.PixelWhereUniqueInput
}

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

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

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

/**
 * Pixel create
 */
export type PixelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Pixel
   */
  select?: Prisma.PixelSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Pixel
   */
  omit?: Prisma.PixelOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PixelInclude<ExtArgs> | null
  /**
   * The data needed to create a Pixel.
   */
  data: Prisma.XOR<Prisma.PixelCreateInput, Prisma.PixelUncheckedCreateInput>
}

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

/**
 * Pixel createManyAndReturn
 */
export type PixelCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Pixel
   */
  select?: Prisma.PixelSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Pixel
   */
  omit?: Prisma.PixelOmit<ExtArgs> | null
  /**
   * The data used to create many Pixels.
   */
  data: Prisma.PixelCreateManyInput | Prisma.PixelCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PixelIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Pixel update
 */
export type PixelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Pixel
   */
  select?: Prisma.PixelSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Pixel
   */
  omit?: Prisma.PixelOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PixelInclude<ExtArgs> | null
  /**
   * The data needed to update a Pixel.
   */
  data: Prisma.XOR<Prisma.PixelUpdateInput, Prisma.PixelUncheckedUpdateInput>
  /**
   * Choose, which Pixel to update.
   */
  where: Prisma.PixelWhereUniqueInput
}

/**
 * Pixel updateMany
 */
export type PixelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Pixels.
   */
  data: Prisma.XOR<Prisma.PixelUpdateManyMutationInput, Prisma.PixelUncheckedUpdateManyInput>
  /**
   * Filter which Pixels to update
   */
  where?: Prisma.PixelWhereInput
  /**
   * Limit how many Pixels to update.
   */
  limit?: number
}

/**
 * Pixel updateManyAndReturn
 */
export type PixelUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Pixel
   */
  select?: Prisma.PixelSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Pixel
   */
  omit?: Prisma.PixelOmit<ExtArgs> | null
  /**
   * The data used to update Pixels.
   */
  data: Prisma.XOR<Prisma.PixelUpdateManyMutationInput, Prisma.PixelUncheckedUpdateManyInput>
  /**
   * Filter which Pixels to update
   */
  where?: Prisma.PixelWhereInput
  /**
   * Limit how many Pixels to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PixelIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Pixel upsert
 */
export type PixelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Pixel
   */
  select?: Prisma.PixelSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Pixel
   */
  omit?: Prisma.PixelOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PixelInclude<ExtArgs> | null
  /**
   * The filter to search for the Pixel to update in case it exists.
   */
  where: Prisma.PixelWhereUniqueInput
  /**
   * In case the Pixel found by the `where` argument doesn't exist, create a new Pixel with this data.
   */
  create: Prisma.XOR<Prisma.PixelCreateInput, Prisma.PixelUncheckedCreateInput>
  /**
   * In case the Pixel was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.PixelUpdateInput, Prisma.PixelUncheckedUpdateInput>
}

/**
 * Pixel delete
 */
export type PixelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Pixel
   */
  select?: Prisma.PixelSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Pixel
   */
  omit?: Prisma.PixelOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PixelInclude<ExtArgs> | null
  /**
   * Filter which Pixel to delete.
   */
  where: Prisma.PixelWhereUniqueInput
}

/**
 * Pixel deleteMany
 */
export type PixelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Pixels to delete
   */
  where?: Prisma.PixelWhereInput
  /**
   * Limit how many Pixels to delete.
   */
  limit?: number
}

/**
 * Pixel.user
 */
export type Pixel$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  where?: Prisma.UserWhereInput
}

/**
 * Pixel.team
 */
export type Pixel$teamArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Team
   */
  select?: Prisma.TeamSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Team
   */
  omit?: Prisma.TeamOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TeamInclude<ExtArgs> | null
  where?: Prisma.TeamWhereInput
}

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