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

export type AggregateStudent_schedule_patterns = {
  _count: Student_schedule_patternsCountAggregateOutputType | null
  _avg: Student_schedule_patternsAvgAggregateOutputType | null
  _sum: Student_schedule_patternsSumAggregateOutputType | null
  _min: Student_schedule_patternsMinAggregateOutputType | null
  _max: Student_schedule_patternsMaxAggregateOutputType | null
}

export type Student_schedule_patternsAvgAggregateOutputType = {
  id: number | null
  schedule_id: number | null
  weekday: number | null
}

export type Student_schedule_patternsSumAggregateOutputType = {
  id: number | null
  schedule_id: number | null
  weekday: number | null
}

export type Student_schedule_patternsMinAggregateOutputType = {
  id: number | null
  schedule_id: number | null
  weekday: number | null
  start_time: string | null
  end_time: string | null
}

export type Student_schedule_patternsMaxAggregateOutputType = {
  id: number | null
  schedule_id: number | null
  weekday: number | null
  start_time: string | null
  end_time: string | null
}

export type Student_schedule_patternsCountAggregateOutputType = {
  id: number
  schedule_id: number
  weekday: number
  start_time: number
  end_time: number
  _all: number
}


export type Student_schedule_patternsAvgAggregateInputType = {
  id?: true
  schedule_id?: true
  weekday?: true
}

export type Student_schedule_patternsSumAggregateInputType = {
  id?: true
  schedule_id?: true
  weekday?: true
}

export type Student_schedule_patternsMinAggregateInputType = {
  id?: true
  schedule_id?: true
  weekday?: true
  start_time?: true
  end_time?: true
}

export type Student_schedule_patternsMaxAggregateInputType = {
  id?: true
  schedule_id?: true
  weekday?: true
  start_time?: true
  end_time?: true
}

export type Student_schedule_patternsCountAggregateInputType = {
  id?: true
  schedule_id?: true
  weekday?: true
  start_time?: true
  end_time?: true
  _all?: true
}

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

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




export type student_schedule_patternsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.student_schedule_patternsWhereInput
  orderBy?: Prisma.student_schedule_patternsOrderByWithAggregationInput | Prisma.student_schedule_patternsOrderByWithAggregationInput[]
  by: Prisma.Student_schedule_patternsScalarFieldEnum[] | Prisma.Student_schedule_patternsScalarFieldEnum
  having?: Prisma.student_schedule_patternsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Student_schedule_patternsCountAggregateInputType | true
  _avg?: Student_schedule_patternsAvgAggregateInputType
  _sum?: Student_schedule_patternsSumAggregateInputType
  _min?: Student_schedule_patternsMinAggregateInputType
  _max?: Student_schedule_patternsMaxAggregateInputType
}

export type Student_schedule_patternsGroupByOutputType = {
  id: number
  schedule_id: number
  weekday: number
  start_time: string
  end_time: string
  _count: Student_schedule_patternsCountAggregateOutputType | null
  _avg: Student_schedule_patternsAvgAggregateOutputType | null
  _sum: Student_schedule_patternsSumAggregateOutputType | null
  _min: Student_schedule_patternsMinAggregateOutputType | null
  _max: Student_schedule_patternsMaxAggregateOutputType | null
}

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



export type student_schedule_patternsWhereInput = {
  AND?: Prisma.student_schedule_patternsWhereInput | Prisma.student_schedule_patternsWhereInput[]
  OR?: Prisma.student_schedule_patternsWhereInput[]
  NOT?: Prisma.student_schedule_patternsWhereInput | Prisma.student_schedule_patternsWhereInput[]
  id?: Prisma.IntFilter<"student_schedule_patterns"> | number
  schedule_id?: Prisma.IntFilter<"student_schedule_patterns"> | number
  weekday?: Prisma.IntFilter<"student_schedule_patterns"> | number
  start_time?: Prisma.StringFilter<"student_schedule_patterns"> | string
  end_time?: Prisma.StringFilter<"student_schedule_patterns"> | string
  student_schedules?: Prisma.XOR<Prisma.Student_schedulesScalarRelationFilter, Prisma.student_schedulesWhereInput>
}

