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

/**
 * Model Board
 * 
 */
export type BoardModel = runtime.Types.Result.DefaultSelection<Prisma.$BoardPayload>

export type AggregateBoard = {
  _count: BoardCountAggregateOutputType | null
  _min: BoardMinAggregateOutputType | null
  _max: BoardMaxAggregateOutputType | null
}

export type BoardMinAggregateOutputType = {
  id: string | null
  type: string | null
  name: string | null
  description: string | null
  userId: string | null
  teamId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type BoardMaxAggregateOutputType = {
  id: string | null
  type: string | null
  name: string | null
  description: string | null
  userId: string | null
  teamId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type BoardCountAggregateOutputType = {
  id: number
  type: number
  name: number
  description: number
  parameters: number
  userId: number
  teamId: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type BoardMinAggregateInputType = {
  id?: true
  type?: true
  name?: true
  description?: true
  userId?: true
  teamId?: true
  createdAt?: true
  updatedAt?: true
}

export type BoardMaxAggregateInputType = {
  id?: true
  type?: true
  name?: true
  description?: true
  userId?: true
  teamId?: true
  createdAt?: true
  updatedAt?: true
}

export type BoardCountAggregateInputType = {
  id?: true
  type?: true
  name?: true
  description?: true
  parameters?: true
  userId?: true
  teamId?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type BoardGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.BoardWhereInput
  orderBy?: Prisma.BoardOrderByWithAggregationInput | Prisma.BoardOrderByWithAggregationInput[]
  by: Prisma.BoardScalarFieldEnum[] | Prisma.BoardScalarFieldEnum
  having?: Prisma.BoardScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: BoardCountAggregateInputType | true
  _min?: BoardMinAggregateInputType
  _max?: BoardMaxAggregateInputType
}

export type BoardGroupByOutputType = {
  id: string
  type: string
  name: string
  description: string
  parameters: runtime.JsonValue
  userId: string | null
  teamId: string | null
  createdAt: Date | null
  updatedAt: Date | null
  _count: BoardCountAggregateOutputType | null
  _min: BoardMinAggregateOutputType | null
  _max: BoardMaxAggregateOutputType | null
}

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



export type BoardWhereInput = {
  AND?: Prisma.BoardWhereInput | Prisma.BoardWhereInput[]
  OR?: Prisma.BoardWhereInput[]
  NOT?: Prisma.BoardWhereInput | Prisma.BoardWhereInput[]
  id?: Prisma.UuidFilter<"Board"> | string
  type?: Prisma.StringFilter<"Board"> | string
  name?: Prisma.StringFilter<"Board"> | string
  description?: Prisma.StringFilter<"Board"> | string
  parameters?: Prisma.JsonFilter<"Board">
  userId?: Prisma.UuidNullableFilter<"Board"> | string | null
  teamId?: Prisma.UuidNullableFilter<"Board"> | string | null
  createdAt?: Prisma.DateTimeNullableFilter<"Board"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableFilter<"Board"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  team?: Prisma.XOR<Prisma.TeamNullableScalarRelationFilter, Prisma.TeamWhereInput> | null
}

export type BoardOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  parameters?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  teamId?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  user?: Prisma.UserOrderByWithRelationInput
  team?: Prisma.TeamOrderByWithRelationInput
}

export type BoardWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.BoardWhereInput | Prisma.BoardWhereInput[]
  OR?: Prisma.BoardWhereInput[]
  NOT?: Prisma.BoardWhereInput | Prisma.BoardWhereInput[]
  type?: Prisma.StringFilter<"Board"> | string
  name?: Prisma.StringFilter<"Board"> | string
  description?: Prisma.StringFilter<"Board"> | string
  parameters?: Prisma.JsonFilter<"Board">
  userId?: Prisma.UuidNullableFilter<"Board"> | string | null
  teamId?: Prisma.UuidNullableFilter<"Board"> | string | null
  createdAt?: Prisma.DateTimeNullableFilter<"Board"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableFilter<"Board"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  team?: Prisma.XOR<Prisma.TeamNullableScalarRelationFilter, Prisma.TeamWhereInput> | null
}, "id">

export type BoardOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  parameters?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  teamId?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.BoardCountOrderByAggregateInput
  _max?: Prisma.BoardMaxOrderByAggregateInput
  _min?: Prisma.BoardMinOrderByAggregateInput
}

