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

/**
 * Model OrganizationRole
 * 
 */
export type OrganizationRoleModel = runtime.Types.Result.DefaultSelection<Prisma.$OrganizationRolePayload>

export type AggregateOrganizationRole = {
  _count: OrganizationRoleCountAggregateOutputType | null
  _min: OrganizationRoleMinAggregateOutputType | null
  _max: OrganizationRoleMaxAggregateOutputType | null
}

export type OrganizationRoleMinAggregateOutputType = {
  id: string | null
  organizationId: string | null
  role: string | null
  permission: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type OrganizationRoleMaxAggregateOutputType = {
  id: string | null
  organizationId: string | null
  role: string | null
  permission: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type OrganizationRoleCountAggregateOutputType = {
  id: number
  organizationId: number
  role: number
  permission: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type OrganizationRoleMinAggregateInputType = {
  id?: true
  organizationId?: true
  role?: true
  permission?: true
  createdAt?: true
  updatedAt?: true
}

export type OrganizationRoleMaxAggregateInputType = {
  id?: true
  organizationId?: true
  role?: true
  permission?: true
  createdAt?: true
  updatedAt?: true
}

export type OrganizationRoleCountAggregateInputType = {
  id?: true
  organizationId?: true
  role?: true
  permission?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type OrganizationRoleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.OrganizationRoleWhereInput
  orderBy?: Prisma.OrganizationRoleOrderByWithAggregationInput | Prisma.OrganizationRoleOrderByWithAggregationInput[]
  by: Prisma.OrganizationRoleScalarFieldEnum[] | Prisma.OrganizationRoleScalarFieldEnum
  having?: Prisma.OrganizationRoleScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: OrganizationRoleCountAggregateInputType | true
  _min?: OrganizationRoleMinAggregateInputType
  _max?: OrganizationRoleMaxAggregateInputType
}

export type OrganizationRoleGroupByOutputType = {
  id: string
  organizationId: string
  role: string
  permission: string
  createdAt: Date
  updatedAt: Date | null
  _count: OrganizationRoleCountAggregateOutputType | null
  _min: OrganizationRoleMinAggregateOutputType | null
  _max: OrganizationRoleMaxAggregateOutputType | null
}

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



export type OrganizationRoleWhereInput = {
  AND?: Prisma.OrganizationRoleWhereInput | Prisma.OrganizationRoleWhereInput[]
  OR?: Prisma.OrganizationRoleWhereInput[]
  NOT?: Prisma.OrganizationRoleWhereInput | Prisma.OrganizationRoleWhereInput[]
  id?: Prisma.StringFilter<"OrganizationRole"> | string
  organizationId?: Prisma.StringFilter<"OrganizationRole"> | string
  role?: Prisma.StringFilter<"OrganizationRole"> | string
  permission?: Prisma.StringFilter<"OrganizationRole"> | string
  createdAt?: Prisma.DateTimeFilter<"OrganizationRole"> | Date | string
  updatedAt?: Prisma.DateTimeNullableFilter<"OrganizationRole"> | Date | string | null
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
}

export type OrganizationRoleOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  permission?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  organization?: Prisma.OrganizationOrderByWithRelationInput
}

export type OrganizationRoleWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.OrganizationRoleWhereInput | Prisma.OrganizationRoleWhereInput[]
  OR?: Prisma.OrganizationRoleWhereInput[]
  NOT?: Prisma.OrganizationRoleWhereInput | Prisma.OrganizationRoleWhereInput[]
  organizationId?: Prisma.StringFilter<"OrganizationRole"> | string
  role?: Prisma.StringFilter<"OrganizationRole"> | string
  permission?: Prisma.StringFilter<"OrganizationRole"> | string
  createdAt?: Prisma.DateTimeFilter<"OrganizationRole"> | Date | string
  updatedAt?: Prisma.DateTimeNullableFilter<"OrganizationRole"> | Date | string | null
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
}, "id">

export type OrganizationRoleOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  permission?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.OrganizationRoleCountOrderByAggregateInput
  _max?: Prisma.OrganizationRoleMaxOrderByAggregateInput
  _min?: Prisma.OrganizationRoleMinOrderByAggregateInput
}

export type OrganizationRoleScalarWhereWithAggregatesInput = {
  AND?: Prisma.OrganizationRoleScalarWhereWithAggregatesInput | Prisma.OrganizationRoleScalarWhereWithAggregatesInput[]
  OR?: Prisma.OrganizationRoleScalarWhereWithAggregatesInput[]
  NOT?: Prisma.OrganizationRoleScalarWhereWithAggregatesInput | Prisma.OrganizationRoleScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"OrganizationRole"> | string
  organizationId?: Prisma.StringWithAggregatesFilter<"OrganizationRole"> | string
  role?: Prisma.StringWithAggregatesFilter<"OrganizationRole"> | string
  permission?: Prisma.StringWithAggregatesFilter<"OrganizationRole"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"OrganizationRole"> | Date | string
  updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OrganizationRole"> | Date | string | null
}

