
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `GoogleAccount` 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 GoogleAccount
 * 
 */
export type GoogleAccountModel = runtime.Types.Result.DefaultSelection<Prisma.$GoogleAccountPayload>

export type AggregateGoogleAccount = {
  _count: GoogleAccountCountAggregateOutputType | null
  _min: GoogleAccountMinAggregateOutputType | null
  _max: GoogleAccountMaxAggregateOutputType | null
}

export type GoogleAccountMinAggregateOutputType = {
  id: string | null
  userId: string | null
  googleSub: string | null
  email: string | null
  refreshTokenEnc: string | null
  connectedAt: Date | null
  lastRefreshAt: Date | null
}

export type GoogleAccountMaxAggregateOutputType = {
  id: string | null
  userId: string | null
  googleSub: string | null
  email: string | null
  refreshTokenEnc: string | null
  connectedAt: Date | null
  lastRefreshAt: Date | null
}

export type GoogleAccountCountAggregateOutputType = {
  id: number
  userId: number
  googleSub: number
  email: number
  refreshTokenEnc: number
  scopes: number
  connectedAt: number
  lastRefreshAt: number
  _all: number
}


export type GoogleAccountMinAggregateInputType = {
  id?: true
  userId?: true
  googleSub?: true
  email?: true
  refreshTokenEnc?: true
  connectedAt?: true
  lastRefreshAt?: true
}

export type GoogleAccountMaxAggregateInputType = {
  id?: true
  userId?: true
  googleSub?: true
  email?: true
  refreshTokenEnc?: true
  connectedAt?: true
  lastRefreshAt?: true
}

export type GoogleAccountCountAggregateInputType = {
  id?: true
  userId?: true
  googleSub?: true
  email?: true
  refreshTokenEnc?: true
  scopes?: true
  connectedAt?: true
  lastRefreshAt?: true
  _all?: true
}

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

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




export type GoogleAccountGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.GoogleAccountWhereInput
  orderBy?: Prisma.GoogleAccountOrderByWithAggregationInput | Prisma.GoogleAccountOrderByWithAggregationInput[]
  by: Prisma.GoogleAccountScalarFieldEnum[] | Prisma.GoogleAccountScalarFieldEnum
  having?: Prisma.GoogleAccountScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: GoogleAccountCountAggregateInputType | true
  _min?: GoogleAccountMinAggregateInputType
  _max?: GoogleAccountMaxAggregateInputType
}

export type GoogleAccountGroupByOutputType = {
  id: string
  userId: string
  googleSub: string
  email: string
  refreshTokenEnc: string
  scopes: string[]
  connectedAt: Date
  lastRefreshAt: Date | null
  _count: GoogleAccountCountAggregateOutputType | null
  _min: GoogleAccountMinAggregateOutputType | null
  _max: GoogleAccountMaxAggregateOutputType | null
}

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



export type GoogleAccountWhereInput = {
  AND?: Prisma.GoogleAccountWhereInput | Prisma.GoogleAccountWhereInput[]
  OR?: Prisma.GoogleAccountWhereInput[]
  NOT?: Prisma.GoogleAccountWhereInput | Prisma.GoogleAccountWhereInput[]
  id?: Prisma.StringFilter<"GoogleAccount"> | string
  userId?: Prisma.StringFilter<"GoogleAccount"> | string
  googleSub?: Prisma.StringFilter<"GoogleAccount"> | string
  email?: Prisma.StringFilter<"GoogleAccount"> | string
  refreshTokenEnc?: Prisma.StringFilter<"GoogleAccount"> | string
  scopes?: Prisma.StringNullableListFilter<"GoogleAccount">
  connectedAt?: Prisma.DateTimeFilter<"GoogleAccount"> | Date | string
  lastRefreshAt?: Prisma.DateTimeNullableFilter<"GoogleAccount"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}

export type GoogleAccountOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  googleSub?: Prisma.SortOrder
  email?: Prisma.SortOrder
  refreshTokenEnc?: Prisma.SortOrder
  scopes?: Prisma.SortOrder
  connectedAt?: Prisma.SortOrder
  lastRefreshAt?: Prisma.SortOrderInput | Prisma.SortOrder
  user?: Prisma.UserOrderByWithRelationInput
}

