
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `users` 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.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model users
 * 
 */
export type usersModel = runtime.Types.Result.DefaultSelection<Prisma.$usersPayload>

export type AggregateUsers = {
  _count: UsersCountAggregateOutputType | null
  _min: UsersMinAggregateOutputType | null
  _max: UsersMaxAggregateOutputType | null
}

export type UsersMinAggregateOutputType = {
  id: string | null
  name: string | null
  role: string | null
  coach_id: string | null
  created_at: Date | null
}

export type UsersMaxAggregateOutputType = {
  id: string | null
  name: string | null
  role: string | null
  coach_id: string | null
  created_at: Date | null
}

export type UsersCountAggregateOutputType = {
  id: number
  name: number
  role: number
  coach_id: number
  created_at: number
  _all: number
}


export type UsersMinAggregateInputType = {
  id?: true
  name?: true
  role?: true
  coach_id?: true
  created_at?: true
}

export type UsersMaxAggregateInputType = {
  id?: true
  name?: true
  role?: true
  coach_id?: true
  created_at?: true
}

export type UsersCountAggregateInputType = {
  id?: true
  name?: true
  role?: true
  coach_id?: true
  created_at?: true
  _all?: true
}

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

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




export type usersGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.usersWhereInput
  orderBy?: Prisma.usersOrderByWithAggregationInput | Prisma.usersOrderByWithAggregationInput[]
  by: Prisma.UsersScalarFieldEnum[] | Prisma.UsersScalarFieldEnum
  having?: Prisma.usersScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: UsersCountAggregateInputType | true
  _min?: UsersMinAggregateInputType
  _max?: UsersMaxAggregateInputType
}

export type UsersGroupByOutputType = {
  id: string
  name: string
  role: string
  coach_id: string | null
  created_at: Date | null
  _count: UsersCountAggregateOutputType | null
  _min: UsersMinAggregateOutputType | null
  _max: UsersMaxAggregateOutputType | null
}

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



export type usersWhereInput = {
  AND?: Prisma.usersWhereInput | Prisma.usersWhereInput[]
  OR?: Prisma.usersWhereInput[]
  NOT?: Prisma.usersWhereInput | Prisma.usersWhereInput[]
  id?: Prisma.StringFilter<"users"> | string
  name?: Prisma.StringFilter<"users"> | string
  role?: Prisma.StringFilter<"users"> | string
  coach_id?: Prisma.StringNullableFilter<"users"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"users"> | Date | string | null
  coach?: Prisma.XOR<Prisma.UsersNullableScalarRelationFilter, Prisma.usersWhereInput> | null
  clients?: Prisma.UsersListRelationFilter
  created_menus?: Prisma.Training_menusListRelationFilter
  assigned_menus?: Prisma.Training_menusListRelationFilter
  recaps?: Prisma.User_recapsListRelationFilter
  activity_logs?: Prisma.Activity_logsListRelationFilter
}

export type usersOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  role?: Prisma.SortOrder
  coach_id?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  coach?: Prisma.usersOrderByWithRelationInput
  clients?: Prisma.usersOrderByRelationAggregateInput
  created_menus?: Prisma.training_menusOrderByRelationAggregateInput
  assigned_menus?: Prisma.training_menusOrderByRelationAggregateInput
  recaps?: Prisma.user_recapsOrderByRelationAggregateInput
  activity_logs?: Prisma.activity_logsOrderByRelationAggregateInput
}

export type usersWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.usersWhereInput | Prisma.usersWhereInput[]
  OR?: Prisma.usersWhereInput[]
  NOT?: Prisma.usersWhereInput | Prisma.usersWhereInput[]
  name?: Prisma.StringFilter<"users"> | string
  role?: Prisma.StringFilter<"users"> | string
  coach_id?: Prisma.StringNullableFilter<"users"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"users"> | Date | string | null
  coach?: Prisma.XOR<Prisma.UsersNullableScalarRelationFilter, Prisma.usersWhereInput> | null
  clients?: Prisma.UsersListRelationFilter
  created_menus?: Prisma.Training_menusListRelationFilter
  assigned_menus?: Prisma.Training_menusListRelationFilter
  recaps?: Prisma.User_recapsListRelationFilter
  activity_logs?: Prisma.Activity_logsListRelationFilter
}, "id">

export type usersOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  role?: Prisma.SortOrder
  coach_id?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.usersCountOrderByAggregateInput
  _max?: Prisma.usersMaxOrderByAggregateInput
  _min?: Prisma.usersMinOrderByAggregateInput
}

export type usersScalarWhereWithAggregatesInput = {
  AND?: Prisma.usersScalarWhereWithAggregatesInput | Prisma.usersScalarWhereWithAggregatesInput[]
  OR?: Prisma.usersScalarWhereWithAggregatesInput[]
  NOT?: Prisma.usersScalarWhereWithAggregatesInput | Prisma.usersScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"users"> | string
  name?: Prisma.StringWithAggregatesFilter<"users"> | string
  role?: Prisma.StringWithAggregatesFilter<"users"> | string
  coach_id?: Prisma.StringNullableWithAggregatesFilter<"users"> | string | null
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"users"> | Date | string | null
}

