
/* !!! 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_schedules` 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_schedules
 * 
 */
export type student_schedulesModel = runtime.Types.Result.DefaultSelection<Prisma.$student_schedulesPayload>

export type AggregateStudent_schedules = {
  _count: Student_schedulesCountAggregateOutputType | null
  _avg: Student_schedulesAvgAggregateOutputType | null
  _sum: Student_schedulesSumAggregateOutputType | null
  _min: Student_schedulesMinAggregateOutputType | null
  _max: Student_schedulesMaxAggregateOutputType | null
}

export type Student_schedulesAvgAggregateOutputType = {
  id: number | null
  student_id: number | null
}

export type Student_schedulesSumAggregateOutputType = {
  id: number | null
  student_id: number | null
}

export type Student_schedulesMinAggregateOutputType = {
  id: number | null
  student_id: number | null
  start_date: Date | null
  end_date: Date | null
  status: string | null
  created_at: Date | null
  updated_at: Date | null
}

export type Student_schedulesMaxAggregateOutputType = {
  id: number | null
  student_id: number | null
  start_date: Date | null
  end_date: Date | null
  status: string | null
  created_at: Date | null
  updated_at: Date | null
}

export type Student_schedulesCountAggregateOutputType = {
  id: number
  student_id: number
  start_date: number
  end_date: number
  status: number
  created_at: number
  updated_at: number
  _all: number
}


export type Student_schedulesAvgAggregateInputType = {
  id?: true
  student_id?: true
}

export type Student_schedulesSumAggregateInputType = {
  id?: true
  student_id?: true
}

export type Student_schedulesMinAggregateInputType = {
  id?: true
  student_id?: true
  start_date?: true
  end_date?: true
  status?: true
  created_at?: true
  updated_at?: true
}

export type Student_schedulesMaxAggregateInputType = {
  id?: true
  student_id?: true
  start_date?: true
  end_date?: true
  status?: true
  created_at?: true
  updated_at?: true
}

export type Student_schedulesCountAggregateInputType = {
  id?: true
  student_id?: true
  start_date?: true
  end_date?: true
  status?: true
  created_at?: true
  updated_at?: true
  _all?: true
}

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

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




export type student_schedulesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.student_schedulesWhereInput
  orderBy?: Prisma.student_schedulesOrderByWithAggregationInput | Prisma.student_schedulesOrderByWithAggregationInput[]
  by: Prisma.Student_schedulesScalarFieldEnum[] | Prisma.Student_schedulesScalarFieldEnum
  having?: Prisma.student_schedulesScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Student_schedulesCountAggregateInputType | true
  _avg?: Student_schedulesAvgAggregateInputType
  _sum?: Student_schedulesSumAggregateInputType
  _min?: Student_schedulesMinAggregateInputType
  _max?: Student_schedulesMaxAggregateInputType
}

export type Student_schedulesGroupByOutputType = {
  id: number
  student_id: number
  start_date: Date
  end_date: Date
  status: string | null
  created_at: Date | null
  updated_at: Date | null
  _count: Student_schedulesCountAggregateOutputType | null
  _avg: Student_schedulesAvgAggregateOutputType | null
  _sum: Student_schedulesSumAggregateOutputType | null
  _min: Student_schedulesMinAggregateOutputType | null
  _max: Student_schedulesMaxAggregateOutputType | null
}

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



export type student_schedulesWhereInput = {
  AND?: Prisma.student_schedulesWhereInput | Prisma.student_schedulesWhereInput[]
  OR?: Prisma.student_schedulesWhereInput[]
  NOT?: Prisma.student_schedulesWhereInput | Prisma.student_schedulesWhereInput[]
  id?: Prisma.IntFilter<"student_schedules"> | number
  student_id?: Prisma.IntFilter<"student_schedules"> | number
  start_date?: Prisma.DateTimeFilter<"student_schedules"> | Date | string
  end_date?: Prisma.DateTimeFilter<"student_schedules"> | Date | string
  status?: Prisma.StringNullableFilter<"student_schedules"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"student_schedules"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"student_schedules"> | Date | string | null
  schedule_bookings?: Prisma.Schedule_bookingsListRelationFilter
  student_schedule_patterns?: Prisma.Student_schedule_patternsListRelationFilter
  students?: Prisma.XOR<Prisma.StudentsScalarRelationFilter, Prisma.studentsWhereInput>
}

