eleboog-astro/generated/prisma/index.d.ts

9458 lines
No EOL
327 KiB
TypeScript

/**
* Client
**/
import * as runtime from './runtime/library.js';
import $Types = runtime.Types // general types
import $Public = runtime.Types.Public
import $Utils = runtime.Types.Utils
import $Extensions = runtime.Types.Extensions
import $Result = runtime.Types.Result
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Model account
*
*/
export type account = $Result.DefaultSelection<Prisma.$accountPayload>
/**
* Model passkey
*
*/
export type passkey = $Result.DefaultSelection<Prisma.$passkeyPayload>
/**
* Model session
*
*/
export type session = $Result.DefaultSelection<Prisma.$sessionPayload>
/**
* Model user
*
*/
export type user = $Result.DefaultSelection<Prisma.$userPayload>
/**
* Model verification
*
*/
export type verification = $Result.DefaultSelection<Prisma.$verificationPayload>
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Accounts
* const accounts = await prisma.account.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
export class PrismaClient<
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Accounts
* const accounts = await prisma.account.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
/**
* Connect with the database
*/
$connect(): $Utils.JsPromise<void>;
/**
* Disconnect from the database
*/
$disconnect(): $Utils.JsPromise<void>;
/**
* Add a middleware
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
* @see https://pris.ly/d/extensions
*/
$use(cb: Prisma.Middleware): void
/**
* Executes a prepared raw query and returns the number of affected rows.
* @example
* ```
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Executes a raw query and returns the number of affected rows.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Performs a prepared raw query and returns the `SELECT` data.
* @example
* ```
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Performs a raw query and returns the `SELECT` data.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
* @example
* ```
* const [george, bob, alice] = await prisma.$transaction([
* prisma.user.create({ data: { name: 'George' } }),
* prisma.user.create({ data: { name: 'Bob' } }),
* prisma.user.create({ data: { name: 'Alice' } }),
* ])
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
*/
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
extArgs: ExtArgs
}>>
/**
* `prisma.account`: Exposes CRUD operations for the **account** model.
* Example usage:
* ```ts
* // Fetch zero or more Accounts
* const accounts = await prisma.account.findMany()
* ```
*/
get account(): Prisma.accountDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.passkey`: Exposes CRUD operations for the **passkey** model.
* Example usage:
* ```ts
* // Fetch zero or more Passkeys
* const passkeys = await prisma.passkey.findMany()
* ```
*/
get passkey(): Prisma.passkeyDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.session`: Exposes CRUD operations for the **session** model.
* Example usage:
* ```ts
* // Fetch zero or more Sessions
* const sessions = await prisma.session.findMany()
* ```
*/
get session(): Prisma.sessionDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.user`: Exposes CRUD operations for the **user** model.
* Example usage:
* ```ts
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*/
get user(): Prisma.userDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.verification`: Exposes CRUD operations for the **verification** model.
* Example usage:
* ```ts
* // Fetch zero or more Verifications
* const verifications = await prisma.verification.findMany()
* ```
*/
get verification(): Prisma.verificationDelegate<ExtArgs, ClientOptions>;
}
export namespace Prisma {
export import DMMF = runtime.DMMF
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Validator
*/
export import validator = runtime.Public.validator
/**
* Prisma Errors
*/
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
export import PrismaClientValidationError = runtime.PrismaClientValidationError
/**
* Re-export of sql-template-tag
*/
export import sql = runtime.sqltag
export import empty = runtime.empty
export import join = runtime.join
export import raw = runtime.raw
export import Sql = runtime.Sql
/**
* Decimal.js
*/
export import Decimal = runtime.Decimal
export type DecimalJsLike = runtime.DecimalJsLike
/**
* Metrics
*/
export type Metrics = runtime.Metrics
export type Metric<T> = runtime.Metric<T>
export type MetricHistogram = runtime.MetricHistogram
export type MetricHistogramBucket = runtime.MetricHistogramBucket
/**
* Extensions
*/
export import Extension = $Extensions.UserArgs
export import getExtensionContext = runtime.Extensions.getExtensionContext
export import Args = $Public.Args
export import Payload = $Public.Payload
export import Result = $Public.Result
export import Exact = $Public.Exact
/**
* Prisma Client JS version: 6.7.0
* Query Engine version: 3cff47a7f5d65c3ea74883f1d736e41d68ce91ed
*/
export type PrismaVersion = {
client: string
}
export const prismaVersion: PrismaVersion
/**
* Utility Types
*/
export import JsonObject = runtime.JsonObject
export import JsonArray = runtime.JsonArray
export import JsonValue = runtime.JsonValue
export import InputJsonObject = runtime.InputJsonObject
export import InputJsonArray = runtime.InputJsonArray
export import InputJsonValue = runtime.InputJsonValue
/**
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
namespace NullTypes {
/**
* Type of `Prisma.DbNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class DbNull {
private DbNull: never
private constructor()
}
/**
* Type of `Prisma.JsonNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class JsonNull {
private JsonNull: never
private constructor()
}
/**
* Type of `Prisma.AnyNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class AnyNull {
private AnyNull: never
private constructor()
}
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull: NullTypes.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull: NullTypes.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull: NullTypes.AnyNull
type SelectAndInclude = {
select: any
include: any
}
type SelectAndOmit = {
select: any
omit: any
}
/**
* Get the type of the value, that the Promise holds.
*/
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
/**
* Get the return type of a function which returns a Promise.
*/
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
export type RequiredKeys<T> = {
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
}[keyof T]
export type TruthyKeys<T> = keyof {
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
}
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
type IsObject<T extends any> = T extends Array<any>
? False
: T extends Date
? False
: T extends Uint8Array
? False
: T extends BigInt
? False
: T extends object
? True
: False
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
type Either<
O extends object,
K extends Key,
strict extends Boolean = 1
> = O extends unknown ? _Either<O, K, strict> : never
export type Union = any
type PatchUndefined<O extends object, O1 extends object> = {
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
1: AtStrict<O, K>;
0: AtLoose<O, K>;
}[strict];
export type ComputeRaw<A extends any> = A extends Function ? A : {
[K in keyof A]: A[K];
} & {};
export type OptionalFlat<O> = {
[K in keyof O]?: O[K];
} & {};
type _Record<K extends keyof any, T> = {
[P in K]: T;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
/**
A [[Boolean]]
*/
export type Boolean = True | False
// /**
// 1
// */
export type True = 1
/**
0
*/
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
type Cast<A, B> = A extends B ? A : B;
export const type: unique symbol;
/**
* Used by group by
*/
export type GetScalarType<T, O> = O extends object ? {
[P in keyof T]: P extends keyof O
? O[P]
: never
} : never
type FieldPaths<
T,
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
> = IsObject<T> extends True ? U : T
type GetHavingFields<T> = {
[K in keyof T]: Or<
Or<Extends<'OR', K>, Extends<'AND', K>>,
Extends<'NOT', K>
> extends True
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
export const ModelName: {
account: 'account',
passkey: 'passkey',
session: 'session',
user: 'user',
verification: 'verification'
};
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
export type Datasources = {
db?: Datasource
}
interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
}
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
globalOmitOptions: {
omit: GlobalOmitOptions
}
meta: {
modelProps: "account" | "passkey" | "session" | "user" | "verification"
txIsolationLevel: Prisma.TransactionIsolationLevel
}
model: {
account: {
payload: Prisma.$accountPayload<ExtArgs>
fields: Prisma.accountFieldRefs
operations: {
findUnique: {
args: Prisma.accountFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload> | null
}
findUniqueOrThrow: {
args: Prisma.accountFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload>
}
findFirst: {
args: Prisma.accountFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload> | null
}
findFirstOrThrow: {
args: Prisma.accountFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload>
}
findMany: {
args: Prisma.accountFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload>[]
}
create: {
args: Prisma.accountCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload>
}
createMany: {
args: Prisma.accountCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.accountCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload>[]
}
delete: {
args: Prisma.accountDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload>
}
update: {
args: Prisma.accountUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload>
}
deleteMany: {
args: Prisma.accountDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.accountUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.accountUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload>[]
}
upsert: {
args: Prisma.accountUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$accountPayload>
}
aggregate: {
args: Prisma.AccountAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateAccount>
}
groupBy: {
args: Prisma.accountGroupByArgs<ExtArgs>
result: $Utils.Optional<AccountGroupByOutputType>[]
}
count: {
args: Prisma.accountCountArgs<ExtArgs>
result: $Utils.Optional<AccountCountAggregateOutputType> | number
}
}
}
passkey: {
payload: Prisma.$passkeyPayload<ExtArgs>
fields: Prisma.passkeyFieldRefs
operations: {
findUnique: {
args: Prisma.passkeyFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload> | null
}
findUniqueOrThrow: {
args: Prisma.passkeyFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload>
}
findFirst: {
args: Prisma.passkeyFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload> | null
}
findFirstOrThrow: {
args: Prisma.passkeyFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload>
}
findMany: {
args: Prisma.passkeyFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload>[]
}
create: {
args: Prisma.passkeyCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload>
}
createMany: {
args: Prisma.passkeyCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.passkeyCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload>[]
}
delete: {
args: Prisma.passkeyDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload>
}
update: {
args: Prisma.passkeyUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload>
}
deleteMany: {
args: Prisma.passkeyDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.passkeyUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.passkeyUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload>[]
}
upsert: {
args: Prisma.passkeyUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$passkeyPayload>
}
aggregate: {
args: Prisma.PasskeyAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregatePasskey>
}
groupBy: {
args: Prisma.passkeyGroupByArgs<ExtArgs>
result: $Utils.Optional<PasskeyGroupByOutputType>[]
}
count: {
args: Prisma.passkeyCountArgs<ExtArgs>
result: $Utils.Optional<PasskeyCountAggregateOutputType> | number
}
}
}
session: {
payload: Prisma.$sessionPayload<ExtArgs>
fields: Prisma.sessionFieldRefs
operations: {
findUnique: {
args: Prisma.sessionFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload> | null
}
findUniqueOrThrow: {
args: Prisma.sessionFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload>
}
findFirst: {
args: Prisma.sessionFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload> | null
}
findFirstOrThrow: {
args: Prisma.sessionFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload>
}
findMany: {
args: Prisma.sessionFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload>[]
}
create: {
args: Prisma.sessionCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload>
}
createMany: {
args: Prisma.sessionCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.sessionCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload>[]
}
delete: {
args: Prisma.sessionDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload>
}
update: {
args: Prisma.sessionUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload>
}
deleteMany: {
args: Prisma.sessionDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.sessionUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.sessionUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload>[]
}
upsert: {
args: Prisma.sessionUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$sessionPayload>
}
aggregate: {
args: Prisma.SessionAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateSession>
}
groupBy: {
args: Prisma.sessionGroupByArgs<ExtArgs>
result: $Utils.Optional<SessionGroupByOutputType>[]
}
count: {
args: Prisma.sessionCountArgs<ExtArgs>
result: $Utils.Optional<SessionCountAggregateOutputType> | number
}
}
}
user: {
payload: Prisma.$userPayload<ExtArgs>
fields: Prisma.userFieldRefs
operations: {
findUnique: {
args: Prisma.userFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload> | null
}
findUniqueOrThrow: {
args: Prisma.userFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload>
}
findFirst: {
args: Prisma.userFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload> | null
}
findFirstOrThrow: {
args: Prisma.userFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload>
}
findMany: {
args: Prisma.userFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload>[]
}
create: {
args: Prisma.userCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload>
}
createMany: {
args: Prisma.userCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.userCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload>[]
}
delete: {
args: Prisma.userDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload>
}
update: {
args: Prisma.userUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload>
}
deleteMany: {
args: Prisma.userDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.userUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.userUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload>[]
}
upsert: {
args: Prisma.userUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$userPayload>
}
aggregate: {
args: Prisma.UserAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateUser>
}
groupBy: {
args: Prisma.userGroupByArgs<ExtArgs>
result: $Utils.Optional<UserGroupByOutputType>[]
}
count: {
args: Prisma.userCountArgs<ExtArgs>
result: $Utils.Optional<UserCountAggregateOutputType> | number
}
}
}
verification: {
payload: Prisma.$verificationPayload<ExtArgs>
fields: Prisma.verificationFieldRefs
operations: {
findUnique: {
args: Prisma.verificationFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload> | null
}
findUniqueOrThrow: {
args: Prisma.verificationFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload>
}
findFirst: {
args: Prisma.verificationFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload> | null
}
findFirstOrThrow: {
args: Prisma.verificationFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload>
}
findMany: {
args: Prisma.verificationFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload>[]
}
create: {
args: Prisma.verificationCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload>
}
createMany: {
args: Prisma.verificationCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.verificationCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload>[]
}
delete: {
args: Prisma.verificationDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload>
}
update: {
args: Prisma.verificationUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload>
}
deleteMany: {
args: Prisma.verificationDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.verificationUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.verificationUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload>[]
}
upsert: {
args: Prisma.verificationUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$verificationPayload>
}
aggregate: {
args: Prisma.VerificationAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateVerification>
}
groupBy: {
args: Prisma.verificationGroupByArgs<ExtArgs>
result: $Utils.Optional<VerificationGroupByOutputType>[]
}
count: {
args: Prisma.verificationCountArgs<ExtArgs>
result: $Utils.Optional<VerificationCountAggregateOutputType> | number
}
}
}
}
} & {
other: {
payload: any
operations: {
$executeRaw: {
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
result: any
}
$executeRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
$queryRaw: {
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
result: any
}
$queryRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
}
}
}
export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
export type DefaultPrismaClient = PrismaClient
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
export interface PrismaClientOptions {
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasources?: Datasources
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasourceUrl?: string
/**
* @default "colorless"
*/
errorFormat?: ErrorFormat
/**
* @example
* ```
* // Defaults to stdout
* log: ['query', 'info', 'warn', 'error']
*
* // Emit as events
* log: [
* { emit: 'stdout', level: 'query' },
* { emit: 'stdout', level: 'info' },
* { emit: 'stdout', level: 'warn' }
* { emit: 'stdout', level: 'error' }
* ]
* ```
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
*/
log?: (LogLevel | LogDefinition)[]
/**
* The default values for transactionOptions
* maxWait ?= 2000
* timeout ?= 5000
*/
transactionOptions?: {
maxWait?: number
timeout?: number
isolationLevel?: Prisma.TransactionIsolationLevel
}
/**
* Global configuration for omitting model fields by default.
*
* @example
* ```
* const prisma = new PrismaClient({
* omit: {
* user: {
* password: true
* }
* }
* })
* ```
*/
omit?: Prisma.GlobalOmitConfig
}
export type GlobalOmitConfig = {
account?: accountOmit
passkey?: passkeyOmit
session?: sessionOmit
user?: userOmit
verification?: verificationOmit
}
/* Types for Logging */
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
export type LogDefinition = {
level: LogLevel
emit: 'stdout' | 'event'
}
export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ?
GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]>
: never
export type QueryEvent = {
timestamp: Date
query: string
params: string
duration: number
target: string
}
export type LogEvent = {
timestamp: Date
message: string
target: string
}
/* End Types for Logging */
export type PrismaAction =
| 'findUnique'
| 'findUniqueOrThrow'
| 'findMany'
| 'findFirst'
| 'findFirstOrThrow'
| 'create'
| 'createMany'
| 'createManyAndReturn'
| 'update'
| 'updateMany'
| 'updateManyAndReturn'
| 'upsert'
| 'delete'
| 'deleteMany'
| 'executeRaw'
| 'queryRaw'
| 'aggregate'
| 'count'
| 'runCommandRaw'
| 'findRaw'
| 'groupBy'
/**
* These options are being passed into the middleware as "params"
*/
export type MiddlewareParams = {
model?: ModelName
action: PrismaAction
args: any
dataPath: string[]
runInTransaction: boolean
}
/**
* The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
*/
export type Middleware<T = any> = (
params: MiddlewareParams,
next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
) => $Utils.JsPromise<T>
// tested in getLogLevel.test.ts
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
export type Datasource = {
url?: string
}
/**
* Count Types
*/
/**
* Count Type UserCountOutputType
*/
export type UserCountOutputType = {
account: number
passkey: number
session: number
}
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
account?: boolean | UserCountOutputTypeCountAccountArgs
passkey?: boolean | UserCountOutputTypeCountPasskeyArgs
session?: boolean | UserCountOutputTypeCountSessionArgs
}
// Custom InputTypes
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserCountOutputType
*/
select?: UserCountOutputTypeSelect<ExtArgs> | null
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountAccountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: accountWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountPasskeyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: passkeyWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountSessionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: sessionWhereInput
}
/**
* Models
*/
/**
* Model account
*/
export type AggregateAccount = {
_count: AccountCountAggregateOutputType | null
_min: AccountMinAggregateOutputType | null
_max: AccountMaxAggregateOutputType | null
}
export type AccountMinAggregateOutputType = {
id: string | null
accountId: string | null
providerId: string | null
userId: string | null
accessToken: string | null
refreshToken: string | null
idToken: string | null
accessTokenExpiresAt: Date | null
refreshTokenExpiresAt: Date | null
scope: string | null
password: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type AccountMaxAggregateOutputType = {
id: string | null
accountId: string | null
providerId: string | null
userId: string | null
accessToken: string | null
refreshToken: string | null
idToken: string | null
accessTokenExpiresAt: Date | null
refreshTokenExpiresAt: Date | null
scope: string | null
password: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type AccountCountAggregateOutputType = {
id: number
accountId: number
providerId: number
userId: number
accessToken: number
refreshToken: number
idToken: number
accessTokenExpiresAt: number
refreshTokenExpiresAt: number
scope: number
password: number
createdAt: number
updatedAt: number
_all: number
}
export type AccountMinAggregateInputType = {
id?: true
accountId?: true
providerId?: true
userId?: true
accessToken?: true
refreshToken?: true
idToken?: true
accessTokenExpiresAt?: true
refreshTokenExpiresAt?: true
scope?: true
password?: true
createdAt?: true
updatedAt?: true
}
export type AccountMaxAggregateInputType = {
id?: true
accountId?: true
providerId?: true
userId?: true
accessToken?: true
refreshToken?: true
idToken?: true
accessTokenExpiresAt?: true
refreshTokenExpiresAt?: true
scope?: true
password?: true
createdAt?: true
updatedAt?: true
}
export type AccountCountAggregateInputType = {
id?: true
accountId?: true
providerId?: true
userId?: true
accessToken?: true
refreshToken?: true
idToken?: true
accessTokenExpiresAt?: true
refreshTokenExpiresAt?: true
scope?: true
password?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type AccountAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which account to aggregate.
*/
where?: accountWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of accounts to fetch.
*/
orderBy?: accountOrderByWithRelationInput | accountOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: accountWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` accounts 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` accounts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned accounts
**/
_count?: true | AccountCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AccountMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AccountMaxAggregateInputType
}
export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
[P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateAccount[P]>
: GetScalarType<T[P], AggregateAccount[P]>
}
export type accountGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: accountWhereInput
orderBy?: accountOrderByWithAggregationInput | accountOrderByWithAggregationInput[]
by: AccountScalarFieldEnum[] | AccountScalarFieldEnum
having?: accountScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AccountCountAggregateInputType | true
_min?: AccountMinAggregateInputType
_max?: AccountMaxAggregateInputType
}
export type AccountGroupByOutputType = {
id: string
accountId: string
providerId: string
userId: string
accessToken: string | null
refreshToken: string | null
idToken: string | null
accessTokenExpiresAt: Date | null
refreshTokenExpiresAt: Date | null
scope: string | null
password: string | null
createdAt: Date
updatedAt: Date
_count: AccountCountAggregateOutputType | null
_min: AccountMinAggregateOutputType | null
_max: AccountMaxAggregateOutputType | null
}
type GetAccountGroupByPayload<T extends accountGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<AccountGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], AccountGroupByOutputType[P]>
: GetScalarType<T[P], AccountGroupByOutputType[P]>
}
>
>
export type accountSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
accountId?: boolean
providerId?: boolean
userId?: boolean
accessToken?: boolean
refreshToken?: boolean
idToken?: boolean
accessTokenExpiresAt?: boolean
refreshTokenExpiresAt?: boolean
scope?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["account"]>
export type accountSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
accountId?: boolean
providerId?: boolean
userId?: boolean
accessToken?: boolean
refreshToken?: boolean
idToken?: boolean
accessTokenExpiresAt?: boolean
refreshTokenExpiresAt?: boolean
scope?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["account"]>
export type accountSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
accountId?: boolean
providerId?: boolean
userId?: boolean
accessToken?: boolean
refreshToken?: boolean
idToken?: boolean
accessTokenExpiresAt?: boolean
refreshTokenExpiresAt?: boolean
scope?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["account"]>
export type accountSelectScalar = {
id?: boolean
accountId?: boolean
providerId?: boolean
userId?: boolean
accessToken?: boolean
refreshToken?: boolean
idToken?: boolean
accessTokenExpiresAt?: boolean
refreshTokenExpiresAt?: boolean
scope?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type accountOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "accountId" | "providerId" | "userId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["account"]>
export type accountInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | userDefaultArgs<ExtArgs>
}
export type accountIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | userDefaultArgs<ExtArgs>
}
export type accountIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | userDefaultArgs<ExtArgs>
}
export type $accountPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "account"
objects: {
user: Prisma.$userPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
accountId: string
providerId: string
userId: string
accessToken: string | null
refreshToken: string | null
idToken: string | null
accessTokenExpiresAt: Date | null
refreshTokenExpiresAt: Date | null
scope: string | null
password: string | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["account"]>
composites: {}
}
type accountGetPayload<S extends boolean | null | undefined | accountDefaultArgs> = $Result.GetResult<Prisma.$accountPayload, S>
type accountCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<accountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AccountCountAggregateInputType | true
}
export interface accountDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['account'], meta: { name: 'account' } }
/**
* Find zero or one Account that matches the filter.
* @param {accountFindUniqueArgs} args - Arguments to find a Account
* @example
* // Get one Account
* const account = await prisma.account.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends accountFindUniqueArgs>(args: SelectSubset<T, accountFindUniqueArgs<ExtArgs>>): Prisma__accountClient<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Account that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {accountFindUniqueOrThrowArgs} args - Arguments to find a Account
* @example
* // Get one Account
* const account = await prisma.account.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends accountFindUniqueOrThrowArgs>(args: SelectSubset<T, accountFindUniqueOrThrowArgs<ExtArgs>>): Prisma__accountClient<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Account 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 {accountFindFirstArgs} args - Arguments to find a Account
* @example
* // Get one Account
* const account = await prisma.account.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends accountFindFirstArgs>(args?: SelectSubset<T, accountFindFirstArgs<ExtArgs>>): Prisma__accountClient<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Account 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 {accountFindFirstOrThrowArgs} args - Arguments to find a Account
* @example
* // Get one Account
* const account = await prisma.account.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends accountFindFirstOrThrowArgs>(args?: SelectSubset<T, accountFindFirstOrThrowArgs<ExtArgs>>): Prisma__accountClient<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Accounts 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 {accountFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Accounts
* const accounts = await prisma.account.findMany()
*
* // Get first 10 Accounts
* const accounts = await prisma.account.findMany({ take: 10 })
*
* // Only select the `id`
* const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
*
*/
findMany<T extends accountFindManyArgs>(args?: SelectSubset<T, accountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Account.
* @param {accountCreateArgs} args - Arguments to create a Account.
* @example
* // Create one Account
* const Account = await prisma.account.create({
* data: {
* // ... data to create a Account
* }
* })
*
*/
create<T extends accountCreateArgs>(args: SelectSubset<T, accountCreateArgs<ExtArgs>>): Prisma__accountClient<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Accounts.
* @param {accountCreateManyArgs} args - Arguments to create many Accounts.
* @example
* // Create many Accounts
* const account = await prisma.account.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends accountCreateManyArgs>(args?: SelectSubset<T, accountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Accounts and returns the data saved in the database.
* @param {accountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
* @example
* // Create many Accounts
* const account = await prisma.account.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Accounts and only return the `id`
* const accountWithIdOnly = await prisma.account.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 accountCreateManyAndReturnArgs>(args?: SelectSubset<T, accountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Account.
* @param {accountDeleteArgs} args - Arguments to delete one Account.
* @example
* // Delete one Account
* const Account = await prisma.account.delete({
* where: {
* // ... filter to delete one Account
* }
* })
*
*/
delete<T extends accountDeleteArgs>(args: SelectSubset<T, accountDeleteArgs<ExtArgs>>): Prisma__accountClient<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Account.
* @param {accountUpdateArgs} args - Arguments to update one Account.
* @example
* // Update one Account
* const account = await prisma.account.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends accountUpdateArgs>(args: SelectSubset<T, accountUpdateArgs<ExtArgs>>): Prisma__accountClient<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Accounts.
* @param {accountDeleteManyArgs} args - Arguments to filter Accounts to delete.
* @example
* // Delete a few Accounts
* const { count } = await prisma.account.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends accountDeleteManyArgs>(args?: SelectSubset<T, accountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Accounts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {accountUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Accounts
* const account = await prisma.account.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends accountUpdateManyArgs>(args: SelectSubset<T, accountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Accounts and returns the data updated in the database.
* @param {accountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
* @example
* // Update many Accounts
* const account = await prisma.account.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Accounts and only return the `id`
* const accountWithIdOnly = await prisma.account.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 accountUpdateManyAndReturnArgs>(args: SelectSubset<T, accountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Account.
* @param {accountUpsertArgs} args - Arguments to update or create a Account.
* @example
* // Update or create a Account
* const account = await prisma.account.upsert({
* create: {
* // ... data to create a Account
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Account we want to update
* }
* })
*/
upsert<T extends accountUpsertArgs>(args: SelectSubset<T, accountUpsertArgs<ExtArgs>>): Prisma__accountClient<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Accounts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {accountCountArgs} args - Arguments to filter Accounts to count.
* @example
* // Count the number of Accounts
* const count = await prisma.account.count({
* where: {
* // ... the filter for the Accounts we want to count
* }
* })
**/
count<T extends accountCountArgs>(
args?: Subset<T, accountCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], AccountCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Account.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AccountAggregateArgs} 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 AccountAggregateArgs>(args: Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
/**
* Group by Account.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {accountGroupByArgs} 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 accountGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: accountGroupByArgs['orderBy'] }
: { orderBy?: accountGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, accountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the account model
*/
readonly fields: accountFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for account.
* 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__accountClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends userDefaultArgs<ExtArgs> = {}>(args?: Subset<T, userDefaultArgs<ExtArgs>>): Prisma__userClient<$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): $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): $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): $Utils.JsPromise<T>
}
/**
* Fields of the account model
*/
interface accountFieldRefs {
readonly id: FieldRef<"account", 'String'>
readonly accountId: FieldRef<"account", 'String'>
readonly providerId: FieldRef<"account", 'String'>
readonly userId: FieldRef<"account", 'String'>
readonly accessToken: FieldRef<"account", 'String'>
readonly refreshToken: FieldRef<"account", 'String'>
readonly idToken: FieldRef<"account", 'String'>
readonly accessTokenExpiresAt: FieldRef<"account", 'DateTime'>
readonly refreshTokenExpiresAt: FieldRef<"account", 'DateTime'>
readonly scope: FieldRef<"account", 'String'>
readonly password: FieldRef<"account", 'String'>
readonly createdAt: FieldRef<"account", 'DateTime'>
readonly updatedAt: FieldRef<"account", 'DateTime'>
}
// Custom InputTypes
/**
* account findUnique
*/
export type accountFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
/**
* Filter, which account to fetch.
*/
where: accountWhereUniqueInput
}
/**
* account findUniqueOrThrow
*/
export type accountFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
/**
* Filter, which account to fetch.
*/
where: accountWhereUniqueInput
}
/**
* account findFirst
*/
export type accountFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
/**
* Filter, which account to fetch.
*/
where?: accountWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of accounts to fetch.
*/
orderBy?: accountOrderByWithRelationInput | accountOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for accounts.
*/
cursor?: accountWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` accounts 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` accounts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of accounts.
*/
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
}
/**
* account findFirstOrThrow
*/
export type accountFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
/**
* Filter, which account to fetch.
*/
where?: accountWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of accounts to fetch.
*/
orderBy?: accountOrderByWithRelationInput | accountOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for accounts.
*/
cursor?: accountWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` accounts 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` accounts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of accounts.
*/
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
}
/**
* account findMany
*/
export type accountFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
/**
* Filter, which accounts to fetch.
*/
where?: accountWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of accounts to fetch.
*/
orderBy?: accountOrderByWithRelationInput | accountOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing accounts.
*/
cursor?: accountWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` accounts 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` accounts.
*/
skip?: number
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
}
/**
* account create
*/
export type accountCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
/**
* The data needed to create a account.
*/
data: XOR<accountCreateInput, accountUncheckedCreateInput>
}
/**
* account createMany
*/
export type accountCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many accounts.
*/
data: accountCreateManyInput | accountCreateManyInput[]
skipDuplicates?: boolean
}
/**
* account createManyAndReturn
*/
export type accountCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* The data used to create many accounts.
*/
data: accountCreateManyInput | accountCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: accountIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* account update
*/
export type accountUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
/**
* The data needed to update a account.
*/
data: XOR<accountUpdateInput, accountUncheckedUpdateInput>
/**
* Choose, which account to update.
*/
where: accountWhereUniqueInput
}
/**
* account updateMany
*/
export type accountUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update accounts.
*/
data: XOR<accountUpdateManyMutationInput, accountUncheckedUpdateManyInput>
/**
* Filter which accounts to update
*/
where?: accountWhereInput
/**
* Limit how many accounts to update.
*/
limit?: number
}
/**
* account updateManyAndReturn
*/
export type accountUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* The data used to update accounts.
*/
data: XOR<accountUpdateManyMutationInput, accountUncheckedUpdateManyInput>
/**
* Filter which accounts to update
*/
where?: accountWhereInput
/**
* Limit how many accounts to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: accountIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* account upsert
*/
export type accountUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
/**
* The filter to search for the account to update in case it exists.
*/
where: accountWhereUniqueInput
/**
* In case the account found by the `where` argument doesn't exist, create a new account with this data.
*/
create: XOR<accountCreateInput, accountUncheckedCreateInput>
/**
* In case the account was found with the provided `where` argument, update it with this data.
*/
update: XOR<accountUpdateInput, accountUncheckedUpdateInput>
}
/**
* account delete
*/
export type accountDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
/**
* Filter which account to delete.
*/
where: accountWhereUniqueInput
}
/**
* account deleteMany
*/
export type accountDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which accounts to delete
*/
where?: accountWhereInput
/**
* Limit how many accounts to delete.
*/
limit?: number
}
/**
* account without action
*/
export type accountDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
}
/**
* Model passkey
*/
export type AggregatePasskey = {
_count: PasskeyCountAggregateOutputType | null
_avg: PasskeyAvgAggregateOutputType | null
_sum: PasskeySumAggregateOutputType | null
_min: PasskeyMinAggregateOutputType | null
_max: PasskeyMaxAggregateOutputType | null
}
export type PasskeyAvgAggregateOutputType = {
counter: number | null
}
export type PasskeySumAggregateOutputType = {
counter: number | null
}
export type PasskeyMinAggregateOutputType = {
id: string | null
name: string | null
publicKey: string | null
userId: string | null
credentialID: string | null
counter: number | null
deviceType: string | null
backedUp: boolean | null
transports: string | null
createdAt: Date | null
}
export type PasskeyMaxAggregateOutputType = {
id: string | null
name: string | null
publicKey: string | null
userId: string | null
credentialID: string | null
counter: number | null
deviceType: string | null
backedUp: boolean | null
transports: string | null
createdAt: Date | null
}
export type PasskeyCountAggregateOutputType = {
id: number
name: number
publicKey: number
userId: number
credentialID: number
counter: number
deviceType: number
backedUp: number
transports: number
createdAt: number
_all: number
}
export type PasskeyAvgAggregateInputType = {
counter?: true
}
export type PasskeySumAggregateInputType = {
counter?: true
}
export type PasskeyMinAggregateInputType = {
id?: true
name?: true
publicKey?: true
userId?: true
credentialID?: true
counter?: true
deviceType?: true
backedUp?: true
transports?: true
createdAt?: true
}
export type PasskeyMaxAggregateInputType = {
id?: true
name?: true
publicKey?: true
userId?: true
credentialID?: true
counter?: true
deviceType?: true
backedUp?: true
transports?: true
createdAt?: true
}
export type PasskeyCountAggregateInputType = {
id?: true
name?: true
publicKey?: true
userId?: true
credentialID?: true
counter?: true
deviceType?: true
backedUp?: true
transports?: true
createdAt?: true
_all?: true
}
export type PasskeyAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which passkey to aggregate.
*/
where?: passkeyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of passkeys to fetch.
*/
orderBy?: passkeyOrderByWithRelationInput | passkeyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: passkeyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` passkeys 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` passkeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned passkeys
**/
_count?: true | PasskeyCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: PasskeyAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: PasskeySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: PasskeyMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: PasskeyMaxAggregateInputType
}
export type GetPasskeyAggregateType<T extends PasskeyAggregateArgs> = {
[P in keyof T & keyof AggregatePasskey]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregatePasskey[P]>
: GetScalarType<T[P], AggregatePasskey[P]>
}
export type passkeyGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: passkeyWhereInput
orderBy?: passkeyOrderByWithAggregationInput | passkeyOrderByWithAggregationInput[]
by: PasskeyScalarFieldEnum[] | PasskeyScalarFieldEnum
having?: passkeyScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: PasskeyCountAggregateInputType | true
_avg?: PasskeyAvgAggregateInputType
_sum?: PasskeySumAggregateInputType
_min?: PasskeyMinAggregateInputType
_max?: PasskeyMaxAggregateInputType
}
export type PasskeyGroupByOutputType = {
id: string
name: string | null
publicKey: string
userId: string
credentialID: string
counter: number
deviceType: string
backedUp: boolean
transports: string | null
createdAt: Date | null
_count: PasskeyCountAggregateOutputType | null
_avg: PasskeyAvgAggregateOutputType | null
_sum: PasskeySumAggregateOutputType | null
_min: PasskeyMinAggregateOutputType | null
_max: PasskeyMaxAggregateOutputType | null
}
type GetPasskeyGroupByPayload<T extends passkeyGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<PasskeyGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof PasskeyGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], PasskeyGroupByOutputType[P]>
: GetScalarType<T[P], PasskeyGroupByOutputType[P]>
}
>
>
export type passkeySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
publicKey?: boolean
userId?: boolean
credentialID?: boolean
counter?: boolean
deviceType?: boolean
backedUp?: boolean
transports?: boolean
createdAt?: boolean
user?: boolean | userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["passkey"]>
export type passkeySelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
publicKey?: boolean
userId?: boolean
credentialID?: boolean
counter?: boolean
deviceType?: boolean
backedUp?: boolean
transports?: boolean
createdAt?: boolean
user?: boolean | userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["passkey"]>
export type passkeySelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
publicKey?: boolean
userId?: boolean
credentialID?: boolean
counter?: boolean
deviceType?: boolean
backedUp?: boolean
transports?: boolean
createdAt?: boolean
user?: boolean | userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["passkey"]>
export type passkeySelectScalar = {
id?: boolean
name?: boolean
publicKey?: boolean
userId?: boolean
credentialID?: boolean
counter?: boolean
deviceType?: boolean
backedUp?: boolean
transports?: boolean
createdAt?: boolean
}
export type passkeyOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "publicKey" | "userId" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "createdAt", ExtArgs["result"]["passkey"]>
export type passkeyInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | userDefaultArgs<ExtArgs>
}
export type passkeyIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | userDefaultArgs<ExtArgs>
}
export type passkeyIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | userDefaultArgs<ExtArgs>
}
export type $passkeyPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "passkey"
objects: {
user: Prisma.$userPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
name: string | null
publicKey: string
userId: string
credentialID: string
counter: number
deviceType: string
backedUp: boolean
transports: string | null
createdAt: Date | null
}, ExtArgs["result"]["passkey"]>
composites: {}
}
type passkeyGetPayload<S extends boolean | null | undefined | passkeyDefaultArgs> = $Result.GetResult<Prisma.$passkeyPayload, S>
type passkeyCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<passkeyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: PasskeyCountAggregateInputType | true
}
export interface passkeyDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['passkey'], meta: { name: 'passkey' } }
/**
* Find zero or one Passkey that matches the filter.
* @param {passkeyFindUniqueArgs} args - Arguments to find a Passkey
* @example
* // Get one Passkey
* const passkey = await prisma.passkey.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends passkeyFindUniqueArgs>(args: SelectSubset<T, passkeyFindUniqueArgs<ExtArgs>>): Prisma__passkeyClient<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Passkey that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {passkeyFindUniqueOrThrowArgs} args - Arguments to find a Passkey
* @example
* // Get one Passkey
* const passkey = await prisma.passkey.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends passkeyFindUniqueOrThrowArgs>(args: SelectSubset<T, passkeyFindUniqueOrThrowArgs<ExtArgs>>): Prisma__passkeyClient<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Passkey 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 {passkeyFindFirstArgs} args - Arguments to find a Passkey
* @example
* // Get one Passkey
* const passkey = await prisma.passkey.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends passkeyFindFirstArgs>(args?: SelectSubset<T, passkeyFindFirstArgs<ExtArgs>>): Prisma__passkeyClient<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Passkey 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 {passkeyFindFirstOrThrowArgs} args - Arguments to find a Passkey
* @example
* // Get one Passkey
* const passkey = await prisma.passkey.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends passkeyFindFirstOrThrowArgs>(args?: SelectSubset<T, passkeyFindFirstOrThrowArgs<ExtArgs>>): Prisma__passkeyClient<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Passkeys 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 {passkeyFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Passkeys
* const passkeys = await prisma.passkey.findMany()
*
* // Get first 10 Passkeys
* const passkeys = await prisma.passkey.findMany({ take: 10 })
*
* // Only select the `id`
* const passkeyWithIdOnly = await prisma.passkey.findMany({ select: { id: true } })
*
*/
findMany<T extends passkeyFindManyArgs>(args?: SelectSubset<T, passkeyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Passkey.
* @param {passkeyCreateArgs} args - Arguments to create a Passkey.
* @example
* // Create one Passkey
* const Passkey = await prisma.passkey.create({
* data: {
* // ... data to create a Passkey
* }
* })
*
*/
create<T extends passkeyCreateArgs>(args: SelectSubset<T, passkeyCreateArgs<ExtArgs>>): Prisma__passkeyClient<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Passkeys.
* @param {passkeyCreateManyArgs} args - Arguments to create many Passkeys.
* @example
* // Create many Passkeys
* const passkey = await prisma.passkey.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends passkeyCreateManyArgs>(args?: SelectSubset<T, passkeyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Passkeys and returns the data saved in the database.
* @param {passkeyCreateManyAndReturnArgs} args - Arguments to create many Passkeys.
* @example
* // Create many Passkeys
* const passkey = await prisma.passkey.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Passkeys and only return the `id`
* const passkeyWithIdOnly = await prisma.passkey.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 passkeyCreateManyAndReturnArgs>(args?: SelectSubset<T, passkeyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Passkey.
* @param {passkeyDeleteArgs} args - Arguments to delete one Passkey.
* @example
* // Delete one Passkey
* const Passkey = await prisma.passkey.delete({
* where: {
* // ... filter to delete one Passkey
* }
* })
*
*/
delete<T extends passkeyDeleteArgs>(args: SelectSubset<T, passkeyDeleteArgs<ExtArgs>>): Prisma__passkeyClient<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Passkey.
* @param {passkeyUpdateArgs} args - Arguments to update one Passkey.
* @example
* // Update one Passkey
* const passkey = await prisma.passkey.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends passkeyUpdateArgs>(args: SelectSubset<T, passkeyUpdateArgs<ExtArgs>>): Prisma__passkeyClient<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Passkeys.
* @param {passkeyDeleteManyArgs} args - Arguments to filter Passkeys to delete.
* @example
* // Delete a few Passkeys
* const { count } = await prisma.passkey.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends passkeyDeleteManyArgs>(args?: SelectSubset<T, passkeyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Passkeys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {passkeyUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Passkeys
* const passkey = await prisma.passkey.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends passkeyUpdateManyArgs>(args: SelectSubset<T, passkeyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Passkeys and returns the data updated in the database.
* @param {passkeyUpdateManyAndReturnArgs} args - Arguments to update many Passkeys.
* @example
* // Update many Passkeys
* const passkey = await prisma.passkey.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Passkeys and only return the `id`
* const passkeyWithIdOnly = await prisma.passkey.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 passkeyUpdateManyAndReturnArgs>(args: SelectSubset<T, passkeyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Passkey.
* @param {passkeyUpsertArgs} args - Arguments to update or create a Passkey.
* @example
* // Update or create a Passkey
* const passkey = await prisma.passkey.upsert({
* create: {
* // ... data to create a Passkey
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Passkey we want to update
* }
* })
*/
upsert<T extends passkeyUpsertArgs>(args: SelectSubset<T, passkeyUpsertArgs<ExtArgs>>): Prisma__passkeyClient<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Passkeys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {passkeyCountArgs} args - Arguments to filter Passkeys to count.
* @example
* // Count the number of Passkeys
* const count = await prisma.passkey.count({
* where: {
* // ... the filter for the Passkeys we want to count
* }
* })
**/
count<T extends passkeyCountArgs>(
args?: Subset<T, passkeyCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], PasskeyCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Passkey.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PasskeyAggregateArgs} 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 PasskeyAggregateArgs>(args: Subset<T, PasskeyAggregateArgs>): Prisma.PrismaPromise<GetPasskeyAggregateType<T>>
/**
* Group by Passkey.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {passkeyGroupByArgs} 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 passkeyGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: passkeyGroupByArgs['orderBy'] }
: { orderBy?: passkeyGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, passkeyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPasskeyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the passkey model
*/
readonly fields: passkeyFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for passkey.
* 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__passkeyClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends userDefaultArgs<ExtArgs> = {}>(args?: Subset<T, userDefaultArgs<ExtArgs>>): Prisma__userClient<$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): $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): $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): $Utils.JsPromise<T>
}
/**
* Fields of the passkey model
*/
interface passkeyFieldRefs {
readonly id: FieldRef<"passkey", 'String'>
readonly name: FieldRef<"passkey", 'String'>
readonly publicKey: FieldRef<"passkey", 'String'>
readonly userId: FieldRef<"passkey", 'String'>
readonly credentialID: FieldRef<"passkey", 'String'>
readonly counter: FieldRef<"passkey", 'Int'>
readonly deviceType: FieldRef<"passkey", 'String'>
readonly backedUp: FieldRef<"passkey", 'Boolean'>
readonly transports: FieldRef<"passkey", 'String'>
readonly createdAt: FieldRef<"passkey", 'DateTime'>
}
// Custom InputTypes
/**
* passkey findUnique
*/
export type passkeyFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
/**
* Filter, which passkey to fetch.
*/
where: passkeyWhereUniqueInput
}
/**
* passkey findUniqueOrThrow
*/
export type passkeyFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
/**
* Filter, which passkey to fetch.
*/
where: passkeyWhereUniqueInput
}
/**
* passkey findFirst
*/
export type passkeyFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
/**
* Filter, which passkey to fetch.
*/
where?: passkeyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of passkeys to fetch.
*/
orderBy?: passkeyOrderByWithRelationInput | passkeyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for passkeys.
*/
cursor?: passkeyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` passkeys 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` passkeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of passkeys.
*/
distinct?: PasskeyScalarFieldEnum | PasskeyScalarFieldEnum[]
}
/**
* passkey findFirstOrThrow
*/
export type passkeyFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
/**
* Filter, which passkey to fetch.
*/
where?: passkeyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of passkeys to fetch.
*/
orderBy?: passkeyOrderByWithRelationInput | passkeyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for passkeys.
*/
cursor?: passkeyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` passkeys 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` passkeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of passkeys.
*/
distinct?: PasskeyScalarFieldEnum | PasskeyScalarFieldEnum[]
}
/**
* passkey findMany
*/
export type passkeyFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
/**
* Filter, which passkeys to fetch.
*/
where?: passkeyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of passkeys to fetch.
*/
orderBy?: passkeyOrderByWithRelationInput | passkeyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing passkeys.
*/
cursor?: passkeyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` passkeys 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` passkeys.
*/
skip?: number
distinct?: PasskeyScalarFieldEnum | PasskeyScalarFieldEnum[]
}
/**
* passkey create
*/
export type passkeyCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
/**
* The data needed to create a passkey.
*/
data: XOR<passkeyCreateInput, passkeyUncheckedCreateInput>
}
/**
* passkey createMany
*/
export type passkeyCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many passkeys.
*/
data: passkeyCreateManyInput | passkeyCreateManyInput[]
skipDuplicates?: boolean
}
/**
* passkey createManyAndReturn
*/
export type passkeyCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* The data used to create many passkeys.
*/
data: passkeyCreateManyInput | passkeyCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* passkey update
*/
export type passkeyUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
/**
* The data needed to update a passkey.
*/
data: XOR<passkeyUpdateInput, passkeyUncheckedUpdateInput>
/**
* Choose, which passkey to update.
*/
where: passkeyWhereUniqueInput
}
/**
* passkey updateMany
*/
export type passkeyUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update passkeys.
*/
data: XOR<passkeyUpdateManyMutationInput, passkeyUncheckedUpdateManyInput>
/**
* Filter which passkeys to update
*/
where?: passkeyWhereInput
/**
* Limit how many passkeys to update.
*/
limit?: number
}
/**
* passkey updateManyAndReturn
*/
export type passkeyUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* The data used to update passkeys.
*/
data: XOR<passkeyUpdateManyMutationInput, passkeyUncheckedUpdateManyInput>
/**
* Filter which passkeys to update
*/
where?: passkeyWhereInput
/**
* Limit how many passkeys to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* passkey upsert
*/
export type passkeyUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
/**
* The filter to search for the passkey to update in case it exists.
*/
where: passkeyWhereUniqueInput
/**
* In case the passkey found by the `where` argument doesn't exist, create a new passkey with this data.
*/
create: XOR<passkeyCreateInput, passkeyUncheckedCreateInput>
/**
* In case the passkey was found with the provided `where` argument, update it with this data.
*/
update: XOR<passkeyUpdateInput, passkeyUncheckedUpdateInput>
}
/**
* passkey delete
*/
export type passkeyDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
/**
* Filter which passkey to delete.
*/
where: passkeyWhereUniqueInput
}
/**
* passkey deleteMany
*/
export type passkeyDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which passkeys to delete
*/
where?: passkeyWhereInput
/**
* Limit how many passkeys to delete.
*/
limit?: number
}
/**
* passkey without action
*/
export type passkeyDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
}
/**
* Model session
*/
export type AggregateSession = {
_count: SessionCountAggregateOutputType | null
_min: SessionMinAggregateOutputType | null
_max: SessionMaxAggregateOutputType | null
}
export type SessionMinAggregateOutputType = {
id: string | null
expiresAt: Date | null
token: string | null
createdAt: Date | null
updatedAt: Date | null
ipAddress: string | null
userAgent: string | null
userId: string | null
impersonatedBy: string | null
}
export type SessionMaxAggregateOutputType = {
id: string | null
expiresAt: Date | null
token: string | null
createdAt: Date | null
updatedAt: Date | null
ipAddress: string | null
userAgent: string | null
userId: string | null
impersonatedBy: string | null
}
export type SessionCountAggregateOutputType = {
id: number
expiresAt: number
token: number
createdAt: number
updatedAt: number
ipAddress: number
userAgent: number
userId: number
impersonatedBy: number
_all: number
}
export type SessionMinAggregateInputType = {
id?: true
expiresAt?: true
token?: true
createdAt?: true
updatedAt?: true
ipAddress?: true
userAgent?: true
userId?: true
impersonatedBy?: true
}
export type SessionMaxAggregateInputType = {
id?: true
expiresAt?: true
token?: true
createdAt?: true
updatedAt?: true
ipAddress?: true
userAgent?: true
userId?: true
impersonatedBy?: true
}
export type SessionCountAggregateInputType = {
id?: true
expiresAt?: true
token?: true
createdAt?: true
updatedAt?: true
ipAddress?: true
userAgent?: true
userId?: true
impersonatedBy?: true
_all?: true
}
export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which session to aggregate.
*/
where?: sessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of sessions to fetch.
*/
orderBy?: sessionOrderByWithRelationInput | sessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: sessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` sessions 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` sessions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned sessions
**/
_count?: true | SessionCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SessionMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SessionMaxAggregateInputType
}
export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
[P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateSession[P]>
: GetScalarType<T[P], AggregateSession[P]>
}
export type sessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: sessionWhereInput
orderBy?: sessionOrderByWithAggregationInput | sessionOrderByWithAggregationInput[]
by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
having?: sessionScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SessionCountAggregateInputType | true
_min?: SessionMinAggregateInputType
_max?: SessionMaxAggregateInputType
}
export type SessionGroupByOutputType = {
id: string
expiresAt: Date
token: string
createdAt: Date
updatedAt: Date
ipAddress: string | null
userAgent: string | null
userId: string
impersonatedBy: string | null
_count: SessionCountAggregateOutputType | null
_min: SessionMinAggregateOutputType | null
_max: SessionMaxAggregateOutputType | null
}
type GetSessionGroupByPayload<T extends sessionGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<SessionGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], SessionGroupByOutputType[P]>
: GetScalarType<T[P], SessionGroupByOutputType[P]>
}
>
>
export type sessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
expiresAt?: boolean
token?: boolean
createdAt?: boolean
updatedAt?: boolean
ipAddress?: boolean
userAgent?: boolean
userId?: boolean
impersonatedBy?: boolean
user?: boolean | userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["session"]>
export type sessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
expiresAt?: boolean
token?: boolean
createdAt?: boolean
updatedAt?: boolean
ipAddress?: boolean
userAgent?: boolean
userId?: boolean
impersonatedBy?: boolean
user?: boolean | userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["session"]>
export type sessionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
expiresAt?: boolean
token?: boolean
createdAt?: boolean
updatedAt?: boolean
ipAddress?: boolean
userAgent?: boolean
userId?: boolean
impersonatedBy?: boolean
user?: boolean | userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["session"]>
export type sessionSelectScalar = {
id?: boolean
expiresAt?: boolean
token?: boolean
createdAt?: boolean
updatedAt?: boolean
ipAddress?: boolean
userAgent?: boolean
userId?: boolean
impersonatedBy?: boolean
}
export type sessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "expiresAt" | "token" | "createdAt" | "updatedAt" | "ipAddress" | "userAgent" | "userId" | "impersonatedBy", ExtArgs["result"]["session"]>
export type sessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | userDefaultArgs<ExtArgs>
}
export type sessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | userDefaultArgs<ExtArgs>
}
export type sessionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | userDefaultArgs<ExtArgs>
}
export type $sessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "session"
objects: {
user: Prisma.$userPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
expiresAt: Date
token: string
createdAt: Date
updatedAt: Date
ipAddress: string | null
userAgent: string | null
userId: string
impersonatedBy: string | null
}, ExtArgs["result"]["session"]>
composites: {}
}
type sessionGetPayload<S extends boolean | null | undefined | sessionDefaultArgs> = $Result.GetResult<Prisma.$sessionPayload, S>
type sessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<sessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: SessionCountAggregateInputType | true
}
export interface sessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['session'], meta: { name: 'session' } }
/**
* Find zero or one Session that matches the filter.
* @param {sessionFindUniqueArgs} args - Arguments to find a Session
* @example
* // Get one Session
* const session = await prisma.session.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends sessionFindUniqueArgs>(args: SelectSubset<T, sessionFindUniqueArgs<ExtArgs>>): Prisma__sessionClient<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Session that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {sessionFindUniqueOrThrowArgs} args - Arguments to find a Session
* @example
* // Get one Session
* const session = await prisma.session.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends sessionFindUniqueOrThrowArgs>(args: SelectSubset<T, sessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__sessionClient<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Session 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 {sessionFindFirstArgs} args - Arguments to find a Session
* @example
* // Get one Session
* const session = await prisma.session.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends sessionFindFirstArgs>(args?: SelectSubset<T, sessionFindFirstArgs<ExtArgs>>): Prisma__sessionClient<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Session 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 {sessionFindFirstOrThrowArgs} args - Arguments to find a Session
* @example
* // Get one Session
* const session = await prisma.session.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends sessionFindFirstOrThrowArgs>(args?: SelectSubset<T, sessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__sessionClient<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Sessions 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 {sessionFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Sessions
* const sessions = await prisma.session.findMany()
*
* // Get first 10 Sessions
* const sessions = await prisma.session.findMany({ take: 10 })
*
* // Only select the `id`
* const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
*
*/
findMany<T extends sessionFindManyArgs>(args?: SelectSubset<T, sessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Session.
* @param {sessionCreateArgs} args - Arguments to create a Session.
* @example
* // Create one Session
* const Session = await prisma.session.create({
* data: {
* // ... data to create a Session
* }
* })
*
*/
create<T extends sessionCreateArgs>(args: SelectSubset<T, sessionCreateArgs<ExtArgs>>): Prisma__sessionClient<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Sessions.
* @param {sessionCreateManyArgs} args - Arguments to create many Sessions.
* @example
* // Create many Sessions
* const session = await prisma.session.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends sessionCreateManyArgs>(args?: SelectSubset<T, sessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Sessions and returns the data saved in the database.
* @param {sessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
* @example
* // Create many Sessions
* const session = await prisma.session.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Sessions and only return the `id`
* const sessionWithIdOnly = await prisma.session.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 sessionCreateManyAndReturnArgs>(args?: SelectSubset<T, sessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Session.
* @param {sessionDeleteArgs} args - Arguments to delete one Session.
* @example
* // Delete one Session
* const Session = await prisma.session.delete({
* where: {
* // ... filter to delete one Session
* }
* })
*
*/
delete<T extends sessionDeleteArgs>(args: SelectSubset<T, sessionDeleteArgs<ExtArgs>>): Prisma__sessionClient<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Session.
* @param {sessionUpdateArgs} args - Arguments to update one Session.
* @example
* // Update one Session
* const session = await prisma.session.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends sessionUpdateArgs>(args: SelectSubset<T, sessionUpdateArgs<ExtArgs>>): Prisma__sessionClient<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Sessions.
* @param {sessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
* @example
* // Delete a few Sessions
* const { count } = await prisma.session.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends sessionDeleteManyArgs>(args?: SelectSubset<T, sessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Sessions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {sessionUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Sessions
* const session = await prisma.session.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends sessionUpdateManyArgs>(args: SelectSubset<T, sessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Sessions and returns the data updated in the database.
* @param {sessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
* @example
* // Update many Sessions
* const session = await prisma.session.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Sessions and only return the `id`
* const sessionWithIdOnly = await prisma.session.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 sessionUpdateManyAndReturnArgs>(args: SelectSubset<T, sessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Session.
* @param {sessionUpsertArgs} args - Arguments to update or create a Session.
* @example
* // Update or create a Session
* const session = await prisma.session.upsert({
* create: {
* // ... data to create a Session
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Session we want to update
* }
* })
*/
upsert<T extends sessionUpsertArgs>(args: SelectSubset<T, sessionUpsertArgs<ExtArgs>>): Prisma__sessionClient<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Sessions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {sessionCountArgs} args - Arguments to filter Sessions to count.
* @example
* // Count the number of Sessions
* const count = await prisma.session.count({
* where: {
* // ... the filter for the Sessions we want to count
* }
* })
**/
count<T extends sessionCountArgs>(
args?: Subset<T, sessionCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], SessionCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Session.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SessionAggregateArgs} 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 SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
/**
* Group by Session.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {sessionGroupByArgs} 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 sessionGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: sessionGroupByArgs['orderBy'] }
: { orderBy?: sessionGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, sessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the session model
*/
readonly fields: sessionFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for session.
* 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__sessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends userDefaultArgs<ExtArgs> = {}>(args?: Subset<T, userDefaultArgs<ExtArgs>>): Prisma__userClient<$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): $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): $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): $Utils.JsPromise<T>
}
/**
* Fields of the session model
*/
interface sessionFieldRefs {
readonly id: FieldRef<"session", 'String'>
readonly expiresAt: FieldRef<"session", 'DateTime'>
readonly token: FieldRef<"session", 'String'>
readonly createdAt: FieldRef<"session", 'DateTime'>
readonly updatedAt: FieldRef<"session", 'DateTime'>
readonly ipAddress: FieldRef<"session", 'String'>
readonly userAgent: FieldRef<"session", 'String'>
readonly userId: FieldRef<"session", 'String'>
readonly impersonatedBy: FieldRef<"session", 'String'>
}
// Custom InputTypes
/**
* session findUnique
*/
export type sessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
/**
* Filter, which session to fetch.
*/
where: sessionWhereUniqueInput
}
/**
* session findUniqueOrThrow
*/
export type sessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
/**
* Filter, which session to fetch.
*/
where: sessionWhereUniqueInput
}
/**
* session findFirst
*/
export type sessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
/**
* Filter, which session to fetch.
*/
where?: sessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of sessions to fetch.
*/
orderBy?: sessionOrderByWithRelationInput | sessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for sessions.
*/
cursor?: sessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` sessions 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` sessions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of sessions.
*/
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
}
/**
* session findFirstOrThrow
*/
export type sessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
/**
* Filter, which session to fetch.
*/
where?: sessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of sessions to fetch.
*/
orderBy?: sessionOrderByWithRelationInput | sessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for sessions.
*/
cursor?: sessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` sessions 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` sessions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of sessions.
*/
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
}
/**
* session findMany
*/
export type sessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
/**
* Filter, which sessions to fetch.
*/
where?: sessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of sessions to fetch.
*/
orderBy?: sessionOrderByWithRelationInput | sessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing sessions.
*/
cursor?: sessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` sessions 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` sessions.
*/
skip?: number
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
}
/**
* session create
*/
export type sessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
/**
* The data needed to create a session.
*/
data: XOR<sessionCreateInput, sessionUncheckedCreateInput>
}
/**
* session createMany
*/
export type sessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many sessions.
*/
data: sessionCreateManyInput | sessionCreateManyInput[]
skipDuplicates?: boolean
}
/**
* session createManyAndReturn
*/
export type sessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* The data used to create many sessions.
*/
data: sessionCreateManyInput | sessionCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* session update
*/
export type sessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
/**
* The data needed to update a session.
*/
data: XOR<sessionUpdateInput, sessionUncheckedUpdateInput>
/**
* Choose, which session to update.
*/
where: sessionWhereUniqueInput
}
/**
* session updateMany
*/
export type sessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update sessions.
*/
data: XOR<sessionUpdateManyMutationInput, sessionUncheckedUpdateManyInput>
/**
* Filter which sessions to update
*/
where?: sessionWhereInput
/**
* Limit how many sessions to update.
*/
limit?: number
}
/**
* session updateManyAndReturn
*/
export type sessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* The data used to update sessions.
*/
data: XOR<sessionUpdateManyMutationInput, sessionUncheckedUpdateManyInput>
/**
* Filter which sessions to update
*/
where?: sessionWhereInput
/**
* Limit how many sessions to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* session upsert
*/
export type sessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
/**
* The filter to search for the session to update in case it exists.
*/
where: sessionWhereUniqueInput
/**
* In case the session found by the `where` argument doesn't exist, create a new session with this data.
*/
create: XOR<sessionCreateInput, sessionUncheckedCreateInput>
/**
* In case the session was found with the provided `where` argument, update it with this data.
*/
update: XOR<sessionUpdateInput, sessionUncheckedUpdateInput>
}
/**
* session delete
*/
export type sessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
/**
* Filter which session to delete.
*/
where: sessionWhereUniqueInput
}
/**
* session deleteMany
*/
export type sessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which sessions to delete
*/
where?: sessionWhereInput
/**
* Limit how many sessions to delete.
*/
limit?: number
}
/**
* session without action
*/
export type sessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
}
/**
* Model user
*/
export type AggregateUser = {
_count: UserCountAggregateOutputType | null
_min: UserMinAggregateOutputType | null
_max: UserMaxAggregateOutputType | null
}
export type UserMinAggregateOutputType = {
id: string | null
name: string | null
email: string | null
emailVerified: boolean | null
image: string | null
createdAt: Date | null
updatedAt: Date | null
username: string | null
displayUsername: string | null
role: string | null
banned: boolean | null
banReason: string | null
banExpires: Date | null
}
export type UserMaxAggregateOutputType = {
id: string | null
name: string | null
email: string | null
emailVerified: boolean | null
image: string | null
createdAt: Date | null
updatedAt: Date | null
username: string | null
displayUsername: string | null
role: string | null
banned: boolean | null
banReason: string | null
banExpires: Date | null
}
export type UserCountAggregateOutputType = {
id: number
name: number
email: number
emailVerified: number
image: number
createdAt: number
updatedAt: number
username: number
displayUsername: number
role: number
banned: number
banReason: number
banExpires: number
_all: number
}
export type UserMinAggregateInputType = {
id?: true
name?: true
email?: true
emailVerified?: true
image?: true
createdAt?: true
updatedAt?: true
username?: true
displayUsername?: true
role?: true
banned?: true
banReason?: true
banExpires?: true
}
export type UserMaxAggregateInputType = {
id?: true
name?: true
email?: true
emailVerified?: true
image?: true
createdAt?: true
updatedAt?: true
username?: true
displayUsername?: true
role?: true
banned?: true
banReason?: true
banExpires?: true
}
export type UserCountAggregateInputType = {
id?: true
name?: true
email?: true
emailVerified?: true
image?: true
createdAt?: true
updatedAt?: true
username?: true
displayUsername?: true
role?: true
banned?: true
banReason?: true
banExpires?: true
_all?: true
}
export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which user to aggregate.
*/
where?: userWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of users to fetch.
*/
orderBy?: userOrderByWithRelationInput | userOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: userWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` users 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` users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned users
**/
_count?: true | UserCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: UserMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: UserMaxAggregateInputType
}
export type GetUserAggregateType<T extends UserAggregateArgs> = {
[P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateUser[P]>
: GetScalarType<T[P], AggregateUser[P]>
}
export type userGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: userWhereInput
orderBy?: userOrderByWithAggregationInput | userOrderByWithAggregationInput[]
by: UserScalarFieldEnum[] | UserScalarFieldEnum
having?: userScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: UserCountAggregateInputType | true
_min?: UserMinAggregateInputType
_max?: UserMaxAggregateInputType
}
export type UserGroupByOutputType = {
id: string
name: string
email: string
emailVerified: boolean
image: string | null
createdAt: Date
updatedAt: Date
username: string | null
displayUsername: string | null
role: string | null
banned: boolean | null
banReason: string | null
banExpires: Date | null
_count: UserCountAggregateOutputType | null
_min: UserMinAggregateOutputType | null
_max: UserMaxAggregateOutputType | null
}
type GetUserGroupByPayload<T extends userGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<UserGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], UserGroupByOutputType[P]>
: GetScalarType<T[P], UserGroupByOutputType[P]>
}
>
>
export type userSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
email?: boolean
emailVerified?: boolean
image?: boolean
createdAt?: boolean
updatedAt?: boolean
username?: boolean
displayUsername?: boolean
role?: boolean
banned?: boolean
banReason?: boolean
banExpires?: boolean
account?: boolean | user$accountArgs<ExtArgs>
passkey?: boolean | user$passkeyArgs<ExtArgs>
session?: boolean | user$sessionArgs<ExtArgs>
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["user"]>
export type userSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
email?: boolean
emailVerified?: boolean
image?: boolean
createdAt?: boolean
updatedAt?: boolean
username?: boolean
displayUsername?: boolean
role?: boolean
banned?: boolean
banReason?: boolean
banExpires?: boolean
}, ExtArgs["result"]["user"]>
export type userSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
email?: boolean
emailVerified?: boolean
image?: boolean
createdAt?: boolean
updatedAt?: boolean
username?: boolean
displayUsername?: boolean
role?: boolean
banned?: boolean
banReason?: boolean
banExpires?: boolean
}, ExtArgs["result"]["user"]>
export type userSelectScalar = {
id?: boolean
name?: boolean
email?: boolean
emailVerified?: boolean
image?: boolean
createdAt?: boolean
updatedAt?: boolean
username?: boolean
displayUsername?: boolean
role?: boolean
banned?: boolean
banReason?: boolean
banExpires?: boolean
}
export type userOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "username" | "displayUsername" | "role" | "banned" | "banReason" | "banExpires", ExtArgs["result"]["user"]>
export type userInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
account?: boolean | user$accountArgs<ExtArgs>
passkey?: boolean | user$passkeyArgs<ExtArgs>
session?: boolean | user$sessionArgs<ExtArgs>
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
}
export type userIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type userIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $userPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "user"
objects: {
account: Prisma.$accountPayload<ExtArgs>[]
passkey: Prisma.$passkeyPayload<ExtArgs>[]
session: Prisma.$sessionPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
name: string
email: string
emailVerified: boolean
image: string | null
createdAt: Date
updatedAt: Date
username: string | null
displayUsername: string | null
role: string | null
banned: boolean | null
banReason: string | null
banExpires: Date | null
}, ExtArgs["result"]["user"]>
composites: {}
}
type userGetPayload<S extends boolean | null | undefined | userDefaultArgs> = $Result.GetResult<Prisma.$userPayload, S>
type userCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<userFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: UserCountAggregateInputType | true
}
export interface userDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['user'], meta: { name: 'user' } }
/**
* Find zero or one User that matches the filter.
* @param {userFindUniqueArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends userFindUniqueArgs>(args: SelectSubset<T, userFindUniqueArgs<ExtArgs>>): Prisma__userClient<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one User that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {userFindUniqueOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends userFindUniqueOrThrowArgs>(args: SelectSubset<T, userFindUniqueOrThrowArgs<ExtArgs>>): Prisma__userClient<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first User 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 {userFindFirstArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends userFindFirstArgs>(args?: SelectSubset<T, userFindFirstArgs<ExtArgs>>): Prisma__userClient<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first User 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 {userFindFirstOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends userFindFirstOrThrowArgs>(args?: SelectSubset<T, userFindFirstOrThrowArgs<ExtArgs>>): Prisma__userClient<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Users 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 {userFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Users
* const users = await prisma.user.findMany()
*
* // Get first 10 Users
* const users = await prisma.user.findMany({ take: 10 })
*
* // Only select the `id`
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
*
*/
findMany<T extends userFindManyArgs>(args?: SelectSubset<T, userFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a User.
* @param {userCreateArgs} args - Arguments to create a User.
* @example
* // Create one User
* const User = await prisma.user.create({
* data: {
* // ... data to create a User
* }
* })
*
*/
create<T extends userCreateArgs>(args: SelectSubset<T, userCreateArgs<ExtArgs>>): Prisma__userClient<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Users.
* @param {userCreateManyArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends userCreateManyArgs>(args?: SelectSubset<T, userCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Users and returns the data saved in the database.
* @param {userCreateManyAndReturnArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Users and only return the `id`
* const userWithIdOnly = await prisma.user.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 userCreateManyAndReturnArgs>(args?: SelectSubset<T, userCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a User.
* @param {userDeleteArgs} args - Arguments to delete one User.
* @example
* // Delete one User
* const User = await prisma.user.delete({
* where: {
* // ... filter to delete one User
* }
* })
*
*/
delete<T extends userDeleteArgs>(args: SelectSubset<T, userDeleteArgs<ExtArgs>>): Prisma__userClient<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one User.
* @param {userUpdateArgs} args - Arguments to update one User.
* @example
* // Update one User
* const user = await prisma.user.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends userUpdateArgs>(args: SelectSubset<T, userUpdateArgs<ExtArgs>>): Prisma__userClient<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Users.
* @param {userDeleteManyArgs} args - Arguments to filter Users to delete.
* @example
* // Delete a few Users
* const { count } = await prisma.user.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends userDeleteManyArgs>(args?: SelectSubset<T, userDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {userUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Users
* const user = await prisma.user.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends userUpdateManyArgs>(args: SelectSubset<T, userUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Users and returns the data updated in the database.
* @param {userUpdateManyAndReturnArgs} args - Arguments to update many Users.
* @example
* // Update many Users
* const user = await prisma.user.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Users and only return the `id`
* const userWithIdOnly = await prisma.user.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 userUpdateManyAndReturnArgs>(args: SelectSubset<T, userUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one User.
* @param {userUpsertArgs} args - Arguments to update or create a User.
* @example
* // Update or create a User
* const user = await prisma.user.upsert({
* create: {
* // ... data to create a User
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the User we want to update
* }
* })
*/
upsert<T extends userUpsertArgs>(args: SelectSubset<T, userUpsertArgs<ExtArgs>>): Prisma__userClient<$Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {userCountArgs} args - Arguments to filter Users to count.
* @example
* // Count the number of Users
* const count = await prisma.user.count({
* where: {
* // ... the filter for the Users we want to count
* }
* })
**/
count<T extends userCountArgs>(
args?: Subset<T, userCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], UserCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserAggregateArgs} 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 UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
/**
* Group by User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {userGroupByArgs} 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 userGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: userGroupByArgs['orderBy'] }
: { orderBy?: userGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, userGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the user model
*/
readonly fields: userFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for user.
* 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__userClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
account<T extends user$accountArgs<ExtArgs> = {}>(args?: Subset<T, user$accountArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$accountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
passkey<T extends user$passkeyArgs<ExtArgs> = {}>(args?: Subset<T, user$passkeyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$passkeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
session<T extends user$sessionArgs<ExtArgs> = {}>(args?: Subset<T, user$sessionArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$sessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* 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): $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): $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): $Utils.JsPromise<T>
}
/**
* Fields of the user model
*/
interface userFieldRefs {
readonly id: FieldRef<"user", 'String'>
readonly name: FieldRef<"user", 'String'>
readonly email: FieldRef<"user", 'String'>
readonly emailVerified: FieldRef<"user", 'Boolean'>
readonly image: FieldRef<"user", 'String'>
readonly createdAt: FieldRef<"user", 'DateTime'>
readonly updatedAt: FieldRef<"user", 'DateTime'>
readonly username: FieldRef<"user", 'String'>
readonly displayUsername: FieldRef<"user", 'String'>
readonly role: FieldRef<"user", 'String'>
readonly banned: FieldRef<"user", 'Boolean'>
readonly banReason: FieldRef<"user", 'String'>
readonly banExpires: FieldRef<"user", 'DateTime'>
}
// Custom InputTypes
/**
* user findUnique
*/
export type userFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
/**
* Filter, which user to fetch.
*/
where: userWhereUniqueInput
}
/**
* user findUniqueOrThrow
*/
export type userFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
/**
* Filter, which user to fetch.
*/
where: userWhereUniqueInput
}
/**
* user findFirst
*/
export type userFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
/**
* Filter, which user to fetch.
*/
where?: userWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of users to fetch.
*/
orderBy?: userOrderByWithRelationInput | userOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for users.
*/
cursor?: userWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` users 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` users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* user findFirstOrThrow
*/
export type userFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
/**
* Filter, which user to fetch.
*/
where?: userWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of users to fetch.
*/
orderBy?: userOrderByWithRelationInput | userOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for users.
*/
cursor?: userWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` users 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` users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* user findMany
*/
export type userFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
/**
* Filter, which users to fetch.
*/
where?: userWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of users to fetch.
*/
orderBy?: userOrderByWithRelationInput | userOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing users.
*/
cursor?: userWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` users 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` users.
*/
skip?: number
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* user create
*/
export type userCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
/**
* The data needed to create a user.
*/
data: XOR<userCreateInput, userUncheckedCreateInput>
}
/**
* user createMany
*/
export type userCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many users.
*/
data: userCreateManyInput | userCreateManyInput[]
skipDuplicates?: boolean
}
/**
* user createManyAndReturn
*/
export type userCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* The data used to create many users.
*/
data: userCreateManyInput | userCreateManyInput[]
skipDuplicates?: boolean
}
/**
* user update
*/
export type userUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
/**
* The data needed to update a user.
*/
data: XOR<userUpdateInput, userUncheckedUpdateInput>
/**
* Choose, which user to update.
*/
where: userWhereUniqueInput
}
/**
* user updateMany
*/
export type userUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update users.
*/
data: XOR<userUpdateManyMutationInput, userUncheckedUpdateManyInput>
/**
* Filter which users to update
*/
where?: userWhereInput
/**
* Limit how many users to update.
*/
limit?: number
}
/**
* user updateManyAndReturn
*/
export type userUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* The data used to update users.
*/
data: XOR<userUpdateManyMutationInput, userUncheckedUpdateManyInput>
/**
* Filter which users to update
*/
where?: userWhereInput
/**
* Limit how many users to update.
*/
limit?: number
}
/**
* user upsert
*/
export type userUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
/**
* The filter to search for the user to update in case it exists.
*/
where: userWhereUniqueInput
/**
* In case the user found by the `where` argument doesn't exist, create a new user with this data.
*/
create: XOR<userCreateInput, userUncheckedCreateInput>
/**
* In case the user was found with the provided `where` argument, update it with this data.
*/
update: XOR<userUpdateInput, userUncheckedUpdateInput>
}
/**
* user delete
*/
export type userDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
/**
* Filter which user to delete.
*/
where: userWhereUniqueInput
}
/**
* user deleteMany
*/
export type userDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which users to delete
*/
where?: userWhereInput
/**
* Limit how many users to delete.
*/
limit?: number
}
/**
* user.account
*/
export type user$accountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the account
*/
select?: accountSelect<ExtArgs> | null
/**
* Omit specific fields from the account
*/
omit?: accountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: accountInclude<ExtArgs> | null
where?: accountWhereInput
orderBy?: accountOrderByWithRelationInput | accountOrderByWithRelationInput[]
cursor?: accountWhereUniqueInput
take?: number
skip?: number
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
}
/**
* user.passkey
*/
export type user$passkeyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the passkey
*/
select?: passkeySelect<ExtArgs> | null
/**
* Omit specific fields from the passkey
*/
omit?: passkeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: passkeyInclude<ExtArgs> | null
where?: passkeyWhereInput
orderBy?: passkeyOrderByWithRelationInput | passkeyOrderByWithRelationInput[]
cursor?: passkeyWhereUniqueInput
take?: number
skip?: number
distinct?: PasskeyScalarFieldEnum | PasskeyScalarFieldEnum[]
}
/**
* user.session
*/
export type user$sessionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the session
*/
select?: sessionSelect<ExtArgs> | null
/**
* Omit specific fields from the session
*/
omit?: sessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: sessionInclude<ExtArgs> | null
where?: sessionWhereInput
orderBy?: sessionOrderByWithRelationInput | sessionOrderByWithRelationInput[]
cursor?: sessionWhereUniqueInput
take?: number
skip?: number
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
}
/**
* user without action
*/
export type userDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the user
*/
select?: userSelect<ExtArgs> | null
/**
* Omit specific fields from the user
*/
omit?: userOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: userInclude<ExtArgs> | null
}
/**
* Model verification
*/
export type AggregateVerification = {
_count: VerificationCountAggregateOutputType | null
_min: VerificationMinAggregateOutputType | null
_max: VerificationMaxAggregateOutputType | null
}
export type VerificationMinAggregateOutputType = {
id: string | null
identifier: string | null
value: string | null
expiresAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type VerificationMaxAggregateOutputType = {
id: string | null
identifier: string | null
value: string | null
expiresAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type VerificationCountAggregateOutputType = {
id: number
identifier: number
value: number
expiresAt: number
createdAt: number
updatedAt: number
_all: number
}
export type VerificationMinAggregateInputType = {
id?: true
identifier?: true
value?: true
expiresAt?: true
createdAt?: true
updatedAt?: true
}
export type VerificationMaxAggregateInputType = {
id?: true
identifier?: true
value?: true
expiresAt?: true
createdAt?: true
updatedAt?: true
}
export type VerificationCountAggregateInputType = {
id?: true
identifier?: true
value?: true
expiresAt?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type VerificationAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which verification to aggregate.
*/
where?: verificationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of verifications to fetch.
*/
orderBy?: verificationOrderByWithRelationInput | verificationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: verificationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` verifications 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` verifications.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned verifications
**/
_count?: true | VerificationCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: VerificationMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: VerificationMaxAggregateInputType
}
export type GetVerificationAggregateType<T extends VerificationAggregateArgs> = {
[P in keyof T & keyof AggregateVerification]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateVerification[P]>
: GetScalarType<T[P], AggregateVerification[P]>
}
export type verificationGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: verificationWhereInput
orderBy?: verificationOrderByWithAggregationInput | verificationOrderByWithAggregationInput[]
by: VerificationScalarFieldEnum[] | VerificationScalarFieldEnum
having?: verificationScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: VerificationCountAggregateInputType | true
_min?: VerificationMinAggregateInputType
_max?: VerificationMaxAggregateInputType
}
export type VerificationGroupByOutputType = {
id: string
identifier: string
value: string
expiresAt: Date
createdAt: Date | null
updatedAt: Date | null
_count: VerificationCountAggregateOutputType | null
_min: VerificationMinAggregateOutputType | null
_max: VerificationMaxAggregateOutputType | null
}
type GetVerificationGroupByPayload<T extends verificationGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<VerificationGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof VerificationGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], VerificationGroupByOutputType[P]>
: GetScalarType<T[P], VerificationGroupByOutputType[P]>
}
>
>
export type verificationSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
identifier?: boolean
value?: boolean
expiresAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["verification"]>
export type verificationSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
identifier?: boolean
value?: boolean
expiresAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["verification"]>
export type verificationSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
identifier?: boolean
value?: boolean
expiresAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["verification"]>
export type verificationSelectScalar = {
id?: boolean
identifier?: boolean
value?: boolean
expiresAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type verificationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "identifier" | "value" | "expiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["verification"]>
export type $verificationPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "verification"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
identifier: string
value: string
expiresAt: Date
createdAt: Date | null
updatedAt: Date | null
}, ExtArgs["result"]["verification"]>
composites: {}
}
type verificationGetPayload<S extends boolean | null | undefined | verificationDefaultArgs> = $Result.GetResult<Prisma.$verificationPayload, S>
type verificationCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<verificationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: VerificationCountAggregateInputType | true
}
export interface verificationDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['verification'], meta: { name: 'verification' } }
/**
* Find zero or one Verification that matches the filter.
* @param {verificationFindUniqueArgs} args - Arguments to find a Verification
* @example
* // Get one Verification
* const verification = await prisma.verification.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends verificationFindUniqueArgs>(args: SelectSubset<T, verificationFindUniqueArgs<ExtArgs>>): Prisma__verificationClient<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Verification that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {verificationFindUniqueOrThrowArgs} args - Arguments to find a Verification
* @example
* // Get one Verification
* const verification = await prisma.verification.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends verificationFindUniqueOrThrowArgs>(args: SelectSubset<T, verificationFindUniqueOrThrowArgs<ExtArgs>>): Prisma__verificationClient<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Verification 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 {verificationFindFirstArgs} args - Arguments to find a Verification
* @example
* // Get one Verification
* const verification = await prisma.verification.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends verificationFindFirstArgs>(args?: SelectSubset<T, verificationFindFirstArgs<ExtArgs>>): Prisma__verificationClient<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Verification 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 {verificationFindFirstOrThrowArgs} args - Arguments to find a Verification
* @example
* // Get one Verification
* const verification = await prisma.verification.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends verificationFindFirstOrThrowArgs>(args?: SelectSubset<T, verificationFindFirstOrThrowArgs<ExtArgs>>): Prisma__verificationClient<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Verifications 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 {verificationFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Verifications
* const verifications = await prisma.verification.findMany()
*
* // Get first 10 Verifications
* const verifications = await prisma.verification.findMany({ take: 10 })
*
* // Only select the `id`
* const verificationWithIdOnly = await prisma.verification.findMany({ select: { id: true } })
*
*/
findMany<T extends verificationFindManyArgs>(args?: SelectSubset<T, verificationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Verification.
* @param {verificationCreateArgs} args - Arguments to create a Verification.
* @example
* // Create one Verification
* const Verification = await prisma.verification.create({
* data: {
* // ... data to create a Verification
* }
* })
*
*/
create<T extends verificationCreateArgs>(args: SelectSubset<T, verificationCreateArgs<ExtArgs>>): Prisma__verificationClient<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Verifications.
* @param {verificationCreateManyArgs} args - Arguments to create many Verifications.
* @example
* // Create many Verifications
* const verification = await prisma.verification.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends verificationCreateManyArgs>(args?: SelectSubset<T, verificationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Verifications and returns the data saved in the database.
* @param {verificationCreateManyAndReturnArgs} args - Arguments to create many Verifications.
* @example
* // Create many Verifications
* const verification = await prisma.verification.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Verifications and only return the `id`
* const verificationWithIdOnly = await prisma.verification.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 verificationCreateManyAndReturnArgs>(args?: SelectSubset<T, verificationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Verification.
* @param {verificationDeleteArgs} args - Arguments to delete one Verification.
* @example
* // Delete one Verification
* const Verification = await prisma.verification.delete({
* where: {
* // ... filter to delete one Verification
* }
* })
*
*/
delete<T extends verificationDeleteArgs>(args: SelectSubset<T, verificationDeleteArgs<ExtArgs>>): Prisma__verificationClient<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Verification.
* @param {verificationUpdateArgs} args - Arguments to update one Verification.
* @example
* // Update one Verification
* const verification = await prisma.verification.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends verificationUpdateArgs>(args: SelectSubset<T, verificationUpdateArgs<ExtArgs>>): Prisma__verificationClient<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Verifications.
* @param {verificationDeleteManyArgs} args - Arguments to filter Verifications to delete.
* @example
* // Delete a few Verifications
* const { count } = await prisma.verification.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends verificationDeleteManyArgs>(args?: SelectSubset<T, verificationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Verifications.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {verificationUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Verifications
* const verification = await prisma.verification.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends verificationUpdateManyArgs>(args: SelectSubset<T, verificationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Verifications and returns the data updated in the database.
* @param {verificationUpdateManyAndReturnArgs} args - Arguments to update many Verifications.
* @example
* // Update many Verifications
* const verification = await prisma.verification.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Verifications and only return the `id`
* const verificationWithIdOnly = await prisma.verification.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 verificationUpdateManyAndReturnArgs>(args: SelectSubset<T, verificationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Verification.
* @param {verificationUpsertArgs} args - Arguments to update or create a Verification.
* @example
* // Update or create a Verification
* const verification = await prisma.verification.upsert({
* create: {
* // ... data to create a Verification
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Verification we want to update
* }
* })
*/
upsert<T extends verificationUpsertArgs>(args: SelectSubset<T, verificationUpsertArgs<ExtArgs>>): Prisma__verificationClient<$Result.GetResult<Prisma.$verificationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Verifications.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {verificationCountArgs} args - Arguments to filter Verifications to count.
* @example
* // Count the number of Verifications
* const count = await prisma.verification.count({
* where: {
* // ... the filter for the Verifications we want to count
* }
* })
**/
count<T extends verificationCountArgs>(
args?: Subset<T, verificationCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], VerificationCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Verification.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {VerificationAggregateArgs} 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 VerificationAggregateArgs>(args: Subset<T, VerificationAggregateArgs>): Prisma.PrismaPromise<GetVerificationAggregateType<T>>
/**
* Group by Verification.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {verificationGroupByArgs} 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 verificationGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: verificationGroupByArgs['orderBy'] }
: { orderBy?: verificationGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, verificationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the verification model
*/
readonly fields: verificationFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for verification.
* 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__verificationClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $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): $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): $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): $Utils.JsPromise<T>
}
/**
* Fields of the verification model
*/
interface verificationFieldRefs {
readonly id: FieldRef<"verification", 'String'>
readonly identifier: FieldRef<"verification", 'String'>
readonly value: FieldRef<"verification", 'String'>
readonly expiresAt: FieldRef<"verification", 'DateTime'>
readonly createdAt: FieldRef<"verification", 'DateTime'>
readonly updatedAt: FieldRef<"verification", 'DateTime'>
}
// Custom InputTypes
/**
* verification findUnique
*/
export type verificationFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* Filter, which verification to fetch.
*/
where: verificationWhereUniqueInput
}
/**
* verification findUniqueOrThrow
*/
export type verificationFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* Filter, which verification to fetch.
*/
where: verificationWhereUniqueInput
}
/**
* verification findFirst
*/
export type verificationFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* Filter, which verification to fetch.
*/
where?: verificationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of verifications to fetch.
*/
orderBy?: verificationOrderByWithRelationInput | verificationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for verifications.
*/
cursor?: verificationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` verifications 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` verifications.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of verifications.
*/
distinct?: VerificationScalarFieldEnum | VerificationScalarFieldEnum[]
}
/**
* verification findFirstOrThrow
*/
export type verificationFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* Filter, which verification to fetch.
*/
where?: verificationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of verifications to fetch.
*/
orderBy?: verificationOrderByWithRelationInput | verificationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for verifications.
*/
cursor?: verificationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` verifications 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` verifications.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of verifications.
*/
distinct?: VerificationScalarFieldEnum | VerificationScalarFieldEnum[]
}
/**
* verification findMany
*/
export type verificationFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* Filter, which verifications to fetch.
*/
where?: verificationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of verifications to fetch.
*/
orderBy?: verificationOrderByWithRelationInput | verificationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing verifications.
*/
cursor?: verificationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` verifications 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` verifications.
*/
skip?: number
distinct?: VerificationScalarFieldEnum | VerificationScalarFieldEnum[]
}
/**
* verification create
*/
export type verificationCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* The data needed to create a verification.
*/
data: XOR<verificationCreateInput, verificationUncheckedCreateInput>
}
/**
* verification createMany
*/
export type verificationCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many verifications.
*/
data: verificationCreateManyInput | verificationCreateManyInput[]
skipDuplicates?: boolean
}
/**
* verification createManyAndReturn
*/
export type verificationCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* The data used to create many verifications.
*/
data: verificationCreateManyInput | verificationCreateManyInput[]
skipDuplicates?: boolean
}
/**
* verification update
*/
export type verificationUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* The data needed to update a verification.
*/
data: XOR<verificationUpdateInput, verificationUncheckedUpdateInput>
/**
* Choose, which verification to update.
*/
where: verificationWhereUniqueInput
}
/**
* verification updateMany
*/
export type verificationUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update verifications.
*/
data: XOR<verificationUpdateManyMutationInput, verificationUncheckedUpdateManyInput>
/**
* Filter which verifications to update
*/
where?: verificationWhereInput
/**
* Limit how many verifications to update.
*/
limit?: number
}
/**
* verification updateManyAndReturn
*/
export type verificationUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* The data used to update verifications.
*/
data: XOR<verificationUpdateManyMutationInput, verificationUncheckedUpdateManyInput>
/**
* Filter which verifications to update
*/
where?: verificationWhereInput
/**
* Limit how many verifications to update.
*/
limit?: number
}
/**
* verification upsert
*/
export type verificationUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* The filter to search for the verification to update in case it exists.
*/
where: verificationWhereUniqueInput
/**
* In case the verification found by the `where` argument doesn't exist, create a new verification with this data.
*/
create: XOR<verificationCreateInput, verificationUncheckedCreateInput>
/**
* In case the verification was found with the provided `where` argument, update it with this data.
*/
update: XOR<verificationUpdateInput, verificationUncheckedUpdateInput>
}
/**
* verification delete
*/
export type verificationDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
/**
* Filter which verification to delete.
*/
where: verificationWhereUniqueInput
}
/**
* verification deleteMany
*/
export type verificationDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which verifications to delete
*/
where?: verificationWhereInput
/**
* Limit how many verifications to delete.
*/
limit?: number
}
/**
* verification without action
*/
export type verificationDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the verification
*/
select?: verificationSelect<ExtArgs> | null
/**
* Omit specific fields from the verification
*/
omit?: verificationOmit<ExtArgs> | null
}
/**
* Enums
*/
export const TransactionIsolationLevel: {
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
};
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const AccountScalarFieldEnum: {
id: 'id',
accountId: 'accountId',
providerId: 'providerId',
userId: 'userId',
accessToken: 'accessToken',
refreshToken: 'refreshToken',
idToken: 'idToken',
accessTokenExpiresAt: 'accessTokenExpiresAt',
refreshTokenExpiresAt: 'refreshTokenExpiresAt',
scope: 'scope',
password: 'password',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
export const PasskeyScalarFieldEnum: {
id: 'id',
name: 'name',
publicKey: 'publicKey',
userId: 'userId',
credentialID: 'credentialID',
counter: 'counter',
deviceType: 'deviceType',
backedUp: 'backedUp',
transports: 'transports',
createdAt: 'createdAt'
};
export type PasskeyScalarFieldEnum = (typeof PasskeyScalarFieldEnum)[keyof typeof PasskeyScalarFieldEnum]
export const SessionScalarFieldEnum: {
id: 'id',
expiresAt: 'expiresAt',
token: 'token',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
ipAddress: 'ipAddress',
userAgent: 'userAgent',
userId: 'userId',
impersonatedBy: 'impersonatedBy'
};
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
export const UserScalarFieldEnum: {
id: 'id',
name: 'name',
email: 'email',
emailVerified: 'emailVerified',
image: 'image',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
username: 'username',
displayUsername: 'displayUsername',
role: 'role',
banned: 'banned',
banReason: 'banReason',
banExpires: 'banExpires'
};
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
export const VerificationScalarFieldEnum: {
id: 'id',
identifier: 'identifier',
value: 'value',
expiresAt: 'expiresAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum]
export const SortOrder: {
asc: 'asc',
desc: 'desc'
};
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const QueryMode: {
default: 'default',
insensitive: 'insensitive'
};
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const NullsOrder: {
first: 'first',
last: 'last'
};
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
/**
* Field references
*/
/**
* Reference to a field of type 'String'
*/
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
/**
* Reference to a field of type 'String[]'
*/
export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
/**
* Reference to a field of type 'DateTime'
*/
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
/**
* Reference to a field of type 'DateTime[]'
*/
export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'Int[]'
*/
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
/**
* Reference to a field of type 'Boolean'
*/
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
/**
* Reference to a field of type 'Float'
*/
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
/**
* Reference to a field of type 'Float[]'
*/
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
/**
* Deep Input Types
*/
export type accountWhereInput = {
AND?: accountWhereInput | accountWhereInput[]
OR?: accountWhereInput[]
NOT?: accountWhereInput | accountWhereInput[]
id?: StringFilter<"account"> | string
accountId?: StringFilter<"account"> | string
providerId?: StringFilter<"account"> | string
userId?: StringFilter<"account"> | string
accessToken?: StringNullableFilter<"account"> | string | null
refreshToken?: StringNullableFilter<"account"> | string | null
idToken?: StringNullableFilter<"account"> | string | null
accessTokenExpiresAt?: DateTimeNullableFilter<"account"> | Date | string | null
refreshTokenExpiresAt?: DateTimeNullableFilter<"account"> | Date | string | null
scope?: StringNullableFilter<"account"> | string | null
password?: StringNullableFilter<"account"> | string | null
createdAt?: DateTimeFilter<"account"> | Date | string
updatedAt?: DateTimeFilter<"account"> | Date | string
user?: XOR<UserScalarRelationFilter, userWhereInput>
}
export type accountOrderByWithRelationInput = {
id?: SortOrder
accountId?: SortOrder
providerId?: SortOrder
userId?: SortOrder
accessToken?: SortOrderInput | SortOrder
refreshToken?: SortOrderInput | SortOrder
idToken?: SortOrderInput | SortOrder
accessTokenExpiresAt?: SortOrderInput | SortOrder
refreshTokenExpiresAt?: SortOrderInput | SortOrder
scope?: SortOrderInput | SortOrder
password?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
user?: userOrderByWithRelationInput
}
export type accountWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: accountWhereInput | accountWhereInput[]
OR?: accountWhereInput[]
NOT?: accountWhereInput | accountWhereInput[]
accountId?: StringFilter<"account"> | string
providerId?: StringFilter<"account"> | string
userId?: StringFilter<"account"> | string
accessToken?: StringNullableFilter<"account"> | string | null
refreshToken?: StringNullableFilter<"account"> | string | null
idToken?: StringNullableFilter<"account"> | string | null
accessTokenExpiresAt?: DateTimeNullableFilter<"account"> | Date | string | null
refreshTokenExpiresAt?: DateTimeNullableFilter<"account"> | Date | string | null
scope?: StringNullableFilter<"account"> | string | null
password?: StringNullableFilter<"account"> | string | null
createdAt?: DateTimeFilter<"account"> | Date | string
updatedAt?: DateTimeFilter<"account"> | Date | string
user?: XOR<UserScalarRelationFilter, userWhereInput>
}, "id">
export type accountOrderByWithAggregationInput = {
id?: SortOrder
accountId?: SortOrder
providerId?: SortOrder
userId?: SortOrder
accessToken?: SortOrderInput | SortOrder
refreshToken?: SortOrderInput | SortOrder
idToken?: SortOrderInput | SortOrder
accessTokenExpiresAt?: SortOrderInput | SortOrder
refreshTokenExpiresAt?: SortOrderInput | SortOrder
scope?: SortOrderInput | SortOrder
password?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: accountCountOrderByAggregateInput
_max?: accountMaxOrderByAggregateInput
_min?: accountMinOrderByAggregateInput
}
export type accountScalarWhereWithAggregatesInput = {
AND?: accountScalarWhereWithAggregatesInput | accountScalarWhereWithAggregatesInput[]
OR?: accountScalarWhereWithAggregatesInput[]
NOT?: accountScalarWhereWithAggregatesInput | accountScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"account"> | string
accountId?: StringWithAggregatesFilter<"account"> | string
providerId?: StringWithAggregatesFilter<"account"> | string
userId?: StringWithAggregatesFilter<"account"> | string
accessToken?: StringNullableWithAggregatesFilter<"account"> | string | null
refreshToken?: StringNullableWithAggregatesFilter<"account"> | string | null
idToken?: StringNullableWithAggregatesFilter<"account"> | string | null
accessTokenExpiresAt?: DateTimeNullableWithAggregatesFilter<"account"> | Date | string | null
refreshTokenExpiresAt?: DateTimeNullableWithAggregatesFilter<"account"> | Date | string | null
scope?: StringNullableWithAggregatesFilter<"account"> | string | null
password?: StringNullableWithAggregatesFilter<"account"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"account"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"account"> | Date | string
}
export type passkeyWhereInput = {
AND?: passkeyWhereInput | passkeyWhereInput[]
OR?: passkeyWhereInput[]
NOT?: passkeyWhereInput | passkeyWhereInput[]
id?: StringFilter<"passkey"> | string
name?: StringNullableFilter<"passkey"> | string | null
publicKey?: StringFilter<"passkey"> | string
userId?: StringFilter<"passkey"> | string
credentialID?: StringFilter<"passkey"> | string
counter?: IntFilter<"passkey"> | number
deviceType?: StringFilter<"passkey"> | string
backedUp?: BoolFilter<"passkey"> | boolean
transports?: StringNullableFilter<"passkey"> | string | null
createdAt?: DateTimeNullableFilter<"passkey"> | Date | string | null
user?: XOR<UserScalarRelationFilter, userWhereInput>
}
export type passkeyOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrderInput | SortOrder
publicKey?: SortOrder
userId?: SortOrder
credentialID?: SortOrder
counter?: SortOrder
deviceType?: SortOrder
backedUp?: SortOrder
transports?: SortOrderInput | SortOrder
createdAt?: SortOrderInput | SortOrder
user?: userOrderByWithRelationInput
}
export type passkeyWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: passkeyWhereInput | passkeyWhereInput[]
OR?: passkeyWhereInput[]
NOT?: passkeyWhereInput | passkeyWhereInput[]
name?: StringNullableFilter<"passkey"> | string | null
publicKey?: StringFilter<"passkey"> | string
userId?: StringFilter<"passkey"> | string
credentialID?: StringFilter<"passkey"> | string
counter?: IntFilter<"passkey"> | number
deviceType?: StringFilter<"passkey"> | string
backedUp?: BoolFilter<"passkey"> | boolean
transports?: StringNullableFilter<"passkey"> | string | null
createdAt?: DateTimeNullableFilter<"passkey"> | Date | string | null
user?: XOR<UserScalarRelationFilter, userWhereInput>
}, "id">
export type passkeyOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrderInput | SortOrder
publicKey?: SortOrder
userId?: SortOrder
credentialID?: SortOrder
counter?: SortOrder
deviceType?: SortOrder
backedUp?: SortOrder
transports?: SortOrderInput | SortOrder
createdAt?: SortOrderInput | SortOrder
_count?: passkeyCountOrderByAggregateInput
_avg?: passkeyAvgOrderByAggregateInput
_max?: passkeyMaxOrderByAggregateInput
_min?: passkeyMinOrderByAggregateInput
_sum?: passkeySumOrderByAggregateInput
}
export type passkeyScalarWhereWithAggregatesInput = {
AND?: passkeyScalarWhereWithAggregatesInput | passkeyScalarWhereWithAggregatesInput[]
OR?: passkeyScalarWhereWithAggregatesInput[]
NOT?: passkeyScalarWhereWithAggregatesInput | passkeyScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"passkey"> | string
name?: StringNullableWithAggregatesFilter<"passkey"> | string | null
publicKey?: StringWithAggregatesFilter<"passkey"> | string
userId?: StringWithAggregatesFilter<"passkey"> | string
credentialID?: StringWithAggregatesFilter<"passkey"> | string
counter?: IntWithAggregatesFilter<"passkey"> | number
deviceType?: StringWithAggregatesFilter<"passkey"> | string
backedUp?: BoolWithAggregatesFilter<"passkey"> | boolean
transports?: StringNullableWithAggregatesFilter<"passkey"> | string | null
createdAt?: DateTimeNullableWithAggregatesFilter<"passkey"> | Date | string | null
}
export type sessionWhereInput = {
AND?: sessionWhereInput | sessionWhereInput[]
OR?: sessionWhereInput[]
NOT?: sessionWhereInput | sessionWhereInput[]
id?: StringFilter<"session"> | string
expiresAt?: DateTimeFilter<"session"> | Date | string
token?: StringFilter<"session"> | string
createdAt?: DateTimeFilter<"session"> | Date | string
updatedAt?: DateTimeFilter<"session"> | Date | string
ipAddress?: StringNullableFilter<"session"> | string | null
userAgent?: StringNullableFilter<"session"> | string | null
userId?: StringFilter<"session"> | string
impersonatedBy?: StringNullableFilter<"session"> | string | null
user?: XOR<UserScalarRelationFilter, userWhereInput>
}
export type sessionOrderByWithRelationInput = {
id?: SortOrder
expiresAt?: SortOrder
token?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
ipAddress?: SortOrderInput | SortOrder
userAgent?: SortOrderInput | SortOrder
userId?: SortOrder
impersonatedBy?: SortOrderInput | SortOrder
user?: userOrderByWithRelationInput
}
export type sessionWhereUniqueInput = Prisma.AtLeast<{
id?: string
token?: string
AND?: sessionWhereInput | sessionWhereInput[]
OR?: sessionWhereInput[]
NOT?: sessionWhereInput | sessionWhereInput[]
expiresAt?: DateTimeFilter<"session"> | Date | string
createdAt?: DateTimeFilter<"session"> | Date | string
updatedAt?: DateTimeFilter<"session"> | Date | string
ipAddress?: StringNullableFilter<"session"> | string | null
userAgent?: StringNullableFilter<"session"> | string | null
userId?: StringFilter<"session"> | string
impersonatedBy?: StringNullableFilter<"session"> | string | null
user?: XOR<UserScalarRelationFilter, userWhereInput>
}, "id" | "token">
export type sessionOrderByWithAggregationInput = {
id?: SortOrder
expiresAt?: SortOrder
token?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
ipAddress?: SortOrderInput | SortOrder
userAgent?: SortOrderInput | SortOrder
userId?: SortOrder
impersonatedBy?: SortOrderInput | SortOrder
_count?: sessionCountOrderByAggregateInput
_max?: sessionMaxOrderByAggregateInput
_min?: sessionMinOrderByAggregateInput
}
export type sessionScalarWhereWithAggregatesInput = {
AND?: sessionScalarWhereWithAggregatesInput | sessionScalarWhereWithAggregatesInput[]
OR?: sessionScalarWhereWithAggregatesInput[]
NOT?: sessionScalarWhereWithAggregatesInput | sessionScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"session"> | string
expiresAt?: DateTimeWithAggregatesFilter<"session"> | Date | string
token?: StringWithAggregatesFilter<"session"> | string
createdAt?: DateTimeWithAggregatesFilter<"session"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"session"> | Date | string
ipAddress?: StringNullableWithAggregatesFilter<"session"> | string | null
userAgent?: StringNullableWithAggregatesFilter<"session"> | string | null
userId?: StringWithAggregatesFilter<"session"> | string
impersonatedBy?: StringNullableWithAggregatesFilter<"session"> | string | null
}
export type userWhereInput = {
AND?: userWhereInput | userWhereInput[]
OR?: userWhereInput[]
NOT?: userWhereInput | userWhereInput[]
id?: StringFilter<"user"> | string
name?: StringFilter<"user"> | string
email?: StringFilter<"user"> | string
emailVerified?: BoolFilter<"user"> | boolean
image?: StringNullableFilter<"user"> | string | null
createdAt?: DateTimeFilter<"user"> | Date | string
updatedAt?: DateTimeFilter<"user"> | Date | string
username?: StringNullableFilter<"user"> | string | null
displayUsername?: StringNullableFilter<"user"> | string | null
role?: StringNullableFilter<"user"> | string | null
banned?: BoolNullableFilter<"user"> | boolean | null
banReason?: StringNullableFilter<"user"> | string | null
banExpires?: DateTimeNullableFilter<"user"> | Date | string | null
account?: AccountListRelationFilter
passkey?: PasskeyListRelationFilter
session?: SessionListRelationFilter
}
export type userOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
emailVerified?: SortOrder
image?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
username?: SortOrderInput | SortOrder
displayUsername?: SortOrderInput | SortOrder
role?: SortOrderInput | SortOrder
banned?: SortOrderInput | SortOrder
banReason?: SortOrderInput | SortOrder
banExpires?: SortOrderInput | SortOrder
account?: accountOrderByRelationAggregateInput
passkey?: passkeyOrderByRelationAggregateInput
session?: sessionOrderByRelationAggregateInput
}
export type userWhereUniqueInput = Prisma.AtLeast<{
id?: string
email?: string
username?: string
AND?: userWhereInput | userWhereInput[]
OR?: userWhereInput[]
NOT?: userWhereInput | userWhereInput[]
name?: StringFilter<"user"> | string
emailVerified?: BoolFilter<"user"> | boolean
image?: StringNullableFilter<"user"> | string | null
createdAt?: DateTimeFilter<"user"> | Date | string
updatedAt?: DateTimeFilter<"user"> | Date | string
displayUsername?: StringNullableFilter<"user"> | string | null
role?: StringNullableFilter<"user"> | string | null
banned?: BoolNullableFilter<"user"> | boolean | null
banReason?: StringNullableFilter<"user"> | string | null
banExpires?: DateTimeNullableFilter<"user"> | Date | string | null
account?: AccountListRelationFilter
passkey?: PasskeyListRelationFilter
session?: SessionListRelationFilter
}, "id" | "email" | "username">
export type userOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
emailVerified?: SortOrder
image?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
username?: SortOrderInput | SortOrder
displayUsername?: SortOrderInput | SortOrder
role?: SortOrderInput | SortOrder
banned?: SortOrderInput | SortOrder
banReason?: SortOrderInput | SortOrder
banExpires?: SortOrderInput | SortOrder
_count?: userCountOrderByAggregateInput
_max?: userMaxOrderByAggregateInput
_min?: userMinOrderByAggregateInput
}
export type userScalarWhereWithAggregatesInput = {
AND?: userScalarWhereWithAggregatesInput | userScalarWhereWithAggregatesInput[]
OR?: userScalarWhereWithAggregatesInput[]
NOT?: userScalarWhereWithAggregatesInput | userScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"user"> | string
name?: StringWithAggregatesFilter<"user"> | string
email?: StringWithAggregatesFilter<"user"> | string
emailVerified?: BoolWithAggregatesFilter<"user"> | boolean
image?: StringNullableWithAggregatesFilter<"user"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"user"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"user"> | Date | string
username?: StringNullableWithAggregatesFilter<"user"> | string | null
displayUsername?: StringNullableWithAggregatesFilter<"user"> | string | null
role?: StringNullableWithAggregatesFilter<"user"> | string | null
banned?: BoolNullableWithAggregatesFilter<"user"> | boolean | null
banReason?: StringNullableWithAggregatesFilter<"user"> | string | null
banExpires?: DateTimeNullableWithAggregatesFilter<"user"> | Date | string | null
}
export type verificationWhereInput = {
AND?: verificationWhereInput | verificationWhereInput[]
OR?: verificationWhereInput[]
NOT?: verificationWhereInput | verificationWhereInput[]
id?: StringFilter<"verification"> | string
identifier?: StringFilter<"verification"> | string
value?: StringFilter<"verification"> | string
expiresAt?: DateTimeFilter<"verification"> | Date | string
createdAt?: DateTimeNullableFilter<"verification"> | Date | string | null
updatedAt?: DateTimeNullableFilter<"verification"> | Date | string | null
}
export type verificationOrderByWithRelationInput = {
id?: SortOrder
identifier?: SortOrder
value?: SortOrder
expiresAt?: SortOrder
createdAt?: SortOrderInput | SortOrder
updatedAt?: SortOrderInput | SortOrder
}
export type verificationWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: verificationWhereInput | verificationWhereInput[]
OR?: verificationWhereInput[]
NOT?: verificationWhereInput | verificationWhereInput[]
identifier?: StringFilter<"verification"> | string
value?: StringFilter<"verification"> | string
expiresAt?: DateTimeFilter<"verification"> | Date | string
createdAt?: DateTimeNullableFilter<"verification"> | Date | string | null
updatedAt?: DateTimeNullableFilter<"verification"> | Date | string | null
}, "id">
export type verificationOrderByWithAggregationInput = {
id?: SortOrder
identifier?: SortOrder
value?: SortOrder
expiresAt?: SortOrder
createdAt?: SortOrderInput | SortOrder
updatedAt?: SortOrderInput | SortOrder
_count?: verificationCountOrderByAggregateInput
_max?: verificationMaxOrderByAggregateInput
_min?: verificationMinOrderByAggregateInput
}
export type verificationScalarWhereWithAggregatesInput = {
AND?: verificationScalarWhereWithAggregatesInput | verificationScalarWhereWithAggregatesInput[]
OR?: verificationScalarWhereWithAggregatesInput[]
NOT?: verificationScalarWhereWithAggregatesInput | verificationScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"verification"> | string
identifier?: StringWithAggregatesFilter<"verification"> | string
value?: StringWithAggregatesFilter<"verification"> | string
expiresAt?: DateTimeWithAggregatesFilter<"verification"> | Date | string
createdAt?: DateTimeNullableWithAggregatesFilter<"verification"> | Date | string | null
updatedAt?: DateTimeNullableWithAggregatesFilter<"verification"> | Date | string | null
}
export type accountCreateInput = {
id: string
accountId: string
providerId: string
accessToken?: string | null
refreshToken?: string | null
idToken?: string | null
accessTokenExpiresAt?: Date | string | null
refreshTokenExpiresAt?: Date | string | null
scope?: string | null
password?: string | null
createdAt: Date | string
updatedAt: Date | string
user: userCreateNestedOneWithoutAccountInput
}
export type accountUncheckedCreateInput = {
id: string
accountId: string
providerId: string
userId: string
accessToken?: string | null
refreshToken?: string | null
idToken?: string | null
accessTokenExpiresAt?: Date | string | null
refreshTokenExpiresAt?: Date | string | null
scope?: string | null
password?: string | null
createdAt: Date | string
updatedAt: Date | string
}
export type accountUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
accountId?: StringFieldUpdateOperationsInput | string
providerId?: StringFieldUpdateOperationsInput | string
accessToken?: NullableStringFieldUpdateOperationsInput | string | null
refreshToken?: NullableStringFieldUpdateOperationsInput | string | null
idToken?: NullableStringFieldUpdateOperationsInput | string | null
accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: userUpdateOneRequiredWithoutAccountNestedInput
}
export type accountUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
accountId?: StringFieldUpdateOperationsInput | string
providerId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
accessToken?: NullableStringFieldUpdateOperationsInput | string | null
refreshToken?: NullableStringFieldUpdateOperationsInput | string | null
idToken?: NullableStringFieldUpdateOperationsInput | string | null
accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type accountCreateManyInput = {
id: string
accountId: string
providerId: string
userId: string
accessToken?: string | null
refreshToken?: string | null
idToken?: string | null
accessTokenExpiresAt?: Date | string | null
refreshTokenExpiresAt?: Date | string | null
scope?: string | null
password?: string | null
createdAt: Date | string
updatedAt: Date | string
}
export type accountUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
accountId?: StringFieldUpdateOperationsInput | string
providerId?: StringFieldUpdateOperationsInput | string
accessToken?: NullableStringFieldUpdateOperationsInput | string | null
refreshToken?: NullableStringFieldUpdateOperationsInput | string | null
idToken?: NullableStringFieldUpdateOperationsInput | string | null
accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type accountUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
accountId?: StringFieldUpdateOperationsInput | string
providerId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
accessToken?: NullableStringFieldUpdateOperationsInput | string | null
refreshToken?: NullableStringFieldUpdateOperationsInput | string | null
idToken?: NullableStringFieldUpdateOperationsInput | string | null
accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type passkeyCreateInput = {
id: string
name?: string | null
publicKey: string
credentialID: string
counter: number
deviceType: string
backedUp: boolean
transports?: string | null
createdAt?: Date | string | null
user: userCreateNestedOneWithoutPasskeyInput
}
export type passkeyUncheckedCreateInput = {
id: string
name?: string | null
publicKey: string
userId: string
credentialID: string
counter: number
deviceType: string
backedUp: boolean
transports?: string | null
createdAt?: Date | string | null
}
export type passkeyUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
publicKey?: StringFieldUpdateOperationsInput | string
credentialID?: StringFieldUpdateOperationsInput | string
counter?: IntFieldUpdateOperationsInput | number
deviceType?: StringFieldUpdateOperationsInput | string
backedUp?: BoolFieldUpdateOperationsInput | boolean
transports?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
user?: userUpdateOneRequiredWithoutPasskeyNestedInput
}
export type passkeyUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
publicKey?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
credentialID?: StringFieldUpdateOperationsInput | string
counter?: IntFieldUpdateOperationsInput | number
deviceType?: StringFieldUpdateOperationsInput | string
backedUp?: BoolFieldUpdateOperationsInput | boolean
transports?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type passkeyCreateManyInput = {
id: string
name?: string | null
publicKey: string
userId: string
credentialID: string
counter: number
deviceType: string
backedUp: boolean
transports?: string | null
createdAt?: Date | string | null
}
export type passkeyUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
publicKey?: StringFieldUpdateOperationsInput | string
credentialID?: StringFieldUpdateOperationsInput | string
counter?: IntFieldUpdateOperationsInput | number
deviceType?: StringFieldUpdateOperationsInput | string
backedUp?: BoolFieldUpdateOperationsInput | boolean
transports?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type passkeyUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
publicKey?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
credentialID?: StringFieldUpdateOperationsInput | string
counter?: IntFieldUpdateOperationsInput | number
deviceType?: StringFieldUpdateOperationsInput | string
backedUp?: BoolFieldUpdateOperationsInput | boolean
transports?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type sessionCreateInput = {
id: string
expiresAt: Date | string
token: string
createdAt: Date | string
updatedAt: Date | string
ipAddress?: string | null
userAgent?: string | null
impersonatedBy?: string | null
user: userCreateNestedOneWithoutSessionInput
}
export type sessionUncheckedCreateInput = {
id: string
expiresAt: Date | string
token: string
createdAt: Date | string
updatedAt: Date | string
ipAddress?: string | null
userAgent?: string | null
userId: string
impersonatedBy?: string | null
}
export type sessionUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
token?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
impersonatedBy?: NullableStringFieldUpdateOperationsInput | string | null
user?: userUpdateOneRequiredWithoutSessionNestedInput
}
export type sessionUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
token?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
impersonatedBy?: NullableStringFieldUpdateOperationsInput | string | null
}
export type sessionCreateManyInput = {
id: string
expiresAt: Date | string
token: string
createdAt: Date | string
updatedAt: Date | string
ipAddress?: string | null
userAgent?: string | null
userId: string
impersonatedBy?: string | null
}
export type sessionUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
token?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
impersonatedBy?: NullableStringFieldUpdateOperationsInput | string | null
}
export type sessionUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
token?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
impersonatedBy?: NullableStringFieldUpdateOperationsInput | string | null
}
export type userCreateInput = {
id: string
name: string
email: string
emailVerified: boolean
image?: string | null
createdAt: Date | string
updatedAt: Date | string
username?: string | null
displayUsername?: string | null
role?: string | null
banned?: boolean | null
banReason?: string | null
banExpires?: Date | string | null
account?: accountCreateNestedManyWithoutUserInput
passkey?: passkeyCreateNestedManyWithoutUserInput
session?: sessionCreateNestedManyWithoutUserInput
}
export type userUncheckedCreateInput = {
id: string
name: string
email: string
emailVerified: boolean
image?: string | null
createdAt: Date | string
updatedAt: Date | string
username?: string | null
displayUsername?: string | null
role?: string | null
banned?: boolean | null
banReason?: string | null
banExpires?: Date | string | null
account?: accountUncheckedCreateNestedManyWithoutUserInput
passkey?: passkeyUncheckedCreateNestedManyWithoutUserInput
session?: sessionUncheckedCreateNestedManyWithoutUserInput
}
export type userUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
account?: accountUpdateManyWithoutUserNestedInput
passkey?: passkeyUpdateManyWithoutUserNestedInput
session?: sessionUpdateManyWithoutUserNestedInput
}
export type userUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
account?: accountUncheckedUpdateManyWithoutUserNestedInput
passkey?: passkeyUncheckedUpdateManyWithoutUserNestedInput
session?: sessionUncheckedUpdateManyWithoutUserNestedInput
}
export type userCreateManyInput = {
id: string
name: string
email: string
emailVerified: boolean
image?: string | null
createdAt: Date | string
updatedAt: Date | string
username?: string | null
displayUsername?: string | null
role?: string | null
banned?: boolean | null
banReason?: string | null
banExpires?: Date | string | null
}
export type userUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type userUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type verificationCreateInput = {
id: string
identifier: string
value: string
expiresAt: Date | string
createdAt?: Date | string | null
updatedAt?: Date | string | null
}
export type verificationUncheckedCreateInput = {
id: string
identifier: string
value: string
expiresAt: Date | string
createdAt?: Date | string | null
updatedAt?: Date | string | null
}
export type verificationUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
identifier?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type verificationUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
identifier?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type verificationCreateManyInput = {
id: string
identifier: string
value: string
expiresAt: Date | string
createdAt?: Date | string | null
updatedAt?: Date | string | null
}
export type verificationUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
identifier?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type verificationUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
identifier?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type StringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringFilter<$PrismaModel> | string
}
export type StringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type DateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
}
export type DateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type UserScalarRelationFilter = {
is?: userWhereInput
isNot?: userWhereInput
}
export type SortOrderInput = {
sort: SortOrder
nulls?: NullsOrder
}
export type accountCountOrderByAggregateInput = {
id?: SortOrder
accountId?: SortOrder
providerId?: SortOrder
userId?: SortOrder
accessToken?: SortOrder
refreshToken?: SortOrder
idToken?: SortOrder
accessTokenExpiresAt?: SortOrder
refreshTokenExpiresAt?: SortOrder
scope?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type accountMaxOrderByAggregateInput = {
id?: SortOrder
accountId?: SortOrder
providerId?: SortOrder
userId?: SortOrder
accessToken?: SortOrder
refreshToken?: SortOrder
idToken?: SortOrder
accessTokenExpiresAt?: SortOrder
refreshTokenExpiresAt?: SortOrder
scope?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type accountMinOrderByAggregateInput = {
id?: SortOrder
accountId?: SortOrder
providerId?: SortOrder
userId?: SortOrder
accessToken?: SortOrder
refreshToken?: SortOrder
idToken?: SortOrder
accessTokenExpiresAt?: SortOrder
refreshTokenExpiresAt?: SortOrder
scope?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type StringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedDateTimeNullableFilter<$PrismaModel>
_max?: NestedDateTimeNullableFilter<$PrismaModel>
}
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type IntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type BoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type passkeyCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
publicKey?: SortOrder
userId?: SortOrder
credentialID?: SortOrder
counter?: SortOrder
deviceType?: SortOrder
backedUp?: SortOrder
transports?: SortOrder
createdAt?: SortOrder
}
export type passkeyAvgOrderByAggregateInput = {
counter?: SortOrder
}
export type passkeyMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
publicKey?: SortOrder
userId?: SortOrder
credentialID?: SortOrder
counter?: SortOrder
deviceType?: SortOrder
backedUp?: SortOrder
transports?: SortOrder
createdAt?: SortOrder
}
export type passkeyMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
publicKey?: SortOrder
userId?: SortOrder
credentialID?: SortOrder
counter?: SortOrder
deviceType?: SortOrder
backedUp?: SortOrder
transports?: SortOrder
createdAt?: SortOrder
}
export type passkeySumOrderByAggregateInput = {
counter?: SortOrder
}
export type IntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedBoolFilter<$PrismaModel>
_max?: NestedBoolFilter<$PrismaModel>
}
export type sessionCountOrderByAggregateInput = {
id?: SortOrder
expiresAt?: SortOrder
token?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
ipAddress?: SortOrder
userAgent?: SortOrder
userId?: SortOrder
impersonatedBy?: SortOrder
}
export type sessionMaxOrderByAggregateInput = {
id?: SortOrder
expiresAt?: SortOrder
token?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
ipAddress?: SortOrder
userAgent?: SortOrder
userId?: SortOrder
impersonatedBy?: SortOrder
}
export type sessionMinOrderByAggregateInput = {
id?: SortOrder
expiresAt?: SortOrder
token?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
ipAddress?: SortOrder
userAgent?: SortOrder
userId?: SortOrder
impersonatedBy?: SortOrder
}
export type BoolNullableFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
}
export type AccountListRelationFilter = {
every?: accountWhereInput
some?: accountWhereInput
none?: accountWhereInput
}
export type PasskeyListRelationFilter = {
every?: passkeyWhereInput
some?: passkeyWhereInput
none?: passkeyWhereInput
}
export type SessionListRelationFilter = {
every?: sessionWhereInput
some?: sessionWhereInput
none?: sessionWhereInput
}
export type accountOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type passkeyOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type sessionOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type userCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
emailVerified?: SortOrder
image?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
username?: SortOrder
displayUsername?: SortOrder
role?: SortOrder
banned?: SortOrder
banReason?: SortOrder
banExpires?: SortOrder
}
export type userMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
emailVerified?: SortOrder
image?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
username?: SortOrder
displayUsername?: SortOrder
role?: SortOrder
banned?: SortOrder
banReason?: SortOrder
banExpires?: SortOrder
}
export type userMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
emailVerified?: SortOrder
image?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
username?: SortOrder
displayUsername?: SortOrder
role?: SortOrder
banned?: SortOrder
banReason?: SortOrder
banExpires?: SortOrder
}
export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedBoolNullableFilter<$PrismaModel>
_max?: NestedBoolNullableFilter<$PrismaModel>
}
export type verificationCountOrderByAggregateInput = {
id?: SortOrder
identifier?: SortOrder
value?: SortOrder
expiresAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type verificationMaxOrderByAggregateInput = {
id?: SortOrder
identifier?: SortOrder
value?: SortOrder
expiresAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type verificationMinOrderByAggregateInput = {
id?: SortOrder
identifier?: SortOrder
value?: SortOrder
expiresAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type userCreateNestedOneWithoutAccountInput = {
create?: XOR<userCreateWithoutAccountInput, userUncheckedCreateWithoutAccountInput>
connectOrCreate?: userCreateOrConnectWithoutAccountInput
connect?: userWhereUniqueInput
}
export type StringFieldUpdateOperationsInput = {
set?: string
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type NullableDateTimeFieldUpdateOperationsInput = {
set?: Date | string | null
}
export type DateTimeFieldUpdateOperationsInput = {
set?: Date | string
}
export type userUpdateOneRequiredWithoutAccountNestedInput = {
create?: XOR<userCreateWithoutAccountInput, userUncheckedCreateWithoutAccountInput>
connectOrCreate?: userCreateOrConnectWithoutAccountInput
upsert?: userUpsertWithoutAccountInput
connect?: userWhereUniqueInput
update?: XOR<XOR<userUpdateToOneWithWhereWithoutAccountInput, userUpdateWithoutAccountInput>, userUncheckedUpdateWithoutAccountInput>
}
export type userCreateNestedOneWithoutPasskeyInput = {
create?: XOR<userCreateWithoutPasskeyInput, userUncheckedCreateWithoutPasskeyInput>
connectOrCreate?: userCreateOrConnectWithoutPasskeyInput
connect?: userWhereUniqueInput
}
export type IntFieldUpdateOperationsInput = {
set?: number
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type BoolFieldUpdateOperationsInput = {
set?: boolean
}
export type userUpdateOneRequiredWithoutPasskeyNestedInput = {
create?: XOR<userCreateWithoutPasskeyInput, userUncheckedCreateWithoutPasskeyInput>
connectOrCreate?: userCreateOrConnectWithoutPasskeyInput
upsert?: userUpsertWithoutPasskeyInput
connect?: userWhereUniqueInput
update?: XOR<XOR<userUpdateToOneWithWhereWithoutPasskeyInput, userUpdateWithoutPasskeyInput>, userUncheckedUpdateWithoutPasskeyInput>
}
export type userCreateNestedOneWithoutSessionInput = {
create?: XOR<userCreateWithoutSessionInput, userUncheckedCreateWithoutSessionInput>
connectOrCreate?: userCreateOrConnectWithoutSessionInput
connect?: userWhereUniqueInput
}
export type userUpdateOneRequiredWithoutSessionNestedInput = {
create?: XOR<userCreateWithoutSessionInput, userUncheckedCreateWithoutSessionInput>
connectOrCreate?: userCreateOrConnectWithoutSessionInput
upsert?: userUpsertWithoutSessionInput
connect?: userWhereUniqueInput
update?: XOR<XOR<userUpdateToOneWithWhereWithoutSessionInput, userUpdateWithoutSessionInput>, userUncheckedUpdateWithoutSessionInput>
}
export type accountCreateNestedManyWithoutUserInput = {
create?: XOR<accountCreateWithoutUserInput, accountUncheckedCreateWithoutUserInput> | accountCreateWithoutUserInput[] | accountUncheckedCreateWithoutUserInput[]
connectOrCreate?: accountCreateOrConnectWithoutUserInput | accountCreateOrConnectWithoutUserInput[]
createMany?: accountCreateManyUserInputEnvelope
connect?: accountWhereUniqueInput | accountWhereUniqueInput[]
}
export type passkeyCreateNestedManyWithoutUserInput = {
create?: XOR<passkeyCreateWithoutUserInput, passkeyUncheckedCreateWithoutUserInput> | passkeyCreateWithoutUserInput[] | passkeyUncheckedCreateWithoutUserInput[]
connectOrCreate?: passkeyCreateOrConnectWithoutUserInput | passkeyCreateOrConnectWithoutUserInput[]
createMany?: passkeyCreateManyUserInputEnvelope
connect?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
}
export type sessionCreateNestedManyWithoutUserInput = {
create?: XOR<sessionCreateWithoutUserInput, sessionUncheckedCreateWithoutUserInput> | sessionCreateWithoutUserInput[] | sessionUncheckedCreateWithoutUserInput[]
connectOrCreate?: sessionCreateOrConnectWithoutUserInput | sessionCreateOrConnectWithoutUserInput[]
createMany?: sessionCreateManyUserInputEnvelope
connect?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
}
export type accountUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<accountCreateWithoutUserInput, accountUncheckedCreateWithoutUserInput> | accountCreateWithoutUserInput[] | accountUncheckedCreateWithoutUserInput[]
connectOrCreate?: accountCreateOrConnectWithoutUserInput | accountCreateOrConnectWithoutUserInput[]
createMany?: accountCreateManyUserInputEnvelope
connect?: accountWhereUniqueInput | accountWhereUniqueInput[]
}
export type passkeyUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<passkeyCreateWithoutUserInput, passkeyUncheckedCreateWithoutUserInput> | passkeyCreateWithoutUserInput[] | passkeyUncheckedCreateWithoutUserInput[]
connectOrCreate?: passkeyCreateOrConnectWithoutUserInput | passkeyCreateOrConnectWithoutUserInput[]
createMany?: passkeyCreateManyUserInputEnvelope
connect?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
}
export type sessionUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<sessionCreateWithoutUserInput, sessionUncheckedCreateWithoutUserInput> | sessionCreateWithoutUserInput[] | sessionUncheckedCreateWithoutUserInput[]
connectOrCreate?: sessionCreateOrConnectWithoutUserInput | sessionCreateOrConnectWithoutUserInput[]
createMany?: sessionCreateManyUserInputEnvelope
connect?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
}
export type NullableBoolFieldUpdateOperationsInput = {
set?: boolean | null
}
export type accountUpdateManyWithoutUserNestedInput = {
create?: XOR<accountCreateWithoutUserInput, accountUncheckedCreateWithoutUserInput> | accountCreateWithoutUserInput[] | accountUncheckedCreateWithoutUserInput[]
connectOrCreate?: accountCreateOrConnectWithoutUserInput | accountCreateOrConnectWithoutUserInput[]
upsert?: accountUpsertWithWhereUniqueWithoutUserInput | accountUpsertWithWhereUniqueWithoutUserInput[]
createMany?: accountCreateManyUserInputEnvelope
set?: accountWhereUniqueInput | accountWhereUniqueInput[]
disconnect?: accountWhereUniqueInput | accountWhereUniqueInput[]
delete?: accountWhereUniqueInput | accountWhereUniqueInput[]
connect?: accountWhereUniqueInput | accountWhereUniqueInput[]
update?: accountUpdateWithWhereUniqueWithoutUserInput | accountUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: accountUpdateManyWithWhereWithoutUserInput | accountUpdateManyWithWhereWithoutUserInput[]
deleteMany?: accountScalarWhereInput | accountScalarWhereInput[]
}
export type passkeyUpdateManyWithoutUserNestedInput = {
create?: XOR<passkeyCreateWithoutUserInput, passkeyUncheckedCreateWithoutUserInput> | passkeyCreateWithoutUserInput[] | passkeyUncheckedCreateWithoutUserInput[]
connectOrCreate?: passkeyCreateOrConnectWithoutUserInput | passkeyCreateOrConnectWithoutUserInput[]
upsert?: passkeyUpsertWithWhereUniqueWithoutUserInput | passkeyUpsertWithWhereUniqueWithoutUserInput[]
createMany?: passkeyCreateManyUserInputEnvelope
set?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
disconnect?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
delete?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
connect?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
update?: passkeyUpdateWithWhereUniqueWithoutUserInput | passkeyUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: passkeyUpdateManyWithWhereWithoutUserInput | passkeyUpdateManyWithWhereWithoutUserInput[]
deleteMany?: passkeyScalarWhereInput | passkeyScalarWhereInput[]
}
export type sessionUpdateManyWithoutUserNestedInput = {
create?: XOR<sessionCreateWithoutUserInput, sessionUncheckedCreateWithoutUserInput> | sessionCreateWithoutUserInput[] | sessionUncheckedCreateWithoutUserInput[]
connectOrCreate?: sessionCreateOrConnectWithoutUserInput | sessionCreateOrConnectWithoutUserInput[]
upsert?: sessionUpsertWithWhereUniqueWithoutUserInput | sessionUpsertWithWhereUniqueWithoutUserInput[]
createMany?: sessionCreateManyUserInputEnvelope
set?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
disconnect?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
delete?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
connect?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
update?: sessionUpdateWithWhereUniqueWithoutUserInput | sessionUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: sessionUpdateManyWithWhereWithoutUserInput | sessionUpdateManyWithWhereWithoutUserInput[]
deleteMany?: sessionScalarWhereInput | sessionScalarWhereInput[]
}
export type accountUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<accountCreateWithoutUserInput, accountUncheckedCreateWithoutUserInput> | accountCreateWithoutUserInput[] | accountUncheckedCreateWithoutUserInput[]
connectOrCreate?: accountCreateOrConnectWithoutUserInput | accountCreateOrConnectWithoutUserInput[]
upsert?: accountUpsertWithWhereUniqueWithoutUserInput | accountUpsertWithWhereUniqueWithoutUserInput[]
createMany?: accountCreateManyUserInputEnvelope
set?: accountWhereUniqueInput | accountWhereUniqueInput[]
disconnect?: accountWhereUniqueInput | accountWhereUniqueInput[]
delete?: accountWhereUniqueInput | accountWhereUniqueInput[]
connect?: accountWhereUniqueInput | accountWhereUniqueInput[]
update?: accountUpdateWithWhereUniqueWithoutUserInput | accountUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: accountUpdateManyWithWhereWithoutUserInput | accountUpdateManyWithWhereWithoutUserInput[]
deleteMany?: accountScalarWhereInput | accountScalarWhereInput[]
}
export type passkeyUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<passkeyCreateWithoutUserInput, passkeyUncheckedCreateWithoutUserInput> | passkeyCreateWithoutUserInput[] | passkeyUncheckedCreateWithoutUserInput[]
connectOrCreate?: passkeyCreateOrConnectWithoutUserInput | passkeyCreateOrConnectWithoutUserInput[]
upsert?: passkeyUpsertWithWhereUniqueWithoutUserInput | passkeyUpsertWithWhereUniqueWithoutUserInput[]
createMany?: passkeyCreateManyUserInputEnvelope
set?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
disconnect?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
delete?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
connect?: passkeyWhereUniqueInput | passkeyWhereUniqueInput[]
update?: passkeyUpdateWithWhereUniqueWithoutUserInput | passkeyUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: passkeyUpdateManyWithWhereWithoutUserInput | passkeyUpdateManyWithWhereWithoutUserInput[]
deleteMany?: passkeyScalarWhereInput | passkeyScalarWhereInput[]
}
export type sessionUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<sessionCreateWithoutUserInput, sessionUncheckedCreateWithoutUserInput> | sessionCreateWithoutUserInput[] | sessionUncheckedCreateWithoutUserInput[]
connectOrCreate?: sessionCreateOrConnectWithoutUserInput | sessionCreateOrConnectWithoutUserInput[]
upsert?: sessionUpsertWithWhereUniqueWithoutUserInput | sessionUpsertWithWhereUniqueWithoutUserInput[]
createMany?: sessionCreateManyUserInputEnvelope
set?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
disconnect?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
delete?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
connect?: sessionWhereUniqueInput | sessionWhereUniqueInput[]
update?: sessionUpdateWithWhereUniqueWithoutUserInput | sessionUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: sessionUpdateManyWithWhereWithoutUserInput | sessionUpdateManyWithWhereWithoutUserInput[]
deleteMany?: sessionScalarWhereInput | sessionScalarWhereInput[]
}
export type NestedStringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringFilter<$PrismaModel> | string
}
export type NestedStringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
}
export type NestedDateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type NestedIntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type NestedIntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedDateTimeNullableFilter<$PrismaModel>
_max?: NestedDateTimeNullableFilter<$PrismaModel>
}
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type NestedBoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type NestedFloatFilter<$PrismaModel = never> = {
equals?: number | FloatFieldRefInput<$PrismaModel>
in?: number[] | ListFloatFieldRefInput<$PrismaModel>
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
lt?: number | FloatFieldRefInput<$PrismaModel>
lte?: number | FloatFieldRefInput<$PrismaModel>
gt?: number | FloatFieldRefInput<$PrismaModel>
gte?: number | FloatFieldRefInput<$PrismaModel>
not?: NestedFloatFilter<$PrismaModel> | number
}
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedBoolFilter<$PrismaModel>
_max?: NestedBoolFilter<$PrismaModel>
}
export type NestedBoolNullableFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
}
export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedBoolNullableFilter<$PrismaModel>
_max?: NestedBoolNullableFilter<$PrismaModel>
}
export type userCreateWithoutAccountInput = {
id: string
name: string
email: string
emailVerified: boolean
image?: string | null
createdAt: Date | string
updatedAt: Date | string
username?: string | null
displayUsername?: string | null
role?: string | null
banned?: boolean | null
banReason?: string | null
banExpires?: Date | string | null
passkey?: passkeyCreateNestedManyWithoutUserInput
session?: sessionCreateNestedManyWithoutUserInput
}
export type userUncheckedCreateWithoutAccountInput = {
id: string
name: string
email: string
emailVerified: boolean
image?: string | null
createdAt: Date | string
updatedAt: Date | string
username?: string | null
displayUsername?: string | null
role?: string | null
banned?: boolean | null
banReason?: string | null
banExpires?: Date | string | null
passkey?: passkeyUncheckedCreateNestedManyWithoutUserInput
session?: sessionUncheckedCreateNestedManyWithoutUserInput
}
export type userCreateOrConnectWithoutAccountInput = {
where: userWhereUniqueInput
create: XOR<userCreateWithoutAccountInput, userUncheckedCreateWithoutAccountInput>
}
export type userUpsertWithoutAccountInput = {
update: XOR<userUpdateWithoutAccountInput, userUncheckedUpdateWithoutAccountInput>
create: XOR<userCreateWithoutAccountInput, userUncheckedCreateWithoutAccountInput>
where?: userWhereInput
}
export type userUpdateToOneWithWhereWithoutAccountInput = {
where?: userWhereInput
data: XOR<userUpdateWithoutAccountInput, userUncheckedUpdateWithoutAccountInput>
}
export type userUpdateWithoutAccountInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
passkey?: passkeyUpdateManyWithoutUserNestedInput
session?: sessionUpdateManyWithoutUserNestedInput
}
export type userUncheckedUpdateWithoutAccountInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
passkey?: passkeyUncheckedUpdateManyWithoutUserNestedInput
session?: sessionUncheckedUpdateManyWithoutUserNestedInput
}
export type userCreateWithoutPasskeyInput = {
id: string
name: string
email: string
emailVerified: boolean
image?: string | null
createdAt: Date | string
updatedAt: Date | string
username?: string | null
displayUsername?: string | null
role?: string | null
banned?: boolean | null
banReason?: string | null
banExpires?: Date | string | null
account?: accountCreateNestedManyWithoutUserInput
session?: sessionCreateNestedManyWithoutUserInput
}
export type userUncheckedCreateWithoutPasskeyInput = {
id: string
name: string
email: string
emailVerified: boolean
image?: string | null
createdAt: Date | string
updatedAt: Date | string
username?: string | null
displayUsername?: string | null
role?: string | null
banned?: boolean | null
banReason?: string | null
banExpires?: Date | string | null
account?: accountUncheckedCreateNestedManyWithoutUserInput
session?: sessionUncheckedCreateNestedManyWithoutUserInput
}
export type userCreateOrConnectWithoutPasskeyInput = {
where: userWhereUniqueInput
create: XOR<userCreateWithoutPasskeyInput, userUncheckedCreateWithoutPasskeyInput>
}
export type userUpsertWithoutPasskeyInput = {
update: XOR<userUpdateWithoutPasskeyInput, userUncheckedUpdateWithoutPasskeyInput>
create: XOR<userCreateWithoutPasskeyInput, userUncheckedCreateWithoutPasskeyInput>
where?: userWhereInput
}
export type userUpdateToOneWithWhereWithoutPasskeyInput = {
where?: userWhereInput
data: XOR<userUpdateWithoutPasskeyInput, userUncheckedUpdateWithoutPasskeyInput>
}
export type userUpdateWithoutPasskeyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
account?: accountUpdateManyWithoutUserNestedInput
session?: sessionUpdateManyWithoutUserNestedInput
}
export type userUncheckedUpdateWithoutPasskeyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
account?: accountUncheckedUpdateManyWithoutUserNestedInput
session?: sessionUncheckedUpdateManyWithoutUserNestedInput
}
export type userCreateWithoutSessionInput = {
id: string
name: string
email: string
emailVerified: boolean
image?: string | null
createdAt: Date | string
updatedAt: Date | string
username?: string | null
displayUsername?: string | null
role?: string | null
banned?: boolean | null
banReason?: string | null
banExpires?: Date | string | null
account?: accountCreateNestedManyWithoutUserInput
passkey?: passkeyCreateNestedManyWithoutUserInput
}
export type userUncheckedCreateWithoutSessionInput = {
id: string
name: string
email: string
emailVerified: boolean
image?: string | null
createdAt: Date | string
updatedAt: Date | string
username?: string | null
displayUsername?: string | null
role?: string | null
banned?: boolean | null
banReason?: string | null
banExpires?: Date | string | null
account?: accountUncheckedCreateNestedManyWithoutUserInput
passkey?: passkeyUncheckedCreateNestedManyWithoutUserInput
}
export type userCreateOrConnectWithoutSessionInput = {
where: userWhereUniqueInput
create: XOR<userCreateWithoutSessionInput, userUncheckedCreateWithoutSessionInput>
}
export type userUpsertWithoutSessionInput = {
update: XOR<userUpdateWithoutSessionInput, userUncheckedUpdateWithoutSessionInput>
create: XOR<userCreateWithoutSessionInput, userUncheckedCreateWithoutSessionInput>
where?: userWhereInput
}
export type userUpdateToOneWithWhereWithoutSessionInput = {
where?: userWhereInput
data: XOR<userUpdateWithoutSessionInput, userUncheckedUpdateWithoutSessionInput>
}
export type userUpdateWithoutSessionInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
account?: accountUpdateManyWithoutUserNestedInput
passkey?: passkeyUpdateManyWithoutUserNestedInput
}
export type userUncheckedUpdateWithoutSessionInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
emailVerified?: BoolFieldUpdateOperationsInput | boolean
image?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
username?: NullableStringFieldUpdateOperationsInput | string | null
displayUsername?: NullableStringFieldUpdateOperationsInput | string | null
role?: NullableStringFieldUpdateOperationsInput | string | null
banned?: NullableBoolFieldUpdateOperationsInput | boolean | null
banReason?: NullableStringFieldUpdateOperationsInput | string | null
banExpires?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
account?: accountUncheckedUpdateManyWithoutUserNestedInput
passkey?: passkeyUncheckedUpdateManyWithoutUserNestedInput
}
export type accountCreateWithoutUserInput = {
id: string
accountId: string
providerId: string
accessToken?: string | null
refreshToken?: string | null
idToken?: string | null
accessTokenExpiresAt?: Date | string | null
refreshTokenExpiresAt?: Date | string | null
scope?: string | null
password?: string | null
createdAt: Date | string
updatedAt: Date | string
}
export type accountUncheckedCreateWithoutUserInput = {
id: string
accountId: string
providerId: string
accessToken?: string | null
refreshToken?: string | null
idToken?: string | null
accessTokenExpiresAt?: Date | string | null
refreshTokenExpiresAt?: Date | string | null
scope?: string | null
password?: string | null
createdAt: Date | string
updatedAt: Date | string
}
export type accountCreateOrConnectWithoutUserInput = {
where: accountWhereUniqueInput
create: XOR<accountCreateWithoutUserInput, accountUncheckedCreateWithoutUserInput>
}
export type accountCreateManyUserInputEnvelope = {
data: accountCreateManyUserInput | accountCreateManyUserInput[]
skipDuplicates?: boolean
}
export type passkeyCreateWithoutUserInput = {
id: string
name?: string | null
publicKey: string
credentialID: string
counter: number
deviceType: string
backedUp: boolean
transports?: string | null
createdAt?: Date | string | null
}
export type passkeyUncheckedCreateWithoutUserInput = {
id: string
name?: string | null
publicKey: string
credentialID: string
counter: number
deviceType: string
backedUp: boolean
transports?: string | null
createdAt?: Date | string | null
}
export type passkeyCreateOrConnectWithoutUserInput = {
where: passkeyWhereUniqueInput
create: XOR<passkeyCreateWithoutUserInput, passkeyUncheckedCreateWithoutUserInput>
}
export type passkeyCreateManyUserInputEnvelope = {
data: passkeyCreateManyUserInput | passkeyCreateManyUserInput[]
skipDuplicates?: boolean
}
export type sessionCreateWithoutUserInput = {
id: string
expiresAt: Date | string
token: string
createdAt: Date | string
updatedAt: Date | string
ipAddress?: string | null
userAgent?: string | null
impersonatedBy?: string | null
}
export type sessionUncheckedCreateWithoutUserInput = {
id: string
expiresAt: Date | string
token: string
createdAt: Date | string
updatedAt: Date | string
ipAddress?: string | null
userAgent?: string | null
impersonatedBy?: string | null
}
export type sessionCreateOrConnectWithoutUserInput = {
where: sessionWhereUniqueInput
create: XOR<sessionCreateWithoutUserInput, sessionUncheckedCreateWithoutUserInput>
}
export type sessionCreateManyUserInputEnvelope = {
data: sessionCreateManyUserInput | sessionCreateManyUserInput[]
skipDuplicates?: boolean
}
export type accountUpsertWithWhereUniqueWithoutUserInput = {
where: accountWhereUniqueInput
update: XOR<accountUpdateWithoutUserInput, accountUncheckedUpdateWithoutUserInput>
create: XOR<accountCreateWithoutUserInput, accountUncheckedCreateWithoutUserInput>
}
export type accountUpdateWithWhereUniqueWithoutUserInput = {
where: accountWhereUniqueInput
data: XOR<accountUpdateWithoutUserInput, accountUncheckedUpdateWithoutUserInput>
}
export type accountUpdateManyWithWhereWithoutUserInput = {
where: accountScalarWhereInput
data: XOR<accountUpdateManyMutationInput, accountUncheckedUpdateManyWithoutUserInput>
}
export type accountScalarWhereInput = {
AND?: accountScalarWhereInput | accountScalarWhereInput[]
OR?: accountScalarWhereInput[]
NOT?: accountScalarWhereInput | accountScalarWhereInput[]
id?: StringFilter<"account"> | string
accountId?: StringFilter<"account"> | string
providerId?: StringFilter<"account"> | string
userId?: StringFilter<"account"> | string
accessToken?: StringNullableFilter<"account"> | string | null
refreshToken?: StringNullableFilter<"account"> | string | null
idToken?: StringNullableFilter<"account"> | string | null
accessTokenExpiresAt?: DateTimeNullableFilter<"account"> | Date | string | null
refreshTokenExpiresAt?: DateTimeNullableFilter<"account"> | Date | string | null
scope?: StringNullableFilter<"account"> | string | null
password?: StringNullableFilter<"account"> | string | null
createdAt?: DateTimeFilter<"account"> | Date | string
updatedAt?: DateTimeFilter<"account"> | Date | string
}
export type passkeyUpsertWithWhereUniqueWithoutUserInput = {
where: passkeyWhereUniqueInput
update: XOR<passkeyUpdateWithoutUserInput, passkeyUncheckedUpdateWithoutUserInput>
create: XOR<passkeyCreateWithoutUserInput, passkeyUncheckedCreateWithoutUserInput>
}
export type passkeyUpdateWithWhereUniqueWithoutUserInput = {
where: passkeyWhereUniqueInput
data: XOR<passkeyUpdateWithoutUserInput, passkeyUncheckedUpdateWithoutUserInput>
}
export type passkeyUpdateManyWithWhereWithoutUserInput = {
where: passkeyScalarWhereInput
data: XOR<passkeyUpdateManyMutationInput, passkeyUncheckedUpdateManyWithoutUserInput>
}
export type passkeyScalarWhereInput = {
AND?: passkeyScalarWhereInput | passkeyScalarWhereInput[]
OR?: passkeyScalarWhereInput[]
NOT?: passkeyScalarWhereInput | passkeyScalarWhereInput[]
id?: StringFilter<"passkey"> | string
name?: StringNullableFilter<"passkey"> | string | null
publicKey?: StringFilter<"passkey"> | string
userId?: StringFilter<"passkey"> | string
credentialID?: StringFilter<"passkey"> | string
counter?: IntFilter<"passkey"> | number
deviceType?: StringFilter<"passkey"> | string
backedUp?: BoolFilter<"passkey"> | boolean
transports?: StringNullableFilter<"passkey"> | string | null
createdAt?: DateTimeNullableFilter<"passkey"> | Date | string | null
}
export type sessionUpsertWithWhereUniqueWithoutUserInput = {
where: sessionWhereUniqueInput
update: XOR<sessionUpdateWithoutUserInput, sessionUncheckedUpdateWithoutUserInput>
create: XOR<sessionCreateWithoutUserInput, sessionUncheckedCreateWithoutUserInput>
}
export type sessionUpdateWithWhereUniqueWithoutUserInput = {
where: sessionWhereUniqueInput
data: XOR<sessionUpdateWithoutUserInput, sessionUncheckedUpdateWithoutUserInput>
}
export type sessionUpdateManyWithWhereWithoutUserInput = {
where: sessionScalarWhereInput
data: XOR<sessionUpdateManyMutationInput, sessionUncheckedUpdateManyWithoutUserInput>
}
export type sessionScalarWhereInput = {
AND?: sessionScalarWhereInput | sessionScalarWhereInput[]
OR?: sessionScalarWhereInput[]
NOT?: sessionScalarWhereInput | sessionScalarWhereInput[]
id?: StringFilter<"session"> | string
expiresAt?: DateTimeFilter<"session"> | Date | string
token?: StringFilter<"session"> | string
createdAt?: DateTimeFilter<"session"> | Date | string
updatedAt?: DateTimeFilter<"session"> | Date | string
ipAddress?: StringNullableFilter<"session"> | string | null
userAgent?: StringNullableFilter<"session"> | string | null
userId?: StringFilter<"session"> | string
impersonatedBy?: StringNullableFilter<"session"> | string | null
}
export type accountCreateManyUserInput = {
id: string
accountId: string
providerId: string
accessToken?: string | null
refreshToken?: string | null
idToken?: string | null
accessTokenExpiresAt?: Date | string | null
refreshTokenExpiresAt?: Date | string | null
scope?: string | null
password?: string | null
createdAt: Date | string
updatedAt: Date | string
}
export type passkeyCreateManyUserInput = {
id: string
name?: string | null
publicKey: string
credentialID: string
counter: number
deviceType: string
backedUp: boolean
transports?: string | null
createdAt?: Date | string | null
}
export type sessionCreateManyUserInput = {
id: string
expiresAt: Date | string
token: string
createdAt: Date | string
updatedAt: Date | string
ipAddress?: string | null
userAgent?: string | null
impersonatedBy?: string | null
}
export type accountUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
accountId?: StringFieldUpdateOperationsInput | string
providerId?: StringFieldUpdateOperationsInput | string
accessToken?: NullableStringFieldUpdateOperationsInput | string | null
refreshToken?: NullableStringFieldUpdateOperationsInput | string | null
idToken?: NullableStringFieldUpdateOperationsInput | string | null
accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type accountUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
accountId?: StringFieldUpdateOperationsInput | string
providerId?: StringFieldUpdateOperationsInput | string
accessToken?: NullableStringFieldUpdateOperationsInput | string | null
refreshToken?: NullableStringFieldUpdateOperationsInput | string | null
idToken?: NullableStringFieldUpdateOperationsInput | string | null
accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type accountUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
accountId?: StringFieldUpdateOperationsInput | string
providerId?: StringFieldUpdateOperationsInput | string
accessToken?: NullableStringFieldUpdateOperationsInput | string | null
refreshToken?: NullableStringFieldUpdateOperationsInput | string | null
idToken?: NullableStringFieldUpdateOperationsInput | string | null
accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type passkeyUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
publicKey?: StringFieldUpdateOperationsInput | string
credentialID?: StringFieldUpdateOperationsInput | string
counter?: IntFieldUpdateOperationsInput | number
deviceType?: StringFieldUpdateOperationsInput | string
backedUp?: BoolFieldUpdateOperationsInput | boolean
transports?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type passkeyUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
publicKey?: StringFieldUpdateOperationsInput | string
credentialID?: StringFieldUpdateOperationsInput | string
counter?: IntFieldUpdateOperationsInput | number
deviceType?: StringFieldUpdateOperationsInput | string
backedUp?: BoolFieldUpdateOperationsInput | boolean
transports?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type passkeyUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
publicKey?: StringFieldUpdateOperationsInput | string
credentialID?: StringFieldUpdateOperationsInput | string
counter?: IntFieldUpdateOperationsInput | number
deviceType?: StringFieldUpdateOperationsInput | string
backedUp?: BoolFieldUpdateOperationsInput | boolean
transports?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type sessionUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
token?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
impersonatedBy?: NullableStringFieldUpdateOperationsInput | string | null
}
export type sessionUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
token?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
impersonatedBy?: NullableStringFieldUpdateOperationsInput | string | null
}
export type sessionUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
token?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
impersonatedBy?: NullableStringFieldUpdateOperationsInput | string | null
}
/**
* Batch Payload for updateMany & deleteMany & createMany
*/
export type BatchPayload = {
count: number
}
/**
* DMMF
*/
export const dmmf: runtime.BaseDMMF
}