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

export type AggregateSegment = {
  _count: SegmentCountAggregateOutputType | null
  _min: SegmentMinAggregateOutputType | null
  _max: SegmentMaxAggregateOutputType | null
}

export type SegmentMinAggregateOutputType = {
  id: string | null
  websiteId: string | null
  type: string | null
  name: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type SegmentMaxAggregateOutputType = {
  id: string | null
  websiteId: string | null
  type: string | null
  name: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type SegmentCountAggregateOutputType = {
  id: number
  websiteId: number
  type: number
  name: number
  parameters: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type SegmentMinAggregateInputType = {
  id?: true
  websiteId?: true
  type?: true
  name?: true
  createdAt?: true
  updatedAt?: true
}

export type SegmentMaxAggregateInputType = {
  id?: true
  websiteId?: true
  type?: true
  name?: true
  createdAt?: true
  updatedAt?: true
}

export type SegmentCountAggregateInputType = {
  id?: true
  websiteId?: true
  type?: true
  name?: true
  parameters?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type SegmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.SegmentWhereInput
  orderBy?: Prisma.SegmentOrderByWithAggregationInput | Prisma.SegmentOrderByWithAggregationInput[]
  by: Prisma.SegmentScalarFieldEnum[] | Prisma.SegmentScalarFieldEnum
  having?: Prisma.SegmentScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: SegmentCountAggregateInputType | true
  _min?: SegmentMinAggregateInputType
  _max?: SegmentMaxAggregateInputType
}

export type SegmentGroupByOutputType = {
  id: string
  websiteId: string
  type: string
  name: string
  parameters: runtime.JsonValue
  createdAt: Date | null
  updatedAt: Date | null
  _count: SegmentCountAggregateOutputType | null
  _min: SegmentMinAggregateOutputType | null
  _max: SegmentMaxAggregateOutputType | null
}

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



export type SegmentWhereInput = {
  AND?: Prisma.SegmentWhereInput | Prisma.SegmentWhereInput[]
  OR?: Prisma.SegmentWhereInput[]
  NOT?: Prisma.SegmentWhereInput | Prisma.SegmentWhereInput[]
  id?: Prisma.UuidFilter<"Segment"> | string
  websiteId?: Prisma.UuidFilter<"Segment"> | string
  type?: Prisma.StringFilter<"Segment"> | string
  name?: Prisma.StringFilter<"Segment"> | string
  parameters?: Prisma.JsonFilter<"Segment">
  createdAt?: Prisma.DateTimeNullableFilter<"Segment"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableFilter<"Segment"> | Date | string | null
  website?: Prisma.XOR<Prisma.WebsiteScalarRelationFilter, Prisma.WebsiteWhereInput>
}

export type SegmentOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  parameters?: Prisma.SortOrder
  createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  website?: Prisma.WebsiteOrderByWithRelationInput
}

export type SegmentWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.SegmentWhereInput | Prisma.SegmentWhereInput[]
  OR?: Prisma.SegmentWhereInput[]
  NOT?: Prisma.SegmentWhereInput | Prisma.SegmentWhereInput[]
  websiteId?: Prisma.UuidFilter<"Segment"> | string
  type?: Prisma.StringFilter<"Segment"> | string
  name?: Prisma.StringFilter<"Segment"> | string
  parameters?: Prisma.JsonFilter<"Segment">
  createdAt?: Prisma.DateTimeNullableFilter<"Segment"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableFilter<"Segment"> | Date | string | null
  website?: Prisma.XOR<Prisma.WebsiteScalarRelationFilter, Prisma.WebsiteWhereInput>
}, "id">

export type SegmentOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  parameters?: Prisma.SortOrder
  createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.SegmentCountOrderByAggregateInput
  _max?: Prisma.SegmentMaxOrderByAggregateInput
  _min?: Prisma.SegmentMinOrderByAggregateInput
}

export type SegmentScalarWhereWithAggregatesInput = {
  AND?: Prisma.SegmentScalarWhereWithAggregatesInput | Prisma.SegmentScalarWhereWithAggregatesInput[]
  OR?: Prisma.SegmentScalarWhereWithAggregatesInput[]
  NOT?: Prisma.SegmentScalarWhereWithAggregatesInput | Prisma.SegmentScalarWhereWithAggregatesInput[]
  id?: Prisma.UuidWithAggregatesFilter<"Segment"> | string
  websiteId?: Prisma.UuidWithAggregatesFilter<"Segment"> | string
  type?: Prisma.StringWithAggregatesFilter<"Segment"> | string
  name?: Prisma.StringWithAggregatesFilter<"Segment"> | string
  parameters?: Prisma.JsonWithAggregatesFilter<"Segment">
  createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Segment"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Segment"> | Date | string | null
}

