
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `cms_performances` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/library"
import type * as $Enums from "../enums"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model cms_performances
 * 
 */
export type cms_performancesModel = runtime.Types.Result.DefaultSelection<Prisma.$cms_performancesPayload>

export type AggregateCms_performances = {
  _count: Cms_performancesCountAggregateOutputType | null
  _avg: Cms_performancesAvgAggregateOutputType | null
  _sum: Cms_performancesSumAggregateOutputType | null
  _min: Cms_performancesMinAggregateOutputType | null
  _max: Cms_performancesMaxAggregateOutputType | null
}

export type Cms_performancesAvgAggregateOutputType = {
  id: number | null
  page_id: number | null
  sort_order: number | null
}

export type Cms_performancesSumAggregateOutputType = {
  id: bigint | null
  page_id: bigint | null
  sort_order: number | null
}

export type Cms_performancesMinAggregateOutputType = {
  id: bigint | null
  page_id: bigint | null
  title: string | null
  youtube_url: string | null
  thumbnail: string | null
  sort_order: number | null
  status: boolean | null
  created_at: Date | null
  updated_at: Date | null
}

export type Cms_performancesMaxAggregateOutputType = {
  id: bigint | null
  page_id: bigint | null
  title: string | null
  youtube_url: string | null
  thumbnail: string | null
  sort_order: number | null
  status: boolean | null
  created_at: Date | null
  updated_at: Date | null
}

export type Cms_performancesCountAggregateOutputType = {
  id: number
  page_id: number
  title: number
  youtube_url: number
  thumbnail: number
  sort_order: number
  status: number
  created_at: number
  updated_at: number
  _all: number
}


export type Cms_performancesAvgAggregateInputType = {
  id?: true
  page_id?: true
  sort_order?: true
}

export type Cms_performancesSumAggregateInputType = {
  id?: true
  page_id?: true
  sort_order?: true
}

export type Cms_performancesMinAggregateInputType = {
  id?: true
  page_id?: true
  title?: true
  youtube_url?: true
  thumbnail?: true
  sort_order?: true
  status?: true
  created_at?: true
  updated_at?: true
}

export type Cms_performancesMaxAggregateInputType = {
  id?: true
  page_id?: true
  title?: true
  youtube_url?: true
  thumbnail?: true
  sort_order?: true
  status?: true
  created_at?: true
  updated_at?: true
}

export type Cms_performancesCountAggregateInputType = {
  id?: true
  page_id?: true
  title?: true
  youtube_url?: true
  thumbnail?: true
  sort_order?: true
  status?: true
  created_at?: true
  updated_at?: true
  _all?: true
}

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

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




export type cms_performancesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.cms_performancesWhereInput
  orderBy?: Prisma.cms_performancesOrderByWithAggregationInput | Prisma.cms_performancesOrderByWithAggregationInput[]
  by: Prisma.Cms_performancesScalarFieldEnum[] | Prisma.Cms_performancesScalarFieldEnum
  having?: Prisma.cms_performancesScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Cms_performancesCountAggregateInputType | true
  _avg?: Cms_performancesAvgAggregateInputType
  _sum?: Cms_performancesSumAggregateInputType
  _min?: Cms_performancesMinAggregateInputType
  _max?: Cms_performancesMaxAggregateInputType
}

export type Cms_performancesGroupByOutputType = {
  id: bigint
  page_id: bigint
  title: string
  youtube_url: string | null
  thumbnail: string | null
  sort_order: number | null
  status: boolean | null
  created_at: Date | null
  updated_at: Date | null
  _count: Cms_performancesCountAggregateOutputType | null
  _avg: Cms_performancesAvgAggregateOutputType | null
  _sum: Cms_performancesSumAggregateOutputType | null
  _min: Cms_performancesMinAggregateOutputType | null
  _max: Cms_performancesMaxAggregateOutputType | null
}

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