export type BoardScalarWhereWithAggregatesInput = {
  AND?: Prisma.BoardScalarWhereWithAggregatesInput | Prisma.BoardScalarWhereWithAggregatesInput[]
  OR?: Prisma.BoardScalarWhereWithAggregatesInput[]
  NOT?: Prisma.BoardScalarWhereWithAggregatesInput | Prisma.BoardScalarWhereWithAggregatesInput[]
  id?: Prisma.UuidWithAggregatesFilter<"Board"> | string
  type?: Prisma.StringWithAggregatesFilter<"Board"> | string
  name?: Prisma.StringWithAggregatesFilter<"Board"> | string
  description?: Prisma.StringWithAggregatesFilter<"Board"> | string
  parameters?: Prisma.JsonWithAggregatesFilter<"Board">
  userId?: Prisma.UuidNullableWithAggregatesFilter<"Board"> | string | null
  teamId?: Prisma.UuidNullableWithAggregatesFilter<"Board"> | string | null
  createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Board"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Board"> | Date | string | null
}

export type BoardCreateInput = {
  id: string
  type: string
  name: string
  description: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  user?: Prisma.UserCreateNestedOneWithoutBoardsInput
  team?: Prisma.TeamCreateNestedOneWithoutBoardsInput
}

export type BoardUncheckedCreateInput = {
  id: string
  type: string
  name: string
  description: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  userId?: string | null
  teamId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type BoardUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  user?: Prisma.UserUpdateOneWithoutBoardsNestedInput
  team?: Prisma.TeamUpdateOneWithoutBoardsNestedInput
}

export type BoardUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type BoardCreateManyInput = {
  id: string
  type: string
  name: string
  description: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  userId?: string | null
  teamId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type BoardUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type BoardUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type BoardListRelationFilter = {
  every?: Prisma.BoardWhereInput
  some?: Prisma.BoardWhereInput
  none?: Prisma.BoardWhereInput
}

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

export type BoardCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  parameters?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type BoardMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type BoardMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type BoardCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.BoardCreateWithoutUserInput, Prisma.BoardUncheckedCreateWithoutUserInput> | Prisma.BoardCreateWithoutUserInput[] | Prisma.BoardUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.BoardCreateOrConnectWithoutUserInput | Prisma.BoardCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.BoardCreateManyUserInputEnvelope
  connect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
}

export type BoardUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.BoardCreateWithoutUserInput, Prisma.BoardUncheckedCreateWithoutUserInput> | Prisma.BoardCreateWithoutUserInput[] | Prisma.BoardUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.BoardCreateOrConnectWithoutUserInput | Prisma.BoardCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.BoardCreateManyUserInputEnvelope
  connect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
}

export type BoardUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.BoardCreateWithoutUserInput, Prisma.BoardUncheckedCreateWithoutUserInput> | Prisma.BoardCreateWithoutUserInput[] | Prisma.BoardUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.BoardCreateOrConnectWithoutUserInput | Prisma.BoardCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.BoardUpsertWithWhereUniqueWithoutUserInput | Prisma.BoardUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.BoardCreateManyUserInputEnvelope
  set?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  disconnect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  delete?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  connect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  update?: Prisma.BoardUpdateWithWhereUniqueWithoutUserInput | Prisma.BoardUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.BoardUpdateManyWithWhereWithoutUserInput | Prisma.BoardUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.BoardScalarWhereInput | Prisma.BoardScalarWhereInput[]
}

export type BoardUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.BoardCreateWithoutUserInput, Prisma.BoardUncheckedCreateWithoutUserInput> | Prisma.BoardCreateWithoutUserInput[] | Prisma.BoardUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.BoardCreateOrConnectWithoutUserInput | Prisma.BoardCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.BoardUpsertWithWhereUniqueWithoutUserInput | Prisma.BoardUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.BoardCreateManyUserInputEnvelope
  set?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  disconnect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  delete?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  connect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  update?: Prisma.BoardUpdateWithWhereUniqueWithoutUserInput | Prisma.BoardUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.BoardUpdateManyWithWhereWithoutUserInput | Prisma.BoardUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.BoardScalarWhereInput | Prisma.BoardScalarWhereInput[]
}