export type SegmentCreateInput = {
  id: string
  type: string
  name: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  website: Prisma.WebsiteCreateNestedOneWithoutSegmentsInput
}

export type SegmentUncheckedCreateInput = {
  id: string
  websiteId: string
  type: string
  name: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type SegmentUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  website?: Prisma.WebsiteUpdateOneRequiredWithoutSegmentsNestedInput
}

export type SegmentUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  websiteId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SegmentCreateManyInput = {
  id: string
  websiteId: string
  type: string
  name: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type SegmentUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SegmentUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  websiteId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SegmentListRelationFilter = {
  every?: Prisma.SegmentWhereInput
  some?: Prisma.SegmentWhereInput
  none?: Prisma.SegmentWhereInput
}

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

export type SegmentCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  parameters?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type SegmentMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type SegmentMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type SegmentCreateNestedManyWithoutWebsiteInput = {
  create?: Prisma.XOR<Prisma.SegmentCreateWithoutWebsiteInput, Prisma.SegmentUncheckedCreateWithoutWebsiteInput> | Prisma.SegmentCreateWithoutWebsiteInput[] | Prisma.SegmentUncheckedCreateWithoutWebsiteInput[]
  connectOrCreate?: Prisma.SegmentCreateOrConnectWithoutWebsiteInput | Prisma.SegmentCreateOrConnectWithoutWebsiteInput[]
  createMany?: Prisma.SegmentCreateManyWebsiteInputEnvelope
  connect?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
}

export type SegmentUncheckedCreateNestedManyWithoutWebsiteInput = {
  create?: Prisma.XOR<Prisma.SegmentCreateWithoutWebsiteInput, Prisma.SegmentUncheckedCreateWithoutWebsiteInput> | Prisma.SegmentCreateWithoutWebsiteInput[] | Prisma.SegmentUncheckedCreateWithoutWebsiteInput[]
  connectOrCreate?: Prisma.SegmentCreateOrConnectWithoutWebsiteInput | Prisma.SegmentCreateOrConnectWithoutWebsiteInput[]
  createMany?: Prisma.SegmentCreateManyWebsiteInputEnvelope
  connect?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
}

export type SegmentUpdateManyWithoutWebsiteNestedInput = {
  create?: Prisma.XOR<Prisma.SegmentCreateWithoutWebsiteInput, Prisma.SegmentUncheckedCreateWithoutWebsiteInput> | Prisma.SegmentCreateWithoutWebsiteInput[] | Prisma.SegmentUncheckedCreateWithoutWebsiteInput[]
  connectOrCreate?: Prisma.SegmentCreateOrConnectWithoutWebsiteInput | Prisma.SegmentCreateOrConnectWithoutWebsiteInput[]
  upsert?: Prisma.SegmentUpsertWithWhereUniqueWithoutWebsiteInput | Prisma.SegmentUpsertWithWhereUniqueWithoutWebsiteInput[]
  createMany?: Prisma.SegmentCreateManyWebsiteInputEnvelope
  set?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
  disconnect?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
  delete?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
  connect?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
  update?: Prisma.SegmentUpdateWithWhereUniqueWithoutWebsiteInput | Prisma.SegmentUpdateWithWhereUniqueWithoutWebsiteInput[]
  updateMany?: Prisma.SegmentUpdateManyWithWhereWithoutWebsiteInput | Prisma.SegmentUpdateManyWithWhereWithoutWebsiteInput[]
  deleteMany?: Prisma.SegmentScalarWhereInput | Prisma.SegmentScalarWhereInput[]
}

export type SegmentUncheckedUpdateManyWithoutWebsiteNestedInput = {
  create?: Prisma.XOR<Prisma.SegmentCreateWithoutWebsiteInput, Prisma.SegmentUncheckedCreateWithoutWebsiteInput> | Prisma.SegmentCreateWithoutWebsiteInput[] | Prisma.SegmentUncheckedCreateWithoutWebsiteInput[]
  connectOrCreate?: Prisma.SegmentCreateOrConnectWithoutWebsiteInput | Prisma.SegmentCreateOrConnectWithoutWebsiteInput[]
  upsert?: Prisma.SegmentUpsertWithWhereUniqueWithoutWebsiteInput | Prisma.SegmentUpsertWithWhereUniqueWithoutWebsiteInput[]
  createMany?: Prisma.SegmentCreateManyWebsiteInputEnvelope
  set?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
  disconnect?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
  delete?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
  connect?: Prisma.SegmentWhereUniqueInput | Prisma.SegmentWhereUniqueInput[]
  update?: Prisma.SegmentUpdateWithWhereUniqueWithoutWebsiteInput | Prisma.SegmentUpdateWithWhereUniqueWithoutWebsiteInput[]
  updateMany?: Prisma.SegmentUpdateManyWithWhereWithoutWebsiteInput | Prisma.SegmentUpdateManyWithWhereWithoutWebsiteInput[]
  deleteMany?: Prisma.SegmentScalarWhereInput | Prisma.SegmentScalarWhereInput[]
}

export type SegmentCreateWithoutWebsiteInput = {
  id: string
  type: string
  name: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type SegmentUncheckedCreateWithoutWebsiteInput = {
  id: string
  type: string
  name: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type SegmentCreateOrConnectWithoutWebsiteInput = {
  where: Prisma.SegmentWhereUniqueInput
  create: Prisma.XOR<Prisma.SegmentCreateWithoutWebsiteInput, Prisma.SegmentUncheckedCreateWithoutWebsiteInput>
}

export type SegmentCreateManyWebsiteInputEnvelope = {
  data: Prisma.SegmentCreateManyWebsiteInput | Prisma.SegmentCreateManyWebsiteInput[]
  skipDuplicates?: boolean
}

export type SegmentUpsertWithWhereUniqueWithoutWebsiteInput = {
  where: Prisma.SegmentWhereUniqueInput
  update: Prisma.XOR<Prisma.SegmentUpdateWithoutWebsiteInput, Prisma.SegmentUncheckedUpdateWithoutWebsiteInput>
  create: Prisma.XOR<Prisma.SegmentCreateWithoutWebsiteInput, Prisma.SegmentUncheckedCreateWithoutWebsiteInput>
}

export type SegmentUpdateWithWhereUniqueWithoutWebsiteInput = {
  where: Prisma.SegmentWhereUniqueInput
  data: Prisma.XOR<Prisma.SegmentUpdateWithoutWebsiteInput, Prisma.SegmentUncheckedUpdateWithoutWebsiteInput>
}

export type SegmentUpdateManyWithWhereWithoutWebsiteInput = {
  where: Prisma.SegmentScalarWhereInput
  data: Prisma.XOR<Prisma.SegmentUpdateManyMutationInput, Prisma.SegmentUncheckedUpdateManyWithoutWebsiteInput>
}

export type SegmentScalarWhereInput = {
  AND?: Prisma.SegmentScalarWhereInput | Prisma.SegmentScalarWhereInput[]
  OR?: Prisma.SegmentScalarWhereInput[]
  NOT?: Prisma.SegmentScalarWhereInput | Prisma.SegmentScalarWhereInput[]
  id?: Prisma.UuidFilter<"Segment"> | string
  websiteId?: Prisma.UuidFilter<"Segment"> | string
  type?: Prisma.StringFilter<"Segment"> | string
  name?: Prisma.StringFilter<"Segment"> | string
  parameters?: Prisma.JsonFilter<"Segment">
  createdAt?: Prisma.DateTimeNullableFilter<"Segment"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableFilter<"Segment"> | Date | string | null
}

export type SegmentCreateManyWebsiteInput = {
  id: string
  type: string
  name: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type SegmentUpdateWithoutWebsiteInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SegmentUncheckedUpdateWithoutWebsiteInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SegmentUncheckedUpdateManyWithoutWebsiteInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type SegmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  websiteId?: boolean
  type?: boolean
  name?: boolean
  parameters?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}, ExtArgs["result"]["segment"]>

export type SegmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  websiteId?: boolean
  type?: boolean
  name?: boolean
  parameters?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}, ExtArgs["result"]["segment"]>

export type SegmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  websiteId?: boolean
  type?: boolean
  name?: boolean
  parameters?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}, ExtArgs["result"]["segment"]>

export type SegmentSelectScalar = {
  id?: boolean
  websiteId?: boolean
  type?: boolean
  name?: boolean
  parameters?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type SegmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "websiteId" | "type" | "name" | "parameters" | "createdAt" | "updatedAt", ExtArgs["result"]["segment"]>
export type SegmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}
export type SegmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}
export type SegmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}