export type usersCreateInput = {
  id?: string
  name: string
  role: string
  created_at?: Date | string | null
  coach?: Prisma.usersCreateNestedOneWithoutClientsInput
  clients?: Prisma.usersCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsCreateNestedManyWithoutUserInput
}

export type usersUncheckedCreateInput = {
  id?: string
  name: string
  role: string
  coach_id?: string | null
  created_at?: Date | string | null
  clients?: Prisma.usersUncheckedCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsUncheckedCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsUncheckedCreateNestedManyWithoutUserInput
}

export type usersUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  coach?: Prisma.usersUpdateOneWithoutClientsNestedInput
  clients?: Prisma.usersUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUpdateManyWithoutUserNestedInput
}

export type usersUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  coach_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  clients?: Prisma.usersUncheckedUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUncheckedUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUncheckedUpdateManyWithoutUserNestedInput
}

export type usersCreateManyInput = {
  id?: string
  name: string
  role: string
  coach_id?: string | null
  created_at?: Date | string | null
}

export type usersUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type usersUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  coach_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type UsersNullableScalarRelationFilter = {
  is?: Prisma.usersWhereInput | null
  isNot?: Prisma.usersWhereInput | null
}

export type UsersListRelationFilter = {
  every?: Prisma.usersWhereInput
  some?: Prisma.usersWhereInput
  none?: Prisma.usersWhereInput
}

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

export type usersCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  role?: Prisma.SortOrder
  coach_id?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type usersMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  role?: Prisma.SortOrder
  coach_id?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type usersMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  role?: Prisma.SortOrder
  coach_id?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type usersCreateNestedOneWithoutClientsInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutClientsInput, Prisma.usersUncheckedCreateWithoutClientsInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutClientsInput
  connect?: Prisma.usersWhereUniqueInput
}

export type usersCreateNestedManyWithoutCoachInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutCoachInput, Prisma.usersUncheckedCreateWithoutCoachInput> | Prisma.usersCreateWithoutCoachInput[] | Prisma.usersUncheckedCreateWithoutCoachInput[]
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutCoachInput | Prisma.usersCreateOrConnectWithoutCoachInput[]
  createMany?: Prisma.usersCreateManyCoachInputEnvelope
  connect?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
}

export type usersUncheckedCreateNestedManyWithoutCoachInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutCoachInput, Prisma.usersUncheckedCreateWithoutCoachInput> | Prisma.usersCreateWithoutCoachInput[] | Prisma.usersUncheckedCreateWithoutCoachInput[]
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutCoachInput | Prisma.usersCreateOrConnectWithoutCoachInput[]
  createMany?: Prisma.usersCreateManyCoachInputEnvelope
  connect?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
}

export type StringFieldUpdateOperationsInput = {
  set?: string
}

export type NullableDateTimeFieldUpdateOperationsInput = {
  set?: Date | string | null
}

export type usersUpdateOneWithoutClientsNestedInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutClientsInput, Prisma.usersUncheckedCreateWithoutClientsInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutClientsInput
  upsert?: Prisma.usersUpsertWithoutClientsInput
  disconnect?: Prisma.usersWhereInput | boolean
  delete?: Prisma.usersWhereInput | boolean
  connect?: Prisma.usersWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.usersUpdateToOneWithWhereWithoutClientsInput, Prisma.usersUpdateWithoutClientsInput>, Prisma.usersUncheckedUpdateWithoutClientsInput>
}

export type usersUpdateManyWithoutCoachNestedInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutCoachInput, Prisma.usersUncheckedCreateWithoutCoachInput> | Prisma.usersCreateWithoutCoachInput[] | Prisma.usersUncheckedCreateWithoutCoachInput[]
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutCoachInput | Prisma.usersCreateOrConnectWithoutCoachInput[]
  upsert?: Prisma.usersUpsertWithWhereUniqueWithoutCoachInput | Prisma.usersUpsertWithWhereUniqueWithoutCoachInput[]
  createMany?: Prisma.usersCreateManyCoachInputEnvelope
  set?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
  disconnect?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
  delete?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
  connect?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
  update?: Prisma.usersUpdateWithWhereUniqueWithoutCoachInput | Prisma.usersUpdateWithWhereUniqueWithoutCoachInput[]
  updateMany?: Prisma.usersUpdateManyWithWhereWithoutCoachInput | Prisma.usersUpdateManyWithWhereWithoutCoachInput[]
  deleteMany?: Prisma.usersScalarWhereInput | Prisma.usersScalarWhereInput[]
}

export type NullableStringFieldUpdateOperationsInput = {
  set?: string | null
}