export type GoogleAccountWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  userId_googleSub?: Prisma.GoogleAccountUserIdGoogleSubCompoundUniqueInput
  AND?: Prisma.GoogleAccountWhereInput | Prisma.GoogleAccountWhereInput[]
  OR?: Prisma.GoogleAccountWhereInput[]
  NOT?: Prisma.GoogleAccountWhereInput | Prisma.GoogleAccountWhereInput[]
  userId?: Prisma.StringFilter<"GoogleAccount"> | string
  googleSub?: Prisma.StringFilter<"GoogleAccount"> | string
  email?: Prisma.StringFilter<"GoogleAccount"> | string
  refreshTokenEnc?: Prisma.StringFilter<"GoogleAccount"> | string
  scopes?: Prisma.StringNullableListFilter<"GoogleAccount">
  connectedAt?: Prisma.DateTimeFilter<"GoogleAccount"> | Date | string
  lastRefreshAt?: Prisma.DateTimeNullableFilter<"GoogleAccount"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}, "id" | "userId_googleSub">

export type GoogleAccountOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  googleSub?: Prisma.SortOrder
  email?: Prisma.SortOrder
  refreshTokenEnc?: Prisma.SortOrder
  scopes?: Prisma.SortOrder
  connectedAt?: Prisma.SortOrder
  lastRefreshAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.GoogleAccountCountOrderByAggregateInput
  _max?: Prisma.GoogleAccountMaxOrderByAggregateInput
  _min?: Prisma.GoogleAccountMinOrderByAggregateInput
}

export type GoogleAccountScalarWhereWithAggregatesInput = {
  AND?: Prisma.GoogleAccountScalarWhereWithAggregatesInput | Prisma.GoogleAccountScalarWhereWithAggregatesInput[]
  OR?: Prisma.GoogleAccountScalarWhereWithAggregatesInput[]
  NOT?: Prisma.GoogleAccountScalarWhereWithAggregatesInput | Prisma.GoogleAccountScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"GoogleAccount"> | string
  userId?: Prisma.StringWithAggregatesFilter<"GoogleAccount"> | string
  googleSub?: Prisma.StringWithAggregatesFilter<"GoogleAccount"> | string
  email?: Prisma.StringWithAggregatesFilter<"GoogleAccount"> | string
  refreshTokenEnc?: Prisma.StringWithAggregatesFilter<"GoogleAccount"> | string
  scopes?: Prisma.StringNullableListFilter<"GoogleAccount">
  connectedAt?: Prisma.DateTimeWithAggregatesFilter<"GoogleAccount"> | Date | string
  lastRefreshAt?: Prisma.DateTimeNullableWithAggregatesFilter<"GoogleAccount"> | Date | string | null
}

export type GoogleAccountCreateInput = {
  id?: string
  googleSub: string
  email: string
  refreshTokenEnc: string
  scopes?: Prisma.GoogleAccountCreatescopesInput | string[]
  connectedAt?: Date | string
  lastRefreshAt?: Date | string | null
  user: Prisma.UserCreateNestedOneWithoutGoogleAccountsInput
}

export type GoogleAccountUncheckedCreateInput = {
  id?: string
  userId: string
  googleSub: string
  email: string
  refreshTokenEnc: string
  scopes?: Prisma.GoogleAccountCreatescopesInput | string[]
  connectedAt?: Date | string
  lastRefreshAt?: Date | string | null
}

export type GoogleAccountUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  googleSub?: Prisma.StringFieldUpdateOperationsInput | string
  email?: Prisma.StringFieldUpdateOperationsInput | string
  refreshTokenEnc?: Prisma.StringFieldUpdateOperationsInput | string
  scopes?: Prisma.GoogleAccountUpdatescopesInput | string[]
  connectedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lastRefreshAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  user?: Prisma.UserUpdateOneRequiredWithoutGoogleAccountsNestedInput
}

