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

/**
 * Model email
 * 
 */
export type emailModel = runtime.Types.Result.DefaultSelection<Prisma.$emailPayload>

export type AggregateEmail = {
  _count: EmailCountAggregateOutputType | null
  _avg: EmailAvgAggregateOutputType | null
  _sum: EmailSumAggregateOutputType | null
  _min: EmailMinAggregateOutputType | null
  _max: EmailMaxAggregateOutputType | null
}

export type EmailAvgAggregateOutputType = {
  id: number | null
  account_id: number | null
}

export type EmailSumAggregateOutputType = {
  id: number | null
  account_id: bigint | null
}

export type EmailMinAggregateOutputType = {
  id: number | null
  account_id: bigint | null
  email: string | null
  password: string | null
}

export type EmailMaxAggregateOutputType = {
  id: number | null
  account_id: bigint | null
  email: string | null
  password: string | null
}

export type EmailCountAggregateOutputType = {
  id: number
  account_id: number
  email: number
  password: number
  _all: number
}


export type EmailAvgAggregateInputType = {
  id?: true
  account_id?: true
}

export type EmailSumAggregateInputType = {
  id?: true
  account_id?: true
}

export type EmailMinAggregateInputType = {
  id?: true
  account_id?: true
  email?: true
  password?: true
}

export type EmailMaxAggregateInputType = {
  id?: true
  account_id?: true
  email?: true
  password?: true
}

export type EmailCountAggregateInputType = {
  id?: true
  account_id?: true
  email?: true
  password?: true
  _all?: true
}

export type EmailAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which email to aggregate.
   */
  where?: Prisma.emailWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of emails to fetch.
   */
  orderBy?: Prisma.emailOrderByWithRelationInput | Prisma.emailOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.emailWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` emails 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` emails.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned emails
  **/
  _count?: true | EmailCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: EmailAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: EmailSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: EmailMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: EmailMaxAggregateInputType
}

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




export type emailGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.emailWhereInput
  orderBy?: Prisma.emailOrderByWithAggregationInput | Prisma.emailOrderByWithAggregationInput[]
  by: Prisma.EmailScalarFieldEnum[] | Prisma.EmailScalarFieldEnum
  having?: Prisma.emailScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: EmailCountAggregateInputType | true
  _avg?: EmailAvgAggregateInputType
  _sum?: EmailSumAggregateInputType
  _min?: EmailMinAggregateInputType
  _max?: EmailMaxAggregateInputType
}

export type EmailGroupByOutputType = {
  id: number
  account_id: bigint | null
  email: string | null
  password: string | null
  _count: EmailCountAggregateOutputType | null
  _avg: EmailAvgAggregateOutputType | null
  _sum: EmailSumAggregateOutputType | null
  _min: EmailMinAggregateOutputType | null
  _max: EmailMaxAggregateOutputType | null
}

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



export type emailWhereInput = {
  AND?: Prisma.emailWhereInput | Prisma.emailWhereInput[]
  OR?: Prisma.emailWhereInput[]
  NOT?: Prisma.emailWhereInput | Prisma.emailWhereInput[]
  id?: Prisma.IntFilter<"email"> | number
  account_id?: Prisma.BigIntNullableFilter<"email"> | bigint | number | null
  email?: Prisma.StringNullableFilter<"email"> | string | null
  password?: Prisma.StringNullableFilter<"email"> | string | null
}

export type emailOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrderInput | Prisma.SortOrder
  email?: Prisma.SortOrderInput | Prisma.SortOrder
  password?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.emailOrderByRelevanceInput
}

export type emailWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.emailWhereInput | Prisma.emailWhereInput[]
  OR?: Prisma.emailWhereInput[]
  NOT?: Prisma.emailWhereInput | Prisma.emailWhereInput[]
  account_id?: Prisma.BigIntNullableFilter<"email"> | bigint | number | null
  email?: Prisma.StringNullableFilter<"email"> | string | null
  password?: Prisma.StringNullableFilter<"email"> | string | null
}, "id">

export type emailOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrderInput | Prisma.SortOrder
  email?: Prisma.SortOrderInput | Prisma.SortOrder
  password?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.emailCountOrderByAggregateInput
  _avg?: Prisma.emailAvgOrderByAggregateInput
  _max?: Prisma.emailMaxOrderByAggregateInput
  _min?: Prisma.emailMinOrderByAggregateInput
  _sum?: Prisma.emailSumOrderByAggregateInput
}

export type emailScalarWhereWithAggregatesInput = {
  AND?: Prisma.emailScalarWhereWithAggregatesInput | Prisma.emailScalarWhereWithAggregatesInput[]
  OR?: Prisma.emailScalarWhereWithAggregatesInput[]
  NOT?: Prisma.emailScalarWhereWithAggregatesInput | Prisma.emailScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"email"> | number
  account_id?: Prisma.BigIntNullableWithAggregatesFilter<"email"> | bigint | number | null
  email?: Prisma.StringNullableWithAggregatesFilter<"email"> | string | null
  password?: Prisma.StringNullableWithAggregatesFilter<"email"> | string | null
}

export type emailCreateInput = {
  account_id?: bigint | number | null
  email?: string | null
  password?: string | null
}