export type BoardCreateNestedManyWithoutTeamInput = {
  create?: Prisma.XOR<Prisma.BoardCreateWithoutTeamInput, Prisma.BoardUncheckedCreateWithoutTeamInput> | Prisma.BoardCreateWithoutTeamInput[] | Prisma.BoardUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.BoardCreateOrConnectWithoutTeamInput | Prisma.BoardCreateOrConnectWithoutTeamInput[]
  createMany?: Prisma.BoardCreateManyTeamInputEnvelope
  connect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
}

export type BoardUncheckedCreateNestedManyWithoutTeamInput = {
  create?: Prisma.XOR<Prisma.BoardCreateWithoutTeamInput, Prisma.BoardUncheckedCreateWithoutTeamInput> | Prisma.BoardCreateWithoutTeamInput[] | Prisma.BoardUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.BoardCreateOrConnectWithoutTeamInput | Prisma.BoardCreateOrConnectWithoutTeamInput[]
  createMany?: Prisma.BoardCreateManyTeamInputEnvelope
  connect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
}

export type BoardUpdateManyWithoutTeamNestedInput = {
  create?: Prisma.XOR<Prisma.BoardCreateWithoutTeamInput, Prisma.BoardUncheckedCreateWithoutTeamInput> | Prisma.BoardCreateWithoutTeamInput[] | Prisma.BoardUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.BoardCreateOrConnectWithoutTeamInput | Prisma.BoardCreateOrConnectWithoutTeamInput[]
  upsert?: Prisma.BoardUpsertWithWhereUniqueWithoutTeamInput | Prisma.BoardUpsertWithWhereUniqueWithoutTeamInput[]
  createMany?: Prisma.BoardCreateManyTeamInputEnvelope
  set?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  disconnect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  delete?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  connect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  update?: Prisma.BoardUpdateWithWhereUniqueWithoutTeamInput | Prisma.BoardUpdateWithWhereUniqueWithoutTeamInput[]
  updateMany?: Prisma.BoardUpdateManyWithWhereWithoutTeamInput | Prisma.BoardUpdateManyWithWhereWithoutTeamInput[]
  deleteMany?: Prisma.BoardScalarWhereInput | Prisma.BoardScalarWhereInput[]
}

export type BoardUncheckedUpdateManyWithoutTeamNestedInput = {
  create?: Prisma.XOR<Prisma.BoardCreateWithoutTeamInput, Prisma.BoardUncheckedCreateWithoutTeamInput> | Prisma.BoardCreateWithoutTeamInput[] | Prisma.BoardUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.BoardCreateOrConnectWithoutTeamInput | Prisma.BoardCreateOrConnectWithoutTeamInput[]
  upsert?: Prisma.BoardUpsertWithWhereUniqueWithoutTeamInput | Prisma.BoardUpsertWithWhereUniqueWithoutTeamInput[]
  createMany?: Prisma.BoardCreateManyTeamInputEnvelope
  set?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  disconnect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  delete?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  connect?: Prisma.BoardWhereUniqueInput | Prisma.BoardWhereUniqueInput[]
  update?: Prisma.BoardUpdateWithWhereUniqueWithoutTeamInput | Prisma.BoardUpdateWithWhereUniqueWithoutTeamInput[]
  updateMany?: Prisma.BoardUpdateManyWithWhereWithoutTeamInput | Prisma.BoardUpdateManyWithWhereWithoutTeamInput[]
  deleteMany?: Prisma.BoardScalarWhereInput | Prisma.BoardScalarWhereInput[]
}

export type BoardCreateWithoutUserInput = {
  id: string
  type: string
  name: string
  description: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  team?: Prisma.TeamCreateNestedOneWithoutBoardsInput
}