export type usersUncheckedUpdateManyWithoutCoachNestedInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutCoachInput, Prisma.usersUncheckedCreateWithoutCoachInput> | Prisma.usersCreateWithoutCoachInput[] | Prisma.usersUncheckedCreateWithoutCoachInput[]
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutCoachInput | Prisma.usersCreateOrConnectWithoutCoachInput[]
  upsert?: Prisma.usersUpsertWithWhereUniqueWithoutCoachInput | Prisma.usersUpsertWithWhereUniqueWithoutCoachInput[]
  createMany?: Prisma.usersCreateManyCoachInputEnvelope
  set?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
  disconnect?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
  delete?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
  connect?: Prisma.usersWhereUniqueInput | Prisma.usersWhereUniqueInput[]
  update?: Prisma.usersUpdateWithWhereUniqueWithoutCoachInput | Prisma.usersUpdateWithWhereUniqueWithoutCoachInput[]
  updateMany?: Prisma.usersUpdateManyWithWhereWithoutCoachInput | Prisma.usersUpdateManyWithWhereWithoutCoachInput[]
  deleteMany?: Prisma.usersScalarWhereInput | Prisma.usersScalarWhereInput[]
}

export type usersCreateNestedOneWithoutActivity_logsInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutActivity_logsInput, Prisma.usersUncheckedCreateWithoutActivity_logsInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutActivity_logsInput
  connect?: Prisma.usersWhereUniqueInput
}

export type usersUpdateOneWithoutActivity_logsNestedInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutActivity_logsInput, Prisma.usersUncheckedCreateWithoutActivity_logsInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutActivity_logsInput
  upsert?: Prisma.usersUpsertWithoutActivity_logsInput
  disconnect?: Prisma.usersWhereInput | boolean
  delete?: Prisma.usersWhereInput | boolean
  connect?: Prisma.usersWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.usersUpdateToOneWithWhereWithoutActivity_logsInput, Prisma.usersUpdateWithoutActivity_logsInput>, Prisma.usersUncheckedUpdateWithoutActivity_logsInput>
}

export type usersCreateNestedOneWithoutCreated_menusInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutCreated_menusInput, Prisma.usersUncheckedCreateWithoutCreated_menusInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutCreated_menusInput
  connect?: Prisma.usersWhereUniqueInput
}

export type usersCreateNestedOneWithoutAssigned_menusInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutAssigned_menusInput, Prisma.usersUncheckedCreateWithoutAssigned_menusInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutAssigned_menusInput
  connect?: Prisma.usersWhereUniqueInput
}

export type usersUpdateOneWithoutCreated_menusNestedInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutCreated_menusInput, Prisma.usersUncheckedCreateWithoutCreated_menusInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutCreated_menusInput
  upsert?: Prisma.usersUpsertWithoutCreated_menusInput
  disconnect?: Prisma.usersWhereInput | boolean
  delete?: Prisma.usersWhereInput | boolean
  connect?: Prisma.usersWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.usersUpdateToOneWithWhereWithoutCreated_menusInput, Prisma.usersUpdateWithoutCreated_menusInput>, Prisma.usersUncheckedUpdateWithoutCreated_menusInput>
}

export type usersUpdateOneWithoutAssigned_menusNestedInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutAssigned_menusInput, Prisma.usersUncheckedCreateWithoutAssigned_menusInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutAssigned_menusInput
  upsert?: Prisma.usersUpsertWithoutAssigned_menusInput
  disconnect?: Prisma.usersWhereInput | boolean
  delete?: Prisma.usersWhereInput | boolean
  connect?: Prisma.usersWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.usersUpdateToOneWithWhereWithoutAssigned_menusInput, Prisma.usersUpdateWithoutAssigned_menusInput>, Prisma.usersUncheckedUpdateWithoutAssigned_menusInput>
}

export type usersCreateNestedOneWithoutRecapsInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutRecapsInput, Prisma.usersUncheckedCreateWithoutRecapsInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutRecapsInput
  connect?: Prisma.usersWhereUniqueInput
}

export type usersUpdateOneWithoutRecapsNestedInput = {
  create?: Prisma.XOR<Prisma.usersCreateWithoutRecapsInput, Prisma.usersUncheckedCreateWithoutRecapsInput>
  connectOrCreate?: Prisma.usersCreateOrConnectWithoutRecapsInput
  upsert?: Prisma.usersUpsertWithoutRecapsInput
  disconnect?: Prisma.usersWhereInput | boolean
  delete?: Prisma.usersWhereInput | boolean
  connect?: Prisma.usersWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.usersUpdateToOneWithWhereWithoutRecapsInput, Prisma.usersUpdateWithoutRecapsInput>, Prisma.usersUncheckedUpdateWithoutRecapsInput>
}

export type usersCreateWithoutClientsInput = {
  id?: string
  name: string
  role: string
  created_at?: Date | string | null
  coach?: Prisma.usersCreateNestedOneWithoutClientsInput
  created_menus?: Prisma.training_menusCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsCreateNestedManyWithoutUserInput
}

export type usersUncheckedCreateWithoutClientsInput = {
  id?: string
  name: string
  role: string
  coach_id?: string | null
  created_at?: Date | string | null
  created_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsUncheckedCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsUncheckedCreateNestedManyWithoutUserInput
}

export type usersCreateOrConnectWithoutClientsInput = {
  where: Prisma.usersWhereUniqueInput
  create: Prisma.XOR<Prisma.usersCreateWithoutClientsInput, Prisma.usersUncheckedCreateWithoutClientsInput>
}