export type cms_performancesWhereInput = {
  AND?: Prisma.cms_performancesWhereInput | Prisma.cms_performancesWhereInput[]
  OR?: Prisma.cms_performancesWhereInput[]
  NOT?: Prisma.cms_performancesWhereInput | Prisma.cms_performancesWhereInput[]
  id?: Prisma.BigIntFilter<"cms_performances"> | bigint | number
  page_id?: Prisma.BigIntFilter<"cms_performances"> | bigint | number
  title?: Prisma.StringFilter<"cms_performances"> | string
  youtube_url?: Prisma.StringNullableFilter<"cms_performances"> | string | null
  thumbnail?: Prisma.StringNullableFilter<"cms_performances"> | string | null
  sort_order?: Prisma.IntNullableFilter<"cms_performances"> | number | null
  status?: Prisma.BoolNullableFilter<"cms_performances"> | boolean | null
  created_at?: Prisma.DateTimeNullableFilter<"cms_performances"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"cms_performances"> | Date | string | null
  cms_pages?: Prisma.XOR<Prisma.Cms_pagesScalarRelationFilter, Prisma.cms_pagesWhereInput>
}

export type cms_performancesOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  page_id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  youtube_url?: Prisma.SortOrderInput | Prisma.SortOrder
  thumbnail?: Prisma.SortOrderInput | Prisma.SortOrder
  sort_order?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  cms_pages?: Prisma.cms_pagesOrderByWithRelationInput
}

export type cms_performancesWhereUniqueInput = Prisma.AtLeast<{
  id?: bigint | number
  AND?: Prisma.cms_performancesWhereInput | Prisma.cms_performancesWhereInput[]
  OR?: Prisma.cms_performancesWhereInput[]
  NOT?: Prisma.cms_performancesWhereInput | Prisma.cms_performancesWhereInput[]
  page_id?: Prisma.BigIntFilter<"cms_performances"> | bigint | number
  title?: Prisma.StringFilter<"cms_performances"> | string
  youtube_url?: Prisma.StringNullableFilter<"cms_performances"> | string | null
  thumbnail?: Prisma.StringNullableFilter<"cms_performances"> | string | null
  sort_order?: Prisma.IntNullableFilter<"cms_performances"> | number | null
  status?: Prisma.BoolNullableFilter<"cms_performances"> | boolean | null
  created_at?: Prisma.DateTimeNullableFilter<"cms_performances"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"cms_performances"> | Date | string | null
  cms_pages?: Prisma.XOR<Prisma.Cms_pagesScalarRelationFilter, Prisma.cms_pagesWhereInput>
}, "id">

export type cms_performancesOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  page_id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  youtube_url?: Prisma.SortOrderInput | Prisma.SortOrder
  thumbnail?: Prisma.SortOrderInput | Prisma.SortOrder
  sort_order?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.cms_performancesCountOrderByAggregateInput
  _avg?: Prisma.cms_performancesAvgOrderByAggregateInput
  _max?: Prisma.cms_performancesMaxOrderByAggregateInput
  _min?: Prisma.cms_performancesMinOrderByAggregateInput
  _sum?: Prisma.cms_performancesSumOrderByAggregateInput
}

export type cms_performancesScalarWhereWithAggregatesInput = {
  AND?: Prisma.cms_performancesScalarWhereWithAggregatesInput | Prisma.cms_performancesScalarWhereWithAggregatesInput[]
  OR?: Prisma.cms_performancesScalarWhereWithAggregatesInput[]
  NOT?: Prisma.cms_performancesScalarWhereWithAggregatesInput | Prisma.cms_performancesScalarWhereWithAggregatesInput[]
  id?: Prisma.BigIntWithAggregatesFilter<"cms_performances"> | bigint | number
  page_id?: Prisma.BigIntWithAggregatesFilter<"cms_performances"> | bigint | number
  title?: Prisma.StringWithAggregatesFilter<"cms_performances"> | string
  youtube_url?: Prisma.StringNullableWithAggregatesFilter<"cms_performances"> | string | null
  thumbnail?: Prisma.StringNullableWithAggregatesFilter<"cms_performances"> | string | null
  sort_order?: Prisma.IntNullableWithAggregatesFilter<"cms_performances"> | number | null
  status?: Prisma.BoolNullableWithAggregatesFilter<"cms_performances"> | boolean | null
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"cms_performances"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"cms_performances"> | Date | string | null
}

export type cms_performancesCreateInput = {
  id?: bigint | number
  title: string
  youtube_url?: string | null
  thumbnail?: string | null
  sort_order?: number | null
  status?: boolean | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  cms_pages: Prisma.cms_pagesCreateNestedOneWithoutCms_performancesInput
}