export type student_schedulesOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  student_id?: Prisma.SortOrder
  start_date?: Prisma.SortOrder
  end_date?: Prisma.SortOrder
  status?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  schedule_bookings?: Prisma.schedule_bookingsOrderByRelationAggregateInput
  student_schedule_patterns?: Prisma.student_schedule_patternsOrderByRelationAggregateInput
  students?: Prisma.studentsOrderByWithRelationInput
}

export type student_schedulesWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.student_schedulesWhereInput | Prisma.student_schedulesWhereInput[]
  OR?: Prisma.student_schedulesWhereInput[]
  NOT?: Prisma.student_schedulesWhereInput | Prisma.student_schedulesWhereInput[]
  student_id?: Prisma.IntFilter<"student_schedules"> | number
  start_date?: Prisma.DateTimeFilter<"student_schedules"> | Date | string
  end_date?: Prisma.DateTimeFilter<"student_schedules"> | Date | string
  status?: Prisma.StringNullableFilter<"student_schedules"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"student_schedules"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"student_schedules"> | Date | string | null
  schedule_bookings?: Prisma.Schedule_bookingsListRelationFilter
  student_schedule_patterns?: Prisma.Student_schedule_patternsListRelationFilter
  students?: Prisma.XOR<Prisma.StudentsScalarRelationFilter, Prisma.studentsWhereInput>
}, "id">

export type student_schedulesOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  student_id?: Prisma.SortOrder
  start_date?: Prisma.SortOrder
  end_date?: Prisma.SortOrder
  status?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.student_schedulesCountOrderByAggregateInput
  _avg?: Prisma.student_schedulesAvgOrderByAggregateInput
  _max?: Prisma.student_schedulesMaxOrderByAggregateInput
  _min?: Prisma.student_schedulesMinOrderByAggregateInput
  _sum?: Prisma.student_schedulesSumOrderByAggregateInput
}

export type student_schedulesScalarWhereWithAggregatesInput = {
  AND?: Prisma.student_schedulesScalarWhereWithAggregatesInput | Prisma.student_schedulesScalarWhereWithAggregatesInput[]
  OR?: Prisma.student_schedulesScalarWhereWithAggregatesInput[]
  NOT?: Prisma.student_schedulesScalarWhereWithAggregatesInput | Prisma.student_schedulesScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"student_schedules"> | number
  student_id?: Prisma.IntWithAggregatesFilter<"student_schedules"> | number
  start_date?: Prisma.DateTimeWithAggregatesFilter<"student_schedules"> | Date | string
  end_date?: Prisma.DateTimeWithAggregatesFilter<"student_schedules"> | Date | string
  status?: Prisma.StringNullableWithAggregatesFilter<"student_schedules"> | string | null
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"student_schedules"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"student_schedules"> | Date | string | null
}

export type student_schedulesCreateInput = {
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsCreateNestedManyWithoutStudent_schedulesInput
  student_schedule_patterns?: Prisma.student_schedule_patternsCreateNestedManyWithoutStudent_schedulesInput
  students: Prisma.studentsCreateNestedOneWithoutStudent_schedulesInput
}

export type student_schedulesUncheckedCreateInput = {
  id?: number
  student_id: number
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsUncheckedCreateNestedManyWithoutStudent_schedulesInput
  student_schedule_patterns?: Prisma.student_schedule_patternsUncheckedCreateNestedManyWithoutStudent_schedulesInput
}

export type student_schedulesUpdateInput = {
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsUpdateManyWithoutStudent_schedulesNestedInput
  student_schedule_patterns?: Prisma.student_schedule_patternsUpdateManyWithoutStudent_schedulesNestedInput
  students?: Prisma.studentsUpdateOneRequiredWithoutStudent_schedulesNestedInput
}

export type student_schedulesUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  student_id?: Prisma.IntFieldUpdateOperationsInput | number
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsUncheckedUpdateManyWithoutStudent_schedulesNestedInput
  student_schedule_patterns?: Prisma.student_schedule_patternsUncheckedUpdateManyWithoutStudent_schedulesNestedInput
}