export type usersCreateWithoutCoachInput = {
  id?: string
  name: string
  role: string
  created_at?: Date | string | null
  clients?: Prisma.usersCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsCreateNestedManyWithoutUserInput
}

export type usersUncheckedCreateWithoutCoachInput = {
  id?: string
  name: string
  role: string
  created_at?: Date | string | null
  clients?: Prisma.usersUncheckedCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsUncheckedCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsUncheckedCreateNestedManyWithoutUserInput
}

export type usersCreateOrConnectWithoutCoachInput = {
  where: Prisma.usersWhereUniqueInput
  create: Prisma.XOR<Prisma.usersCreateWithoutCoachInput, Prisma.usersUncheckedCreateWithoutCoachInput>
}

export type usersCreateManyCoachInputEnvelope = {
  data: Prisma.usersCreateManyCoachInput | Prisma.usersCreateManyCoachInput[]
  skipDuplicates?: boolean
}

export type usersUpsertWithoutClientsInput = {
  update: Prisma.XOR<Prisma.usersUpdateWithoutClientsInput, Prisma.usersUncheckedUpdateWithoutClientsInput>
  create: Prisma.XOR<Prisma.usersCreateWithoutClientsInput, Prisma.usersUncheckedCreateWithoutClientsInput>
  where?: Prisma.usersWhereInput
}

export type usersUpdateToOneWithWhereWithoutClientsInput = {
  where?: Prisma.usersWhereInput
  data: Prisma.XOR<Prisma.usersUpdateWithoutClientsInput, Prisma.usersUncheckedUpdateWithoutClientsInput>
}

export type usersUpdateWithoutClientsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  coach?: Prisma.usersUpdateOneWithoutClientsNestedInput
  created_menus?: Prisma.training_menusUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUpdateManyWithoutUserNestedInput
}

export type usersUncheckedUpdateWithoutClientsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  coach_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  created_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUncheckedUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUncheckedUpdateManyWithoutUserNestedInput
}

export type usersUpsertWithWhereUniqueWithoutCoachInput = {
  where: Prisma.usersWhereUniqueInput
  update: Prisma.XOR<Prisma.usersUpdateWithoutCoachInput, Prisma.usersUncheckedUpdateWithoutCoachInput>
  create: Prisma.XOR<Prisma.usersCreateWithoutCoachInput, Prisma.usersUncheckedCreateWithoutCoachInput>
}

export type usersUpdateWithWhereUniqueWithoutCoachInput = {
  where: Prisma.usersWhereUniqueInput
  data: Prisma.XOR<Prisma.usersUpdateWithoutCoachInput, Prisma.usersUncheckedUpdateWithoutCoachInput>
}

export type usersUpdateManyWithWhereWithoutCoachInput = {
  where: Prisma.usersScalarWhereInput
  data: Prisma.XOR<Prisma.usersUpdateManyMutationInput, Prisma.usersUncheckedUpdateManyWithoutCoachInput>
}

export type usersScalarWhereInput = {
  AND?: Prisma.usersScalarWhereInput | Prisma.usersScalarWhereInput[]
  OR?: Prisma.usersScalarWhereInput[]
  NOT?: Prisma.usersScalarWhereInput | Prisma.usersScalarWhereInput[]
  id?: Prisma.StringFilter<"users"> | string
  name?: Prisma.StringFilter<"users"> | string
  role?: Prisma.StringFilter<"users"> | string
  coach_id?: Prisma.StringNullableFilter<"users"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"users"> | Date | string | null
}

export type usersCreateWithoutActivity_logsInput = {
  id?: string
  name: string
  role: string
  created_at?: Date | string | null
  coach?: Prisma.usersCreateNestedOneWithoutClientsInput
  clients?: Prisma.usersCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsCreateNestedManyWithoutUserInput
}

export type usersUncheckedCreateWithoutActivity_logsInput = {
  id?: string
  name: string
  role: string
  coach_id?: string | null
  created_at?: Date | string | null
  clients?: Prisma.usersUncheckedCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsUncheckedCreateNestedManyWithoutUserInput
}

export type usersCreateOrConnectWithoutActivity_logsInput = {
  where: Prisma.usersWhereUniqueInput
  create: Prisma.XOR<Prisma.usersCreateWithoutActivity_logsInput, Prisma.usersUncheckedCreateWithoutActivity_logsInput>
}

export type usersUpsertWithoutActivity_logsInput = {
  update: Prisma.XOR<Prisma.usersUpdateWithoutActivity_logsInput, Prisma.usersUncheckedUpdateWithoutActivity_logsInput>
  create: Prisma.XOR<Prisma.usersCreateWithoutActivity_logsInput, Prisma.usersUncheckedCreateWithoutActivity_logsInput>
  where?: Prisma.usersWhereInput
}

export type usersUpdateToOneWithWhereWithoutActivity_logsInput = {
  where?: Prisma.usersWhereInput
  data: Prisma.XOR<Prisma.usersUpdateWithoutActivity_logsInput, Prisma.usersUncheckedUpdateWithoutActivity_logsInput>
}