export type OrganizationRoleCreateInput = {
  id: string
  role: string
  permission: string
  createdAt?: Date | string
  updatedAt?: Date | string | null
  organization: Prisma.OrganizationCreateNestedOneWithoutOrganizationrolesInput
}

export type OrganizationRoleUncheckedCreateInput = {
  id: string
  organizationId: string
  role: string
  permission: string
  createdAt?: Date | string
  updatedAt?: Date | string | null
}

export type OrganizationRoleUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  permission?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutOrganizationrolesNestedInput
}

export type OrganizationRoleUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  permission?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type OrganizationRoleCreateManyInput = {
  id: string
  organizationId: string
  role: string
  permission: string
  createdAt?: Date | string
  updatedAt?: Date | string | null
}

export type OrganizationRoleUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  permission?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type OrganizationRoleUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  permission?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type OrganizationRoleListRelationFilter = {
  every?: Prisma.OrganizationRoleWhereInput
  some?: Prisma.OrganizationRoleWhereInput
  none?: Prisma.OrganizationRoleWhereInput
}

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

export type OrganizationRoleCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  permission?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type OrganizationRoleMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  permission?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type OrganizationRoleMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  permission?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type OrganizationRoleCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.OrganizationRoleCreateWithoutOrganizationInput, Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput> | Prisma.OrganizationRoleCreateWithoutOrganizationInput[] | Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.OrganizationRoleCreateOrConnectWithoutOrganizationInput | Prisma.OrganizationRoleCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.OrganizationRoleCreateManyOrganizationInputEnvelope
  connect?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
}

export type OrganizationRoleUncheckedCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.OrganizationRoleCreateWithoutOrganizationInput, Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput> | Prisma.OrganizationRoleCreateWithoutOrganizationInput[] | Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.OrganizationRoleCreateOrConnectWithoutOrganizationInput | Prisma.OrganizationRoleCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.OrganizationRoleCreateManyOrganizationInputEnvelope
  connect?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
}

export type OrganizationRoleUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.OrganizationRoleCreateWithoutOrganizationInput, Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput> | Prisma.OrganizationRoleCreateWithoutOrganizationInput[] | Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.OrganizationRoleCreateOrConnectWithoutOrganizationInput | Prisma.OrganizationRoleCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.OrganizationRoleUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.OrganizationRoleUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.OrganizationRoleCreateManyOrganizationInputEnvelope
  set?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
  disconnect?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
  delete?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
  connect?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
  update?: Prisma.OrganizationRoleUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.OrganizationRoleUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.OrganizationRoleUpdateManyWithWhereWithoutOrganizationInput | Prisma.OrganizationRoleUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.OrganizationRoleScalarWhereInput | Prisma.OrganizationRoleScalarWhereInput[]
}

export type OrganizationRoleUncheckedUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.OrganizationRoleCreateWithoutOrganizationInput, Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput> | Prisma.OrganizationRoleCreateWithoutOrganizationInput[] | Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.OrganizationRoleCreateOrConnectWithoutOrganizationInput | Prisma.OrganizationRoleCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.OrganizationRoleUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.OrganizationRoleUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.OrganizationRoleCreateManyOrganizationInputEnvelope
  set?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
  disconnect?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
  delete?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
  connect?: Prisma.OrganizationRoleWhereUniqueInput | Prisma.OrganizationRoleWhereUniqueInput[]
  update?: Prisma.OrganizationRoleUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.OrganizationRoleUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.OrganizationRoleUpdateManyWithWhereWithoutOrganizationInput | Prisma.OrganizationRoleUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.OrganizationRoleScalarWhereInput | Prisma.OrganizationRoleScalarWhereInput[]
}

export type OrganizationRoleCreateWithoutOrganizationInput = {
  id: string
  role: string
  permission: string
  createdAt?: Date | string
  updatedAt?: Date | string | null
}

export type OrganizationRoleUncheckedCreateWithoutOrganizationInput = {
  id: string
  role: string
  permission: string
  createdAt?: Date | string
  updatedAt?: Date | string | null
}

export type OrganizationRoleCreateOrConnectWithoutOrganizationInput = {
  where: Prisma.OrganizationRoleWhereUniqueInput
  create: Prisma.XOR<Prisma.OrganizationRoleCreateWithoutOrganizationInput, Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput>
}