export type student_schedule_patternsOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  schedule_id?: Prisma.SortOrder
  weekday?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
  student_schedules?: Prisma.student_schedulesOrderByWithRelationInput
}

export type student_schedule_patternsWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.student_schedule_patternsWhereInput | Prisma.student_schedule_patternsWhereInput[]
  OR?: Prisma.student_schedule_patternsWhereInput[]
  NOT?: Prisma.student_schedule_patternsWhereInput | Prisma.student_schedule_patternsWhereInput[]
  schedule_id?: Prisma.IntFilter<"student_schedule_patterns"> | number
  weekday?: Prisma.IntFilter<"student_schedule_patterns"> | number
  start_time?: Prisma.StringFilter<"student_schedule_patterns"> | string
  end_time?: Prisma.StringFilter<"student_schedule_patterns"> | string
  student_schedules?: Prisma.XOR<Prisma.Student_schedulesScalarRelationFilter, Prisma.student_schedulesWhereInput>
}, "id">

export type student_schedule_patternsOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  schedule_id?: Prisma.SortOrder
  weekday?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
  _count?: Prisma.student_schedule_patternsCountOrderByAggregateInput
  _avg?: Prisma.student_schedule_patternsAvgOrderByAggregateInput
  _max?: Prisma.student_schedule_patternsMaxOrderByAggregateInput
  _min?: Prisma.student_schedule_patternsMinOrderByAggregateInput
  _sum?: Prisma.student_schedule_patternsSumOrderByAggregateInput
}

export type student_schedule_patternsScalarWhereWithAggregatesInput = {
  AND?: Prisma.student_schedule_patternsScalarWhereWithAggregatesInput | Prisma.student_schedule_patternsScalarWhereWithAggregatesInput[]
  OR?: Prisma.student_schedule_patternsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.student_schedule_patternsScalarWhereWithAggregatesInput | Prisma.student_schedule_patternsScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"student_schedule_patterns"> | number
  schedule_id?: Prisma.IntWithAggregatesFilter<"student_schedule_patterns"> | number
  weekday?: Prisma.IntWithAggregatesFilter<"student_schedule_patterns"> | number
  start_time?: Prisma.StringWithAggregatesFilter<"student_schedule_patterns"> | string
  end_time?: Prisma.StringWithAggregatesFilter<"student_schedule_patterns"> | string
}

export type student_schedule_patternsCreateInput = {
  weekday: number
  start_time: string
  end_time: string
  student_schedules: Prisma.student_schedulesCreateNestedOneWithoutStudent_schedule_patternsInput
}

export type student_schedule_patternsUncheckedCreateInput = {
  id?: number
  schedule_id: number
  weekday: number
  start_time: string
  end_time: string
}

export type student_schedule_patternsUpdateInput = {
  weekday?: Prisma.IntFieldUpdateOperationsInput | number
  start_time?: Prisma.StringFieldUpdateOperationsInput | string
  end_time?: Prisma.StringFieldUpdateOperationsInput | string
  student_schedules?: Prisma.student_schedulesUpdateOneRequiredWithoutStudent_schedule_patternsNestedInput
}

export type student_schedule_patternsUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  schedule_id?: Prisma.IntFieldUpdateOperationsInput | number
  weekday?: Prisma.IntFieldUpdateOperationsInput | number
  start_time?: Prisma.StringFieldUpdateOperationsInput | string
  end_time?: Prisma.StringFieldUpdateOperationsInput | string
}

export type student_schedule_patternsCreateManyInput = {
  id?: number
  schedule_id: number
  weekday: number
  start_time: string
  end_time: string
}

export type student_schedule_patternsUpdateManyMutationInput = {
  weekday?: Prisma.IntFieldUpdateOperationsInput | number
  start_time?: Prisma.StringFieldUpdateOperationsInput | string
  end_time?: Prisma.StringFieldUpdateOperationsInput | string
}