export type usersUpdateWithoutActivity_logsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  coach?: Prisma.usersUpdateOneWithoutClientsNestedInput
  clients?: Prisma.usersUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUpdateManyWithoutUserNestedInput
}

export type usersUncheckedUpdateWithoutActivity_logsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  coach_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  clients?: Prisma.usersUncheckedUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUncheckedUpdateManyWithoutUserNestedInput
}

export type usersCreateWithoutCreated_menusInput = {
  id?: string
  name: string
  role: string
  created_at?: Date | string | null
  coach?: Prisma.usersCreateNestedOneWithoutClientsInput
  clients?: Prisma.usersCreateNestedManyWithoutCoachInput
  assigned_menus?: Prisma.training_menusCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsCreateNestedManyWithoutUserInput
}

export type usersUncheckedCreateWithoutCreated_menusInput = {
  id?: string
  name: string
  role: string
  coach_id?: string | null
  created_at?: Date | string | null
  clients?: Prisma.usersUncheckedCreateNestedManyWithoutCoachInput
  assigned_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAssigned_clientInput
  recaps?: Prisma.user_recapsUncheckedCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsUncheckedCreateNestedManyWithoutUserInput
}

export type usersCreateOrConnectWithoutCreated_menusInput = {
  where: Prisma.usersWhereUniqueInput
  create: Prisma.XOR<Prisma.usersCreateWithoutCreated_menusInput, Prisma.usersUncheckedCreateWithoutCreated_menusInput>
}

export type usersCreateWithoutAssigned_menusInput = {
  id?: string
  name: string
  role: string
  created_at?: Date | string | null
  coach?: Prisma.usersCreateNestedOneWithoutClientsInput
  clients?: Prisma.usersCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusCreateNestedManyWithoutAuthorInput
  recaps?: Prisma.user_recapsCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsCreateNestedManyWithoutUserInput
}

export type usersUncheckedCreateWithoutAssigned_menusInput = {
  id?: string
  name: string
  role: string
  coach_id?: string | null
  created_at?: Date | string | null
  clients?: Prisma.usersUncheckedCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAuthorInput
  recaps?: Prisma.user_recapsUncheckedCreateNestedManyWithoutUserInput
  activity_logs?: Prisma.activity_logsUncheckedCreateNestedManyWithoutUserInput
}

export type usersCreateOrConnectWithoutAssigned_menusInput = {
  where: Prisma.usersWhereUniqueInput
  create: Prisma.XOR<Prisma.usersCreateWithoutAssigned_menusInput, Prisma.usersUncheckedCreateWithoutAssigned_menusInput>
}

export type usersUpsertWithoutCreated_menusInput = {
  update: Prisma.XOR<Prisma.usersUpdateWithoutCreated_menusInput, Prisma.usersUncheckedUpdateWithoutCreated_menusInput>
  create: Prisma.XOR<Prisma.usersCreateWithoutCreated_menusInput, Prisma.usersUncheckedCreateWithoutCreated_menusInput>
  where?: Prisma.usersWhereInput
}

export type usersUpdateToOneWithWhereWithoutCreated_menusInput = {
  where?: Prisma.usersWhereInput
  data: Prisma.XOR<Prisma.usersUpdateWithoutCreated_menusInput, Prisma.usersUncheckedUpdateWithoutCreated_menusInput>
}

export type usersUpdateWithoutCreated_menusInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  coach?: Prisma.usersUpdateOneWithoutClientsNestedInput
  clients?: Prisma.usersUpdateManyWithoutCoachNestedInput
  assigned_menus?: Prisma.training_menusUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUpdateManyWithoutUserNestedInput
}

export type usersUncheckedUpdateWithoutCreated_menusInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  coach_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  clients?: Prisma.usersUncheckedUpdateManyWithoutCoachNestedInput
  assigned_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUncheckedUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUncheckedUpdateManyWithoutUserNestedInput
}

export type usersUpsertWithoutAssigned_menusInput = {
  update: Prisma.XOR<Prisma.usersUpdateWithoutAssigned_menusInput, Prisma.usersUncheckedUpdateWithoutAssigned_menusInput>
  create: Prisma.XOR<Prisma.usersCreateWithoutAssigned_menusInput, Prisma.usersUncheckedCreateWithoutAssigned_menusInput>
  where?: Prisma.usersWhereInput
}

export type usersUpdateToOneWithWhereWithoutAssigned_menusInput = {
  where?: Prisma.usersWhereInput
  data: Prisma.XOR<Prisma.usersUpdateWithoutAssigned_menusInput, Prisma.usersUncheckedUpdateWithoutAssigned_menusInput>
}

export type usersUpdateWithoutAssigned_menusInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  coach?: Prisma.usersUpdateOneWithoutClientsNestedInput
  clients?: Prisma.usersUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUpdateManyWithoutAuthorNestedInput
  recaps?: Prisma.user_recapsUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUpdateManyWithoutUserNestedInput
}

export type usersUncheckedUpdateWithoutAssigned_menusInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  coach_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  clients?: Prisma.usersUncheckedUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAuthorNestedInput
  recaps?: Prisma.user_recapsUncheckedUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUncheckedUpdateManyWithoutUserNestedInput
}