export type student_schedulesCreateManyInput = {
  id?: number
  student_id: number
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type student_schedulesUpdateManyMutationInput = {
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type student_schedulesUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  student_id?: Prisma.IntFieldUpdateOperationsInput | number
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type Student_schedulesListRelationFilter = {
  every?: Prisma.student_schedulesWhereInput
  some?: Prisma.student_schedulesWhereInput
  none?: Prisma.student_schedulesWhereInput
}

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

export type student_schedulesCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  student_id?: Prisma.SortOrder
  start_date?: Prisma.SortOrder
  end_date?: Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type student_schedulesAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  student_id?: Prisma.SortOrder
}

export type student_schedulesMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  student_id?: Prisma.SortOrder
  start_date?: Prisma.SortOrder
  end_date?: Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type student_schedulesMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  student_id?: Prisma.SortOrder
  start_date?: Prisma.SortOrder
  end_date?: Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type student_schedulesSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  student_id?: Prisma.SortOrder
}

export type Student_schedulesScalarRelationFilter = {
  is?: Prisma.student_schedulesWhereInput
  isNot?: Prisma.student_schedulesWhereInput
}

export type student_schedulesCreateNestedManyWithoutStudentsInput = {
  create?: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudentsInput, Prisma.student_schedulesUncheckedCreateWithoutStudentsInput> | Prisma.student_schedulesCreateWithoutStudentsInput[] | Prisma.student_schedulesUncheckedCreateWithoutStudentsInput[]
  connectOrCreate?: Prisma.student_schedulesCreateOrConnectWithoutStudentsInput | Prisma.student_schedulesCreateOrConnectWithoutStudentsInput[]
  createMany?: Prisma.student_schedulesCreateManyStudentsInputEnvelope
  connect?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
}

export type student_schedulesUncheckedCreateNestedManyWithoutStudentsInput = {
  create?: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudentsInput, Prisma.student_schedulesUncheckedCreateWithoutStudentsInput> | Prisma.student_schedulesCreateWithoutStudentsInput[] | Prisma.student_schedulesUncheckedCreateWithoutStudentsInput[]
  connectOrCreate?: Prisma.student_schedulesCreateOrConnectWithoutStudentsInput | Prisma.student_schedulesCreateOrConnectWithoutStudentsInput[]
  createMany?: Prisma.student_schedulesCreateManyStudentsInputEnvelope
  connect?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
}

export type student_schedulesUpdateManyWithoutStudentsNestedInput = {
  create?: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudentsInput, Prisma.student_schedulesUncheckedCreateWithoutStudentsInput> | Prisma.student_schedulesCreateWithoutStudentsInput[] | Prisma.student_schedulesUncheckedCreateWithoutStudentsInput[]
  connectOrCreate?: Prisma.student_schedulesCreateOrConnectWithoutStudentsInput | Prisma.student_schedulesCreateOrConnectWithoutStudentsInput[]
  upsert?: Prisma.student_schedulesUpsertWithWhereUniqueWithoutStudentsInput | Prisma.student_schedulesUpsertWithWhereUniqueWithoutStudentsInput[]
  createMany?: Prisma.student_schedulesCreateManyStudentsInputEnvelope
  set?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
  disconnect?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
  delete?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
  connect?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
  update?: Prisma.student_schedulesUpdateWithWhereUniqueWithoutStudentsInput | Prisma.student_schedulesUpdateWithWhereUniqueWithoutStudentsInput[]
  updateMany?: Prisma.student_schedulesUpdateManyWithWhereWithoutStudentsInput | Prisma.student_schedulesUpdateManyWithWhereWithoutStudentsInput[]
  deleteMany?: Prisma.student_schedulesScalarWhereInput | Prisma.student_schedulesScalarWhereInput[]
}