export type GoogleAccountUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  googleSub?: Prisma.StringFieldUpdateOperationsInput | string
  email?: Prisma.StringFieldUpdateOperationsInput | string
  refreshTokenEnc?: Prisma.StringFieldUpdateOperationsInput | string
  scopes?: Prisma.GoogleAccountUpdatescopesInput | string[]
  connectedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lastRefreshAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type GoogleAccountCreateManyInput = {
  id?: string
  userId: string
  googleSub: string
  email: string
  refreshTokenEnc: string
  scopes?: Prisma.GoogleAccountCreatescopesInput | string[]
  connectedAt?: Date | string
  lastRefreshAt?: Date | string | null
}

export type GoogleAccountUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  googleSub?: Prisma.StringFieldUpdateOperationsInput | string
  email?: Prisma.StringFieldUpdateOperationsInput | string
  refreshTokenEnc?: Prisma.StringFieldUpdateOperationsInput | string
  scopes?: Prisma.GoogleAccountUpdatescopesInput | string[]
  connectedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lastRefreshAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type GoogleAccountUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  googleSub?: Prisma.StringFieldUpdateOperationsInput | string
  email?: Prisma.StringFieldUpdateOperationsInput | string
  refreshTokenEnc?: Prisma.StringFieldUpdateOperationsInput | string
  scopes?: Prisma.GoogleAccountUpdatescopesInput | string[]
  connectedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lastRefreshAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type GoogleAccountListRelationFilter = {
  every?: Prisma.GoogleAccountWhereInput
  some?: Prisma.GoogleAccountWhereInput
  none?: Prisma.GoogleAccountWhereInput
}

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

export type StringNullableListFilter<$PrismaModel = never> = {
  equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
  has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
  hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
  hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
  isEmpty?: boolean
}

export type GoogleAccountUserIdGoogleSubCompoundUniqueInput = {
  userId: string
  googleSub: string
}

export type GoogleAccountCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  googleSub?: Prisma.SortOrder
  email?: Prisma.SortOrder
  refreshTokenEnc?: Prisma.SortOrder
  scopes?: Prisma.SortOrder
  connectedAt?: Prisma.SortOrder
  lastRefreshAt?: Prisma.SortOrder
}

export type GoogleAccountMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  googleSub?: Prisma.SortOrder
  email?: Prisma.SortOrder
  refreshTokenEnc?: Prisma.SortOrder
  connectedAt?: Prisma.SortOrder
  lastRefreshAt?: Prisma.SortOrder
}

export type GoogleAccountMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  googleSub?: Prisma.SortOrder
  email?: Prisma.SortOrder
  refreshTokenEnc?: Prisma.SortOrder
  connectedAt?: Prisma.SortOrder
  lastRefreshAt?: Prisma.SortOrder
}

export type GoogleAccountCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.GoogleAccountCreateWithoutUserInput, Prisma.GoogleAccountUncheckedCreateWithoutUserInput> | Prisma.GoogleAccountCreateWithoutUserInput[] | Prisma.GoogleAccountUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.GoogleAccountCreateOrConnectWithoutUserInput | Prisma.GoogleAccountCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.GoogleAccountCreateManyUserInputEnvelope
  connect?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
}

export type GoogleAccountUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.GoogleAccountCreateWithoutUserInput, Prisma.GoogleAccountUncheckedCreateWithoutUserInput> | Prisma.GoogleAccountCreateWithoutUserInput[] | Prisma.GoogleAccountUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.GoogleAccountCreateOrConnectWithoutUserInput | Prisma.GoogleAccountCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.GoogleAccountCreateManyUserInputEnvelope
  connect?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
}

export type GoogleAccountUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.GoogleAccountCreateWithoutUserInput, Prisma.GoogleAccountUncheckedCreateWithoutUserInput> | Prisma.GoogleAccountCreateWithoutUserInput[] | Prisma.GoogleAccountUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.GoogleAccountCreateOrConnectWithoutUserInput | Prisma.GoogleAccountCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.GoogleAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.GoogleAccountUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.GoogleAccountCreateManyUserInputEnvelope
  set?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
  disconnect?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
  delete?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
  connect?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
  update?: Prisma.GoogleAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.GoogleAccountUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.GoogleAccountUpdateManyWithWhereWithoutUserInput | Prisma.GoogleAccountUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.GoogleAccountScalarWhereInput | Prisma.GoogleAccountScalarWhereInput[]
}