export type usersCreateWithoutRecapsInput = {
  id?: string
  name: string
  role: string
  created_at?: Date | string | null
  coach?: Prisma.usersCreateNestedOneWithoutClientsInput
  clients?: Prisma.usersCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusCreateNestedManyWithoutAssigned_clientInput
  activity_logs?: Prisma.activity_logsCreateNestedManyWithoutUserInput
}

export type usersUncheckedCreateWithoutRecapsInput = {
  id?: string
  name: string
  role: string
  coach_id?: string | null
  created_at?: Date | string | null
  clients?: Prisma.usersUncheckedCreateNestedManyWithoutCoachInput
  created_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAuthorInput
  assigned_menus?: Prisma.training_menusUncheckedCreateNestedManyWithoutAssigned_clientInput
  activity_logs?: Prisma.activity_logsUncheckedCreateNestedManyWithoutUserInput
}

export type usersCreateOrConnectWithoutRecapsInput = {
  where: Prisma.usersWhereUniqueInput
  create: Prisma.XOR<Prisma.usersCreateWithoutRecapsInput, Prisma.usersUncheckedCreateWithoutRecapsInput>
}

export type usersUpsertWithoutRecapsInput = {
  update: Prisma.XOR<Prisma.usersUpdateWithoutRecapsInput, Prisma.usersUncheckedUpdateWithoutRecapsInput>
  create: Prisma.XOR<Prisma.usersCreateWithoutRecapsInput, Prisma.usersUncheckedCreateWithoutRecapsInput>
  where?: Prisma.usersWhereInput
}

export type usersUpdateToOneWithWhereWithoutRecapsInput = {
  where?: Prisma.usersWhereInput
  data: Prisma.XOR<Prisma.usersUpdateWithoutRecapsInput, Prisma.usersUncheckedUpdateWithoutRecapsInput>
}

export type usersUpdateWithoutRecapsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  coach?: Prisma.usersUpdateOneWithoutClientsNestedInput
  clients?: Prisma.usersUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUpdateManyWithoutAssigned_clientNestedInput
  activity_logs?: Prisma.activity_logsUpdateManyWithoutUserNestedInput
}

export type usersUncheckedUpdateWithoutRecapsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  coach_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  clients?: Prisma.usersUncheckedUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAssigned_clientNestedInput
  activity_logs?: Prisma.activity_logsUncheckedUpdateManyWithoutUserNestedInput
}

export type usersCreateManyCoachInput = {
  id?: string
  name: string
  role: string
  created_at?: Date | string | null
}

export type usersUpdateWithoutCoachInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  clients?: Prisma.usersUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUpdateManyWithoutUserNestedInput
}

export type usersUncheckedUpdateWithoutCoachInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  clients?: Prisma.usersUncheckedUpdateManyWithoutCoachNestedInput
  created_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAuthorNestedInput
  assigned_menus?: Prisma.training_menusUncheckedUpdateManyWithoutAssigned_clientNestedInput
  recaps?: Prisma.user_recapsUncheckedUpdateManyWithoutUserNestedInput
  activity_logs?: Prisma.activity_logsUncheckedUpdateManyWithoutUserNestedInput
}

export type usersUncheckedUpdateManyWithoutCoachInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}


/**
 * Count Type UsersCountOutputType
 */

export type UsersCountOutputType = {
  clients: number
  created_menus: number
  assigned_menus: number
  recaps: number
  activity_logs: number
}

export type UsersCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  clients?: boolean | UsersCountOutputTypeCountClientsArgs
  created_menus?: boolean | UsersCountOutputTypeCountCreated_menusArgs
  assigned_menus?: boolean | UsersCountOutputTypeCountAssigned_menusArgs
  recaps?: boolean | UsersCountOutputTypeCountRecapsArgs
  activity_logs?: boolean | UsersCountOutputTypeCountActivity_logsArgs
}

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

/**
 * UsersCountOutputType without action
 */
export type UsersCountOutputTypeCountClientsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.usersWhereInput
}

/**
 * UsersCountOutputType without action
 */
export type UsersCountOutputTypeCountCreated_menusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.training_menusWhereInput
}

/**
 * UsersCountOutputType without action
 */
export type UsersCountOutputTypeCountAssigned_menusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.training_menusWhereInput
}

/**
 * UsersCountOutputType without action
 */
export type UsersCountOutputTypeCountRecapsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.user_recapsWhereInput
}

/**
 * UsersCountOutputType without action
 */
export type UsersCountOutputTypeCountActivity_logsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.activity_logsWhereInput
}


export type usersSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  role?: boolean
  coach_id?: boolean
  created_at?: boolean
  coach?: boolean | Prisma.users$coachArgs<ExtArgs>
  clients?: boolean | Prisma.users$clientsArgs<ExtArgs>
  created_menus?: boolean | Prisma.users$created_menusArgs<ExtArgs>
  assigned_menus?: boolean | Prisma.users$assigned_menusArgs<ExtArgs>
  recaps?: boolean | Prisma.users$recapsArgs<ExtArgs>
  activity_logs?: boolean | Prisma.users$activity_logsArgs<ExtArgs>
  _count?: boolean | Prisma.UsersCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["users"]>

