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

/**
 * Model CwMember
 * 
 */
export type CwMemberModel = runtime.Types.Result.DefaultSelection<Prisma.$CwMemberPayload>

export type AggregateCwMember = {
  _count: CwMemberCountAggregateOutputType | null
  _avg: CwMemberAvgAggregateOutputType | null
  _sum: CwMemberSumAggregateOutputType | null
  _min: CwMemberMinAggregateOutputType | null
  _max: CwMemberMaxAggregateOutputType | null
}

export type CwMemberAvgAggregateOutputType = {
  cwMemberId: number | null
}

export type CwMemberSumAggregateOutputType = {
  cwMemberId: number | null
}

export type CwMemberMinAggregateOutputType = {
  id: string | null
  cwMemberId: number | null
  identifier: string | null
  firstName: string | null
  lastName: string | null
  officeEmail: string | null
  inactiveFlag: boolean | null
  apiKey: string | null
  cwLastUpdated: Date | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type CwMemberMaxAggregateOutputType = {
  id: string | null
  cwMemberId: number | null
  identifier: string | null
  firstName: string | null
  lastName: string | null
  officeEmail: string | null
  inactiveFlag: boolean | null
  apiKey: string | null
  cwLastUpdated: Date | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type CwMemberCountAggregateOutputType = {
  id: number
  cwMemberId: number
  identifier: number
  firstName: number
  lastName: number
  officeEmail: number
  inactiveFlag: number
  apiKey: number
  cwLastUpdated: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type CwMemberAvgAggregateInputType = {
  cwMemberId?: true
}

export type CwMemberSumAggregateInputType = {
  cwMemberId?: true
}

export type CwMemberMinAggregateInputType = {
  id?: true
  cwMemberId?: true
  identifier?: true
  firstName?: true
  lastName?: true
  officeEmail?: true
  inactiveFlag?: true
  apiKey?: true
  cwLastUpdated?: true
  createdAt?: true
  updatedAt?: true
}

export type CwMemberMaxAggregateInputType = {
  id?: true
  cwMemberId?: true
  identifier?: true
  firstName?: true
  lastName?: true
  officeEmail?: true
  inactiveFlag?: true
  apiKey?: true
  cwLastUpdated?: true
  createdAt?: true
  updatedAt?: true
}

export type CwMemberCountAggregateInputType = {
  id?: true
  cwMemberId?: true
  identifier?: true
  firstName?: true
  lastName?: true
  officeEmail?: true
  inactiveFlag?: true
  apiKey?: true
  cwLastUpdated?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type CwMemberAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which CwMember to aggregate.
   */
  where?: Prisma.CwMemberWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CwMembers to fetch.
   */
  orderBy?: Prisma.CwMemberOrderByWithRelationInput | Prisma.CwMemberOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.CwMemberWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CwMembers 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` CwMembers.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned CwMembers
  **/
  _count?: true | CwMemberCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: CwMemberAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: CwMemberSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: CwMemberMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: CwMemberMaxAggregateInputType
}

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




export type CwMemberGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CwMemberWhereInput
  orderBy?: Prisma.CwMemberOrderByWithAggregationInput | Prisma.CwMemberOrderByWithAggregationInput[]
  by: Prisma.CwMemberScalarFieldEnum[] | Prisma.CwMemberScalarFieldEnum
  having?: Prisma.CwMemberScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: CwMemberCountAggregateInputType | true
  _avg?: CwMemberAvgAggregateInputType
  _sum?: CwMemberSumAggregateInputType
  _min?: CwMemberMinAggregateInputType
  _max?: CwMemberMaxAggregateInputType
}

export type CwMemberGroupByOutputType = {
  id: string
  cwMemberId: number
  identifier: string
  firstName: string
  lastName: string
  officeEmail: string | null
  inactiveFlag: boolean
  apiKey: string | null
  cwLastUpdated: Date | null
  createdAt: Date
  updatedAt: Date
  _count: CwMemberCountAggregateOutputType | null
  _avg: CwMemberAvgAggregateOutputType | null
  _sum: CwMemberSumAggregateOutputType | null
  _min: CwMemberMinAggregateOutputType | null
  _max: CwMemberMaxAggregateOutputType | null
}

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



export type CwMemberWhereInput = {
  AND?: Prisma.CwMemberWhereInput | Prisma.CwMemberWhereInput[]
  OR?: Prisma.CwMemberWhereInput[]
  NOT?: Prisma.CwMemberWhereInput | Prisma.CwMemberWhereInput[]
  id?: Prisma.StringFilter<"CwMember"> | string
  cwMemberId?: Prisma.IntFilter<"CwMember"> | number
  identifier?: Prisma.StringFilter<"CwMember"> | string
  firstName?: Prisma.StringFilter<"CwMember"> | string
  lastName?: Prisma.StringFilter<"CwMember"> | string
  officeEmail?: Prisma.StringNullableFilter<"CwMember"> | string | null
  inactiveFlag?: Prisma.BoolFilter<"CwMember"> | boolean
  apiKey?: Prisma.StringNullableFilter<"CwMember"> | string | null
  cwLastUpdated?: Prisma.DateTimeNullableFilter<"CwMember"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}

export type CwMemberOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  cwMemberId?: Prisma.SortOrder
  identifier?: Prisma.SortOrder
  firstName?: Prisma.SortOrder
  lastName?: Prisma.SortOrder
  officeEmail?: Prisma.SortOrderInput | Prisma.SortOrder
  inactiveFlag?: Prisma.SortOrder
  apiKey?: Prisma.SortOrderInput | Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  user?: Prisma.UserOrderByWithRelationInput
}

export type CwMemberWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  cwMemberId?: number
  identifier?: string
  AND?: Prisma.CwMemberWhereInput | Prisma.CwMemberWhereInput[]
  OR?: Prisma.CwMemberWhereInput[]
  NOT?: Prisma.CwMemberWhereInput | Prisma.CwMemberWhereInput[]
  firstName?: Prisma.StringFilter<"CwMember"> | string
  lastName?: Prisma.StringFilter<"CwMember"> | string
  officeEmail?: Prisma.StringNullableFilter<"CwMember"> | string | null
  inactiveFlag?: Prisma.BoolFilter<"CwMember"> | boolean
  apiKey?: Prisma.StringNullableFilter<"CwMember"> | string | null
  cwLastUpdated?: Prisma.DateTimeNullableFilter<"CwMember"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}, "id" | "cwMemberId" | "identifier">

export type CwMemberOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  cwMemberId?: Prisma.SortOrder
  identifier?: Prisma.SortOrder
  firstName?: Prisma.SortOrder
  lastName?: Prisma.SortOrder
  officeEmail?: Prisma.SortOrderInput | Prisma.SortOrder
  inactiveFlag?: Prisma.SortOrder
  apiKey?: Prisma.SortOrderInput | Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.CwMemberCountOrderByAggregateInput
  _avg?: Prisma.CwMemberAvgOrderByAggregateInput
  _max?: Prisma.CwMemberMaxOrderByAggregateInput
  _min?: Prisma.CwMemberMinOrderByAggregateInput
  _sum?: Prisma.CwMemberSumOrderByAggregateInput
}

export type CwMemberScalarWhereWithAggregatesInput = {
  AND?: Prisma.CwMemberScalarWhereWithAggregatesInput | Prisma.CwMemberScalarWhereWithAggregatesInput[]
  OR?: Prisma.CwMemberScalarWhereWithAggregatesInput[]
  NOT?: Prisma.CwMemberScalarWhereWithAggregatesInput | Prisma.CwMemberScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"CwMember"> | string
  cwMemberId?: Prisma.IntWithAggregatesFilter<"CwMember"> | number
  identifier?: Prisma.StringWithAggregatesFilter<"CwMember"> | string
  firstName?: Prisma.StringWithAggregatesFilter<"CwMember"> | string
  lastName?: Prisma.StringWithAggregatesFilter<"CwMember"> | string
  officeEmail?: Prisma.StringNullableWithAggregatesFilter<"CwMember"> | string | null
  inactiveFlag?: Prisma.BoolWithAggregatesFilter<"CwMember"> | boolean
  apiKey?: Prisma.StringNullableWithAggregatesFilter<"CwMember"> | string | null
  cwLastUpdated?: Prisma.DateTimeNullableWithAggregatesFilter<"CwMember"> | Date | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"CwMember"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CwMember"> | Date | string
}

export type CwMemberCreateInput = {
  id?: string
  cwMemberId: number
  identifier: string
  firstName: string
  lastName: string
  officeEmail?: string | null
  inactiveFlag?: boolean
  apiKey?: string | null
  cwLastUpdated?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user?: Prisma.UserCreateNestedOneWithoutCwMemberInput
}

export type CwMemberUncheckedCreateInput = {
  id?: string
  cwMemberId: number
  identifier: string
  firstName: string
  lastName: string
  officeEmail?: string | null
  inactiveFlag?: boolean
  apiKey?: string | null
  cwLastUpdated?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user?: Prisma.UserUncheckedCreateNestedOneWithoutCwMemberInput
}

export type CwMemberUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  cwMemberId?: Prisma.IntFieldUpdateOperationsInput | number
  identifier?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.StringFieldUpdateOperationsInput | string
  lastName?: Prisma.StringFieldUpdateOperationsInput | string
  officeEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  inactiveFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
  apiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneWithoutCwMemberNestedInput
}

export type CwMemberUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  cwMemberId?: Prisma.IntFieldUpdateOperationsInput | number
  identifier?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.StringFieldUpdateOperationsInput | string
  lastName?: Prisma.StringFieldUpdateOperationsInput | string
  officeEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  inactiveFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
  apiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUncheckedUpdateOneWithoutCwMemberNestedInput
}

export type CwMemberCreateManyInput = {
  id?: string
  cwMemberId: number
  identifier: string
  firstName: string
  lastName: string
  officeEmail?: string | null
  inactiveFlag?: boolean
  apiKey?: string | null
  cwLastUpdated?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type CwMemberUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  cwMemberId?: Prisma.IntFieldUpdateOperationsInput | number
  identifier?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.StringFieldUpdateOperationsInput | string
  lastName?: Prisma.StringFieldUpdateOperationsInput | string
  officeEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  inactiveFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
  apiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CwMemberUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  cwMemberId?: Prisma.IntFieldUpdateOperationsInput | number
  identifier?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.StringFieldUpdateOperationsInput | string
  lastName?: Prisma.StringFieldUpdateOperationsInput | string
  officeEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  inactiveFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
  apiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CwMemberNullableScalarRelationFilter = {
  is?: Prisma.CwMemberWhereInput | null
  isNot?: Prisma.CwMemberWhereInput | null
}

export type CwMemberCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  cwMemberId?: Prisma.SortOrder
  identifier?: Prisma.SortOrder
  firstName?: Prisma.SortOrder
  lastName?: Prisma.SortOrder
  officeEmail?: Prisma.SortOrder
  inactiveFlag?: Prisma.SortOrder
  apiKey?: Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type CwMemberAvgOrderByAggregateInput = {
  cwMemberId?: Prisma.SortOrder
}

export type CwMemberMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  cwMemberId?: Prisma.SortOrder
  identifier?: Prisma.SortOrder
  firstName?: Prisma.SortOrder
  lastName?: Prisma.SortOrder
  officeEmail?: Prisma.SortOrder
  inactiveFlag?: Prisma.SortOrder
  apiKey?: Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type CwMemberMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  cwMemberId?: Prisma.SortOrder
  identifier?: Prisma.SortOrder
  firstName?: Prisma.SortOrder
  lastName?: Prisma.SortOrder
  officeEmail?: Prisma.SortOrder
  inactiveFlag?: Prisma.SortOrder
  apiKey?: Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type CwMemberSumOrderByAggregateInput = {
  cwMemberId?: Prisma.SortOrder
}

export type CwMemberCreateNestedOneWithoutUserInput = {
  create?: Prisma.XOR<Prisma.CwMemberCreateWithoutUserInput, Prisma.CwMemberUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.CwMemberCreateOrConnectWithoutUserInput
  connect?: Prisma.CwMemberWhereUniqueInput
}

export type CwMemberUpdateOneWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.CwMemberCreateWithoutUserInput, Prisma.CwMemberUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.CwMemberCreateOrConnectWithoutUserInput
  upsert?: Prisma.CwMemberUpsertWithoutUserInput
  disconnect?: Prisma.CwMemberWhereInput | boolean
  delete?: Prisma.CwMemberWhereInput | boolean
  connect?: Prisma.CwMemberWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.CwMemberUpdateToOneWithWhereWithoutUserInput, Prisma.CwMemberUpdateWithoutUserInput>, Prisma.CwMemberUncheckedUpdateWithoutUserInput>
}

export type CwMemberCreateWithoutUserInput = {
  id?: string
  cwMemberId: number
  identifier: string
  firstName: string
  lastName: string
  officeEmail?: string | null
  inactiveFlag?: boolean
  apiKey?: string | null
  cwLastUpdated?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type CwMemberUncheckedCreateWithoutUserInput = {
  id?: string
  cwMemberId: number
  identifier: string
  firstName: string
  lastName: string
  officeEmail?: string | null
  inactiveFlag?: boolean
  apiKey?: string | null
  cwLastUpdated?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type CwMemberCreateOrConnectWithoutUserInput = {
  where: Prisma.CwMemberWhereUniqueInput
  create: Prisma.XOR<Prisma.CwMemberCreateWithoutUserInput, Prisma.CwMemberUncheckedCreateWithoutUserInput>
}

export type CwMemberUpsertWithoutUserInput = {
  update: Prisma.XOR<Prisma.CwMemberUpdateWithoutUserInput, Prisma.CwMemberUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.CwMemberCreateWithoutUserInput, Prisma.CwMemberUncheckedCreateWithoutUserInput>
  where?: Prisma.CwMemberWhereInput
}

export type CwMemberUpdateToOneWithWhereWithoutUserInput = {
  where?: Prisma.CwMemberWhereInput
  data: Prisma.XOR<Prisma.CwMemberUpdateWithoutUserInput, Prisma.CwMemberUncheckedUpdateWithoutUserInput>
}

export type CwMemberUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  cwMemberId?: Prisma.IntFieldUpdateOperationsInput | number
  identifier?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.StringFieldUpdateOperationsInput | string
  lastName?: Prisma.StringFieldUpdateOperationsInput | string
  officeEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  inactiveFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
  apiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CwMemberUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  cwMemberId?: Prisma.IntFieldUpdateOperationsInput | number
  identifier?: Prisma.StringFieldUpdateOperationsInput | string
  firstName?: Prisma.StringFieldUpdateOperationsInput | string
  lastName?: Prisma.StringFieldUpdateOperationsInput | string
  officeEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  inactiveFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
  apiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type CwMemberSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  cwMemberId?: boolean
  identifier?: boolean
  firstName?: boolean
  lastName?: boolean
  officeEmail?: boolean
  inactiveFlag?: boolean
  apiKey?: boolean
  cwLastUpdated?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  user?: boolean | Prisma.CwMember$userArgs<ExtArgs>
}, ExtArgs["result"]["cwMember"]>

export type CwMemberSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  cwMemberId?: boolean
  identifier?: boolean
  firstName?: boolean
  lastName?: boolean
  officeEmail?: boolean
  inactiveFlag?: boolean
  apiKey?: boolean
  cwLastUpdated?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["cwMember"]>

export type CwMemberSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  cwMemberId?: boolean
  identifier?: boolean
  firstName?: boolean
  lastName?: boolean
  officeEmail?: boolean
  inactiveFlag?: boolean
  apiKey?: boolean
  cwLastUpdated?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["cwMember"]>

export type CwMemberSelectScalar = {
  id?: boolean
  cwMemberId?: boolean
  identifier?: boolean
  firstName?: boolean
  lastName?: boolean
  officeEmail?: boolean
  inactiveFlag?: boolean
  apiKey?: boolean
  cwLastUpdated?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type CwMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "cwMemberId" | "identifier" | "firstName" | "lastName" | "officeEmail" | "inactiveFlag" | "apiKey" | "cwLastUpdated" | "createdAt" | "updatedAt", ExtArgs["result"]["cwMember"]>
export type CwMemberInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.CwMember$userArgs<ExtArgs>
}
export type CwMemberIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type CwMemberIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}

export type $CwMemberPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "CwMember"
  objects: {
    user: Prisma.$UserPayload<ExtArgs> | null
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    cwMemberId: number
    identifier: string
    firstName: string
    lastName: string
    officeEmail: string | null
    inactiveFlag: boolean
    apiKey: string | null
    cwLastUpdated: Date | null
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["cwMember"]>
  composites: {}
}

export type CwMemberGetPayload<S extends boolean | null | undefined | CwMemberDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CwMemberPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for CwMember.
 * 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__CwMemberClient<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.CwMember$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CwMember$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<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 CwMember model
 */
export interface CwMemberFieldRefs {
  readonly id: Prisma.FieldRef<"CwMember", 'String'>
  readonly cwMemberId: Prisma.FieldRef<"CwMember", 'Int'>
  readonly identifier: Prisma.FieldRef<"CwMember", 'String'>
  readonly firstName: Prisma.FieldRef<"CwMember", 'String'>
  readonly lastName: Prisma.FieldRef<"CwMember", 'String'>
  readonly officeEmail: Prisma.FieldRef<"CwMember", 'String'>
  readonly inactiveFlag: Prisma.FieldRef<"CwMember", 'Boolean'>
  readonly apiKey: Prisma.FieldRef<"CwMember", 'String'>
  readonly cwLastUpdated: Prisma.FieldRef<"CwMember", 'DateTime'>
  readonly createdAt: Prisma.FieldRef<"CwMember", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"CwMember", 'DateTime'>
}
    

// Custom InputTypes
/**
 * CwMember findUnique
 */
export type CwMemberFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CwMember
   */
  select?: Prisma.CwMemberSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CwMember
   */
  omit?: Prisma.CwMemberOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CwMemberInclude<ExtArgs> | null
  /**
   * Filter, which CwMember to fetch.
   */
  where: Prisma.CwMemberWhereUniqueInput
}

/**
 * CwMember findUniqueOrThrow
 */
export type CwMemberFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CwMember
   */
  select?: Prisma.CwMemberSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CwMember
   */
  omit?: Prisma.CwMemberOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CwMemberInclude<ExtArgs> | null
  /**
   * Filter, which CwMember to fetch.
   */
  where: Prisma.CwMemberWhereUniqueInput
}

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

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

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

/**
 * CwMember create
 */
export type CwMemberCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CwMember
   */
  select?: Prisma.CwMemberSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CwMember
   */
  omit?: Prisma.CwMemberOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CwMemberInclude<ExtArgs> | null
  /**
   * The data needed to create a CwMember.
   */
  data: Prisma.XOR<Prisma.CwMemberCreateInput, Prisma.CwMemberUncheckedCreateInput>
}

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

/**
 * CwMember createManyAndReturn
 */
export type CwMemberCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CwMember
   */
  select?: Prisma.CwMemberSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CwMember
   */
  omit?: Prisma.CwMemberOmit<ExtArgs> | null
  /**
   * The data used to create many CwMembers.
   */
  data: Prisma.CwMemberCreateManyInput | Prisma.CwMemberCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * CwMember update
 */
export type CwMemberUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CwMember
   */
  select?: Prisma.CwMemberSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CwMember
   */
  omit?: Prisma.CwMemberOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CwMemberInclude<ExtArgs> | null
  /**
   * The data needed to update a CwMember.
   */
  data: Prisma.XOR<Prisma.CwMemberUpdateInput, Prisma.CwMemberUncheckedUpdateInput>
  /**
   * Choose, which CwMember to update.
   */
  where: Prisma.CwMemberWhereUniqueInput
}

/**
 * CwMember updateMany
 */
export type CwMemberUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update CwMembers.
   */
  data: Prisma.XOR<Prisma.CwMemberUpdateManyMutationInput, Prisma.CwMemberUncheckedUpdateManyInput>
  /**
   * Filter which CwMembers to update
   */
  where?: Prisma.CwMemberWhereInput
  /**
   * Limit how many CwMembers to update.
   */
  limit?: number
}

/**
 * CwMember updateManyAndReturn
 */
export type CwMemberUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CwMember
   */
  select?: Prisma.CwMemberSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CwMember
   */
  omit?: Prisma.CwMemberOmit<ExtArgs> | null
  /**
   * The data used to update CwMembers.
   */
  data: Prisma.XOR<Prisma.CwMemberUpdateManyMutationInput, Prisma.CwMemberUncheckedUpdateManyInput>
  /**
   * Filter which CwMembers to update
   */
  where?: Prisma.CwMemberWhereInput
  /**
   * Limit how many CwMembers to update.
   */
  limit?: number
}

/**
 * CwMember upsert
 */
export type CwMemberUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CwMember
   */
  select?: Prisma.CwMemberSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CwMember
   */
  omit?: Prisma.CwMemberOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CwMemberInclude<ExtArgs> | null
  /**
   * The filter to search for the CwMember to update in case it exists.
   */
  where: Prisma.CwMemberWhereUniqueInput
  /**
   * In case the CwMember found by the `where` argument doesn't exist, create a new CwMember with this data.
   */
  create: Prisma.XOR<Prisma.CwMemberCreateInput, Prisma.CwMemberUncheckedCreateInput>
  /**
   * In case the CwMember was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.CwMemberUpdateInput, Prisma.CwMemberUncheckedUpdateInput>
}

/**
 * CwMember delete
 */
export type CwMemberDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CwMember
   */
  select?: Prisma.CwMemberSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CwMember
   */
  omit?: Prisma.CwMemberOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CwMemberInclude<ExtArgs> | null
  /**
   * Filter which CwMember to delete.
   */
  where: Prisma.CwMemberWhereUniqueInput
}

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

/**
 * CwMember.user
 */
export type CwMember$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
}

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