export type cms_performancesUncheckedCreateInput = {
  id?: bigint | number
  page_id: bigint | number
  title: string
  youtube_url?: string | null
  thumbnail?: string | null
  sort_order?: number | null
  status?: boolean | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type cms_performancesUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  youtube_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sort_order?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  cms_pages?: Prisma.cms_pagesUpdateOneRequiredWithoutCms_performancesNestedInput
}

export type cms_performancesUncheckedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  page_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  youtube_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sort_order?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type cms_performancesCreateManyInput = {
  id?: bigint | number
  page_id: bigint | number
  title: string
  youtube_url?: string | null
  thumbnail?: string | null
  sort_order?: number | null
  status?: boolean | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type cms_performancesUpdateManyMutationInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  youtube_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sort_order?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type cms_performancesUncheckedUpdateManyInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  page_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  youtube_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sort_order?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type Cms_performancesListRelationFilter = {
  every?: Prisma.cms_performancesWhereInput
  some?: Prisma.cms_performancesWhereInput
  none?: Prisma.cms_performancesWhereInput
}

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

export type cms_performancesCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  page_id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  youtube_url?: Prisma.SortOrder
  thumbnail?: Prisma.SortOrder
  sort_order?: Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type cms_performancesAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  page_id?: Prisma.SortOrder
  sort_order?: Prisma.SortOrder
}

export type cms_performancesMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  page_id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  youtube_url?: Prisma.SortOrder
  thumbnail?: Prisma.SortOrder
  sort_order?: Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type cms_performancesMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  page_id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  youtube_url?: Prisma.SortOrder
  thumbnail?: Prisma.SortOrder
  sort_order?: Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type cms_performancesSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  page_id?: Prisma.SortOrder
  sort_order?: Prisma.SortOrder
}

export type cms_performancesCreateNestedManyWithoutCms_pagesInput = {
  create?: Prisma.XOR<Prisma.cms_performancesCreateWithoutCms_pagesInput, Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput> | Prisma.cms_performancesCreateWithoutCms_pagesInput[] | Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput[]
  connectOrCreate?: Prisma.cms_performancesCreateOrConnectWithoutCms_pagesInput | Prisma.cms_performancesCreateOrConnectWithoutCms_pagesInput[]
  createMany?: Prisma.cms_performancesCreateManyCms_pagesInputEnvelope
  connect?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
}

export type cms_performancesUncheckedCreateNestedManyWithoutCms_pagesInput = {
  create?: Prisma.XOR<Prisma.cms_performancesCreateWithoutCms_pagesInput, Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput> | Prisma.cms_performancesCreateWithoutCms_pagesInput[] | Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput[]
  connectOrCreate?: Prisma.cms_performancesCreateOrConnectWithoutCms_pagesInput | Prisma.cms_performancesCreateOrConnectWithoutCms_pagesInput[]
  createMany?: Prisma.cms_performancesCreateManyCms_pagesInputEnvelope
  connect?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
}

export type cms_performancesUpdateManyWithoutCms_pagesNestedInput = {
  create?: Prisma.XOR<Prisma.cms_performancesCreateWithoutCms_pagesInput, Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput> | Prisma.cms_performancesCreateWithoutCms_pagesInput[] | Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput[]
  connectOrCreate?: Prisma.cms_performancesCreateOrConnectWithoutCms_pagesInput | Prisma.cms_performancesCreateOrConnectWithoutCms_pagesInput[]
  upsert?: Prisma.cms_performancesUpsertWithWhereUniqueWithoutCms_pagesInput | Prisma.cms_performancesUpsertWithWhereUniqueWithoutCms_pagesInput[]
  createMany?: Prisma.cms_performancesCreateManyCms_pagesInputEnvelope
  set?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
  disconnect?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
  delete?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
  connect?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
  update?: Prisma.cms_performancesUpdateWithWhereUniqueWithoutCms_pagesInput | Prisma.cms_performancesUpdateWithWhereUniqueWithoutCms_pagesInput[]
  updateMany?: Prisma.cms_performancesUpdateManyWithWhereWithoutCms_pagesInput | Prisma.cms_performancesUpdateManyWithWhereWithoutCms_pagesInput[]
  deleteMany?: Prisma.cms_performancesScalarWhereInput | Prisma.cms_performancesScalarWhereInput[]
}