export type GoogleAccountUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.GoogleAccountCreateWithoutUserInput, Prisma.GoogleAccountUncheckedCreateWithoutUserInput> | Prisma.GoogleAccountCreateWithoutUserInput[] | Prisma.GoogleAccountUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.GoogleAccountCreateOrConnectWithoutUserInput | Prisma.GoogleAccountCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.GoogleAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.GoogleAccountUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.GoogleAccountCreateManyUserInputEnvelope
  set?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
  disconnect?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
  delete?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
  connect?: Prisma.GoogleAccountWhereUniqueInput | Prisma.GoogleAccountWhereUniqueInput[]
  update?: Prisma.GoogleAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.GoogleAccountUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.GoogleAccountUpdateManyWithWhereWithoutUserInput | Prisma.GoogleAccountUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.GoogleAccountScalarWhereInput | Prisma.GoogleAccountScalarWhereInput[]
}

export type GoogleAccountCreatescopesInput = {
  set: string[]
}

export type GoogleAccountUpdatescopesInput = {
  set?: string[]
  push?: string | string[]
}

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

export type GoogleAccountCreateWithoutUserInput = {
  id?: string
  googleSub: string
  email: string
  refreshTokenEnc: string
  scopes?: Prisma.GoogleAccountCreatescopesInput | string[]
  connectedAt?: Date | string
  lastRefreshAt?: Date | string | null
}

export type GoogleAccountUncheckedCreateWithoutUserInput = {
  id?: string
  googleSub: string
  email: string
  refreshTokenEnc: string
  scopes?: Prisma.GoogleAccountCreatescopesInput | string[]
  connectedAt?: Date | string
  lastRefreshAt?: Date | string | null
}

export type GoogleAccountCreateOrConnectWithoutUserInput = {
  where: Prisma.GoogleAccountWhereUniqueInput
  create: Prisma.XOR<Prisma.GoogleAccountCreateWithoutUserInput, Prisma.GoogleAccountUncheckedCreateWithoutUserInput>
}

export type GoogleAccountCreateManyUserInputEnvelope = {
  data: Prisma.GoogleAccountCreateManyUserInput | Prisma.GoogleAccountCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type GoogleAccountUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.GoogleAccountWhereUniqueInput
  update: Prisma.XOR<Prisma.GoogleAccountUpdateWithoutUserInput, Prisma.GoogleAccountUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.GoogleAccountCreateWithoutUserInput, Prisma.GoogleAccountUncheckedCreateWithoutUserInput>
}

export type GoogleAccountUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.GoogleAccountWhereUniqueInput
  data: Prisma.XOR<Prisma.GoogleAccountUpdateWithoutUserInput, Prisma.GoogleAccountUncheckedUpdateWithoutUserInput>
}

export type GoogleAccountUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.GoogleAccountScalarWhereInput
  data: Prisma.XOR<Prisma.GoogleAccountUpdateManyMutationInput, Prisma.GoogleAccountUncheckedUpdateManyWithoutUserInput>
}

export type GoogleAccountScalarWhereInput = {
  AND?: Prisma.GoogleAccountScalarWhereInput | Prisma.GoogleAccountScalarWhereInput[]
  OR?: Prisma.GoogleAccountScalarWhereInput[]
  NOT?: Prisma.GoogleAccountScalarWhereInput | Prisma.GoogleAccountScalarWhereInput[]
  id?: Prisma.StringFilter<"GoogleAccount"> | string
  userId?: Prisma.StringFilter<"GoogleAccount"> | string
  googleSub?: Prisma.StringFilter<"GoogleAccount"> | string
  email?: Prisma.StringFilter<"GoogleAccount"> | string
  refreshTokenEnc?: Prisma.StringFilter<"GoogleAccount"> | string
  scopes?: Prisma.StringNullableListFilter<"GoogleAccount">
  connectedAt?: Prisma.DateTimeFilter<"GoogleAccount"> | Date | string
  lastRefreshAt?: Prisma.DateTimeNullableFilter<"GoogleAccount"> | Date | string | null
}

export type GoogleAccountCreateManyUserInput = {
  id?: string
  googleSub: string
  email: string
  refreshTokenEnc: string
  scopes?: Prisma.GoogleAccountCreatescopesInput | string[]
  connectedAt?: Date | string
  lastRefreshAt?: Date | string | null
}