export type $SegmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Segment"
  objects: {
    website: Prisma.$WebsitePayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    websiteId: string
    type: string
    name: string
    parameters: runtime.JsonValue
    createdAt: Date | null
    updatedAt: Date | null
  }, ExtArgs["result"]["segment"]>
  composites: {}
}

export type SegmentGetPayload<S extends boolean | null | undefined | SegmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SegmentPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Segment.
 * 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__SegmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  website<T extends Prisma.WebsiteDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WebsiteDefaultArgs<ExtArgs>>): Prisma.Prisma__WebsiteClient<runtime.Types.Result.GetResult<Prisma.$WebsitePayload<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 Segment model
 */
export interface SegmentFieldRefs {
  readonly id: Prisma.FieldRef<"Segment", 'String'>
  readonly websiteId: Prisma.FieldRef<"Segment", 'String'>
  readonly type: Prisma.FieldRef<"Segment", 'String'>
  readonly name: Prisma.FieldRef<"Segment", 'String'>
  readonly parameters: Prisma.FieldRef<"Segment", 'Json'>
  readonly createdAt: Prisma.FieldRef<"Segment", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Segment", 'DateTime'>
}
    

// Custom InputTypes
/**
 * Segment findUnique
 */
export type SegmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Segment
   */
  select?: Prisma.SegmentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Segment
   */
  omit?: Prisma.SegmentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SegmentInclude<ExtArgs> | null
  /**
   * Filter, which Segment to fetch.
   */
  where: Prisma.SegmentWhereUniqueInput
}

