
/* !!! 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_vacations` 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_vacations
 * 
 */
export type student_vacationsModel = runtime.Types.Result.DefaultSelection<Prisma.$student_vacationsPayload>

export type AggregateStudent_vacations = {
  _count: Student_vacationsCountAggregateOutputType | null
  _avg: Student_vacationsAvgAggregateOutputType | null
  _sum: Student_vacationsSumAggregateOutputType | null
  _min: Student_vacationsMinAggregateOutputType | null
  _max: Student_vacationsMaxAggregateOutputType | null
}

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

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

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

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

export type Student_vacationsCountAggregateOutputType = {
  id: number
  student_id: number
  start_date: number
  end_date: number
  reason: number
  status: number
  admin_note: number
  created_at: number
  updated_at: number
  _all: number
}


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

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

export type Student_vacationsMinAggregateInputType = {
  id?: true
  student_id?: true
  start_date?: true
  end_date?: true
  reason?: true
  status?: true
  admin_note?: true
  created_at?: true
  updated_at?: true
}

export type Student_vacationsMaxAggregateInputType = {
  id?: true
  student_id?: true
  start_date?: true
  end_date?: true
  reason?: true
  status?: true
  admin_note?: true
  created_at?: true
  updated_at?: true
}

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

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

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




export type student_vacationsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.student_vacationsWhereInput
  orderBy?: Prisma.student_vacationsOrderByWithAggregationInput | Prisma.student_vacationsOrderByWithAggregationInput[]
  by: Prisma.Student_vacationsScalarFieldEnum[] | Prisma.Student_vacationsScalarFieldEnum
  having?: Prisma.student_vacationsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Student_vacationsCountAggregateInputType | true
  _avg?: Student_vacationsAvgAggregateInputType
  _sum?: Student_vacationsSumAggregateInputType
  _min?: Student_vacationsMinAggregateInputType
  _max?: Student_vacationsMaxAggregateInputType
}

export type Student_vacationsGroupByOutputType = {
  id: number
  student_id: number
  start_date: Date
  end_date: Date
  reason: string
  status: string
  admin_note: string | null
  created_at: Date | null
  updated_at: Date | null
  _count: Student_vacationsCountAggregateOutputType | null
  _avg: Student_vacationsAvgAggregateOutputType | null
  _sum: Student_vacationsSumAggregateOutputType | null
  _min: Student_vacationsMinAggregateOutputType | null
  _max: Student_vacationsMaxAggregateOutputType | null
}

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



export type student_vacationsWhereInput = {
  AND?: Prisma.student_vacationsWhereInput | Prisma.student_vacationsWhereInput[]
  OR?: Prisma.student_vacationsWhereInput[]
  NOT?: Prisma.student_vacationsWhereInput | Prisma.student_vacationsWhereInput[]
  id?: Prisma.IntFilter<"student_vacations"> | number
  student_id?: Prisma.IntFilter<"student_vacations"> | number
  start_date?: Prisma.DateTimeFilter<"student_vacations"> | Date | string
  end_date?: Prisma.DateTimeFilter<"student_vacations"> | Date | string
  reason?: Prisma.StringFilter<"student_vacations"> | string
  status?: Prisma.StringFilter<"student_vacations"> | string
  admin_note?: Prisma.StringNullableFilter<"student_vacations"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"student_vacations"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"student_vacations"> | Date | string | null
  students?: Prisma.XOR<Prisma.StudentsScalarRelationFilter, Prisma.studentsWhereInput>
}

export type student_vacationsOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  student_id?: Prisma.SortOrder
  start_date?: Prisma.SortOrder
  end_date?: Prisma.SortOrder
  reason?: Prisma.SortOrder
  status?: Prisma.SortOrder
  admin_note?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  students?: Prisma.studentsOrderByWithRelationInput
}

export type student_vacationsWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.student_vacationsWhereInput | Prisma.student_vacationsWhereInput[]
  OR?: Prisma.student_vacationsWhereInput[]
  NOT?: Prisma.student_vacationsWhereInput | Prisma.student_vacationsWhereInput[]
  student_id?: Prisma.IntFilter<"student_vacations"> | number
  start_date?: Prisma.DateTimeFilter<"student_vacations"> | Date | string
  end_date?: Prisma.DateTimeFilter<"student_vacations"> | Date | string
  reason?: Prisma.StringFilter<"student_vacations"> | string
  status?: Prisma.StringFilter<"student_vacations"> | string
  admin_note?: Prisma.StringNullableFilter<"student_vacations"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"student_vacations"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"student_vacations"> | Date | string | null
  students?: Prisma.XOR<Prisma.StudentsScalarRelationFilter, Prisma.studentsWhereInput>
}, "id">