export type OrganizationRoleCreateManyOrganizationInputEnvelope = {
  data: Prisma.OrganizationRoleCreateManyOrganizationInput | Prisma.OrganizationRoleCreateManyOrganizationInput[]
  skipDuplicates?: boolean
}

export type OrganizationRoleUpsertWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.OrganizationRoleWhereUniqueInput
  update: Prisma.XOR<Prisma.OrganizationRoleUpdateWithoutOrganizationInput, Prisma.OrganizationRoleUncheckedUpdateWithoutOrganizationInput>
  create: Prisma.XOR<Prisma.OrganizationRoleCreateWithoutOrganizationInput, Prisma.OrganizationRoleUncheckedCreateWithoutOrganizationInput>
}

export type OrganizationRoleUpdateWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.OrganizationRoleWhereUniqueInput
  data: Prisma.XOR<Prisma.OrganizationRoleUpdateWithoutOrganizationInput, Prisma.OrganizationRoleUncheckedUpdateWithoutOrganizationInput>
}

export type OrganizationRoleUpdateManyWithWhereWithoutOrganizationInput = {
  where: Prisma.OrganizationRoleScalarWhereInput
  data: Prisma.XOR<Prisma.OrganizationRoleUpdateManyMutationInput, Prisma.OrganizationRoleUncheckedUpdateManyWithoutOrganizationInput>
}

export type OrganizationRoleScalarWhereInput = {
  AND?: Prisma.OrganizationRoleScalarWhereInput | Prisma.OrganizationRoleScalarWhereInput[]
  OR?: Prisma.OrganizationRoleScalarWhereInput[]
  NOT?: Prisma.OrganizationRoleScalarWhereInput | Prisma.OrganizationRoleScalarWhereInput[]
  id?: Prisma.StringFilter<"OrganizationRole"> | string
  organizationId?: Prisma.StringFilter<"OrganizationRole"> | string
  role?: Prisma.StringFilter<"OrganizationRole"> | string
  permission?: Prisma.StringFilter<"OrganizationRole"> | string
  createdAt?: Prisma.DateTimeFilter<"OrganizationRole"> | Date | string
  updatedAt?: Prisma.DateTimeNullableFilter<"OrganizationRole"> | Date | string | null
}

export type OrganizationRoleCreateManyOrganizationInput = {
  id: string
  role: string
  permission: string
  createdAt?: Date | string
  updatedAt?: Date | string | null
}

export type OrganizationRoleUpdateWithoutOrganizationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  permission?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type OrganizationRoleUncheckedUpdateWithoutOrganizationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  permission?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type OrganizationRoleUncheckedUpdateManyWithoutOrganizationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  permission?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type OrganizationRoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  organizationId?: boolean
  role?: boolean
  permission?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
}, ExtArgs["result"]["organizationRole"]>

export type OrganizationRoleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  organizationId?: boolean
  role?: boolean
  permission?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
}, ExtArgs["result"]["organizationRole"]>

export type OrganizationRoleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  organizationId?: boolean
  role?: boolean
  permission?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
}, ExtArgs["result"]["organizationRole"]>

export type OrganizationRoleSelectScalar = {
  id?: boolean
  organizationId?: boolean
  role?: boolean
  permission?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type OrganizationRoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "role" | "permission" | "createdAt" | "updatedAt", ExtArgs["result"]["organizationRole"]>
export type OrganizationRoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
}
export type OrganizationRoleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
}
export type OrganizationRoleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
}

export type $OrganizationRolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "OrganizationRole"
  objects: {
    organization: Prisma.$OrganizationPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    organizationId: string
    role: string
    permission: string
    createdAt: Date
    updatedAt: Date | null
  }, ExtArgs["result"]["organizationRole"]>
  composites: {}
}

export type OrganizationRoleGetPayload<S extends boolean | null | undefined | OrganizationRoleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OrganizationRolePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for OrganizationRole.
 * 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__OrganizationRoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<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 OrganizationRole model
 */
export interface OrganizationRoleFieldRefs {
  readonly id: Prisma.FieldRef<"OrganizationRole", 'String'>
  readonly organizationId: Prisma.FieldRef<"OrganizationRole", 'String'>
  readonly role: Prisma.FieldRef<"OrganizationRole", 'String'>
  readonly permission: Prisma.FieldRef<"OrganizationRole", 'String'>
  readonly createdAt: Prisma.FieldRef<"OrganizationRole", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"OrganizationRole", 'DateTime'>
}
    

// Custom InputTypes
/**
 * OrganizationRole findUnique
 */