/**
 * Segment findUniqueOrThrow
 */
export type SegmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Segment
   */
  select?: Prisma.SegmentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Segment
   */
  omit?: Prisma.SegmentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SegmentInclude<ExtArgs> | null
  /**
   * Filter, which Segment to fetch.
   */
  where: Prisma.SegmentWhereUniqueInput
}

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

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

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

/**
 * Segment create
 */
export type SegmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Segment
   */
  select?: Prisma.SegmentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Segment
   */
  omit?: Prisma.SegmentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SegmentInclude<ExtArgs> | null
  /**
   * The data needed to create a Segment.
   */
  data: Prisma.XOR<Prisma.SegmentCreateInput, Prisma.SegmentUncheckedCreateInput>
}

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

/**
 * Segment createManyAndReturn
 */
export type SegmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Segment
   */
  select?: Prisma.SegmentSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Segment
   */
  omit?: Prisma.SegmentOmit<ExtArgs> | null
  /**
   * The data used to create many Segments.
   */
  data: Prisma.SegmentCreateManyInput | Prisma.SegmentCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SegmentIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Segment update
 */
export type SegmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Segment
   */
  select?: Prisma.SegmentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Segment
   */
  omit?: Prisma.SegmentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SegmentInclude<ExtArgs> | null
  /**
   * The data needed to update a Segment.
   */
  data: Prisma.XOR<Prisma.SegmentUpdateInput, Prisma.SegmentUncheckedUpdateInput>
  /**
   * Choose, which Segment to update.
   */
  where: Prisma.SegmentWhereUniqueInput
}

/**
 * Segment updateMany
 */
export type SegmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Segments.
   */
  data: Prisma.XOR<Prisma.SegmentUpdateManyMutationInput, Prisma.SegmentUncheckedUpdateManyInput>
  /**
   * Filter which Segments to update
   */
  where?: Prisma.SegmentWhereInput
  /**
   * Limit how many Segments to update.
   */
  limit?: number
}

/**
 * Segment updateManyAndReturn
 */
export type SegmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Segment
   */
  select?: Prisma.SegmentSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Segment
   */
  omit?: Prisma.SegmentOmit<ExtArgs> | null
  /**
   * The data used to update Segments.
   */
  data: Prisma.XOR<Prisma.SegmentUpdateManyMutationInput, Prisma.SegmentUncheckedUpdateManyInput>
  /**
   * Filter which Segments to update
   */
  where?: Prisma.SegmentWhereInput
  /**
   * Limit how many Segments to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SegmentIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Segment upsert
 */
export type SegmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Segment
   */
  select?: Prisma.SegmentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Segment
   */
  omit?: Prisma.SegmentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SegmentInclude<ExtArgs> | null
  /**
   * The filter to search for the Segment to update in case it exists.
   */
  where: Prisma.SegmentWhereUniqueInput
  /**
   * In case the Segment found by the `where` argument doesn't exist, create a new Segment with this data.
   */
  create: Prisma.XOR<Prisma.SegmentCreateInput, Prisma.SegmentUncheckedCreateInput>
  /**
   * In case the Segment was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.SegmentUpdateInput, Prisma.SegmentUncheckedUpdateInput>
}

/**
 * Segment delete
 */
export type SegmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Segment
   */
  select?: Prisma.SegmentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Segment
   */
  omit?: Prisma.SegmentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SegmentInclude<ExtArgs> | null
  /**
   * Filter which Segment to delete.
   */
  where: Prisma.SegmentWhereUniqueInput
}

/**
 * Segment deleteMany
 */
export type SegmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Segments to delete
   */
  where?: Prisma.SegmentWhereInput
  /**
   * Limit how many Segments to delete.
   */
  limit?: number
}

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