export type student_schedulesUncheckedUpdateManyWithoutStudentsNestedInput = {
  create?: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudentsInput, Prisma.student_schedulesUncheckedCreateWithoutStudentsInput> | Prisma.student_schedulesCreateWithoutStudentsInput[] | Prisma.student_schedulesUncheckedCreateWithoutStudentsInput[]
  connectOrCreate?: Prisma.student_schedulesCreateOrConnectWithoutStudentsInput | Prisma.student_schedulesCreateOrConnectWithoutStudentsInput[]
  upsert?: Prisma.student_schedulesUpsertWithWhereUniqueWithoutStudentsInput | Prisma.student_schedulesUpsertWithWhereUniqueWithoutStudentsInput[]
  createMany?: Prisma.student_schedulesCreateManyStudentsInputEnvelope
  set?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
  disconnect?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
  delete?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
  connect?: Prisma.student_schedulesWhereUniqueInput | Prisma.student_schedulesWhereUniqueInput[]
  update?: Prisma.student_schedulesUpdateWithWhereUniqueWithoutStudentsInput | Prisma.student_schedulesUpdateWithWhereUniqueWithoutStudentsInput[]
  updateMany?: Prisma.student_schedulesUpdateManyWithWhereWithoutStudentsInput | Prisma.student_schedulesUpdateManyWithWhereWithoutStudentsInput[]
  deleteMany?: Prisma.student_schedulesScalarWhereInput | Prisma.student_schedulesScalarWhereInput[]
}

export type student_schedulesCreateNestedOneWithoutStudent_schedule_patternsInput = {
  create?: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudent_schedule_patternsInput, Prisma.student_schedulesUncheckedCreateWithoutStudent_schedule_patternsInput>
  connectOrCreate?: Prisma.student_schedulesCreateOrConnectWithoutStudent_schedule_patternsInput
  connect?: Prisma.student_schedulesWhereUniqueInput
}

export type student_schedulesUpdateOneRequiredWithoutStudent_schedule_patternsNestedInput = {
  create?: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudent_schedule_patternsInput, Prisma.student_schedulesUncheckedCreateWithoutStudent_schedule_patternsInput>
  connectOrCreate?: Prisma.student_schedulesCreateOrConnectWithoutStudent_schedule_patternsInput
  upsert?: Prisma.student_schedulesUpsertWithoutStudent_schedule_patternsInput
  connect?: Prisma.student_schedulesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.student_schedulesUpdateToOneWithWhereWithoutStudent_schedule_patternsInput, Prisma.student_schedulesUpdateWithoutStudent_schedule_patternsInput>, Prisma.student_schedulesUncheckedUpdateWithoutStudent_schedule_patternsInput>
}

export type student_schedulesCreateNestedOneWithoutSchedule_bookingsInput = {
  create?: Prisma.XOR<Prisma.student_schedulesCreateWithoutSchedule_bookingsInput, Prisma.student_schedulesUncheckedCreateWithoutSchedule_bookingsInput>
  connectOrCreate?: Prisma.student_schedulesCreateOrConnectWithoutSchedule_bookingsInput
  connect?: Prisma.student_schedulesWhereUniqueInput
}

export type student_schedulesUpdateOneRequiredWithoutSchedule_bookingsNestedInput = {
  create?: Prisma.XOR<Prisma.student_schedulesCreateWithoutSchedule_bookingsInput, Prisma.student_schedulesUncheckedCreateWithoutSchedule_bookingsInput>
  connectOrCreate?: Prisma.student_schedulesCreateOrConnectWithoutSchedule_bookingsInput
  upsert?: Prisma.student_schedulesUpsertWithoutSchedule_bookingsInput
  connect?: Prisma.student_schedulesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.student_schedulesUpdateToOneWithWhereWithoutSchedule_bookingsInput, Prisma.student_schedulesUpdateWithoutSchedule_bookingsInput>, Prisma.student_schedulesUncheckedUpdateWithoutSchedule_bookingsInput>
}

export type student_schedulesCreateWithoutStudentsInput = {
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsCreateNestedManyWithoutStudent_schedulesInput
  student_schedule_patterns?: Prisma.student_schedule_patternsCreateNestedManyWithoutStudent_schedulesInput
}

export type student_schedulesUncheckedCreateWithoutStudentsInput = {
  id?: number
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsUncheckedCreateNestedManyWithoutStudent_schedulesInput
  student_schedule_patterns?: Prisma.student_schedule_patternsUncheckedCreateNestedManyWithoutStudent_schedulesInput
}