export type usersSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  role?: boolean
  coach_id?: boolean
  created_at?: boolean
  coach?: boolean | Prisma.users$coachArgs<ExtArgs>
}, ExtArgs["result"]["users"]>

export type usersSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  role?: boolean
  coach_id?: boolean
  created_at?: boolean
  coach?: boolean | Prisma.users$coachArgs<ExtArgs>
}, ExtArgs["result"]["users"]>

export type usersSelectScalar = {
  id?: boolean
  name?: boolean
  role?: boolean
  coach_id?: boolean
  created_at?: boolean
}

export type usersOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "role" | "coach_id" | "created_at", ExtArgs["result"]["users"]>
export type usersInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  coach?: boolean | Prisma.users$coachArgs<ExtArgs>
  clients?: boolean | Prisma.users$clientsArgs<ExtArgs>
  created_menus?: boolean | Prisma.users$created_menusArgs<ExtArgs>
  assigned_menus?: boolean | Prisma.users$assigned_menusArgs<ExtArgs>
  recaps?: boolean | Prisma.users$recapsArgs<ExtArgs>
  activity_logs?: boolean | Prisma.users$activity_logsArgs<ExtArgs>
  _count?: boolean | Prisma.UsersCountOutputTypeDefaultArgs<ExtArgs>
}
export type usersIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  coach?: boolean | Prisma.users$coachArgs<ExtArgs>
}
export type usersIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  coach?: boolean | Prisma.users$coachArgs<ExtArgs>
}

export type $usersPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "users"
  objects: {
    coach: Prisma.$usersPayload<ExtArgs> | null
    clients: Prisma.$usersPayload<ExtArgs>[]
    created_menus: Prisma.$training_menusPayload<ExtArgs>[]
    assigned_menus: Prisma.$training_menusPayload<ExtArgs>[]
    recaps: Prisma.$user_recapsPayload<ExtArgs>[]
    activity_logs: Prisma.$activity_logsPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    name: string
    role: string
    coach_id: string | null
    created_at: Date | null
  }, ExtArgs["result"]["users"]>
  composites: {}
}

export type usersGetPayload<S extends boolean | null | undefined | usersDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$usersPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for users.
 * 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__usersClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  coach<T extends Prisma.users$coachArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.users$coachArgs<ExtArgs>>): Prisma.Prisma__usersClient<runtime.Types.Result.GetResult<Prisma.$usersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  clients<T extends Prisma.users$clientsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.users$clientsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$usersPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  created_menus<T extends Prisma.users$created_menusArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.users$created_menusArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$training_menusPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  assigned_menus<T extends Prisma.users$assigned_menusArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.users$assigned_menusArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$training_menusPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  recaps<T extends Prisma.users$recapsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.users$recapsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$user_recapsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  activity_logs<T extends Prisma.users$activity_logsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.users$activity_logsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  /**
   * 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 users model
 */
export interface usersFieldRefs {
  readonly id: Prisma.FieldRef<"users", 'String'>
  readonly name: Prisma.FieldRef<"users", 'String'>
  readonly role: Prisma.FieldRef<"users", 'String'>
  readonly coach_id: Prisma.FieldRef<"users", 'String'>
  readonly created_at: Prisma.FieldRef<"users", 'DateTime'>
}
    

// Custom InputTypes
/**
 * users findUnique
 */
export type usersFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the users
   */
  select?: Prisma.usersSelect<ExtArgs> | null
  /**
   * Omit specific fields from the users
   */
  omit?: Prisma.usersOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.usersInclude<ExtArgs> | null
  /**
   * Filter, which users to fetch.
   */
  where: Prisma.usersWhereUniqueInput
}

/**
 * users findUniqueOrThrow
 */
export type usersFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the users
   */
  select?: Prisma.usersSelect<ExtArgs> | null
  /**
   * Omit specific fields from the users
   */
  omit?: Prisma.usersOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.usersInclude<ExtArgs> | null
  /**
   * Filter, which users to fetch.
   */
  where: Prisma.usersWhereUniqueInput
}

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

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

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

/**
 * users create
 */
export type usersCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the users
   */
  select?: Prisma.usersSelect<ExtArgs> | null
  /**
   * Omit specific fields from the users
   */
  omit?: Prisma.usersOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.usersInclude<ExtArgs> | null
  /**
   * The data needed to create a users.
   */
  data: Prisma.XOR<Prisma.usersCreateInput, Prisma.usersUncheckedCreateInput>
}

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

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

/**
 * users update
 */
export type usersUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the users
   */
  select?: Prisma.usersSelect<ExtArgs> | null
  /**
   * Omit specific fields from the users
   */
  omit?: Prisma.usersOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.usersInclude<ExtArgs> | null
  /**
   * The data needed to update a users.
   */
  data: Prisma.XOR<Prisma.usersUpdateInput, Prisma.usersUncheckedUpdateInput>
  /**
   * Choose, which users to update.
   */
  where: Prisma.usersWhereUniqueInput
}