export type student_schedule_patternsUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  schedule_id?: Prisma.IntFieldUpdateOperationsInput | number
  weekday?: Prisma.IntFieldUpdateOperationsInput | number
  start_time?: Prisma.StringFieldUpdateOperationsInput | string
  end_time?: Prisma.StringFieldUpdateOperationsInput | string
}

export type Student_schedule_patternsListRelationFilter = {
  every?: Prisma.student_schedule_patternsWhereInput
  some?: Prisma.student_schedule_patternsWhereInput
  none?: Prisma.student_schedule_patternsWhereInput
}

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

export type student_schedule_patternsCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  schedule_id?: Prisma.SortOrder
  weekday?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
}

export type student_schedule_patternsAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  schedule_id?: Prisma.SortOrder
  weekday?: Prisma.SortOrder
}

export type student_schedule_patternsMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  schedule_id?: Prisma.SortOrder
  weekday?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
}

export type student_schedule_patternsMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  schedule_id?: Prisma.SortOrder
  weekday?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
}

export type student_schedule_patternsSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  schedule_id?: Prisma.SortOrder
  weekday?: Prisma.SortOrder
}

export type student_schedule_patternsCreateNestedManyWithoutStudent_schedulesInput = {
  create?: Prisma.XOR<Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput, Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput> | Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput[] | Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput[]
  connectOrCreate?: Prisma.student_schedule_patternsCreateOrConnectWithoutStudent_schedulesInput | Prisma.student_schedule_patternsCreateOrConnectWithoutStudent_schedulesInput[]
  createMany?: Prisma.student_schedule_patternsCreateManyStudent_schedulesInputEnvelope
  connect?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
}

export type student_schedule_patternsUncheckedCreateNestedManyWithoutStudent_schedulesInput = {
  create?: Prisma.XOR<Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput, Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput> | Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput[] | Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput[]
  connectOrCreate?: Prisma.student_schedule_patternsCreateOrConnectWithoutStudent_schedulesInput | Prisma.student_schedule_patternsCreateOrConnectWithoutStudent_schedulesInput[]
  createMany?: Prisma.student_schedule_patternsCreateManyStudent_schedulesInputEnvelope
  connect?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
}

export type student_schedule_patternsUpdateManyWithoutStudent_schedulesNestedInput = {
  create?: Prisma.XOR<Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput, Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput> | Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput[] | Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput[]
  connectOrCreate?: Prisma.student_schedule_patternsCreateOrConnectWithoutStudent_schedulesInput | Prisma.student_schedule_patternsCreateOrConnectWithoutStudent_schedulesInput[]
  upsert?: Prisma.student_schedule_patternsUpsertWithWhereUniqueWithoutStudent_schedulesInput | Prisma.student_schedule_patternsUpsertWithWhereUniqueWithoutStudent_schedulesInput[]
  createMany?: Prisma.student_schedule_patternsCreateManyStudent_schedulesInputEnvelope
  set?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
  disconnect?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
  delete?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
  connect?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
  update?: Prisma.student_schedule_patternsUpdateWithWhereUniqueWithoutStudent_schedulesInput | Prisma.student_schedule_patternsUpdateWithWhereUniqueWithoutStudent_schedulesInput[]
  updateMany?: Prisma.student_schedule_patternsUpdateManyWithWhereWithoutStudent_schedulesInput | Prisma.student_schedule_patternsUpdateManyWithWhereWithoutStudent_schedulesInput[]
  deleteMany?: Prisma.student_schedule_patternsScalarWhereInput | Prisma.student_schedule_patternsScalarWhereInput[]
}