export type student_vacationsOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  student_id?: Prisma.SortOrder
  start_date?: Prisma.SortOrder
  end_date?: Prisma.SortOrder
  reason?: Prisma.SortOrder
  status?: Prisma.SortOrder
  admin_note?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.student_vacationsCountOrderByAggregateInput
  _avg?: Prisma.student_vacationsAvgOrderByAggregateInput
  _max?: Prisma.student_vacationsMaxOrderByAggregateInput
  _min?: Prisma.student_vacationsMinOrderByAggregateInput
  _sum?: Prisma.student_vacationsSumOrderByAggregateInput
}

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

export type student_vacationsCreateInput = {
  start_date: Date | string
  end_date: Date | string
  reason: string
  status?: string
  admin_note?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
  students: Prisma.studentsCreateNestedOneWithoutStudent_vacationsInput
}

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

export type student_vacationsUpdateInput = {
  start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  reason?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.StringFieldUpdateOperationsInput | string
  admin_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  students?: Prisma.studentsUpdateOneRequiredWithoutStudent_vacationsNestedInput
}

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

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

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

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

export type Student_vacationsListRelationFilter = {
  every?: Prisma.student_vacationsWhereInput
  some?: Prisma.student_vacationsWhereInput
  none?: Prisma.student_vacationsWhereInput
}

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

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

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

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

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

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

export type student_vacationsCreateNestedManyWithoutStudentsInput = {
  create?: Prisma.XOR<Prisma.student_vacationsCreateWithoutStudentsInput, Prisma.student_vacationsUncheckedCreateWithoutStudentsInput> | Prisma.student_vacationsCreateWithoutStudentsInput[] | Prisma.student_vacationsUncheckedCreateWithoutStudentsInput[]
  connectOrCreate?: Prisma.student_vacationsCreateOrConnectWithoutStudentsInput | Prisma.student_vacationsCreateOrConnectWithoutStudentsInput[]
  createMany?: Prisma.student_vacationsCreateManyStudentsInputEnvelope
  connect?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
}

export type student_vacationsUncheckedCreateNestedManyWithoutStudentsInput = {
  create?: Prisma.XOR<Prisma.student_vacationsCreateWithoutStudentsInput, Prisma.student_vacationsUncheckedCreateWithoutStudentsInput> | Prisma.student_vacationsCreateWithoutStudentsInput[] | Prisma.student_vacationsUncheckedCreateWithoutStudentsInput[]
  connectOrCreate?: Prisma.student_vacationsCreateOrConnectWithoutStudentsInput | Prisma.student_vacationsCreateOrConnectWithoutStudentsInput[]
  createMany?: Prisma.student_vacationsCreateManyStudentsInputEnvelope
  connect?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
}

export type student_vacationsUpdateManyWithoutStudentsNestedInput = {
  create?: Prisma.XOR<Prisma.student_vacationsCreateWithoutStudentsInput, Prisma.student_vacationsUncheckedCreateWithoutStudentsInput> | Prisma.student_vacationsCreateWithoutStudentsInput[] | Prisma.student_vacationsUncheckedCreateWithoutStudentsInput[]
  connectOrCreate?: Prisma.student_vacationsCreateOrConnectWithoutStudentsInput | Prisma.student_vacationsCreateOrConnectWithoutStudentsInput[]
  upsert?: Prisma.student_vacationsUpsertWithWhereUniqueWithoutStudentsInput | Prisma.student_vacationsUpsertWithWhereUniqueWithoutStudentsInput[]
  createMany?: Prisma.student_vacationsCreateManyStudentsInputEnvelope
  set?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
  disconnect?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
  delete?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
  connect?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
  update?: Prisma.student_vacationsUpdateWithWhereUniqueWithoutStudentsInput | Prisma.student_vacationsUpdateWithWhereUniqueWithoutStudentsInput[]
  updateMany?: Prisma.student_vacationsUpdateManyWithWhereWithoutStudentsInput | Prisma.student_vacationsUpdateManyWithWhereWithoutStudentsInput[]
  deleteMany?: Prisma.student_vacationsScalarWhereInput | Prisma.student_vacationsScalarWhereInput[]
}