export type OrganizationRoleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OrganizationRole
   */
  select?: Prisma.OrganizationRoleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the OrganizationRole
   */
  omit?: Prisma.OrganizationRoleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OrganizationRoleInclude<ExtArgs> | null
  /**
   * Filter, which OrganizationRole to fetch.
   */
  where: Prisma.OrganizationRoleWhereUniqueInput
}

/**
 * OrganizationRole findUniqueOrThrow
 */
export type OrganizationRoleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OrganizationRole
   */
  select?: Prisma.OrganizationRoleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the OrganizationRole
   */
  omit?: Prisma.OrganizationRoleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OrganizationRoleInclude<ExtArgs> | null
  /**
   * Filter, which OrganizationRole to fetch.
   */
  where: Prisma.OrganizationRoleWhereUniqueInput
}

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

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

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

/**
 * OrganizationRole create
 */
export type OrganizationRoleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OrganizationRole
   */
  select?: Prisma.OrganizationRoleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the OrganizationRole
   */
  omit?: Prisma.OrganizationRoleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OrganizationRoleInclude<ExtArgs> | null
  /**
   * The data needed to create a OrganizationRole.
   */
  data: Prisma.XOR<Prisma.OrganizationRoleCreateInput, Prisma.OrganizationRoleUncheckedCreateInput>
}

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

/**
 * OrganizationRole createManyAndReturn
 */
export type OrganizationRoleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OrganizationRole
   */
  select?: Prisma.OrganizationRoleSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the OrganizationRole
   */
  omit?: Prisma.OrganizationRoleOmit<ExtArgs> | null
  /**
   * The data used to create many OrganizationRoles.
   */
  data: Prisma.OrganizationRoleCreateManyInput | Prisma.OrganizationRoleCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OrganizationRoleIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * OrganizationRole update
 */
export type OrganizationRoleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OrganizationRole
   */
  select?: Prisma.OrganizationRoleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the OrganizationRole
   */
  omit?: Prisma.OrganizationRoleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OrganizationRoleInclude<ExtArgs> | null
  /**
   * The data needed to update a OrganizationRole.
   */
  data: Prisma.XOR<Prisma.OrganizationRoleUpdateInput, Prisma.OrganizationRoleUncheckedUpdateInput>
  /**
   * Choose, which OrganizationRole to update.
   */
  where: Prisma.OrganizationRoleWhereUniqueInput
}

/**
 * OrganizationRole updateMany
 */
export type OrganizationRoleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update OrganizationRoles.
   */
  data: Prisma.XOR<Prisma.OrganizationRoleUpdateManyMutationInput, Prisma.OrganizationRoleUncheckedUpdateManyInput>
  /**
   * Filter which OrganizationRoles to update
   */
  where?: Prisma.OrganizationRoleWhereInput
  /**
   * Limit how many OrganizationRoles to update.
   */
  limit?: number
}

/**
 * OrganizationRole updateManyAndReturn
 */
export type OrganizationRoleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OrganizationRole
   */
  select?: Prisma.OrganizationRoleSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the OrganizationRole
   */
  omit?: Prisma.OrganizationRoleOmit<ExtArgs> | null
  /**
   * The data used to update OrganizationRoles.
   */
  data: Prisma.XOR<Prisma.OrganizationRoleUpdateManyMutationInput, Prisma.OrganizationRoleUncheckedUpdateManyInput>
  /**
   * Filter which OrganizationRoles to update
   */
  where?: Prisma.OrganizationRoleWhereInput
  /**
   * Limit how many OrganizationRoles to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OrganizationRoleIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * OrganizationRole upsert
 */
export type OrganizationRoleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OrganizationRole
   */
  select?: Prisma.OrganizationRoleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the OrganizationRole
   */
  omit?: Prisma.OrganizationRoleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OrganizationRoleInclude<ExtArgs> | null
  /**
   * The filter to search for the OrganizationRole to update in case it exists.
   */
  where: Prisma.OrganizationRoleWhereUniqueInput
  /**
   * In case the OrganizationRole found by the `where` argument doesn't exist, create a new OrganizationRole with this data.
   */
  create: Prisma.XOR<Prisma.OrganizationRoleCreateInput, Prisma.OrganizationRoleUncheckedCreateInput>
  /**
   * In case the OrganizationRole was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.OrganizationRoleUpdateInput, Prisma.OrganizationRoleUncheckedUpdateInput>
}

/**
 * OrganizationRole delete
 */
export type OrganizationRoleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OrganizationRole
   */
  select?: Prisma.OrganizationRoleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the OrganizationRole
   */
  omit?: Prisma.OrganizationRoleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OrganizationRoleInclude<ExtArgs> | null
  /**
   * Filter which OrganizationRole to delete.
   */
  where: Prisma.OrganizationRoleWhereUniqueInput
}

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

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