export type BoardUncheckedCreateWithoutUserInput = {
  id: string
  type: string
  name: string
  description: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  teamId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type BoardCreateOrConnectWithoutUserInput = {
  where: Prisma.BoardWhereUniqueInput
  create: Prisma.XOR<Prisma.BoardCreateWithoutUserInput, Prisma.BoardUncheckedCreateWithoutUserInput>
}

export type BoardCreateManyUserInputEnvelope = {
  data: Prisma.BoardCreateManyUserInput | Prisma.BoardCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type BoardUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.BoardWhereUniqueInput
  update: Prisma.XOR<Prisma.BoardUpdateWithoutUserInput, Prisma.BoardUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.BoardCreateWithoutUserInput, Prisma.BoardUncheckedCreateWithoutUserInput>
}

export type BoardUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.BoardWhereUniqueInput
  data: Prisma.XOR<Prisma.BoardUpdateWithoutUserInput, Prisma.BoardUncheckedUpdateWithoutUserInput>
}

export type BoardUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.BoardScalarWhereInput
  data: Prisma.XOR<Prisma.BoardUpdateManyMutationInput, Prisma.BoardUncheckedUpdateManyWithoutUserInput>
}

export type BoardScalarWhereInput = {
  AND?: Prisma.BoardScalarWhereInput | Prisma.BoardScalarWhereInput[]
  OR?: Prisma.BoardScalarWhereInput[]
  NOT?: Prisma.BoardScalarWhereInput | Prisma.BoardScalarWhereInput[]
  id?: Prisma.UuidFilter<"Board"> | string
  type?: Prisma.StringFilter<"Board"> | string
  name?: Prisma.StringFilter<"Board"> | string
  description?: Prisma.StringFilter<"Board"> | string
  parameters?: Prisma.JsonFilter<"Board">
  userId?: Prisma.UuidNullableFilter<"Board"> | string | null
  teamId?: Prisma.UuidNullableFilter<"Board"> | string | null
  createdAt?: Prisma.DateTimeNullableFilter<"Board"> | Date | string | null
  updatedAt?: Prisma.DateTimeNullableFilter<"Board"> | Date | string | null
}

export type BoardCreateWithoutTeamInput = {
  id: string
  type: string
  name: string
  description: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
  user?: Prisma.UserCreateNestedOneWithoutBoardsInput
}

export type BoardUncheckedCreateWithoutTeamInput = {
  id: string
  type: string
  name: string
  description: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  userId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type BoardCreateOrConnectWithoutTeamInput = {
  where: Prisma.BoardWhereUniqueInput
  create: Prisma.XOR<Prisma.BoardCreateWithoutTeamInput, Prisma.BoardUncheckedCreateWithoutTeamInput>
}

export type BoardCreateManyTeamInputEnvelope = {
  data: Prisma.BoardCreateManyTeamInput | Prisma.BoardCreateManyTeamInput[]
  skipDuplicates?: boolean
}

export type BoardUpsertWithWhereUniqueWithoutTeamInput = {
  where: Prisma.BoardWhereUniqueInput
  update: Prisma.XOR<Prisma.BoardUpdateWithoutTeamInput, Prisma.BoardUncheckedUpdateWithoutTeamInput>
  create: Prisma.XOR<Prisma.BoardCreateWithoutTeamInput, Prisma.BoardUncheckedCreateWithoutTeamInput>
}

export type BoardUpdateWithWhereUniqueWithoutTeamInput = {
  where: Prisma.BoardWhereUniqueInput
  data: Prisma.XOR<Prisma.BoardUpdateWithoutTeamInput, Prisma.BoardUncheckedUpdateWithoutTeamInput>
}

export type BoardUpdateManyWithWhereWithoutTeamInput = {
  where: Prisma.BoardScalarWhereInput
  data: Prisma.XOR<Prisma.BoardUpdateManyMutationInput, Prisma.BoardUncheckedUpdateManyWithoutTeamInput>
}

export type BoardCreateManyUserInput = {
  id: string
  type: string
  name: string
  description: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  teamId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type BoardUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  team?: Prisma.TeamUpdateOneWithoutBoardsNestedInput
}

export type BoardUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type BoardUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type BoardCreateManyTeamInput = {
  id: string
  type: string
  name: string
  description: string
  parameters: Prisma.JsonNullValueInput | runtime.InputJsonValue
  userId?: string | null
  createdAt?: Date | string | null
  updatedAt?: Date | string | null
}

export type BoardUpdateWithoutTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  user?: Prisma.UserUpdateOneWithoutBoardsNestedInput
}

export type BoardUncheckedUpdateWithoutTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type BoardUncheckedUpdateManyWithoutTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  parameters?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type BoardSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  type?: boolean
  name?: boolean
  description?: boolean
  parameters?: boolean
  userId?: boolean
  teamId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  user?: boolean | Prisma.Board$userArgs<ExtArgs>
  team?: boolean | Prisma.Board$teamArgs<ExtArgs>
}, ExtArgs["result"]["board"]>

export type BoardSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  type?: boolean
  name?: boolean
  description?: boolean
  parameters?: boolean
  userId?: boolean
  teamId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  user?: boolean | Prisma.Board$userArgs<ExtArgs>
  team?: boolean | Prisma.Board$teamArgs<ExtArgs>
}, ExtArgs["result"]["board"]>

export type BoardSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  type?: boolean
  name?: boolean
  description?: boolean
  parameters?: boolean
  userId?: boolean
  teamId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  user?: boolean | Prisma.Board$userArgs<ExtArgs>
  team?: boolean | Prisma.Board$teamArgs<ExtArgs>
}, ExtArgs["result"]["board"]>

export type BoardSelectScalar = {
  id?: boolean
  type?: boolean
  name?: boolean
  description?: boolean
  parameters?: boolean
  userId?: boolean
  teamId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type BoardOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "type" | "name" | "description" | "parameters" | "userId" | "teamId" | "createdAt" | "updatedAt", ExtArgs["result"]["board"]>
export type BoardInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.Board$userArgs<ExtArgs>
  team?: boolean | Prisma.Board$teamArgs<ExtArgs>
}
export type BoardIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.Board$userArgs<ExtArgs>
  team?: boolean | Prisma.Board$teamArgs<ExtArgs>
}
export type BoardIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.Board$userArgs<ExtArgs>
  team?: boolean | Prisma.Board$teamArgs<ExtArgs>
}

export type $BoardPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Board"
  objects: {
    user: Prisma.$UserPayload<ExtArgs> | null
    team: Prisma.$TeamPayload<ExtArgs> | null
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    type: string
    name: string
    description: string
    parameters: runtime.JsonValue
    userId: string | null
    teamId: string | null
    createdAt: Date | null
    updatedAt: Date | null
  }, ExtArgs["result"]["board"]>
  composites: {}
}

export type BoardGetPayload<S extends boolean | null | undefined | BoardDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BoardPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Board.
 * 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__BoardClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  user<T extends Prisma.Board$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Board$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  team<T extends Prisma.Board$teamArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Board$teamArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<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 Board model
 */
export interface BoardFieldRefs {
  readonly id: Prisma.FieldRef<"Board", 'String'>
  readonly type: Prisma.FieldRef<"Board", 'String'>
  readonly name: Prisma.FieldRef<"Board", 'String'>
  readonly description: Prisma.FieldRef<"Board", 'String'>
  readonly parameters: Prisma.FieldRef<"Board", 'Json'>
  readonly userId: Prisma.FieldRef<"Board", 'String'>
  readonly teamId: Prisma.FieldRef<"Board", 'String'>
  readonly createdAt: Prisma.FieldRef<"Board", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Board", 'DateTime'>
}
    

// Custom InputTypes
/**
 * Board findUnique
 */
export type BoardFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Board
   */
  select?: Prisma.BoardSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Board
   */
  omit?: Prisma.BoardOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoardInclude<ExtArgs> | null
  /**
   * Filter, which Board to fetch.
   */
  where: Prisma.BoardWhereUniqueInput
}

/**
 * Board findUniqueOrThrow
 */
export type BoardFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Board
   */
  select?: Prisma.BoardSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Board
   */
  omit?: Prisma.BoardOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoardInclude<ExtArgs> | null
  /**
   * Filter, which Board to fetch.
   */
  where: Prisma.BoardWhereUniqueInput
}

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

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