export type student_vacationsUncheckedUpdateManyWithoutStudentsNestedInput = {
  create?: Prisma.XOR<Prisma.student_vacationsCreateWithoutStudentsInput, Prisma.student_vacationsUncheckedCreateWithoutStudentsInput> | Prisma.student_vacationsCreateWithoutStudentsInput[] | Prisma.student_vacationsUncheckedCreateWithoutStudentsInput[]
  connectOrCreate?: Prisma.student_vacationsCreateOrConnectWithoutStudentsInput | Prisma.student_vacationsCreateOrConnectWithoutStudentsInput[]
  upsert?: Prisma.student_vacationsUpsertWithWhereUniqueWithoutStudentsInput | Prisma.student_vacationsUpsertWithWhereUniqueWithoutStudentsInput[]
  createMany?: Prisma.student_vacationsCreateManyStudentsInputEnvelope
  set?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
  disconnect?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
  delete?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
  connect?: Prisma.student_vacationsWhereUniqueInput | Prisma.student_vacationsWhereUniqueInput[]
  update?: Prisma.student_vacationsUpdateWithWhereUniqueWithoutStudentsInput | Prisma.student_vacationsUpdateWithWhereUniqueWithoutStudentsInput[]
  updateMany?: Prisma.student_vacationsUpdateManyWithWhereWithoutStudentsInput | Prisma.student_vacationsUpdateManyWithWhereWithoutStudentsInput[]
  deleteMany?: Prisma.student_vacationsScalarWhereInput | Prisma.student_vacationsScalarWhereInput[]
}

export type student_vacationsCreateWithoutStudentsInput = {
  start_date: Date | string
  end_date: Date | string
  reason: string
  status?: string
  admin_note?: string | null
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

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

export type student_vacationsCreateOrConnectWithoutStudentsInput = {
  where: Prisma.student_vacationsWhereUniqueInput
  create: Prisma.XOR<Prisma.student_vacationsCreateWithoutStudentsInput, Prisma.student_vacationsUncheckedCreateWithoutStudentsInput>
}

export type student_vacationsCreateManyStudentsInputEnvelope = {
  data: Prisma.student_vacationsCreateManyStudentsInput | Prisma.student_vacationsCreateManyStudentsInput[]
  skipDuplicates?: boolean
}

export type student_vacationsUpsertWithWhereUniqueWithoutStudentsInput = {
  where: Prisma.student_vacationsWhereUniqueInput
  update: Prisma.XOR<Prisma.student_vacationsUpdateWithoutStudentsInput, Prisma.student_vacationsUncheckedUpdateWithoutStudentsInput>
  create: Prisma.XOR<Prisma.student_vacationsCreateWithoutStudentsInput, Prisma.student_vacationsUncheckedCreateWithoutStudentsInput>
}

export type student_vacationsUpdateWithWhereUniqueWithoutStudentsInput = {
  where: Prisma.student_vacationsWhereUniqueInput
  data: Prisma.XOR<Prisma.student_vacationsUpdateWithoutStudentsInput, Prisma.student_vacationsUncheckedUpdateWithoutStudentsInput>
}

export type student_vacationsUpdateManyWithWhereWithoutStudentsInput = {
  where: Prisma.student_vacationsScalarWhereInput
  data: Prisma.XOR<Prisma.student_vacationsUpdateManyMutationInput, Prisma.student_vacationsUncheckedUpdateManyWithoutStudentsInput>
}

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

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

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

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

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



export type student_vacationsSelect<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
  reason?: boolean
  status?: boolean
  admin_note?: boolean
  created_at?: boolean
  updated_at?: boolean
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["student_vacations"]>

export type student_vacationsSelectCreateManyAndReturn<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
  reason?: boolean
  status?: boolean
  admin_note?: boolean
  created_at?: boolean
  updated_at?: boolean
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["student_vacations"]>

export type student_vacationsSelectUpdateManyAndReturn<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
  reason?: boolean
  status?: boolean
  admin_note?: boolean
  created_at?: boolean
  updated_at?: boolean
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["student_vacations"]>

export type student_vacationsSelectScalar = {
  id?: boolean
  student_id?: boolean
  start_date?: boolean
  end_date?: boolean
  reason?: boolean
  status?: boolean
  admin_note?: boolean
  created_at?: boolean
  updated_at?: boolean
}

export type student_vacationsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "student_id" | "start_date" | "end_date" | "reason" | "status" | "admin_note" | "created_at" | "updated_at", ExtArgs["result"]["student_vacations"]>
export type student_vacationsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}
export type student_vacationsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}
export type student_vacationsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  students?: boolean | Prisma.studentsDefaultArgs<ExtArgs>
}

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

export type student_vacationsGetPayload<S extends boolean | null | undefined | student_vacationsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$student_vacationsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for student_vacations.
 * 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_vacationsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  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_vacations model
 */