export type cms_performancesUncheckedUpdateManyWithoutCms_pagesNestedInput = {
  create?: Prisma.XOR<Prisma.cms_performancesCreateWithoutCms_pagesInput, Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput> | Prisma.cms_performancesCreateWithoutCms_pagesInput[] | Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput[]
  connectOrCreate?: Prisma.cms_performancesCreateOrConnectWithoutCms_pagesInput | Prisma.cms_performancesCreateOrConnectWithoutCms_pagesInput[]
  upsert?: Prisma.cms_performancesUpsertWithWhereUniqueWithoutCms_pagesInput | Prisma.cms_performancesUpsertWithWhereUniqueWithoutCms_pagesInput[]
  createMany?: Prisma.cms_performancesCreateManyCms_pagesInputEnvelope
  set?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
  disconnect?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
  delete?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
  connect?: Prisma.cms_performancesWhereUniqueInput | Prisma.cms_performancesWhereUniqueInput[]
  update?: Prisma.cms_performancesUpdateWithWhereUniqueWithoutCms_pagesInput | Prisma.cms_performancesUpdateWithWhereUniqueWithoutCms_pagesInput[]
  updateMany?: Prisma.cms_performancesUpdateManyWithWhereWithoutCms_pagesInput | Prisma.cms_performancesUpdateManyWithWhereWithoutCms_pagesInput[]
  deleteMany?: Prisma.cms_performancesScalarWhereInput | Prisma.cms_performancesScalarWhereInput[]
}

export type cms_performancesCreateWithoutCms_pagesInput = {
  id?: bigint | number
  title: string
  youtube_url?: string | null
  thumbnail?: string | null
  sort_order?: number | null
  status?: boolean | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type cms_performancesUncheckedCreateWithoutCms_pagesInput = {
  id?: bigint | number
  title: string
  youtube_url?: string | null
  thumbnail?: string | null
  sort_order?: number | null
  status?: boolean | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type cms_performancesCreateOrConnectWithoutCms_pagesInput = {
  where: Prisma.cms_performancesWhereUniqueInput
  create: Prisma.XOR<Prisma.cms_performancesCreateWithoutCms_pagesInput, Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput>
}

export type cms_performancesCreateManyCms_pagesInputEnvelope = {
  data: Prisma.cms_performancesCreateManyCms_pagesInput | Prisma.cms_performancesCreateManyCms_pagesInput[]
  skipDuplicates?: boolean
}

export type cms_performancesUpsertWithWhereUniqueWithoutCms_pagesInput = {
  where: Prisma.cms_performancesWhereUniqueInput
  update: Prisma.XOR<Prisma.cms_performancesUpdateWithoutCms_pagesInput, Prisma.cms_performancesUncheckedUpdateWithoutCms_pagesInput>
  create: Prisma.XOR<Prisma.cms_performancesCreateWithoutCms_pagesInput, Prisma.cms_performancesUncheckedCreateWithoutCms_pagesInput>
}

export type cms_performancesUpdateWithWhereUniqueWithoutCms_pagesInput = {
  where: Prisma.cms_performancesWhereUniqueInput
  data: Prisma.XOR<Prisma.cms_performancesUpdateWithoutCms_pagesInput, Prisma.cms_performancesUncheckedUpdateWithoutCms_pagesInput>
}

export type cms_performancesUpdateManyWithWhereWithoutCms_pagesInput = {
  where: Prisma.cms_performancesScalarWhereInput
  data: Prisma.XOR<Prisma.cms_performancesUpdateManyMutationInput, Prisma.cms_performancesUncheckedUpdateManyWithoutCms_pagesInput>
}

export type cms_performancesScalarWhereInput = {
  AND?: Prisma.cms_performancesScalarWhereInput | Prisma.cms_performancesScalarWhereInput[]
  OR?: Prisma.cms_performancesScalarWhereInput[]
  NOT?: Prisma.cms_performancesScalarWhereInput | Prisma.cms_performancesScalarWhereInput[]
  id?: Prisma.BigIntFilter<"cms_performances"> | bigint | number
  page_id?: Prisma.BigIntFilter<"cms_performances"> | bigint | number
  title?: Prisma.StringFilter<"cms_performances"> | string
  youtube_url?: Prisma.StringNullableFilter<"cms_performances"> | string | null
  thumbnail?: Prisma.StringNullableFilter<"cms_performances"> | string | null
  sort_order?: Prisma.IntNullableFilter<"cms_performances"> | number | null
  status?: Prisma.BoolNullableFilter<"cms_performances"> | boolean | null
  created_at?: Prisma.DateTimeNullableFilter<"cms_performances"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"cms_performances"> | Date | string | null
}

export type cms_performancesCreateManyCms_pagesInput = {
  id?: bigint | number
  title: string
  youtube_url?: string | null
  thumbnail?: string | null
  sort_order?: number | null
  status?: boolean | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type cms_performancesUpdateWithoutCms_pagesInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  youtube_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sort_order?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type cms_performancesUncheckedUpdateWithoutCms_pagesInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  youtube_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sort_order?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type cms_performancesUncheckedUpdateManyWithoutCms_pagesInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  youtube_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sort_order?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type cms_performancesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  page_id?: boolean
  title?: boolean
  youtube_url?: boolean
  thumbnail?: boolean
  sort_order?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
  cms_pages?: boolean | Prisma.cms_pagesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["cms_performances"]>

export type cms_performancesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  page_id?: boolean
  title?: boolean
  youtube_url?: boolean
  thumbnail?: boolean
  sort_order?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
  cms_pages?: boolean | Prisma.cms_pagesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["cms_performances"]>

export type cms_performancesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  page_id?: boolean
  title?: boolean
  youtube_url?: boolean
  thumbnail?: boolean
  sort_order?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
  cms_pages?: boolean | Prisma.cms_pagesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["cms_performances"]>

export type cms_performancesSelectScalar = {
  id?: boolean
  page_id?: boolean
  title?: boolean
  youtube_url?: boolean
  thumbnail?: boolean
  sort_order?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
}

export type cms_performancesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "page_id" | "title" | "youtube_url" | "thumbnail" | "sort_order" | "status" | "created_at" | "updated_at", ExtArgs["result"]["cms_performances"]>
export type cms_performancesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  cms_pages?: boolean | Prisma.cms_pagesDefaultArgs<ExtArgs>
}
export type cms_performancesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  cms_pages?: boolean | Prisma.cms_pagesDefaultArgs<ExtArgs>
}
export type cms_performancesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  cms_pages?: boolean | Prisma.cms_pagesDefaultArgs<ExtArgs>
}