export type student_schedulesCreateOrConnectWithoutStudentsInput = {
  where: Prisma.student_schedulesWhereUniqueInput
  create: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudentsInput, Prisma.student_schedulesUncheckedCreateWithoutStudentsInput>
}

export type student_schedulesCreateManyStudentsInputEnvelope = {
  data: Prisma.student_schedulesCreateManyStudentsInput | Prisma.student_schedulesCreateManyStudentsInput[]
  skipDuplicates?: boolean
}

export type student_schedulesUpsertWithWhereUniqueWithoutStudentsInput = {
  where: Prisma.student_schedulesWhereUniqueInput
  update: Prisma.XOR<Prisma.student_schedulesUpdateWithoutStudentsInput, Prisma.student_schedulesUncheckedUpdateWithoutStudentsInput>
  create: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudentsInput, Prisma.student_schedulesUncheckedCreateWithoutStudentsInput>
}

export type student_schedulesUpdateWithWhereUniqueWithoutStudentsInput = {
  where: Prisma.student_schedulesWhereUniqueInput
  data: Prisma.XOR<Prisma.student_schedulesUpdateWithoutStudentsInput, Prisma.student_schedulesUncheckedUpdateWithoutStudentsInput>
}

export type student_schedulesUpdateManyWithWhereWithoutStudentsInput = {
  where: Prisma.student_schedulesScalarWhereInput
  data: Prisma.XOR<Prisma.student_schedulesUpdateManyMutationInput, Prisma.student_schedulesUncheckedUpdateManyWithoutStudentsInput>
}

export type student_schedulesScalarWhereInput = {
  AND?: Prisma.student_schedulesScalarWhereInput | Prisma.student_schedulesScalarWhereInput[]
  OR?: Prisma.student_schedulesScalarWhereInput[]
  NOT?: Prisma.student_schedulesScalarWhereInput | Prisma.student_schedulesScalarWhereInput[]
  id?: Prisma.IntFilter<"student_schedules"> | number
  student_id?: Prisma.IntFilter<"student_schedules"> | number
  start_date?: Prisma.DateTimeFilter<"student_schedules"> | Date | string
  end_date?: Prisma.DateTimeFilter<"student_schedules"> | Date | string
  status?: Prisma.StringNullableFilter<"student_schedules"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"student_schedules"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"student_schedules"> | Date | string | null
}

export type student_schedulesCreateWithoutStudent_schedule_patternsInput = {
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsCreateNestedManyWithoutStudent_schedulesInput
  students: Prisma.studentsCreateNestedOneWithoutStudent_schedulesInput
}

export type student_schedulesUncheckedCreateWithoutStudent_schedule_patternsInput = {
  id?: number
  student_id: number
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsUncheckedCreateNestedManyWithoutStudent_schedulesInput
}

export type student_schedulesCreateOrConnectWithoutStudent_schedule_patternsInput = {
  where: Prisma.student_schedulesWhereUniqueInput
  create: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudent_schedule_patternsInput, Prisma.student_schedulesUncheckedCreateWithoutStudent_schedule_patternsInput>
}

export type student_schedulesUpsertWithoutStudent_schedule_patternsInput = {
  update: Prisma.XOR<Prisma.student_schedulesUpdateWithoutStudent_schedule_patternsInput, Prisma.student_schedulesUncheckedUpdateWithoutStudent_schedule_patternsInput>
  create: Prisma.XOR<Prisma.student_schedulesCreateWithoutStudent_schedule_patternsInput, Prisma.student_schedulesUncheckedCreateWithoutStudent_schedule_patternsInput>
  where?: Prisma.student_schedulesWhereInput
}

export type student_schedulesUpdateToOneWithWhereWithoutStudent_schedule_patternsInput = {
  where?: Prisma.student_schedulesWhereInput
  data: Prisma.XOR<Prisma.student_schedulesUpdateWithoutStudent_schedule_patternsInput, Prisma.student_schedulesUncheckedUpdateWithoutStudent_schedule_patternsInput>
}

export type student_schedulesUpdateWithoutStudent_schedule_patternsInput = {
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsUpdateManyWithoutStudent_schedulesNestedInput
  students?: Prisma.studentsUpdateOneRequiredWithoutStudent_schedulesNestedInput
}