/**
 * Board findMany
 */
export type BoardFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Board
   */
  select?: Prisma.BoardSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Board
   */
  omit?: Prisma.BoardOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoardInclude<ExtArgs> | null
  /**
   * Filter, which Boards to fetch.
   */
  where?: Prisma.BoardWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Boards to fetch.
   */
  orderBy?: Prisma.BoardOrderByWithRelationInput | Prisma.BoardOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing Boards.
   */
  cursor?: Prisma.BoardWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Boards 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` Boards.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Boards.
   */
  distinct?: Prisma.BoardScalarFieldEnum | Prisma.BoardScalarFieldEnum[]
}

/**
 * Board create
 */
export type BoardCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Board
   */
  select?: Prisma.BoardSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Board
   */
  omit?: Prisma.BoardOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoardInclude<ExtArgs> | null
  /**
   * The data needed to create a Board.
   */
  data: Prisma.XOR<Prisma.BoardCreateInput, Prisma.BoardUncheckedCreateInput>
}

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

/**
 * Board createManyAndReturn
 */
export type BoardCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Board
   */
  select?: Prisma.BoardSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Board
   */
  omit?: Prisma.BoardOmit<ExtArgs> | null
  /**
   * The data used to create many Boards.
   */
  data: Prisma.BoardCreateManyInput | Prisma.BoardCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoardIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Board update
 */
export type BoardUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Board
   */
  select?: Prisma.BoardSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Board
   */
  omit?: Prisma.BoardOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoardInclude<ExtArgs> | null
  /**
   * The data needed to update a Board.
   */
  data: Prisma.XOR<Prisma.BoardUpdateInput, Prisma.BoardUncheckedUpdateInput>
  /**
   * Choose, which Board to update.
   */
  where: Prisma.BoardWhereUniqueInput
}

/**
 * Board updateMany
 */
export type BoardUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Boards.
   */
  data: Prisma.XOR<Prisma.BoardUpdateManyMutationInput, Prisma.BoardUncheckedUpdateManyInput>
  /**
   * Filter which Boards to update
   */
  where?: Prisma.BoardWhereInput
  /**
   * Limit how many Boards to update.
   */
  limit?: number
}

/**
 * Board updateManyAndReturn
 */
export type BoardUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Board
   */
  select?: Prisma.BoardSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Board
   */
  omit?: Prisma.BoardOmit<ExtArgs> | null
  /**
   * The data used to update Boards.
   */
  data: Prisma.XOR<Prisma.BoardUpdateManyMutationInput, Prisma.BoardUncheckedUpdateManyInput>
  /**
   * Filter which Boards to update
   */
  where?: Prisma.BoardWhereInput
  /**
   * Limit how many Boards to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoardIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Board upsert
 */
export type BoardUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Board
   */
  select?: Prisma.BoardSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Board
   */
  omit?: Prisma.BoardOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoardInclude<ExtArgs> | null
  /**
   * The filter to search for the Board to update in case it exists.
   */
  where: Prisma.BoardWhereUniqueInput
  /**
   * In case the Board found by the `where` argument doesn't exist, create a new Board with this data.
   */
  create: Prisma.XOR<Prisma.BoardCreateInput, Prisma.BoardUncheckedCreateInput>
  /**
   * In case the Board was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.BoardUpdateInput, Prisma.BoardUncheckedUpdateInput>
}

/**
 * Board delete
 */
export type BoardDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Board
   */
  select?: Prisma.BoardSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Board
   */
  omit?: Prisma.BoardOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoardInclude<ExtArgs> | null
  /**
   * Filter which Board to delete.
   */
  where: Prisma.BoardWhereUniqueInput
}

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

/**
 * Board.user
 */
export type Board$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  where?: Prisma.UserWhereInput
}

/**
 * Board.team
 */
export type Board$teamArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Team
   */
  select?: Prisma.TeamSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Team
   */
  omit?: Prisma.TeamOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TeamInclude<ExtArgs> | null
  where?: Prisma.TeamWhereInput
}

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