export type $cms_performancesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "cms_performances"
  objects: {
    cms_pages: Prisma.$cms_pagesPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: bigint
    page_id: bigint
    title: string
    youtube_url: string | null
    thumbnail: string | null
    sort_order: number | null
    status: boolean | null
    created_at: Date | null
    updated_at: Date | null
  }, ExtArgs["result"]["cms_performances"]>
  composites: {}
}

export type cms_performancesGetPayload<S extends boolean | null | undefined | cms_performancesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$cms_performancesPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for cms_performances.
 * 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__cms_performancesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  cms_pages<T extends Prisma.cms_pagesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.cms_pagesDefaultArgs<ExtArgs>>): Prisma.Prisma__cms_pagesClient<runtime.Types.Result.GetResult<Prisma.$cms_pagesPayload<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 cms_performances model
 */
export interface cms_performancesFieldRefs {
  readonly id: Prisma.FieldRef<"cms_performances", 'BigInt'>
  readonly page_id: Prisma.FieldRef<"cms_performances", 'BigInt'>
  readonly title: Prisma.FieldRef<"cms_performances", 'String'>
  readonly youtube_url: Prisma.FieldRef<"cms_performances", 'String'>
  readonly thumbnail: Prisma.FieldRef<"cms_performances", 'String'>
  readonly sort_order: Prisma.FieldRef<"cms_performances", 'Int'>
  readonly status: Prisma.FieldRef<"cms_performances", 'Boolean'>
  readonly created_at: Prisma.FieldRef<"cms_performances", 'DateTime'>
  readonly updated_at: Prisma.FieldRef<"cms_performances", 'DateTime'>
}
    

// Custom InputTypes
/**
 * cms_performances findUnique
 */
export type cms_performancesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the cms_performances
   */
  select?: Prisma.cms_performancesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the cms_performances
   */
  omit?: Prisma.cms_performancesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.cms_performancesInclude<ExtArgs> | null
  /**
   * Filter, which cms_performances to fetch.
   */
  where: Prisma.cms_performancesWhereUniqueInput
}

/**
 * cms_performances findUniqueOrThrow
 */
export type cms_performancesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the cms_performances
   */
  select?: Prisma.cms_performancesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the cms_performances
   */
  omit?: Prisma.cms_performancesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.cms_performancesInclude<ExtArgs> | null
  /**
   * Filter, which cms_performances to fetch.
   */
  where: Prisma.cms_performancesWhereUniqueInput
}

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

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