export interface student_vacationsFieldRefs {
  readonly id: Prisma.FieldRef<"student_vacations", 'Int'>
  readonly student_id: Prisma.FieldRef<"student_vacations", 'Int'>
  readonly start_date: Prisma.FieldRef<"student_vacations", 'DateTime'>
  readonly end_date: Prisma.FieldRef<"student_vacations", 'DateTime'>
  readonly reason: Prisma.FieldRef<"student_vacations", 'String'>
  readonly status: Prisma.FieldRef<"student_vacations", 'String'>
  readonly admin_note: Prisma.FieldRef<"student_vacations", 'String'>
  readonly created_at: Prisma.FieldRef<"student_vacations", 'DateTime'>
  readonly updated_at: Prisma.FieldRef<"student_vacations", 'DateTime'>
}
    

// Custom InputTypes
/**
 * student_vacations findUnique
 */
export type student_vacationsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_vacations
   */
  select?: Prisma.student_vacationsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_vacations
   */
  omit?: Prisma.student_vacationsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_vacationsInclude<ExtArgs> | null
  /**
   * Filter, which student_vacations to fetch.
   */
  where: Prisma.student_vacationsWhereUniqueInput
}

/**
 * student_vacations findUniqueOrThrow
 */
export type student_vacationsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_vacations
   */
  select?: Prisma.student_vacationsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_vacations
   */
  omit?: Prisma.student_vacationsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_vacationsInclude<ExtArgs> | null
  /**
   * Filter, which student_vacations to fetch.
   */
  where: Prisma.student_vacationsWhereUniqueInput
}

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

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

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

/**
 * student_vacations create
 */
export type student_vacationsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_vacations
   */
  select?: Prisma.student_vacationsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_vacations
   */
  omit?: Prisma.student_vacationsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_vacationsInclude<ExtArgs> | null
  /**
   * The data needed to create a student_vacations.
   */
  data: Prisma.XOR<Prisma.student_vacationsCreateInput, Prisma.student_vacationsUncheckedCreateInput>
}

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

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

/**
 * student_vacations update
 */
export type student_vacationsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_vacations
   */
  select?: Prisma.student_vacationsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_vacations
   */
  omit?: Prisma.student_vacationsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_vacationsInclude<ExtArgs> | null
  /**
   * The data needed to update a student_vacations.
   */
  data: Prisma.XOR<Prisma.student_vacationsUpdateInput, Prisma.student_vacationsUncheckedUpdateInput>
  /**
   * Choose, which student_vacations to update.
   */
  where: Prisma.student_vacationsWhereUniqueInput
}

/**
 * student_vacations updateMany
 */
export type student_vacationsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update student_vacations.
   */
  data: Prisma.XOR<Prisma.student_vacationsUpdateManyMutationInput, Prisma.student_vacationsUncheckedUpdateManyInput>
  /**
   * Filter which student_vacations to update
   */
  where?: Prisma.student_vacationsWhereInput
  /**
   * Limit how many student_vacations to update.
   */
  limit?: number
}

/**
 * student_vacations updateManyAndReturn
 */
export type student_vacationsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_vacations
   */
  select?: Prisma.student_vacationsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the student_vacations
   */
  omit?: Prisma.student_vacationsOmit<ExtArgs> | null
  /**
   * The data used to update student_vacations.
   */
  data: Prisma.XOR<Prisma.student_vacationsUpdateManyMutationInput, Prisma.student_vacationsUncheckedUpdateManyInput>
  /**
   * Filter which student_vacations to update
   */
  where?: Prisma.student_vacationsWhereInput
  /**
   * Limit how many student_vacations to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_vacationsIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * student_vacations upsert
 */
export type student_vacationsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_vacations
   */
  select?: Prisma.student_vacationsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_vacations
   */
  omit?: Prisma.student_vacationsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_vacationsInclude<ExtArgs> | null
  /**
   * The filter to search for the student_vacations to update in case it exists.
   */
  where: Prisma.student_vacationsWhereUniqueInput
  /**
   * In case the student_vacations found by the `where` argument doesn't exist, create a new student_vacations with this data.
   */
  create: Prisma.XOR<Prisma.student_vacationsCreateInput, Prisma.student_vacationsUncheckedCreateInput>
  /**
   * In case the student_vacations was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.student_vacationsUpdateInput, Prisma.student_vacationsUncheckedUpdateInput>
}

/**
 * student_vacations delete
 */
export type student_vacationsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the student_vacations
   */
  select?: Prisma.student_vacationsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the student_vacations
   */
  omit?: Prisma.student_vacationsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.student_vacationsInclude<ExtArgs> | null
  /**
   * Filter which student_vacations to delete.
   */
  where: Prisma.student_vacationsWhereUniqueInput
}

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

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