export type student_schedulesUncheckedUpdateWithoutStudent_schedule_patternsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  student_id?: Prisma.IntFieldUpdateOperationsInput | number
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsUncheckedUpdateManyWithoutStudent_schedulesNestedInput
}

export type student_schedulesCreateWithoutSchedule_bookingsInput = {
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  student_schedule_patterns?: Prisma.student_schedule_patternsCreateNestedManyWithoutStudent_schedulesInput
  students: Prisma.studentsCreateNestedOneWithoutStudent_schedulesInput
}

export type student_schedulesUncheckedCreateWithoutSchedule_bookingsInput = {
  id?: number
  student_id: number
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  student_schedule_patterns?: Prisma.student_schedule_patternsUncheckedCreateNestedManyWithoutStudent_schedulesInput
}

export type student_schedulesCreateOrConnectWithoutSchedule_bookingsInput = {
  where: Prisma.student_schedulesWhereUniqueInput
  create: Prisma.XOR<Prisma.student_schedulesCreateWithoutSchedule_bookingsInput, Prisma.student_schedulesUncheckedCreateWithoutSchedule_bookingsInput>
}

export type student_schedulesUpsertWithoutSchedule_bookingsInput = {
  update: Prisma.XOR<Prisma.student_schedulesUpdateWithoutSchedule_bookingsInput, Prisma.student_schedulesUncheckedUpdateWithoutSchedule_bookingsInput>
  create: Prisma.XOR<Prisma.student_schedulesCreateWithoutSchedule_bookingsInput, Prisma.student_schedulesUncheckedCreateWithoutSchedule_bookingsInput>
  where?: Prisma.student_schedulesWhereInput
}

export type student_schedulesUpdateToOneWithWhereWithoutSchedule_bookingsInput = {
  where?: Prisma.student_schedulesWhereInput
  data: Prisma.XOR<Prisma.student_schedulesUpdateWithoutSchedule_bookingsInput, Prisma.student_schedulesUncheckedUpdateWithoutSchedule_bookingsInput>
}

export type student_schedulesUpdateWithoutSchedule_bookingsInput = {
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  student_schedule_patterns?: Prisma.student_schedule_patternsUpdateManyWithoutStudent_schedulesNestedInput
  students?: Prisma.studentsUpdateOneRequiredWithoutStudent_schedulesNestedInput
}

export type student_schedulesUncheckedUpdateWithoutSchedule_bookingsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  student_id?: Prisma.IntFieldUpdateOperationsInput | number
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  student_schedule_patterns?: Prisma.student_schedule_patternsUncheckedUpdateManyWithoutStudent_schedulesNestedInput
}

export type student_schedulesCreateManyStudentsInput = {
  id?: number
  start_date: Date | string
  end_date: Date | string
  status?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type student_schedulesUpdateWithoutStudentsInput = {
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsUpdateManyWithoutStudent_schedulesNestedInput
  student_schedule_patterns?: Prisma.student_schedule_patternsUpdateManyWithoutStudent_schedulesNestedInput
}

export type student_schedulesUncheckedUpdateWithoutStudentsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  schedule_bookings?: Prisma.schedule_bookingsUncheckedUpdateManyWithoutStudent_schedulesNestedInput
  student_schedule_patterns?: Prisma.student_schedule_patternsUncheckedUpdateManyWithoutStudent_schedulesNestedInput
}

export type student_schedulesUncheckedUpdateManyWithoutStudentsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}


/**
 * Count Type Student_schedulesCountOutputType
 */

export type Student_schedulesCountOutputType = {
  schedule_bookings: number
  student_schedule_patterns: number
}

export type Student_schedulesCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  schedule_bookings?: boolean | Student_schedulesCountOutputTypeCountSchedule_bookingsArgs
  student_schedule_patterns?: boolean | Student_schedulesCountOutputTypeCountStudent_schedule_patternsArgs
}

/**
 * Student_schedulesCountOutputType without action
 */
export type Student_schedulesCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Student_schedulesCountOutputType
   */
  select?: Prisma.Student_schedulesCountOutputTypeSelect<ExtArgs> | null
}

/**
 * Student_schedulesCountOutputType without action
 */