/**
 * users updateMany
 */
export type usersUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update users.
   */
  data: Prisma.XOR<Prisma.usersUpdateManyMutationInput, Prisma.usersUncheckedUpdateManyInput>
  /**
   * Filter which users to update
   */
  where?: Prisma.usersWhereInput
  /**
   * Limit how many users to update.
   */
  limit?: number
}

/**
 * users updateManyAndReturn
 */
export type usersUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the users
   */
  select?: Prisma.usersSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the users
   */
  omit?: Prisma.usersOmit<ExtArgs> | null
  /**
   * The data used to update users.
   */
  data: Prisma.XOR<Prisma.usersUpdateManyMutationInput, Prisma.usersUncheckedUpdateManyInput>
  /**
   * Filter which users to update
   */
  where?: Prisma.usersWhereInput
  /**
   * Limit how many users to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.usersIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * users upsert
 */
export type usersUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the users
   */
  select?: Prisma.usersSelect<ExtArgs> | null
  /**
   * Omit specific fields from the users
   */
  omit?: Prisma.usersOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.usersInclude<ExtArgs> | null
  /**
   * The filter to search for the users to update in case it exists.
   */
  where: Prisma.usersWhereUniqueInput
  /**
   * In case the users found by the `where` argument doesn't exist, create a new users with this data.
   */
  create: Prisma.XOR<Prisma.usersCreateInput, Prisma.usersUncheckedCreateInput>
  /**
   * In case the users was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.usersUpdateInput, Prisma.usersUncheckedUpdateInput>
}

/**
 * users delete
 */
export type usersDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the users
   */
  select?: Prisma.usersSelect<ExtArgs> | null
  /**
   * Omit specific fields from the users
   */
  omit?: Prisma.usersOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.usersInclude<ExtArgs> | null
  /**
   * Filter which users to delete.
   */
  where: Prisma.usersWhereUniqueInput
}

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

/**
 * users.coach
 */
export type users$coachArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the users
   */
  select?: Prisma.usersSelect<ExtArgs> | null
  /**
   * Omit specific fields from the users
   */
  omit?: Prisma.usersOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.usersInclude<ExtArgs> | null
  where?: Prisma.usersWhereInput
}

/**
 * users.clients
 */
export type users$clientsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the users
   */
  select?: Prisma.usersSelect<ExtArgs> | null
  /**
   * Omit specific fields from the users
   */
  omit?: Prisma.usersOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.usersInclude<ExtArgs> | null
  where?: Prisma.usersWhereInput
  orderBy?: Prisma.usersOrderByWithRelationInput | Prisma.usersOrderByWithRelationInput[]
  cursor?: Prisma.usersWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[]
}

/**
 * users.created_menus
 */
export type users$created_menusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the training_menus
   */
  select?: Prisma.training_menusSelect<ExtArgs> | null
  /**
   * Omit specific fields from the training_menus
   */
  omit?: Prisma.training_menusOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.training_menusInclude<ExtArgs> | null
  where?: Prisma.training_menusWhereInput
  orderBy?: Prisma.training_menusOrderByWithRelationInput | Prisma.training_menusOrderByWithRelationInput[]
  cursor?: Prisma.training_menusWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.Training_menusScalarFieldEnum | Prisma.Training_menusScalarFieldEnum[]
}

/**
 * users.assigned_menus
 */
export type users$assigned_menusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the training_menus
   */
  select?: Prisma.training_menusSelect<ExtArgs> | null
  /**
   * Omit specific fields from the training_menus
   */
  omit?: Prisma.training_menusOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.training_menusInclude<ExtArgs> | null
  where?: Prisma.training_menusWhereInput
  orderBy?: Prisma.training_menusOrderByWithRelationInput | Prisma.training_menusOrderByWithRelationInput[]
  cursor?: Prisma.training_menusWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.Training_menusScalarFieldEnum | Prisma.Training_menusScalarFieldEnum[]
}

/**
 * users.recaps
 */
export type users$recapsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the user_recaps
   */
  select?: Prisma.user_recapsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the user_recaps
   */
  omit?: Prisma.user_recapsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.user_recapsInclude<ExtArgs> | null
  where?: Prisma.user_recapsWhereInput
  orderBy?: Prisma.user_recapsOrderByWithRelationInput | Prisma.user_recapsOrderByWithRelationInput[]
  cursor?: Prisma.user_recapsWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.User_recapsScalarFieldEnum | Prisma.User_recapsScalarFieldEnum[]
}

/**
 * users.activity_logs
 */
export type users$activity_logsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the activity_logs
   */
  select?: Prisma.activity_logsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the activity_logs
   */
  omit?: Prisma.activity_logsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.activity_logsInclude<ExtArgs> | null
  where?: Prisma.activity_logsWhereInput
  orderBy?: Prisma.activity_logsOrderByWithRelationInput | Prisma.activity_logsOrderByWithRelationInput[]
  cursor?: Prisma.activity_logsWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.Activity_logsScalarFieldEnum | Prisma.Activity_logsScalarFieldEnum[]
}

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