export type GoogleAccountUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  googleSub?: Prisma.StringFieldUpdateOperationsInput | string
  email?: Prisma.StringFieldUpdateOperationsInput | string
  refreshTokenEnc?: Prisma.StringFieldUpdateOperationsInput | string
  scopes?: Prisma.GoogleAccountUpdatescopesInput | string[]
  connectedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lastRefreshAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type GoogleAccountUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  googleSub?: Prisma.StringFieldUpdateOperationsInput | string
  email?: Prisma.StringFieldUpdateOperationsInput | string
  refreshTokenEnc?: Prisma.StringFieldUpdateOperationsInput | string
  scopes?: Prisma.GoogleAccountUpdatescopesInput | string[]
  connectedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lastRefreshAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type GoogleAccountUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  googleSub?: Prisma.StringFieldUpdateOperationsInput | string
  email?: Prisma.StringFieldUpdateOperationsInput | string
  refreshTokenEnc?: Prisma.StringFieldUpdateOperationsInput | string
  scopes?: Prisma.GoogleAccountUpdatescopesInput | string[]
  connectedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lastRefreshAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type GoogleAccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  googleSub?: boolean
  email?: boolean
  refreshTokenEnc?: boolean
  scopes?: boolean
  connectedAt?: boolean
  lastRefreshAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["googleAccount"]>

export type GoogleAccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  googleSub?: boolean
  email?: boolean
  refreshTokenEnc?: boolean
  scopes?: boolean
  connectedAt?: boolean
  lastRefreshAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["googleAccount"]>

export type GoogleAccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  googleSub?: boolean
  email?: boolean
  refreshTokenEnc?: boolean
  scopes?: boolean
  connectedAt?: boolean
  lastRefreshAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["googleAccount"]>

export type GoogleAccountSelectScalar = {
  id?: boolean
  userId?: boolean
  googleSub?: boolean
  email?: boolean
  refreshTokenEnc?: boolean
  scopes?: boolean
  connectedAt?: boolean
  lastRefreshAt?: boolean
}

export type GoogleAccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "googleSub" | "email" | "refreshTokenEnc" | "scopes" | "connectedAt" | "lastRefreshAt", ExtArgs["result"]["googleAccount"]>
export type GoogleAccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type GoogleAccountIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type GoogleAccountIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}

export type $GoogleAccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "GoogleAccount"
  objects: {
    user: Prisma.$UserPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    userId: string
    googleSub: string
    email: string
    refreshTokenEnc: string
    scopes: string[]
    connectedAt: Date
    lastRefreshAt: Date | null
  }, ExtArgs["result"]["googleAccount"]>
  composites: {}
}

export type GoogleAccountGetPayload<S extends boolean | null | undefined | GoogleAccountDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$GoogleAccountPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for GoogleAccount.
 * 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__GoogleAccountClient<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.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<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 GoogleAccount model
 */
export interface GoogleAccountFieldRefs {
  readonly id: Prisma.FieldRef<"GoogleAccount", 'String'>
  readonly userId: Prisma.FieldRef<"GoogleAccount", 'String'>
  readonly googleSub: Prisma.FieldRef<"GoogleAccount", 'String'>
  readonly email: Prisma.FieldRef<"GoogleAccount", 'String'>
  readonly refreshTokenEnc: Prisma.FieldRef<"GoogleAccount", 'String'>
  readonly scopes: Prisma.FieldRef<"GoogleAccount", 'String[]'>
  readonly connectedAt: Prisma.FieldRef<"GoogleAccount", 'DateTime'>
  readonly lastRefreshAt: Prisma.FieldRef<"GoogleAccount", 'DateTime'>
}
    

// Custom InputTypes
/**
 * GoogleAccount findUnique
 */
export type GoogleAccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GoogleAccount
   */
  select?: Prisma.GoogleAccountSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GoogleAccount
   */
  omit?: Prisma.GoogleAccountOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.GoogleAccountInclude<ExtArgs> | null
  /**
   * Filter, which GoogleAccount to fetch.
   */
  where: Prisma.GoogleAccountWhereUniqueInput
}

/**
 * GoogleAccount findUniqueOrThrow
 */