export type Student_schedulesCountOutputTypeCountSchedule_bookingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.schedule_bookingsWhereInput
}

/**
 * Student_schedulesCountOutputType without action
 */
export type Student_schedulesCountOutputTypeCountStudent_schedule_patternsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.student_schedule_patternsWhereInput
}


export type student_schedulesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  student_id?: boolean
  start_date?: boolean
  end_date?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
  schedule_bookings?: boolean | Prisma.student_schedules$schedule_bookingsArgs<ExtArgs>
  student_schedule_patterns?: boolean | Prisma.student_schedules$student_schedule_patternsArgs<ExtArgs>
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
  _count?: boolean | Prisma.Student_schedulesCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["student_schedules"]>

export type student_schedulesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  student_id?: boolean
  start_date?: boolean
  end_date?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["student_schedules"]>

export type student_schedulesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  student_id?: boolean
  start_date?: boolean
  end_date?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["student_schedules"]>

export type student_schedulesSelectScalar = {
  id?: boolean
  student_id?: boolean
  start_date?: boolean
  end_date?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
}

export type student_schedulesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "student_id" | "start_date" | "end_date" | "status" | "created_at" | "updated_at", ExtArgs["result"]["student_schedules"]>
export type student_schedulesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  schedule_bookings?: boolean | Prisma.student_schedules$schedule_bookingsArgs<ExtArgs>
  student_schedule_patterns?: boolean | Prisma.student_schedules$student_schedule_patternsArgs<ExtArgs>
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
  _count?: boolean | Prisma.Student_schedulesCountOutputTypeDefaultArgs<ExtArgs>
}
export type student_schedulesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}
export type student_schedulesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}

export type $student_schedulesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "student_schedules"
  objects: {
    schedule_bookings: Prisma.$schedule_bookingsPayload<ExtArgs>[]
    student_schedule_patterns: Prisma.$student_schedule_patternsPayload<ExtArgs>[]
    students: Prisma.$studentsPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    student_id: number
    start_date: Date
    end_date: Date
    status: string | null
    created_at: Date | null
    updated_at: Date | null
  }, ExtArgs["result"]["student_schedules"]>
  composites: {}
}

export type student_schedulesGetPayload<S extends boolean | null | undefined | student_schedulesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$student_schedulesPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for student_schedules.
 * 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_schedulesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  schedule_bookings<T extends Prisma.student_schedules$schedule_bookingsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.student_schedules$schedule_bookingsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$schedule_bookingsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  student_schedule_patterns<T extends Prisma.student_schedules$student_schedule_patternsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.student_schedules$student_schedule_patternsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$student_schedule_patternsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  students<T extends Prisma.studentsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.studentsDefaultArgs<ExtArgs>>): Prisma.Prisma__studentsClient<runtime.Types.Result.GetResult<Prisma.$studentsPayload<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_schedules model
 */
export interface student_schedulesFieldRefs {
  readonly id: Prisma.FieldRef<"student_schedules", 'Int'>
  readonly student_id: Prisma.FieldRef<"student_schedules", 'Int'>
  readonly start_date: Prisma.FieldRef<"student_schedules", 'DateTime'>
  readonly end_date: Prisma.FieldRef<"student_schedules", 'DateTime'>
  readonly status: Prisma.FieldRef<"student_schedules", 'String'>
  readonly created_at: Prisma.FieldRef<"student_schedules", 'DateTime'>
  readonly updated_at: Prisma.FieldRef<"student_schedules", 'DateTime'>
}
    

// Custom InputTypes
/**
 * student_schedules findUnique
 */
export type student_schedulesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedules
   */
  select?: Prisma.student_schedulesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedules
   */
  omit?: Prisma.student_schedulesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedulesInclude<ExtArgs> | null
  /**
   * Filter, which student_schedules to fetch.
   */
  where: Prisma.student_schedulesWhereUniqueInput
}

/**
 * student_schedules findUniqueOrThrow
 */
export type student_schedulesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedules
   */
  select?: Prisma.student_schedulesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedules
   */
  omit?: Prisma.student_schedulesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedulesInclude<ExtArgs> | null
  /**
   * Filter, which student_schedules to fetch.
   */
  where: Prisma.student_schedulesWhereUniqueInput
}

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

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

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

/**
 * student_schedules create
 */