export type student_schedule_patternsUncheckedUpdateManyWithoutStudent_schedulesNestedInput = {
  create?: Prisma.XOR<Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput, Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput> | Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput[] | Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput[]
  connectOrCreate?: Prisma.student_schedule_patternsCreateOrConnectWithoutStudent_schedulesInput | Prisma.student_schedule_patternsCreateOrConnectWithoutStudent_schedulesInput[]
  upsert?: Prisma.student_schedule_patternsUpsertWithWhereUniqueWithoutStudent_schedulesInput | Prisma.student_schedule_patternsUpsertWithWhereUniqueWithoutStudent_schedulesInput[]
  createMany?: Prisma.student_schedule_patternsCreateManyStudent_schedulesInputEnvelope
  set?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
  disconnect?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
  delete?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
  connect?: Prisma.student_schedule_patternsWhereUniqueInput | Prisma.student_schedule_patternsWhereUniqueInput[]
  update?: Prisma.student_schedule_patternsUpdateWithWhereUniqueWithoutStudent_schedulesInput | Prisma.student_schedule_patternsUpdateWithWhereUniqueWithoutStudent_schedulesInput[]
  updateMany?: Prisma.student_schedule_patternsUpdateManyWithWhereWithoutStudent_schedulesInput | Prisma.student_schedule_patternsUpdateManyWithWhereWithoutStudent_schedulesInput[]
  deleteMany?: Prisma.student_schedule_patternsScalarWhereInput | Prisma.student_schedule_patternsScalarWhereInput[]
}

export type student_schedule_patternsCreateWithoutStudent_schedulesInput = {
  weekday: number
  start_time: string
  end_time: string
}

export type student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput = {
  id?: number
  weekday: number
  start_time: string
  end_time: string
}

export type student_schedule_patternsCreateOrConnectWithoutStudent_schedulesInput = {
  where: Prisma.student_schedule_patternsWhereUniqueInput
  create: Prisma.XOR<Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput, Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput>
}

export type student_schedule_patternsCreateManyStudent_schedulesInputEnvelope = {
  data: Prisma.student_schedule_patternsCreateManyStudent_schedulesInput | Prisma.student_schedule_patternsCreateManyStudent_schedulesInput[]
  skipDuplicates?: boolean
}

export type student_schedule_patternsUpsertWithWhereUniqueWithoutStudent_schedulesInput = {
  where: Prisma.student_schedule_patternsWhereUniqueInput
  update: Prisma.XOR<Prisma.student_schedule_patternsUpdateWithoutStudent_schedulesInput, Prisma.student_schedule_patternsUncheckedUpdateWithoutStudent_schedulesInput>
  create: Prisma.XOR<Prisma.student_schedule_patternsCreateWithoutStudent_schedulesInput, Prisma.student_schedule_patternsUncheckedCreateWithoutStudent_schedulesInput>
}

export type student_schedule_patternsUpdateWithWhereUniqueWithoutStudent_schedulesInput = {
  where: Prisma.student_schedule_patternsWhereUniqueInput
  data: Prisma.XOR<Prisma.student_schedule_patternsUpdateWithoutStudent_schedulesInput, Prisma.student_schedule_patternsUncheckedUpdateWithoutStudent_schedulesInput>
}

export type student_schedule_patternsUpdateManyWithWhereWithoutStudent_schedulesInput = {
  where: Prisma.student_schedule_patternsScalarWhereInput
  data: Prisma.XOR<Prisma.student_schedule_patternsUpdateManyMutationInput, Prisma.student_schedule_patternsUncheckedUpdateManyWithoutStudent_schedulesInput>
}

export type student_schedule_patternsScalarWhereInput = {
  AND?: Prisma.student_schedule_patternsScalarWhereInput | Prisma.student_schedule_patternsScalarWhereInput[]
  OR?: Prisma.student_schedule_patternsScalarWhereInput[]
  NOT?: Prisma.student_schedule_patternsScalarWhereInput | Prisma.student_schedule_patternsScalarWhereInput[]
  id?: Prisma.IntFilter<"student_schedule_patterns"> | number
  schedule_id?: Prisma.IntFilter<"student_schedule_patterns"> | number
  weekday?: Prisma.IntFilter<"student_schedule_patterns"> | number
  start_time?: Prisma.StringFilter<"student_schedule_patterns"> | string
  end_time?: Prisma.StringFilter<"student_schedule_patterns"> | string
}

export type student_schedule_patternsCreateManyStudent_schedulesInput = {
  id?: number
  weekday: number
  start_time: string
  end_time: string
}