export type GoogleAccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GoogleAccount
   */
  select?: Prisma.GoogleAccountSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GoogleAccount
   */
  omit?: Prisma.GoogleAccountOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.GoogleAccountInclude<ExtArgs> | null
  /**
   * Filter, which GoogleAccount to fetch.
   */
  where: Prisma.GoogleAccountWhereUniqueInput
}

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

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

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

/**
 * GoogleAccount create
 */
export type GoogleAccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GoogleAccount
   */
  select?: Prisma.GoogleAccountSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GoogleAccount
   */
  omit?: Prisma.GoogleAccountOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.GoogleAccountInclude<ExtArgs> | null
  /**
   * The data needed to create a GoogleAccount.
   */
  data: Prisma.XOR<Prisma.GoogleAccountCreateInput, Prisma.GoogleAccountUncheckedCreateInput>
}

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

/**
 * GoogleAccount createManyAndReturn
 */
export type GoogleAccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GoogleAccount
   */
  select?: Prisma.GoogleAccountSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the GoogleAccount
   */
  omit?: Prisma.GoogleAccountOmit<ExtArgs> | null
  /**
   * The data used to create many GoogleAccounts.
   */
  data: Prisma.GoogleAccountCreateManyInput | Prisma.GoogleAccountCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.GoogleAccountIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * GoogleAccount update
 */
export type GoogleAccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GoogleAccount
   */
  select?: Prisma.GoogleAccountSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GoogleAccount
   */
  omit?: Prisma.GoogleAccountOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.GoogleAccountInclude<ExtArgs> | null
  /**
   * The data needed to update a GoogleAccount.
   */
  data: Prisma.XOR<Prisma.GoogleAccountUpdateInput, Prisma.GoogleAccountUncheckedUpdateInput>
  /**
   * Choose, which GoogleAccount to update.
   */
  where: Prisma.GoogleAccountWhereUniqueInput
}

/**
 * GoogleAccount updateMany
 */
export type GoogleAccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update GoogleAccounts.
   */
  data: Prisma.XOR<Prisma.GoogleAccountUpdateManyMutationInput, Prisma.GoogleAccountUncheckedUpdateManyInput>
  /**
   * Filter which GoogleAccounts to update
   */
  where?: Prisma.GoogleAccountWhereInput
  /**
   * Limit how many GoogleAccounts to update.
   */
  limit?: number
}

/**
 * GoogleAccount updateManyAndReturn
 */
export type GoogleAccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GoogleAccount
   */
  select?: Prisma.GoogleAccountSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the GoogleAccount
   */
  omit?: Prisma.GoogleAccountOmit<ExtArgs> | null
  /**
   * The data used to update GoogleAccounts.
   */
  data: Prisma.XOR<Prisma.GoogleAccountUpdateManyMutationInput, Prisma.GoogleAccountUncheckedUpdateManyInput>
  /**
   * Filter which GoogleAccounts to update
   */
  where?: Prisma.GoogleAccountWhereInput
  /**
   * Limit how many GoogleAccounts to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.GoogleAccountIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * GoogleAccount upsert
 */
export type GoogleAccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GoogleAccount
   */
  select?: Prisma.GoogleAccountSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GoogleAccount
   */
  omit?: Prisma.GoogleAccountOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.GoogleAccountInclude<ExtArgs> | null
  /**
   * The filter to search for the GoogleAccount to update in case it exists.
   */
  where: Prisma.GoogleAccountWhereUniqueInput
  /**
   * In case the GoogleAccount found by the `where` argument doesn't exist, create a new GoogleAccount with this data.
   */
  create: Prisma.XOR<Prisma.GoogleAccountCreateInput, Prisma.GoogleAccountUncheckedCreateInput>
  /**
   * In case the GoogleAccount was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.GoogleAccountUpdateInput, Prisma.GoogleAccountUncheckedUpdateInput>
}

/**
 * GoogleAccount delete
 */
export type GoogleAccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GoogleAccount
   */
  select?: Prisma.GoogleAccountSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GoogleAccount
   */
  omit?: Prisma.GoogleAccountOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.GoogleAccountInclude<ExtArgs> | null
  /**
   * Filter which GoogleAccount to delete.
   */
  where: Prisma.GoogleAccountWhereUniqueInput
}

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

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