export type student_schedulesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedules
   */
  select?: Prisma.student_schedulesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedules
   */
  omit?: Prisma.student_schedulesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedulesInclude<ExtArgs> | null
  /**
   * The data needed to create a student_schedules.
   */
  data: Prisma.XOR<Prisma.student_schedulesCreateInput, Prisma.student_schedulesUncheckedCreateInput>
}

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

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

/**
 * student_schedules update
 */
export type student_schedulesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedules
   */
  select?: Prisma.student_schedulesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedules
   */
  omit?: Prisma.student_schedulesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedulesInclude<ExtArgs> | null
  /**
   * The data needed to update a student_schedules.
   */
  data: Prisma.XOR<Prisma.student_schedulesUpdateInput, Prisma.student_schedulesUncheckedUpdateInput>
  /**
   * Choose, which student_schedules to update.
   */
  where: Prisma.student_schedulesWhereUniqueInput
}

/**
 * student_schedules updateMany
 */
export type student_schedulesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update student_schedules.
   */
  data: Prisma.XOR<Prisma.student_schedulesUpdateManyMutationInput, Prisma.student_schedulesUncheckedUpdateManyInput>
  /**
   * Filter which student_schedules to update
   */
  where?: Prisma.student_schedulesWhereInput
  /**
   * Limit how many student_schedules to update.
   */
  limit?: number
}

/**
 * student_schedules updateManyAndReturn
 */
export type student_schedulesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedules
   */
  select?: Prisma.student_schedulesSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedules
   */
  omit?: Prisma.student_schedulesOmit<ExtArgs> | null
  /**
   * The data used to update student_schedules.
   */
  data: Prisma.XOR<Prisma.student_schedulesUpdateManyMutationInput, Prisma.student_schedulesUncheckedUpdateManyInput>
  /**
   * Filter which student_schedules to update
   */
  where?: Prisma.student_schedulesWhereInput
  /**
   * Limit how many student_schedules to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedulesIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * student_schedules upsert
 */
export type student_schedulesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedules
   */
  select?: Prisma.student_schedulesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedules
   */
  omit?: Prisma.student_schedulesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedulesInclude<ExtArgs> | null
  /**
   * The filter to search for the student_schedules to update in case it exists.
   */
  where: Prisma.student_schedulesWhereUniqueInput
  /**
   * In case the student_schedules found by the `where` argument doesn't exist, create a new student_schedules with this data.
   */
  create: Prisma.XOR<Prisma.student_schedulesCreateInput, Prisma.student_schedulesUncheckedCreateInput>
  /**
   * In case the student_schedules was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.student_schedulesUpdateInput, Prisma.student_schedulesUncheckedUpdateInput>
}

/**
 * student_schedules delete
 */
export type student_schedulesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_schedules
   */
  select?: Prisma.student_schedulesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_schedules
   */
  omit?: Prisma.student_schedulesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_schedulesInclude<ExtArgs> | null
  /**
   * Filter which student_schedules to delete.
   */
  where: Prisma.student_schedulesWhereUniqueInput
}

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

/**
 * student_schedules.schedule_bookings
 */
export type student_schedules$schedule_bookingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the schedule_bookings
   */
  select?: Prisma.schedule_bookingsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the schedule_bookings
   */
  omit?: Prisma.schedule_bookingsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.schedule_bookingsInclude<ExtArgs> | null
  where?: Prisma.schedule_bookingsWhereInput
  orderBy?: Prisma.schedule_bookingsOrderByWithRelationInput | Prisma.schedule_bookingsOrderByWithRelationInput[]
  cursor?: Prisma.schedule_bookingsWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.Schedule_bookingsScalarFieldEnum | Prisma.Schedule_bookingsScalarFieldEnum[]
}

/**
 * student_schedules.student_schedule_patterns
 */
export type student_schedules$student_schedule_patternsArgs<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
  where?: Prisma.student_schedule_patternsWhereInput
  orderBy?: Prisma.student_schedule_patternsOrderByWithRelationInput | Prisma.student_schedule_patternsOrderByWithRelationInput[]
  cursor?: Prisma.student_schedule_patternsWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.Student_schedule_patternsScalarFieldEnum | Prisma.Student_schedule_patternsScalarFieldEnum[]
}

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