export type student_schedule_patternsUpdateWithoutStudent_schedulesInput = {
  weekday?: Prisma.IntFieldUpdateOperationsInput | number
  start_time?: Prisma.StringFieldUpdateOperationsInput | string
  end_time?: Prisma.StringFieldUpdateOperationsInput | string
}

export type student_schedule_patternsUncheckedUpdateWithoutStudent_schedulesInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  weekday?: Prisma.IntFieldUpdateOperationsInput | number
  start_time?: Prisma.StringFieldUpdateOperationsInput | string
  end_time?: Prisma.StringFieldUpdateOperationsInput | string
}

export type student_schedule_patternsUncheckedUpdateManyWithoutStudent_schedulesInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  weekday?: Prisma.IntFieldUpdateOperationsInput | number
  start_time?: Prisma.StringFieldUpdateOperationsInput | string
  end_time?: Prisma.StringFieldUpdateOperationsInput | string
}



export type student_schedule_patternsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  schedule_id?: boolean
  weekday?: boolean
  start_time?: boolean
  end_time?: boolean
  student_schedules?: boolean | Prisma.student_schedulesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["student_schedule_patterns"]>

export type student_schedule_patternsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  schedule_id?: boolean
  weekday?: boolean
  start_time?: boolean
  end_time?: boolean
  student_schedules?: boolean | Prisma.student_schedulesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["student_schedule_patterns"]>

export type student_schedule_patternsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  schedule_id?: boolean
  weekday?: boolean
  start_time?: boolean
  end_time?: boolean
  student_schedules?: boolean | Prisma.student_schedulesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["student_schedule_patterns"]>

export type student_schedule_patternsSelectScalar = {
  id?: boolean
  schedule_id?: boolean
  weekday?: boolean
  start_time?: boolean
  end_time?: boolean
}

export type student_schedule_patternsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "schedule_id" | "weekday" | "start_time" | "end_time", ExtArgs["result"]["student_schedule_patterns"]>
export type student_schedule_patternsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  student_schedules?: boolean | Prisma.student_schedulesDefaultArgs<ExtArgs>
}
export type student_schedule_patternsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  student_schedules?: boolean | Prisma.student_schedulesDefaultArgs<ExtArgs>
}
export type student_schedule_patternsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  student_schedules?: boolean | Prisma.student_schedulesDefaultArgs<ExtArgs>
}

export type $student_schedule_patternsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "student_schedule_patterns"
  objects: {
    student_schedules: Prisma.$student_schedulesPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    schedule_id: number
    weekday: number
    start_time: string
    end_time: string
  }, ExtArgs["result"]["student_schedule_patterns"]>
  composites: {}
}

export type student_schedule_patternsGetPayload<S extends boolean | null | undefined | student_schedule_patternsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$student_schedule_patternsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for student_schedule_patterns.
 * 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__student_schedule_patternsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  student_schedules<T extends Prisma.student_schedulesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.student_schedulesDefaultArgs<ExtArgs>>): Prisma.Prisma__student_schedulesClient<runtime.Types.Result.GetResult<Prisma.$student_schedulesPayload<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 student_schedule_patterns model
 */
export interface student_schedule_patternsFieldRefs {
  readonly id: Prisma.FieldRef<"student_schedule_patterns", 'Int'>
  readonly schedule_id: Prisma.FieldRef<"student_schedule_patterns", 'Int'>
  readonly weekday: Prisma.FieldRef<"student_schedule_patterns", 'Int'>
  readonly start_time: Prisma.FieldRef<"student_schedule_patterns", 'String'>
  readonly end_time: Prisma.FieldRef<"student_schedule_patterns", 'String'>
}
    

// Custom InputTypes
/**
 * student_schedule_patterns findUnique
 */
export type student_schedule_patternsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedule_patterns
   */
  select?: Prisma.student_schedule_patternsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedule_patterns
   */
  omit?: Prisma.student_schedule_patternsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedule_patternsInclude<ExtArgs> | null
  /**
   * Filter, which student_schedule_patterns to fetch.
   */
  where: Prisma.student_schedule_patternsWhereUniqueInput
}

/**
 * student_schedule_patterns findUniqueOrThrow
 */