export type emailUncheckedCreateInput = {
  id?: number
  account_id?: bigint | number | null
  email?: string | null
  password?: string | null
}

export type emailUpdateInput = {
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type emailUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type emailCreateManyInput = {
  id?: number
  account_id?: bigint | number | null
  email?: string | null
  password?: string | null
}

export type emailUpdateManyMutationInput = {
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type emailUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type emailOrderByRelevanceInput = {
  fields: Prisma.emailOrderByRelevanceFieldEnum | Prisma.emailOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type emailCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  email?: Prisma.SortOrder
  password?: Prisma.SortOrder
}

export type emailAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
}

export type emailMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  email?: Prisma.SortOrder
  password?: Prisma.SortOrder
}

export type emailMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  email?: Prisma.SortOrder
  password?: Prisma.SortOrder
}

export type emailSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
}



export type emailSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  account_id?: boolean
  email?: boolean
  password?: boolean
}, ExtArgs["result"]["email"]>



export type emailSelectScalar = {
  id?: boolean
  account_id?: boolean
  email?: boolean
  password?: boolean
}

export type emailOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "email" | "password", ExtArgs["result"]["email"]>

export type $emailPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "email"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    account_id: bigint | null
    email: string | null
    password: string | null
  }, ExtArgs["result"]["email"]>
  composites: {}
}

export type emailGetPayload<S extends boolean | null | undefined | emailDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$emailPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for email.
 * 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__emailClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  /**
   * 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 email model
 */
export interface emailFieldRefs {
  readonly id: Prisma.FieldRef<"email", 'Int'>
  readonly account_id: Prisma.FieldRef<"email", 'BigInt'>
  readonly email: Prisma.FieldRef<"email", 'String'>
  readonly password: Prisma.FieldRef<"email", 'String'>
}
    

// Custom InputTypes
/**
 * email findUnique
 */
export type emailFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
  /**
   * Filter, which email to fetch.
   */
  where: Prisma.emailWhereUniqueInput
}

/**
 * email findUniqueOrThrow
 */
export type emailFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
  /**
   * Filter, which email to fetch.
   */
  where: Prisma.emailWhereUniqueInput
}

/**
 * email findFirst
 */
export type emailFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
  /**
   * Filter, which email to fetch.
   */
  where?: Prisma.emailWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of emails to fetch.
   */
  orderBy?: Prisma.emailOrderByWithRelationInput | Prisma.emailOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for emails.
   */
  cursor?: Prisma.emailWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` emails 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` emails.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of emails.
   */
  distinct?: Prisma.EmailScalarFieldEnum | Prisma.EmailScalarFieldEnum[]
}

/**
 * email findFirstOrThrow
 */
export type emailFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
  /**
   * Filter, which email to fetch.
   */
  where?: Prisma.emailWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of emails to fetch.
   */
  orderBy?: Prisma.emailOrderByWithRelationInput | Prisma.emailOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for emails.
   */
  cursor?: Prisma.emailWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` emails 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` emails.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of emails.
   */
  distinct?: Prisma.EmailScalarFieldEnum | Prisma.EmailScalarFieldEnum[]
}

/**
 * email findMany
 */
export type emailFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
  /**
   * Filter, which emails to fetch.
   */
  where?: Prisma.emailWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of emails to fetch.
   */
  orderBy?: Prisma.emailOrderByWithRelationInput | Prisma.emailOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing emails.
   */
  cursor?: Prisma.emailWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` emails 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` emails.
   */
  skip?: number
  distinct?: Prisma.EmailScalarFieldEnum | Prisma.EmailScalarFieldEnum[]
}

/**
 * email create
 */
export type emailCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
  /**
   * The data needed to create a email.
   */
  data?: Prisma.XOR<Prisma.emailCreateInput, Prisma.emailUncheckedCreateInput>
}

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

/**
 * email update
 */
export type emailUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
  /**
   * The data needed to update a email.
   */
  data: Prisma.XOR<Prisma.emailUpdateInput, Prisma.emailUncheckedUpdateInput>
  /**
   * Choose, which email to update.
   */
  where: Prisma.emailWhereUniqueInput
}

/**
 * email updateMany
 */
export type emailUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update emails.
   */
  data: Prisma.XOR<Prisma.emailUpdateManyMutationInput, Prisma.emailUncheckedUpdateManyInput>
  /**
   * Filter which emails to update
   */
  where?: Prisma.emailWhereInput
  /**
   * Limit how many emails to update.
   */
  limit?: number
}

/**
 * email upsert
 */
export type emailUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
  /**
   * The filter to search for the email to update in case it exists.
   */
  where: Prisma.emailWhereUniqueInput
  /**
   * In case the email found by the `where` argument doesn't exist, create a new email with this data.
   */
  create: Prisma.XOR<Prisma.emailCreateInput, Prisma.emailUncheckedCreateInput>
  /**
   * In case the email was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.emailUpdateInput, Prisma.emailUncheckedUpdateInput>
}

/**
 * email delete
 */
export type emailDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
  /**
   * Filter which email to delete.
   */
  where: Prisma.emailWhereUniqueInput
}

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

/**
 * email without action
 */
export type emailDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the email
   */
  select?: Prisma.emailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the email
   */
  omit?: Prisma.emailOmit<ExtArgs> | null
}