/**
 * cms_performances findMany
 */
export type cms_performancesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the cms_performances
   */
  select?: Prisma.cms_performancesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the cms_performances
   */
  omit?: Prisma.cms_performancesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.cms_performancesInclude<ExtArgs> | null
  /**
   * Filter, which cms_performances to fetch.
   */
  where?: Prisma.cms_performancesWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of cms_performances to fetch.
   */
  orderBy?: Prisma.cms_performancesOrderByWithRelationInput | Prisma.cms_performancesOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing cms_performances.
   */
  cursor?: Prisma.cms_performancesWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` cms_performances 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` cms_performances.
   */
  skip?: number
  distinct?: Prisma.Cms_performancesScalarFieldEnum | Prisma.Cms_performancesScalarFieldEnum[]
}

/**
 * cms_performances create
 */
export type cms_performancesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the cms_performances
   */
  select?: Prisma.cms_performancesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the cms_performances
   */
  omit?: Prisma.cms_performancesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.cms_performancesInclude<ExtArgs> | null
  /**
   * The data needed to create a cms_performances.
   */
  data: Prisma.XOR<Prisma.cms_performancesCreateInput, Prisma.cms_performancesUncheckedCreateInput>
}

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

/**
 * cms_performances createManyAndReturn
 */
export type cms_performancesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the cms_performances
   */
  select?: Prisma.cms_performancesSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the cms_performances
   */
  omit?: Prisma.cms_performancesOmit<ExtArgs> | null
  /**
   * The data used to create many cms_performances.
   */
  data: Prisma.cms_performancesCreateManyInput | Prisma.cms_performancesCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.cms_performancesIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * cms_performances update
 */
export type cms_performancesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the cms_performances
   */
  select?: Prisma.cms_performancesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the cms_performances
   */
  omit?: Prisma.cms_performancesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.cms_performancesInclude<ExtArgs> | null
  /**
   * The data needed to update a cms_performances.
   */
  data: Prisma.XOR<Prisma.cms_performancesUpdateInput, Prisma.cms_performancesUncheckedUpdateInput>
  /**
   * Choose, which cms_performances to update.
   */
  where: Prisma.cms_performancesWhereUniqueInput
}

/**
 * cms_performances updateMany
 */
export type cms_performancesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update cms_performances.
   */
  data: Prisma.XOR<Prisma.cms_performancesUpdateManyMutationInput, Prisma.cms_performancesUncheckedUpdateManyInput>
  /**
   * Filter which cms_performances to update
   */
  where?: Prisma.cms_performancesWhereInput
  /**
   * Limit how many cms_performances to update.
   */
  limit?: number
}

/**
 * cms_performances updateManyAndReturn
 */
export type cms_performancesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the cms_performances
   */
  select?: Prisma.cms_performancesSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the cms_performances
   */
  omit?: Prisma.cms_performancesOmit<ExtArgs> | null
  /**
   * The data used to update cms_performances.
   */
  data: Prisma.XOR<Prisma.cms_performancesUpdateManyMutationInput, Prisma.cms_performancesUncheckedUpdateManyInput>
  /**
   * Filter which cms_performances to update
   */
  where?: Prisma.cms_performancesWhereInput
  /**
   * Limit how many cms_performances to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.cms_performancesIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * cms_performances upsert
 */
export type cms_performancesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the cms_performances
   */
  select?: Prisma.cms_performancesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the cms_performances
   */
  omit?: Prisma.cms_performancesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.cms_performancesInclude<ExtArgs> | null
  /**
   * The filter to search for the cms_performances to update in case it exists.
   */
  where: Prisma.cms_performancesWhereUniqueInput
  /**
   * In case the cms_performances found by the `where` argument doesn't exist, create a new cms_performances with this data.
   */
  create: Prisma.XOR<Prisma.cms_performancesCreateInput, Prisma.cms_performancesUncheckedCreateInput>
  /**
   * In case the cms_performances was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.cms_performancesUpdateInput, Prisma.cms_performancesUncheckedUpdateInput>
}

/**
 * cms_performances delete
 */
export type cms_performancesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the cms_performances
   */
  select?: Prisma.cms_performancesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the cms_performances
   */
  omit?: Prisma.cms_performancesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.cms_performancesInclude<ExtArgs> | null
  /**
   * Filter which cms_performances to delete.
   */
  where: Prisma.cms_performancesWhereUniqueInput
}

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

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