export type student_schedule_patternsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedule_patterns
   */
  select?: Prisma.student_schedule_patternsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedule_patterns
   */
  omit?: Prisma.student_schedule_patternsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedule_patternsInclude<ExtArgs> | null
  /**
   * Filter, which student_schedule_patterns to fetch.
   */
  where: Prisma.student_schedule_patternsWhereUniqueInput
}

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

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

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

/**
 * student_schedule_patterns create
 */
export type student_schedule_patternsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedule_patterns
   */
  select?: Prisma.student_schedule_patternsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedule_patterns
   */
  omit?: Prisma.student_schedule_patternsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedule_patternsInclude<ExtArgs> | null
  /**
   * The data needed to create a student_schedule_patterns.
   */
  data: Prisma.XOR<Prisma.student_schedule_patternsCreateInput, Prisma.student_schedule_patternsUncheckedCreateInput>
}

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

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

/**
 * student_schedule_patterns update
 */
export type student_schedule_patternsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedule_patterns
   */
  select?: Prisma.student_schedule_patternsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedule_patterns
   */
  omit?: Prisma.student_schedule_patternsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedule_patternsInclude<ExtArgs> | null
  /**
   * The data needed to update a student_schedule_patterns.
   */
  data: Prisma.XOR<Prisma.student_schedule_patternsUpdateInput, Prisma.student_schedule_patternsUncheckedUpdateInput>
  /**
   * Choose, which student_schedule_patterns to update.
   */
  where: Prisma.student_schedule_patternsWhereUniqueInput
}

/**
 * student_schedule_patterns updateMany
 */
export type student_schedule_patternsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update student_schedule_patterns.
   */
  data: Prisma.XOR<Prisma.student_schedule_patternsUpdateManyMutationInput, Prisma.student_schedule_patternsUncheckedUpdateManyInput>
  /**
   * Filter which student_schedule_patterns to update
   */
  where?: Prisma.student_schedule_patternsWhereInput
  /**
   * Limit how many student_schedule_patterns to update.
   */
  limit?: number
}

/**
 * student_schedule_patterns updateManyAndReturn
 */
export type student_schedule_patternsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedule_patterns
   */
  select?: Prisma.student_schedule_patternsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedule_patterns
   */
  omit?: Prisma.student_schedule_patternsOmit<ExtArgs> | null
  /**
   * The data used to update student_schedule_patterns.
   */
  data: Prisma.XOR<Prisma.student_schedule_patternsUpdateManyMutationInput, Prisma.student_schedule_patternsUncheckedUpdateManyInput>
  /**
   * Filter which student_schedule_patterns to update
   */
  where?: Prisma.student_schedule_patternsWhereInput
  /**
   * Limit how many student_schedule_patterns to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedule_patternsIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * student_schedule_patterns upsert
 */
export type student_schedule_patternsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedule_patterns
   */
  select?: Prisma.student_schedule_patternsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedule_patterns
   */
  omit?: Prisma.student_schedule_patternsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedule_patternsInclude<ExtArgs> | null
  /**
   * The filter to search for the student_schedule_patterns to update in case it exists.
   */
  where: Prisma.student_schedule_patternsWhereUniqueInput
  /**
   * In case the student_schedule_patterns found by the `where` argument doesn't exist, create a new student_schedule_patterns with this data.
   */
  create: Prisma.XOR<Prisma.student_schedule_patternsCreateInput, Prisma.student_schedule_patternsUncheckedCreateInput>
  /**
   * In case the student_schedule_patterns was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.student_schedule_patternsUpdateInput, Prisma.student_schedule_patternsUncheckedUpdateInput>
}

/**
 * student_schedule_patterns delete
 */
export type student_schedule_patternsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedule_patterns
   */
  select?: Prisma.student_schedule_patternsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedule_patterns
   */
  omit?: Prisma.student_schedule_patternsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedule_patternsInclude<ExtArgs> | null
  /**
   * Filter which student_schedule_patterns to delete.
   */
  where: Prisma.student_schedule_patternsWhereUniqueInput
}

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

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