/** * 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 = $Public.PrismaPromise /** * Model Account * */ export type Account = $Result.DefaultSelection /** * Model Session * */ export type Session = $Result.DefaultSelection /** * Model User * */ export type User = $Result.DefaultSelection /** * Model VerificationToken * */ export type VerificationToken = $Result.DefaultSelection /** * Model Shop * */ export type Shop = $Result.DefaultSelection /** * Model Item * */ export type Item = $Result.DefaultSelection /** * Model Sellable * */ export type Sellable = $Result.DefaultSelection /** * Model Cart * */ export type Cart = $Result.DefaultSelection /** * Model CartItem * */ export type CartItem = $Result.DefaultSelection /** * Model Adress * */ export type Adress = $Result.DefaultSelection /** * ## 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, const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['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); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * 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(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * 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(query: string, ...values: any[]): Prisma.PrismaPromise; /** * 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(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * 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(query: string, ...values: any[]): Prisma.PrismaPromise; /** * 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

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, { 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; /** * `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; /** * `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; /** * `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model. * Example usage: * ```ts * // Fetch zero or more VerificationTokens * const verificationTokens = await prisma.verificationToken.findMany() * ``` */ get verificationToken(): Prisma.VerificationTokenDelegate; /** * `prisma.shop`: Exposes CRUD operations for the **Shop** model. * Example usage: * ```ts * // Fetch zero or more Shops * const shops = await prisma.shop.findMany() * ``` */ get shop(): Prisma.ShopDelegate; /** * `prisma.item`: Exposes CRUD operations for the **Item** model. * Example usage: * ```ts * // Fetch zero or more Items * const items = await prisma.item.findMany() * ``` */ get item(): Prisma.ItemDelegate; /** * `prisma.sellable`: Exposes CRUD operations for the **Sellable** model. * Example usage: * ```ts * // Fetch zero or more Sellables * const sellables = await prisma.sellable.findMany() * ``` */ get sellable(): Prisma.SellableDelegate; /** * `prisma.cart`: Exposes CRUD operations for the **Cart** model. * Example usage: * ```ts * // Fetch zero or more Carts * const carts = await prisma.cart.findMany() * ``` */ get cart(): Prisma.CartDelegate; /** * `prisma.cartItem`: Exposes CRUD operations for the **CartItem** model. * Example usage: * ```ts * // Fetch zero or more CartItems * const cartItems = await prisma.cartItem.findMany() * ``` */ get cartItem(): Prisma.CartItemDelegate; /** * `prisma.adress`: Exposes CRUD operations for the **Adress** model. * Example usage: * ```ts * // Fetch zero or more Adresses * const adresses = await prisma.adress.findMany() * ``` */ get adress(): Prisma.AdressDelegate; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise = $Public.PrismaPromise /** * 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 = runtime.Metric 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.19.2 * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7 */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import Bytes = runtime.Bytes 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 ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [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 = { [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 = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: 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 extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? 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 Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = 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 extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ export type False = 0 export type Not = { 0: 1 1: 0 }[B] export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 ? 1 : 0 export type Has = Not< Extends, U1> > export type Or = { 0: { 0: 0 1: 1 } 1: { 0: 1 1: 1 } }[B1][B2] export type Keys = U extends unknown ? keyof U : never type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never } : never type FieldPaths< T, U = Omit > = IsObject extends True ? U : T type GetHavingFields = { [K in keyof T]: Or< Or, 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 extends object ? Merge> : never> : never : {} extends FieldPaths ? never : K }[keyof T] /** * Convert tuple to union */ type _TupleToUnion = T extends (infer E)[] ? E : never type TupleToUnion = _TupleToUnion type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef export const ModelName: { Account: 'Account', Session: 'Session', User: 'User', VerificationToken: 'VerificationToken', Shop: 'Shop', Item: 'Item', Sellable: 'Sellable', Cart: 'Cart', CartItem: 'CartItem', Adress: 'Adress' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "account" | "session" | "user" | "verificationToken" | "shop" | "item" | "sellable" | "cart" | "cartItem" | "adress" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { Account: { payload: Prisma.$AccountPayload fields: Prisma.AccountFieldRefs operations: { findUnique: { args: Prisma.AccountFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AccountFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AccountFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AccountFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AccountFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AccountCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AccountCreateManyArgs result: BatchPayload } delete: { args: Prisma.AccountDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AccountUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AccountDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AccountUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.AccountUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AccountAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AccountGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AccountCountArgs result: $Utils.Optional | number } } } Session: { payload: Prisma.$SessionPayload fields: Prisma.SessionFieldRefs operations: { findUnique: { args: Prisma.SessionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SessionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SessionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SessionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SessionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SessionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SessionCreateManyArgs result: BatchPayload } delete: { args: Prisma.SessionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SessionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SessionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SessionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.SessionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SessionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SessionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SessionCountArgs result: $Utils.Optional | number } } } User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } VerificationToken: { payload: Prisma.$VerificationTokenPayload fields: Prisma.VerificationTokenFieldRefs operations: { findUnique: { args: Prisma.VerificationTokenFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.VerificationTokenFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.VerificationTokenFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.VerificationTokenFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.VerificationTokenFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.VerificationTokenCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.VerificationTokenCreateManyArgs result: BatchPayload } delete: { args: Prisma.VerificationTokenDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.VerificationTokenUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.VerificationTokenDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.VerificationTokenUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.VerificationTokenUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.VerificationTokenAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.VerificationTokenGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.VerificationTokenCountArgs result: $Utils.Optional | number } } } Shop: { payload: Prisma.$ShopPayload fields: Prisma.ShopFieldRefs operations: { findUnique: { args: Prisma.ShopFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ShopFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ShopFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ShopFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ShopFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ShopCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ShopCreateManyArgs result: BatchPayload } delete: { args: Prisma.ShopDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ShopUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ShopDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ShopUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ShopUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ShopAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ShopGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ShopCountArgs result: $Utils.Optional | number } } } Item: { payload: Prisma.$ItemPayload fields: Prisma.ItemFieldRefs operations: { findUnique: { args: Prisma.ItemFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ItemFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ItemFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ItemFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ItemFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ItemCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ItemCreateManyArgs result: BatchPayload } delete: { args: Prisma.ItemDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ItemUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ItemDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ItemUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ItemUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ItemAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ItemGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ItemCountArgs result: $Utils.Optional | number } } } Sellable: { payload: Prisma.$SellablePayload fields: Prisma.SellableFieldRefs operations: { findUnique: { args: Prisma.SellableFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SellableFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SellableFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SellableFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SellableFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SellableCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SellableCreateManyArgs result: BatchPayload } delete: { args: Prisma.SellableDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SellableUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SellableDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SellableUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.SellableUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SellableAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SellableGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SellableCountArgs result: $Utils.Optional | number } } } Cart: { payload: Prisma.$CartPayload fields: Prisma.CartFieldRefs operations: { findUnique: { args: Prisma.CartFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CartFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CartFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CartFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CartFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CartCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CartCreateManyArgs result: BatchPayload } delete: { args: Prisma.CartDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CartUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CartDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CartUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.CartUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CartAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CartGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CartCountArgs result: $Utils.Optional | number } } } CartItem: { payload: Prisma.$CartItemPayload fields: Prisma.CartItemFieldRefs operations: { findUnique: { args: Prisma.CartItemFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CartItemFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CartItemFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CartItemFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CartItemFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CartItemCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CartItemCreateManyArgs result: BatchPayload } delete: { args: Prisma.CartItemDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CartItemUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CartItemDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CartItemUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.CartItemUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CartItemAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CartItemGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CartItemCountArgs result: $Utils.Optional | number } } } Adress: { payload: Prisma.$AdressPayload fields: Prisma.AdressFieldRefs operations: { findUnique: { args: Prisma.AdressFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AdressFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AdressFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AdressFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AdressFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AdressCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AdressCreateManyArgs result: BatchPayload } delete: { args: Prisma.AdressDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AdressUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AdressDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AdressUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.AdressUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AdressAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AdressGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AdressCountArgs result: $Utils.Optional | 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 * ``` * // Shorthand for `emit: 'stdout'` * log: ['query', 'info', 'warn', 'error'] * * // Emit as events only * log: [ * { emit: 'event', level: 'query' }, * { emit: 'event', level: 'info' }, * { emit: 'event', level: 'warn' } * { emit: 'event', level: 'error' } * ] * * / Emit as events and log to stdout * og: [ * { 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 } /** * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` */ adapter?: runtime.SqlDriverAdapterFactory | null /** * 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 session?: SessionOmit user?: UserOmit verificationToken?: VerificationTokenOmit shop?: ShopOmit item?: ItemOmit sellable?: SellableOmit cart?: CartOmit cartItem?: CartItemOmit adress?: AdressOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type CheckIsLogLevel = T extends LogLevel ? T : never; export type GetLogType = CheckIsLogLevel< T extends LogDefinition ? T['level'] : T >; export type GetEvents = T extends Array ? GetLogType : 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' // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type UserCountOutputType */ export type UserCountOutputType = { accounts: number sessions: number shops: number carts: number adresses: number } export type UserCountOutputTypeSelect = { accounts?: boolean | UserCountOutputTypeCountAccountsArgs sessions?: boolean | UserCountOutputTypeCountSessionsArgs shops?: boolean | UserCountOutputTypeCountShopsArgs carts?: boolean | UserCountOutputTypeCountCartsArgs adresses?: boolean | UserCountOutputTypeCountAdressesArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountAccountsArgs = { where?: AccountWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountSessionsArgs = { where?: SessionWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountShopsArgs = { where?: ShopWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCartsArgs = { where?: CartWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountAdressesArgs = { where?: AdressWhereInput } /** * Count Type ShopCountOutputType */ export type ShopCountOutputType = { items: number sellables: number } export type ShopCountOutputTypeSelect = { items?: boolean | ShopCountOutputTypeCountItemsArgs sellables?: boolean | ShopCountOutputTypeCountSellablesArgs } // Custom InputTypes /** * ShopCountOutputType without action */ export type ShopCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ShopCountOutputType */ select?: ShopCountOutputTypeSelect | null } /** * ShopCountOutputType without action */ export type ShopCountOutputTypeCountItemsArgs = { where?: ItemWhereInput } /** * ShopCountOutputType without action */ export type ShopCountOutputTypeCountSellablesArgs = { where?: SellableWhereInput } /** * Count Type ItemCountOutputType */ export type ItemCountOutputType = { sellables: number } export type ItemCountOutputTypeSelect = { sellables?: boolean | ItemCountOutputTypeCountSellablesArgs } // Custom InputTypes /** * ItemCountOutputType without action */ export type ItemCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ItemCountOutputType */ select?: ItemCountOutputTypeSelect | null } /** * ItemCountOutputType without action */ export type ItemCountOutputTypeCountSellablesArgs = { where?: SellableWhereInput } /** * Count Type SellableCountOutputType */ export type SellableCountOutputType = { cartItems: number } export type SellableCountOutputTypeSelect = { cartItems?: boolean | SellableCountOutputTypeCountCartItemsArgs } // Custom InputTypes /** * SellableCountOutputType without action */ export type SellableCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SellableCountOutputType */ select?: SellableCountOutputTypeSelect | null } /** * SellableCountOutputType without action */ export type SellableCountOutputTypeCountCartItemsArgs = { where?: CartItemWhereInput } /** * Count Type CartCountOutputType */ export type CartCountOutputType = { cartItems: number } export type CartCountOutputTypeSelect = { cartItems?: boolean | CartCountOutputTypeCountCartItemsArgs } // Custom InputTypes /** * CartCountOutputType without action */ export type CartCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CartCountOutputType */ select?: CartCountOutputTypeSelect | null } /** * CartCountOutputType without action */ export type CartCountOutputTypeCountCartItemsArgs = { where?: CartItemWhereInput } /** * Models */ /** * Model Account */ export type AggregateAccount = { _count: AccountCountAggregateOutputType | null _avg: AccountAvgAggregateOutputType | null _sum: AccountSumAggregateOutputType | null _min: AccountMinAggregateOutputType | null _max: AccountMaxAggregateOutputType | null } export type AccountAvgAggregateOutputType = { expires_at: number | null refresh_token_expires_in: number | null } export type AccountSumAggregateOutputType = { expires_at: number | null refresh_token_expires_in: number | null } export type AccountMinAggregateOutputType = { id: string | null userId: string | null type: string | null provider: string | null providerAccountId: string | null refresh_token: string | null access_token: string | null expires_at: number | null token_type: string | null scope: string | null id_token: string | null session_state: string | null refresh_token_expires_in: number | null } export type AccountMaxAggregateOutputType = { id: string | null userId: string | null type: string | null provider: string | null providerAccountId: string | null refresh_token: string | null access_token: string | null expires_at: number | null token_type: string | null scope: string | null id_token: string | null session_state: string | null refresh_token_expires_in: number | null } export type AccountCountAggregateOutputType = { id: number userId: number type: number provider: number providerAccountId: number refresh_token: number access_token: number expires_at: number token_type: number scope: number id_token: number session_state: number refresh_token_expires_in: number _all: number } export type AccountAvgAggregateInputType = { expires_at?: true refresh_token_expires_in?: true } export type AccountSumAggregateInputType = { expires_at?: true refresh_token_expires_in?: true } export type AccountMinAggregateInputType = { id?: true userId?: true type?: true provider?: true providerAccountId?: true refresh_token?: true access_token?: true expires_at?: true token_type?: true scope?: true id_token?: true session_state?: true refresh_token_expires_in?: true } export type AccountMaxAggregateInputType = { id?: true userId?: true type?: true provider?: true providerAccountId?: true refresh_token?: true access_token?: true expires_at?: true token_type?: true scope?: true id_token?: true session_state?: true refresh_token_expires_in?: true } export type AccountCountAggregateInputType = { id?: true userId?: true type?: true provider?: true providerAccountId?: true refresh_token?: true access_token?: true expires_at?: true token_type?: true scope?: true id_token?: true session_state?: true refresh_token_expires_in?: true _all?: true } export type AccountAggregateArgs = { /** * 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 average **/ _avg?: AccountAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AccountSumAggregateInputType /** * {@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 = { [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AccountGroupByArgs = { where?: AccountWhereInput orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[] by: AccountScalarFieldEnum[] | AccountScalarFieldEnum having?: AccountScalarWhereWithAggregatesInput take?: number skip?: number _count?: AccountCountAggregateInputType | true _avg?: AccountAvgAggregateInputType _sum?: AccountSumAggregateInputType _min?: AccountMinAggregateInputType _max?: AccountMaxAggregateInputType } export type AccountGroupByOutputType = { id: string userId: string type: string provider: string providerAccountId: string refresh_token: string | null access_token: string | null expires_at: number | null token_type: string | null scope: string | null id_token: string | null session_state: string | null refresh_token_expires_in: number | null _count: AccountCountAggregateOutputType | null _avg: AccountAvgAggregateOutputType | null _sum: AccountSumAggregateOutputType | null _min: AccountMinAggregateOutputType | null _max: AccountMaxAggregateOutputType | null } type GetAccountGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AccountSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean type?: boolean provider?: boolean providerAccountId?: boolean refresh_token?: boolean access_token?: boolean expires_at?: boolean token_type?: boolean scope?: boolean id_token?: boolean session_state?: boolean refresh_token_expires_in?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["account"]> export type AccountSelectScalar = { id?: boolean userId?: boolean type?: boolean provider?: boolean providerAccountId?: boolean refresh_token?: boolean access_token?: boolean expires_at?: boolean token_type?: boolean scope?: boolean id_token?: boolean session_state?: boolean refresh_token_expires_in?: boolean } export type AccountOmit = $Extensions.GetOmit<"id" | "userId" | "type" | "provider" | "providerAccountId" | "refresh_token" | "access_token" | "expires_at" | "token_type" | "scope" | "id_token" | "session_state" | "refresh_token_expires_in", ExtArgs["result"]["account"]> export type AccountInclude = { user?: boolean | UserDefaultArgs } export type $AccountPayload = { name: "Account" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string userId: string type: string provider: string providerAccountId: string refresh_token: string | null access_token: string | null expires_at: number | null token_type: string | null scope: string | null id_token: string | null session_state: string | null refresh_token_expires_in: number | null }, ExtArgs["result"]["account"]> composites: {} } type AccountGetPayload = $Result.GetResult type AccountCountArgs = Omit & { select?: AccountCountAggregateInputType | true } export interface AccountDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__AccountClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__AccountClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise /** * 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(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise /** * 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(args: SelectSubset>): Prisma.PrismaPromise /** * 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(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, 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( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : 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(args: Subset): Prisma.PrismaPromise> /** * 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>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AccountGroupByArgs['orderBy'] } : { orderBy?: AccountGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the Account model */ interface AccountFieldRefs { readonly id: FieldRef<"Account", 'String'> readonly userId: FieldRef<"Account", 'String'> readonly type: FieldRef<"Account", 'String'> readonly provider: FieldRef<"Account", 'String'> readonly providerAccountId: FieldRef<"Account", 'String'> readonly refresh_token: FieldRef<"Account", 'String'> readonly access_token: FieldRef<"Account", 'String'> readonly expires_at: FieldRef<"Account", 'Int'> readonly token_type: FieldRef<"Account", 'String'> readonly scope: FieldRef<"Account", 'String'> readonly id_token: FieldRef<"Account", 'String'> readonly session_state: FieldRef<"Account", 'String'> readonly refresh_token_expires_in: FieldRef<"Account", 'Int'> } // Custom InputTypes /** * Account findUnique */ export type AccountFindUniqueArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * Filter, which Account to fetch. */ where: AccountWhereUniqueInput } /** * Account findUniqueOrThrow */ export type AccountFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * Filter, which Account to fetch. */ where: AccountWhereUniqueInput } /** * Account findFirst */ export type AccountFindFirstArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | 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 = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | 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 = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | 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 = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * The data needed to create a Account. */ data: XOR } /** * Account createMany */ export type AccountCreateManyArgs = { /** * The data used to create many Accounts. */ data: AccountCreateManyInput | AccountCreateManyInput[] skipDuplicates?: boolean } /** * Account update */ export type AccountUpdateArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * The data needed to update a Account. */ data: XOR /** * Choose, which Account to update. */ where: AccountWhereUniqueInput } /** * Account updateMany */ export type AccountUpdateManyArgs = { /** * The data used to update Accounts. */ data: XOR /** * Filter which Accounts to update */ where?: AccountWhereInput /** * Limit how many Accounts to update. */ limit?: number } /** * Account upsert */ export type AccountUpsertArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | 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 /** * In case the Account was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Account delete */ export type AccountDeleteArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * Filter which Account to delete. */ where: AccountWhereUniqueInput } /** * Account deleteMany */ export type AccountDeleteManyArgs = { /** * Filter which Accounts to delete */ where?: AccountWhereInput /** * Limit how many Accounts to delete. */ limit?: number } /** * Account without action */ export type AccountDefaultArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null } /** * Model Session */ export type AggregateSession = { _count: SessionCountAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } export type SessionMinAggregateOutputType = { id: string | null sessionToken: string | null userId: string | null expires: Date | null } export type SessionMaxAggregateOutputType = { id: string | null sessionToken: string | null userId: string | null expires: Date | null } export type SessionCountAggregateOutputType = { id: number sessionToken: number userId: number expires: number _all: number } export type SessionMinAggregateInputType = { id?: true sessionToken?: true userId?: true expires?: true } export type SessionMaxAggregateInputType = { id?: true sessionToken?: true userId?: true expires?: true } export type SessionCountAggregateInputType = { id?: true sessionToken?: true userId?: true expires?: true _all?: true } export type SessionAggregateArgs = { /** * 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 = { [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SessionGroupByArgs = { 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 sessionToken: string userId: string expires: Date _count: SessionCountAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } type GetSessionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SessionSelect = $Extensions.GetSelect<{ id?: boolean sessionToken?: boolean userId?: boolean expires?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectScalar = { id?: boolean sessionToken?: boolean userId?: boolean expires?: boolean } export type SessionOmit = $Extensions.GetOmit<"id" | "sessionToken" | "userId" | "expires", ExtArgs["result"]["session"]> export type SessionInclude = { user?: boolean | UserDefaultArgs } export type $SessionPayload = { name: "Session" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string sessionToken: string userId: string expires: Date }, ExtArgs["result"]["session"]> composites: {} } type SessionGetPayload = $Result.GetResult type SessionCountArgs = Omit & { select?: SessionCountAggregateInputType | true } export interface SessionDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise /** * 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(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise /** * 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(args: SelectSubset>): Prisma.PrismaPromise /** * 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(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : 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(args: Subset): Prisma.PrismaPromise> /** * 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>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SessionGroupByArgs['orderBy'] } : { orderBy?: SessionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the Session model */ interface SessionFieldRefs { readonly id: FieldRef<"Session", 'String'> readonly sessionToken: FieldRef<"Session", 'String'> readonly userId: FieldRef<"Session", 'String'> readonly expires: FieldRef<"Session", 'DateTime'> } // Custom InputTypes /** * Session findUnique */ export type SessionFindUniqueArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where: SessionWhereUniqueInput } /** * Session findUniqueOrThrow */ export type SessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where: SessionWhereUniqueInput } /** * Session findFirst */ export type SessionFindFirstArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | 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 = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | 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 = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | 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 = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The data needed to create a Session. */ data: XOR } /** * Session createMany */ export type SessionCreateManyArgs = { /** * The data used to create many Sessions. */ data: SessionCreateManyInput | SessionCreateManyInput[] skipDuplicates?: boolean } /** * Session update */ export type SessionUpdateArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The data needed to update a Session. */ data: XOR /** * Choose, which Session to update. */ where: SessionWhereUniqueInput } /** * Session updateMany */ export type SessionUpdateManyArgs = { /** * The data used to update Sessions. */ data: XOR /** * Filter which Sessions to update */ where?: SessionWhereInput /** * Limit how many Sessions to update. */ limit?: number } /** * Session upsert */ export type SessionUpsertArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | 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 /** * In case the Session was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Session delete */ export type SessionDeleteArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter which Session to delete. */ where: SessionWhereUniqueInput } /** * Session deleteMany */ export type SessionDeleteManyArgs = { /** * Filter which Sessions to delete */ where?: SessionWhereInput /** * Limit how many Sessions to delete. */ limit?: number } /** * Session without action */ export type SessionDefaultArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null } /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserAvgAggregateOutputType = { balance: number | null } export type UserSumAggregateOutputType = { balance: number | null } export type UserMinAggregateOutputType = { id: string | null name: string | null email: string | null emailVerified: Date | null image: string | null balance: number | null } export type UserMaxAggregateOutputType = { id: string | null name: string | null email: string | null emailVerified: Date | null image: string | null balance: number | null } export type UserCountAggregateOutputType = { id: number name: number email: number emailVerified: number image: number balance: number _all: number } export type UserAvgAggregateInputType = { balance?: true } export type UserSumAggregateInputType = { balance?: true } export type UserMinAggregateInputType = { id?: true name?: true email?: true emailVerified?: true image?: true balance?: true } export type UserMaxAggregateInputType = { id?: true name?: true email?: true emailVerified?: true image?: true balance?: true } export type UserCountAggregateInputType = { id?: true name?: true email?: true emailVerified?: true image?: true balance?: true _all?: true } export type UserAggregateArgs = { /** * 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 average **/ _avg?: UserAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UserSumAggregateInputType /** * {@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 = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _avg?: UserAvgAggregateInputType _sum?: UserSumAggregateInputType _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: string name: string | null email: string | null emailVerified: Date | null image: string | null balance: number _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean email?: boolean emailVerified?: boolean image?: boolean balance?: boolean accounts?: boolean | User$accountsArgs sessions?: boolean | User$sessionsArgs shops?: boolean | User$shopsArgs carts?: boolean | User$cartsArgs adresses?: boolean | User$adressesArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean name?: boolean email?: boolean emailVerified?: boolean image?: boolean balance?: boolean } export type UserOmit = $Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "image" | "balance", ExtArgs["result"]["user"]> export type UserInclude = { accounts?: boolean | User$accountsArgs sessions?: boolean | User$sessionsArgs shops?: boolean | User$shopsArgs carts?: boolean | User$cartsArgs adresses?: boolean | User$adressesArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type $UserPayload = { name: "User" objects: { accounts: Prisma.$AccountPayload[] sessions: Prisma.$SessionPayload[] shops: Prisma.$ShopPayload[] carts: Prisma.$CartPayload[] adresses: Prisma.$AdressPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string name: string | null email: string | null emailVerified: Date | null image: string | null balance: number }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise /** * 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(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise /** * 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(args: SelectSubset>): Prisma.PrismaPromise /** * 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(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : 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(args: Subset): Prisma.PrismaPromise> /** * 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>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" accounts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> sessions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> shops = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> carts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> adresses = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * 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", 'DateTime'> readonly image: FieldRef<"User", 'String'> readonly balance: FieldRef<"User", 'Float'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | 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 = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | 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 = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | 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 = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data?: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | 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 /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput /** * Limit how many Users to delete. */ limit?: number } /** * User.accounts */ export type User$accountsArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null where?: AccountWhereInput orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] cursor?: AccountWhereUniqueInput take?: number skip?: number distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] } /** * User.sessions */ export type User$sessionsArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null where?: SessionWhereInput orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] cursor?: SessionWhereUniqueInput take?: number skip?: number distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * User.shops */ export type User$shopsArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null where?: ShopWhereInput orderBy?: ShopOrderByWithRelationInput | ShopOrderByWithRelationInput[] cursor?: ShopWhereUniqueInput take?: number skip?: number distinct?: ShopScalarFieldEnum | ShopScalarFieldEnum[] } /** * User.carts */ export type User$cartsArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null where?: CartWhereInput orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[] cursor?: CartWhereUniqueInput take?: number skip?: number distinct?: CartScalarFieldEnum | CartScalarFieldEnum[] } /** * User.adresses */ export type User$adressesArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null where?: AdressWhereInput orderBy?: AdressOrderByWithRelationInput | AdressOrderByWithRelationInput[] cursor?: AdressWhereUniqueInput take?: number skip?: number distinct?: AdressScalarFieldEnum | AdressScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model VerificationToken */ export type AggregateVerificationToken = { _count: VerificationTokenCountAggregateOutputType | null _min: VerificationTokenMinAggregateOutputType | null _max: VerificationTokenMaxAggregateOutputType | null } export type VerificationTokenMinAggregateOutputType = { identifier: string | null token: string | null expires: Date | null } export type VerificationTokenMaxAggregateOutputType = { identifier: string | null token: string | null expires: Date | null } export type VerificationTokenCountAggregateOutputType = { identifier: number token: number expires: number _all: number } export type VerificationTokenMinAggregateInputType = { identifier?: true token?: true expires?: true } export type VerificationTokenMaxAggregateInputType = { identifier?: true token?: true expires?: true } export type VerificationTokenCountAggregateInputType = { identifier?: true token?: true expires?: true _all?: true } export type VerificationTokenAggregateArgs = { /** * Filter which VerificationToken to aggregate. */ where?: VerificationTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of VerificationTokens to fetch. */ orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: VerificationTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` VerificationTokens 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` VerificationTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned VerificationTokens **/ _count?: true | VerificationTokenCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: VerificationTokenMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: VerificationTokenMaxAggregateInputType } export type GetVerificationTokenAggregateType = { [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type VerificationTokenGroupByArgs = { where?: VerificationTokenWhereInput orderBy?: VerificationTokenOrderByWithAggregationInput | VerificationTokenOrderByWithAggregationInput[] by: VerificationTokenScalarFieldEnum[] | VerificationTokenScalarFieldEnum having?: VerificationTokenScalarWhereWithAggregatesInput take?: number skip?: number _count?: VerificationTokenCountAggregateInputType | true _min?: VerificationTokenMinAggregateInputType _max?: VerificationTokenMaxAggregateInputType } export type VerificationTokenGroupByOutputType = { identifier: string token: string expires: Date _count: VerificationTokenCountAggregateOutputType | null _min: VerificationTokenMinAggregateOutputType | null _max: VerificationTokenMaxAggregateOutputType | null } type GetVerificationTokenGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type VerificationTokenSelect = $Extensions.GetSelect<{ identifier?: boolean token?: boolean expires?: boolean }, ExtArgs["result"]["verificationToken"]> export type VerificationTokenSelectScalar = { identifier?: boolean token?: boolean expires?: boolean } export type VerificationTokenOmit = $Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]> export type $VerificationTokenPayload = { name: "VerificationToken" objects: {} scalars: $Extensions.GetPayloadResult<{ identifier: string token: string expires: Date }, ExtArgs["result"]["verificationToken"]> composites: {} } type VerificationTokenGetPayload = $Result.GetResult type VerificationTokenCountArgs = Omit & { select?: VerificationTokenCountAggregateInputType | true } export interface VerificationTokenDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['VerificationToken'], meta: { name: 'VerificationToken' } } /** * Find zero or one VerificationToken that matches the filter. * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken * @example * // Get one VerificationToken * const verificationToken = await prisma.verificationToken.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken * @example * // Get one VerificationToken * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first VerificationToken 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 {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken * @example * // Get one VerificationToken * const verificationToken = await prisma.verificationToken.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first VerificationToken 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 {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken * @example * // Get one VerificationToken * const verificationToken = await prisma.verificationToken.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more VerificationTokens 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 {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all VerificationTokens * const verificationTokens = await prisma.verificationToken.findMany() * * // Get first 10 VerificationTokens * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 }) * * // Only select the `identifier` * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a VerificationToken. * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken. * @example * // Create one VerificationToken * const VerificationToken = await prisma.verificationToken.create({ * data: { * // ... data to create a VerificationToken * } * }) * */ create(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many VerificationTokens. * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens. * @example * // Create many VerificationTokens * const verificationToken = await prisma.verificationToken.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a VerificationToken. * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken. * @example * // Delete one VerificationToken * const VerificationToken = await prisma.verificationToken.delete({ * where: { * // ... filter to delete one VerificationToken * } * }) * */ delete(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one VerificationToken. * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken. * @example * // Update one VerificationToken * const verificationToken = await prisma.verificationToken.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more VerificationTokens. * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete. * @example * // Delete a few VerificationTokens * const { count } = await prisma.verificationToken.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more VerificationTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many VerificationTokens * const verificationToken = await prisma.verificationToken.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one VerificationToken. * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken. * @example * // Update or create a VerificationToken * const verificationToken = await prisma.verificationToken.upsert({ * create: { * // ... data to create a VerificationToken * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the VerificationToken we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of VerificationTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count. * @example * // Count the number of VerificationTokens * const count = await prisma.verificationToken.count({ * where: { * // ... the filter for the VerificationTokens we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a VerificationToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VerificationTokenAggregateArgs} 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(args: Subset): Prisma.PrismaPromise> /** * Group by VerificationToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VerificationTokenGroupByArgs} 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 VerificationTokenGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: VerificationTokenGroupByArgs['orderBy'] } : { orderBy?: VerificationTokenGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload : Prisma.PrismaPromise /** * Fields of the VerificationToken model */ readonly fields: VerificationTokenFieldRefs; } /** * The delegate class that acts as a "Promise-like" for VerificationToken. * 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__VerificationTokenClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the VerificationToken model */ interface VerificationTokenFieldRefs { readonly identifier: FieldRef<"VerificationToken", 'String'> readonly token: FieldRef<"VerificationToken", 'String'> readonly expires: FieldRef<"VerificationToken", 'DateTime'> } // Custom InputTypes /** * VerificationToken findUnique */ export type VerificationTokenFindUniqueArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null /** * Filter, which VerificationToken to fetch. */ where: VerificationTokenWhereUniqueInput } /** * VerificationToken findUniqueOrThrow */ export type VerificationTokenFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null /** * Filter, which VerificationToken to fetch. */ where: VerificationTokenWhereUniqueInput } /** * VerificationToken findFirst */ export type VerificationTokenFindFirstArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null /** * Filter, which VerificationToken to fetch. */ where?: VerificationTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of VerificationTokens to fetch. */ orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for VerificationTokens. */ cursor?: VerificationTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` VerificationTokens 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` VerificationTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of VerificationTokens. */ distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[] } /** * VerificationToken findFirstOrThrow */ export type VerificationTokenFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null /** * Filter, which VerificationToken to fetch. */ where?: VerificationTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of VerificationTokens to fetch. */ orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for VerificationTokens. */ cursor?: VerificationTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` VerificationTokens 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` VerificationTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of VerificationTokens. */ distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[] } /** * VerificationToken findMany */ export type VerificationTokenFindManyArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null /** * Filter, which VerificationTokens to fetch. */ where?: VerificationTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of VerificationTokens to fetch. */ orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing VerificationTokens. */ cursor?: VerificationTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` VerificationTokens 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` VerificationTokens. */ skip?: number distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[] } /** * VerificationToken create */ export type VerificationTokenCreateArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null /** * The data needed to create a VerificationToken. */ data: XOR } /** * VerificationToken createMany */ export type VerificationTokenCreateManyArgs = { /** * The data used to create many VerificationTokens. */ data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[] skipDuplicates?: boolean } /** * VerificationToken update */ export type VerificationTokenUpdateArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null /** * The data needed to update a VerificationToken. */ data: XOR /** * Choose, which VerificationToken to update. */ where: VerificationTokenWhereUniqueInput } /** * VerificationToken updateMany */ export type VerificationTokenUpdateManyArgs = { /** * The data used to update VerificationTokens. */ data: XOR /** * Filter which VerificationTokens to update */ where?: VerificationTokenWhereInput /** * Limit how many VerificationTokens to update. */ limit?: number } /** * VerificationToken upsert */ export type VerificationTokenUpsertArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null /** * The filter to search for the VerificationToken to update in case it exists. */ where: VerificationTokenWhereUniqueInput /** * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data. */ create: XOR /** * In case the VerificationToken was found with the provided `where` argument, update it with this data. */ update: XOR } /** * VerificationToken delete */ export type VerificationTokenDeleteArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null /** * Filter which VerificationToken to delete. */ where: VerificationTokenWhereUniqueInput } /** * VerificationToken deleteMany */ export type VerificationTokenDeleteManyArgs = { /** * Filter which VerificationTokens to delete */ where?: VerificationTokenWhereInput /** * Limit how many VerificationTokens to delete. */ limit?: number } /** * VerificationToken without action */ export type VerificationTokenDefaultArgs = { /** * Select specific fields to fetch from the VerificationToken */ select?: VerificationTokenSelect | null /** * Omit specific fields from the VerificationToken */ omit?: VerificationTokenOmit | null } /** * Model Shop */ export type AggregateShop = { _count: ShopCountAggregateOutputType | null _avg: ShopAvgAggregateOutputType | null _sum: ShopSumAggregateOutputType | null _min: ShopMinAggregateOutputType | null _max: ShopMaxAggregateOutputType | null } export type ShopAvgAggregateOutputType = { id: number | null } export type ShopSumAggregateOutputType = { id: number | null } export type ShopMinAggregateOutputType = { id: number | null userId: string | null label: string | null } export type ShopMaxAggregateOutputType = { id: number | null userId: string | null label: string | null } export type ShopCountAggregateOutputType = { id: number userId: number label: number _all: number } export type ShopAvgAggregateInputType = { id?: true } export type ShopSumAggregateInputType = { id?: true } export type ShopMinAggregateInputType = { id?: true userId?: true label?: true } export type ShopMaxAggregateInputType = { id?: true userId?: true label?: true } export type ShopCountAggregateInputType = { id?: true userId?: true label?: true _all?: true } export type ShopAggregateArgs = { /** * Filter which Shop to aggregate. */ where?: ShopWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Shops to fetch. */ orderBy?: ShopOrderByWithRelationInput | ShopOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ShopWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Shops 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` Shops. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Shops **/ _count?: true | ShopCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ShopAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ShopSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ShopMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ShopMaxAggregateInputType } export type GetShopAggregateType = { [P in keyof T & keyof AggregateShop]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ShopGroupByArgs = { where?: ShopWhereInput orderBy?: ShopOrderByWithAggregationInput | ShopOrderByWithAggregationInput[] by: ShopScalarFieldEnum[] | ShopScalarFieldEnum having?: ShopScalarWhereWithAggregatesInput take?: number skip?: number _count?: ShopCountAggregateInputType | true _avg?: ShopAvgAggregateInputType _sum?: ShopSumAggregateInputType _min?: ShopMinAggregateInputType _max?: ShopMaxAggregateInputType } export type ShopGroupByOutputType = { id: number userId: string label: string _count: ShopCountAggregateOutputType | null _avg: ShopAvgAggregateOutputType | null _sum: ShopSumAggregateOutputType | null _min: ShopMinAggregateOutputType | null _max: ShopMaxAggregateOutputType | null } type GetShopGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ShopGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ShopSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean label?: boolean user?: boolean | UserDefaultArgs items?: boolean | Shop$itemsArgs sellables?: boolean | Shop$sellablesArgs _count?: boolean | ShopCountOutputTypeDefaultArgs }, ExtArgs["result"]["shop"]> export type ShopSelectScalar = { id?: boolean userId?: boolean label?: boolean } export type ShopOmit = $Extensions.GetOmit<"id" | "userId" | "label", ExtArgs["result"]["shop"]> export type ShopInclude = { user?: boolean | UserDefaultArgs items?: boolean | Shop$itemsArgs sellables?: boolean | Shop$sellablesArgs _count?: boolean | ShopCountOutputTypeDefaultArgs } export type $ShopPayload = { name: "Shop" objects: { user: Prisma.$UserPayload items: Prisma.$ItemPayload[] sellables: Prisma.$SellablePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number userId: string label: string }, ExtArgs["result"]["shop"]> composites: {} } type ShopGetPayload = $Result.GetResult type ShopCountArgs = Omit & { select?: ShopCountAggregateInputType | true } export interface ShopDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Shop'], meta: { name: 'Shop' } } /** * Find zero or one Shop that matches the filter. * @param {ShopFindUniqueArgs} args - Arguments to find a Shop * @example * // Get one Shop * const shop = await prisma.shop.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ShopClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Shop that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ShopFindUniqueOrThrowArgs} args - Arguments to find a Shop * @example * // Get one Shop * const shop = await prisma.shop.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ShopClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Shop 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 {ShopFindFirstArgs} args - Arguments to find a Shop * @example * // Get one Shop * const shop = await prisma.shop.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ShopClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Shop 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 {ShopFindFirstOrThrowArgs} args - Arguments to find a Shop * @example * // Get one Shop * const shop = await prisma.shop.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ShopClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Shops 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 {ShopFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Shops * const shops = await prisma.shop.findMany() * * // Get first 10 Shops * const shops = await prisma.shop.findMany({ take: 10 }) * * // Only select the `id` * const shopWithIdOnly = await prisma.shop.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Shop. * @param {ShopCreateArgs} args - Arguments to create a Shop. * @example * // Create one Shop * const Shop = await prisma.shop.create({ * data: { * // ... data to create a Shop * } * }) * */ create(args: SelectSubset>): Prisma__ShopClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Shops. * @param {ShopCreateManyArgs} args - Arguments to create many Shops. * @example * // Create many Shops * const shop = await prisma.shop.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Shop. * @param {ShopDeleteArgs} args - Arguments to delete one Shop. * @example * // Delete one Shop * const Shop = await prisma.shop.delete({ * where: { * // ... filter to delete one Shop * } * }) * */ delete(args: SelectSubset>): Prisma__ShopClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Shop. * @param {ShopUpdateArgs} args - Arguments to update one Shop. * @example * // Update one Shop * const shop = await prisma.shop.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ShopClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Shops. * @param {ShopDeleteManyArgs} args - Arguments to filter Shops to delete. * @example * // Delete a few Shops * const { count } = await prisma.shop.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Shops. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShopUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Shops * const shop = await prisma.shop.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Shop. * @param {ShopUpsertArgs} args - Arguments to update or create a Shop. * @example * // Update or create a Shop * const shop = await prisma.shop.upsert({ * create: { * // ... data to create a Shop * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Shop we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ShopClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Shops. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShopCountArgs} args - Arguments to filter Shops to count. * @example * // Count the number of Shops * const count = await prisma.shop.count({ * where: { * // ... the filter for the Shops we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Shop. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShopAggregateArgs} 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(args: Subset): Prisma.PrismaPromise> /** * Group by Shop. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShopGroupByArgs} 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 ShopGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ShopGroupByArgs['orderBy'] } : { orderBy?: ShopGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetShopGroupByPayload : Prisma.PrismaPromise /** * Fields of the Shop model */ readonly fields: ShopFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Shop. * 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__ShopClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> items = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> sellables = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the Shop model */ interface ShopFieldRefs { readonly id: FieldRef<"Shop", 'Int'> readonly userId: FieldRef<"Shop", 'String'> readonly label: FieldRef<"Shop", 'String'> } // Custom InputTypes /** * Shop findUnique */ export type ShopFindUniqueArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null /** * Filter, which Shop to fetch. */ where: ShopWhereUniqueInput } /** * Shop findUniqueOrThrow */ export type ShopFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null /** * Filter, which Shop to fetch. */ where: ShopWhereUniqueInput } /** * Shop findFirst */ export type ShopFindFirstArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null /** * Filter, which Shop to fetch. */ where?: ShopWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Shops to fetch. */ orderBy?: ShopOrderByWithRelationInput | ShopOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Shops. */ cursor?: ShopWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Shops 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` Shops. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Shops. */ distinct?: ShopScalarFieldEnum | ShopScalarFieldEnum[] } /** * Shop findFirstOrThrow */ export type ShopFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null /** * Filter, which Shop to fetch. */ where?: ShopWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Shops to fetch. */ orderBy?: ShopOrderByWithRelationInput | ShopOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Shops. */ cursor?: ShopWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Shops 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` Shops. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Shops. */ distinct?: ShopScalarFieldEnum | ShopScalarFieldEnum[] } /** * Shop findMany */ export type ShopFindManyArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null /** * Filter, which Shops to fetch. */ where?: ShopWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Shops to fetch. */ orderBy?: ShopOrderByWithRelationInput | ShopOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Shops. */ cursor?: ShopWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Shops 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` Shops. */ skip?: number distinct?: ShopScalarFieldEnum | ShopScalarFieldEnum[] } /** * Shop create */ export type ShopCreateArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null /** * The data needed to create a Shop. */ data: XOR } /** * Shop createMany */ export type ShopCreateManyArgs = { /** * The data used to create many Shops. */ data: ShopCreateManyInput | ShopCreateManyInput[] skipDuplicates?: boolean } /** * Shop update */ export type ShopUpdateArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null /** * The data needed to update a Shop. */ data: XOR /** * Choose, which Shop to update. */ where: ShopWhereUniqueInput } /** * Shop updateMany */ export type ShopUpdateManyArgs = { /** * The data used to update Shops. */ data: XOR /** * Filter which Shops to update */ where?: ShopWhereInput /** * Limit how many Shops to update. */ limit?: number } /** * Shop upsert */ export type ShopUpsertArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null /** * The filter to search for the Shop to update in case it exists. */ where: ShopWhereUniqueInput /** * In case the Shop found by the `where` argument doesn't exist, create a new Shop with this data. */ create: XOR /** * In case the Shop was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Shop delete */ export type ShopDeleteArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null /** * Filter which Shop to delete. */ where: ShopWhereUniqueInput } /** * Shop deleteMany */ export type ShopDeleteManyArgs = { /** * Filter which Shops to delete */ where?: ShopWhereInput /** * Limit how many Shops to delete. */ limit?: number } /** * Shop.items */ export type Shop$itemsArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null where?: ItemWhereInput orderBy?: ItemOrderByWithRelationInput | ItemOrderByWithRelationInput[] cursor?: ItemWhereUniqueInput take?: number skip?: number distinct?: ItemScalarFieldEnum | ItemScalarFieldEnum[] } /** * Shop.sellables */ export type Shop$sellablesArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null where?: SellableWhereInput orderBy?: SellableOrderByWithRelationInput | SellableOrderByWithRelationInput[] cursor?: SellableWhereUniqueInput take?: number skip?: number distinct?: SellableScalarFieldEnum | SellableScalarFieldEnum[] } /** * Shop without action */ export type ShopDefaultArgs = { /** * Select specific fields to fetch from the Shop */ select?: ShopSelect | null /** * Omit specific fields from the Shop */ omit?: ShopOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShopInclude | null } /** * Model Item */ export type AggregateItem = { _count: ItemCountAggregateOutputType | null _avg: ItemAvgAggregateOutputType | null _sum: ItemSumAggregateOutputType | null _min: ItemMinAggregateOutputType | null _max: ItemMaxAggregateOutputType | null } export type ItemAvgAggregateOutputType = { stock: number | null shopId: number | null } export type ItemSumAggregateOutputType = { stock: number | null shopId: number | null } export type ItemMinAggregateOutputType = { item_name: string | null stock: number | null shopId: number | null } export type ItemMaxAggregateOutputType = { item_name: string | null stock: number | null shopId: number | null } export type ItemCountAggregateOutputType = { item_name: number stock: number shopId: number _all: number } export type ItemAvgAggregateInputType = { stock?: true shopId?: true } export type ItemSumAggregateInputType = { stock?: true shopId?: true } export type ItemMinAggregateInputType = { item_name?: true stock?: true shopId?: true } export type ItemMaxAggregateInputType = { item_name?: true stock?: true shopId?: true } export type ItemCountAggregateInputType = { item_name?: true stock?: true shopId?: true _all?: true } export type ItemAggregateArgs = { /** * Filter which Item to aggregate. */ where?: ItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Items to fetch. */ orderBy?: ItemOrderByWithRelationInput | ItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Items 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` Items. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Items **/ _count?: true | ItemCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ItemAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ItemSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ItemMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ItemMaxAggregateInputType } export type GetItemAggregateType = { [P in keyof T & keyof AggregateItem]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ItemGroupByArgs = { where?: ItemWhereInput orderBy?: ItemOrderByWithAggregationInput | ItemOrderByWithAggregationInput[] by: ItemScalarFieldEnum[] | ItemScalarFieldEnum having?: ItemScalarWhereWithAggregatesInput take?: number skip?: number _count?: ItemCountAggregateInputType | true _avg?: ItemAvgAggregateInputType _sum?: ItemSumAggregateInputType _min?: ItemMinAggregateInputType _max?: ItemMaxAggregateInputType } export type ItemGroupByOutputType = { item_name: string stock: number shopId: number _count: ItemCountAggregateOutputType | null _avg: ItemAvgAggregateOutputType | null _sum: ItemSumAggregateOutputType | null _min: ItemMinAggregateOutputType | null _max: ItemMaxAggregateOutputType | null } type GetItemGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ItemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ItemSelect = $Extensions.GetSelect<{ item_name?: boolean stock?: boolean shopId?: boolean shop?: boolean | ShopDefaultArgs sellables?: boolean | Item$sellablesArgs _count?: boolean | ItemCountOutputTypeDefaultArgs }, ExtArgs["result"]["item"]> export type ItemSelectScalar = { item_name?: boolean stock?: boolean shopId?: boolean } export type ItemOmit = $Extensions.GetOmit<"item_name" | "stock" | "shopId", ExtArgs["result"]["item"]> export type ItemInclude = { shop?: boolean | ShopDefaultArgs sellables?: boolean | Item$sellablesArgs _count?: boolean | ItemCountOutputTypeDefaultArgs } export type $ItemPayload = { name: "Item" objects: { shop: Prisma.$ShopPayload sellables: Prisma.$SellablePayload[] } scalars: $Extensions.GetPayloadResult<{ item_name: string stock: number shopId: number }, ExtArgs["result"]["item"]> composites: {} } type ItemGetPayload = $Result.GetResult type ItemCountArgs = Omit & { select?: ItemCountAggregateInputType | true } export interface ItemDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Item'], meta: { name: 'Item' } } /** * Find zero or one Item that matches the filter. * @param {ItemFindUniqueArgs} args - Arguments to find a Item * @example * // Get one Item * const item = await prisma.item.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ItemClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Item that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ItemFindUniqueOrThrowArgs} args - Arguments to find a Item * @example * // Get one Item * const item = await prisma.item.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ItemClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Item 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 {ItemFindFirstArgs} args - Arguments to find a Item * @example * // Get one Item * const item = await prisma.item.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ItemClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Item 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 {ItemFindFirstOrThrowArgs} args - Arguments to find a Item * @example * // Get one Item * const item = await prisma.item.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ItemClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Items 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 {ItemFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Items * const items = await prisma.item.findMany() * * // Get first 10 Items * const items = await prisma.item.findMany({ take: 10 }) * * // Only select the `item_name` * const itemWithItem_nameOnly = await prisma.item.findMany({ select: { item_name: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Item. * @param {ItemCreateArgs} args - Arguments to create a Item. * @example * // Create one Item * const Item = await prisma.item.create({ * data: { * // ... data to create a Item * } * }) * */ create(args: SelectSubset>): Prisma__ItemClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Items. * @param {ItemCreateManyArgs} args - Arguments to create many Items. * @example * // Create many Items * const item = await prisma.item.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Item. * @param {ItemDeleteArgs} args - Arguments to delete one Item. * @example * // Delete one Item * const Item = await prisma.item.delete({ * where: { * // ... filter to delete one Item * } * }) * */ delete(args: SelectSubset>): Prisma__ItemClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Item. * @param {ItemUpdateArgs} args - Arguments to update one Item. * @example * // Update one Item * const item = await prisma.item.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ItemClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Items. * @param {ItemDeleteManyArgs} args - Arguments to filter Items to delete. * @example * // Delete a few Items * const { count } = await prisma.item.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Items. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ItemUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Items * const item = await prisma.item.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Item. * @param {ItemUpsertArgs} args - Arguments to update or create a Item. * @example * // Update or create a Item * const item = await prisma.item.upsert({ * create: { * // ... data to create a Item * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Item we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ItemClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Items. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ItemCountArgs} args - Arguments to filter Items to count. * @example * // Count the number of Items * const count = await prisma.item.count({ * where: { * // ... the filter for the Items we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Item. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ItemAggregateArgs} 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(args: Subset): Prisma.PrismaPromise> /** * Group by Item. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ItemGroupByArgs} 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 ItemGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ItemGroupByArgs['orderBy'] } : { orderBy?: ItemGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetItemGroupByPayload : Prisma.PrismaPromise /** * Fields of the Item model */ readonly fields: ItemFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Item. * 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__ItemClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" shop = {}>(args?: Subset>): Prisma__ShopClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> sellables = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the Item model */ interface ItemFieldRefs { readonly item_name: FieldRef<"Item", 'String'> readonly stock: FieldRef<"Item", 'Int'> readonly shopId: FieldRef<"Item", 'Int'> } // Custom InputTypes /** * Item findUnique */ export type ItemFindUniqueArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null /** * Filter, which Item to fetch. */ where: ItemWhereUniqueInput } /** * Item findUniqueOrThrow */ export type ItemFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null /** * Filter, which Item to fetch. */ where: ItemWhereUniqueInput } /** * Item findFirst */ export type ItemFindFirstArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null /** * Filter, which Item to fetch. */ where?: ItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Items to fetch. */ orderBy?: ItemOrderByWithRelationInput | ItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Items. */ cursor?: ItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Items 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` Items. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Items. */ distinct?: ItemScalarFieldEnum | ItemScalarFieldEnum[] } /** * Item findFirstOrThrow */ export type ItemFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null /** * Filter, which Item to fetch. */ where?: ItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Items to fetch. */ orderBy?: ItemOrderByWithRelationInput | ItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Items. */ cursor?: ItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Items 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` Items. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Items. */ distinct?: ItemScalarFieldEnum | ItemScalarFieldEnum[] } /** * Item findMany */ export type ItemFindManyArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null /** * Filter, which Items to fetch. */ where?: ItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Items to fetch. */ orderBy?: ItemOrderByWithRelationInput | ItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Items. */ cursor?: ItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Items 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` Items. */ skip?: number distinct?: ItemScalarFieldEnum | ItemScalarFieldEnum[] } /** * Item create */ export type ItemCreateArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null /** * The data needed to create a Item. */ data: XOR } /** * Item createMany */ export type ItemCreateManyArgs = { /** * The data used to create many Items. */ data: ItemCreateManyInput | ItemCreateManyInput[] skipDuplicates?: boolean } /** * Item update */ export type ItemUpdateArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null /** * The data needed to update a Item. */ data: XOR /** * Choose, which Item to update. */ where: ItemWhereUniqueInput } /** * Item updateMany */ export type ItemUpdateManyArgs = { /** * The data used to update Items. */ data: XOR /** * Filter which Items to update */ where?: ItemWhereInput /** * Limit how many Items to update. */ limit?: number } /** * Item upsert */ export type ItemUpsertArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null /** * The filter to search for the Item to update in case it exists. */ where: ItemWhereUniqueInput /** * In case the Item found by the `where` argument doesn't exist, create a new Item with this data. */ create: XOR /** * In case the Item was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Item delete */ export type ItemDeleteArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null /** * Filter which Item to delete. */ where: ItemWhereUniqueInput } /** * Item deleteMany */ export type ItemDeleteManyArgs = { /** * Filter which Items to delete */ where?: ItemWhereInput /** * Limit how many Items to delete. */ limit?: number } /** * Item.sellables */ export type Item$sellablesArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null where?: SellableWhereInput orderBy?: SellableOrderByWithRelationInput | SellableOrderByWithRelationInput[] cursor?: SellableWhereUniqueInput take?: number skip?: number distinct?: SellableScalarFieldEnum | SellableScalarFieldEnum[] } /** * Item without action */ export type ItemDefaultArgs = { /** * Select specific fields to fetch from the Item */ select?: ItemSelect | null /** * Omit specific fields from the Item */ omit?: ItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: ItemInclude | null } /** * Model Sellable */ export type AggregateSellable = { _count: SellableCountAggregateOutputType | null _avg: SellableAvgAggregateOutputType | null _sum: SellableSumAggregateOutputType | null _min: SellableMinAggregateOutputType | null _max: SellableMaxAggregateOutputType | null } export type SellableAvgAggregateOutputType = { amount: number | null price: number | null shopId: number | null } export type SellableSumAggregateOutputType = { amount: number | null price: number | null shopId: number | null } export type SellableMinAggregateOutputType = { id: string | null item_name: string | null amount: number | null price: number | null shopId: number | null enabled: boolean | null } export type SellableMaxAggregateOutputType = { id: string | null item_name: string | null amount: number | null price: number | null shopId: number | null enabled: boolean | null } export type SellableCountAggregateOutputType = { id: number item_name: number amount: number price: number shopId: number enabled: number _all: number } export type SellableAvgAggregateInputType = { amount?: true price?: true shopId?: true } export type SellableSumAggregateInputType = { amount?: true price?: true shopId?: true } export type SellableMinAggregateInputType = { id?: true item_name?: true amount?: true price?: true shopId?: true enabled?: true } export type SellableMaxAggregateInputType = { id?: true item_name?: true amount?: true price?: true shopId?: true enabled?: true } export type SellableCountAggregateInputType = { id?: true item_name?: true amount?: true price?: true shopId?: true enabled?: true _all?: true } export type SellableAggregateArgs = { /** * Filter which Sellable to aggregate. */ where?: SellableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sellables to fetch. */ orderBy?: SellableOrderByWithRelationInput | SellableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SellableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sellables 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` Sellables. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Sellables **/ _count?: true | SellableCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SellableAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SellableSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SellableMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SellableMaxAggregateInputType } export type GetSellableAggregateType = { [P in keyof T & keyof AggregateSellable]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SellableGroupByArgs = { where?: SellableWhereInput orderBy?: SellableOrderByWithAggregationInput | SellableOrderByWithAggregationInput[] by: SellableScalarFieldEnum[] | SellableScalarFieldEnum having?: SellableScalarWhereWithAggregatesInput take?: number skip?: number _count?: SellableCountAggregateInputType | true _avg?: SellableAvgAggregateInputType _sum?: SellableSumAggregateInputType _min?: SellableMinAggregateInputType _max?: SellableMaxAggregateInputType } export type SellableGroupByOutputType = { id: string item_name: string amount: number price: number shopId: number enabled: boolean _count: SellableCountAggregateOutputType | null _avg: SellableAvgAggregateOutputType | null _sum: SellableSumAggregateOutputType | null _min: SellableMinAggregateOutputType | null _max: SellableMaxAggregateOutputType | null } type GetSellableGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SellableGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SellableSelect = $Extensions.GetSelect<{ id?: boolean item_name?: boolean amount?: boolean price?: boolean shopId?: boolean enabled?: boolean shop?: boolean | ShopDefaultArgs item?: boolean | ItemDefaultArgs cartItems?: boolean | Sellable$cartItemsArgs _count?: boolean | SellableCountOutputTypeDefaultArgs }, ExtArgs["result"]["sellable"]> export type SellableSelectScalar = { id?: boolean item_name?: boolean amount?: boolean price?: boolean shopId?: boolean enabled?: boolean } export type SellableOmit = $Extensions.GetOmit<"id" | "item_name" | "amount" | "price" | "shopId" | "enabled", ExtArgs["result"]["sellable"]> export type SellableInclude = { shop?: boolean | ShopDefaultArgs item?: boolean | ItemDefaultArgs cartItems?: boolean | Sellable$cartItemsArgs _count?: boolean | SellableCountOutputTypeDefaultArgs } export type $SellablePayload = { name: "Sellable" objects: { shop: Prisma.$ShopPayload item: Prisma.$ItemPayload cartItems: Prisma.$CartItemPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string item_name: string amount: number price: number shopId: number enabled: boolean }, ExtArgs["result"]["sellable"]> composites: {} } type SellableGetPayload = $Result.GetResult type SellableCountArgs = Omit & { select?: SellableCountAggregateInputType | true } export interface SellableDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Sellable'], meta: { name: 'Sellable' } } /** * Find zero or one Sellable that matches the filter. * @param {SellableFindUniqueArgs} args - Arguments to find a Sellable * @example * // Get one Sellable * const sellable = await prisma.sellable.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SellableClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Sellable that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SellableFindUniqueOrThrowArgs} args - Arguments to find a Sellable * @example * // Get one Sellable * const sellable = await prisma.sellable.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SellableClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Sellable 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 {SellableFindFirstArgs} args - Arguments to find a Sellable * @example * // Get one Sellable * const sellable = await prisma.sellable.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SellableClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Sellable 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 {SellableFindFirstOrThrowArgs} args - Arguments to find a Sellable * @example * // Get one Sellable * const sellable = await prisma.sellable.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SellableClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Sellables 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 {SellableFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sellables * const sellables = await prisma.sellable.findMany() * * // Get first 10 Sellables * const sellables = await prisma.sellable.findMany({ take: 10 }) * * // Only select the `id` * const sellableWithIdOnly = await prisma.sellable.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Sellable. * @param {SellableCreateArgs} args - Arguments to create a Sellable. * @example * // Create one Sellable * const Sellable = await prisma.sellable.create({ * data: { * // ... data to create a Sellable * } * }) * */ create(args: SelectSubset>): Prisma__SellableClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Sellables. * @param {SellableCreateManyArgs} args - Arguments to create many Sellables. * @example * // Create many Sellables * const sellable = await prisma.sellable.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Sellable. * @param {SellableDeleteArgs} args - Arguments to delete one Sellable. * @example * // Delete one Sellable * const Sellable = await prisma.sellable.delete({ * where: { * // ... filter to delete one Sellable * } * }) * */ delete(args: SelectSubset>): Prisma__SellableClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Sellable. * @param {SellableUpdateArgs} args - Arguments to update one Sellable. * @example * // Update one Sellable * const sellable = await prisma.sellable.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SellableClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Sellables. * @param {SellableDeleteManyArgs} args - Arguments to filter Sellables to delete. * @example * // Delete a few Sellables * const { count } = await prisma.sellable.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sellables. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SellableUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sellables * const sellable = await prisma.sellable.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Sellable. * @param {SellableUpsertArgs} args - Arguments to update or create a Sellable. * @example * // Update or create a Sellable * const sellable = await prisma.sellable.upsert({ * create: { * // ... data to create a Sellable * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Sellable we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SellableClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Sellables. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SellableCountArgs} args - Arguments to filter Sellables to count. * @example * // Count the number of Sellables * const count = await prisma.sellable.count({ * where: { * // ... the filter for the Sellables we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Sellable. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SellableAggregateArgs} 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(args: Subset): Prisma.PrismaPromise> /** * Group by Sellable. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SellableGroupByArgs} 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 SellableGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SellableGroupByArgs['orderBy'] } : { orderBy?: SellableGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetSellableGroupByPayload : Prisma.PrismaPromise /** * Fields of the Sellable model */ readonly fields: SellableFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Sellable. * 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__SellableClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" shop = {}>(args?: Subset>): Prisma__ShopClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> item = {}>(args?: Subset>): Prisma__ItemClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> cartItems = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the Sellable model */ interface SellableFieldRefs { readonly id: FieldRef<"Sellable", 'String'> readonly item_name: FieldRef<"Sellable", 'String'> readonly amount: FieldRef<"Sellable", 'Int'> readonly price: FieldRef<"Sellable", 'Float'> readonly shopId: FieldRef<"Sellable", 'Int'> readonly enabled: FieldRef<"Sellable", 'Boolean'> } // Custom InputTypes /** * Sellable findUnique */ export type SellableFindUniqueArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null /** * Filter, which Sellable to fetch. */ where: SellableWhereUniqueInput } /** * Sellable findUniqueOrThrow */ export type SellableFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null /** * Filter, which Sellable to fetch. */ where: SellableWhereUniqueInput } /** * Sellable findFirst */ export type SellableFindFirstArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null /** * Filter, which Sellable to fetch. */ where?: SellableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sellables to fetch. */ orderBy?: SellableOrderByWithRelationInput | SellableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sellables. */ cursor?: SellableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sellables 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` Sellables. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sellables. */ distinct?: SellableScalarFieldEnum | SellableScalarFieldEnum[] } /** * Sellable findFirstOrThrow */ export type SellableFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null /** * Filter, which Sellable to fetch. */ where?: SellableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sellables to fetch. */ orderBy?: SellableOrderByWithRelationInput | SellableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sellables. */ cursor?: SellableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sellables 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` Sellables. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sellables. */ distinct?: SellableScalarFieldEnum | SellableScalarFieldEnum[] } /** * Sellable findMany */ export type SellableFindManyArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null /** * Filter, which Sellables to fetch. */ where?: SellableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sellables to fetch. */ orderBy?: SellableOrderByWithRelationInput | SellableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Sellables. */ cursor?: SellableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sellables 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` Sellables. */ skip?: number distinct?: SellableScalarFieldEnum | SellableScalarFieldEnum[] } /** * Sellable create */ export type SellableCreateArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null /** * The data needed to create a Sellable. */ data: XOR } /** * Sellable createMany */ export type SellableCreateManyArgs = { /** * The data used to create many Sellables. */ data: SellableCreateManyInput | SellableCreateManyInput[] skipDuplicates?: boolean } /** * Sellable update */ export type SellableUpdateArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null /** * The data needed to update a Sellable. */ data: XOR /** * Choose, which Sellable to update. */ where: SellableWhereUniqueInput } /** * Sellable updateMany */ export type SellableUpdateManyArgs = { /** * The data used to update Sellables. */ data: XOR /** * Filter which Sellables to update */ where?: SellableWhereInput /** * Limit how many Sellables to update. */ limit?: number } /** * Sellable upsert */ export type SellableUpsertArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null /** * The filter to search for the Sellable to update in case it exists. */ where: SellableWhereUniqueInput /** * In case the Sellable found by the `where` argument doesn't exist, create a new Sellable with this data. */ create: XOR /** * In case the Sellable was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Sellable delete */ export type SellableDeleteArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null /** * Filter which Sellable to delete. */ where: SellableWhereUniqueInput } /** * Sellable deleteMany */ export type SellableDeleteManyArgs = { /** * Filter which Sellables to delete */ where?: SellableWhereInput /** * Limit how many Sellables to delete. */ limit?: number } /** * Sellable.cartItems */ export type Sellable$cartItemsArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null where?: CartItemWhereInput orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] cursor?: CartItemWhereUniqueInput take?: number skip?: number distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] } /** * Sellable without action */ export type SellableDefaultArgs = { /** * Select specific fields to fetch from the Sellable */ select?: SellableSelect | null /** * Omit specific fields from the Sellable */ omit?: SellableOmit | null /** * Choose, which related nodes to fetch as well */ include?: SellableInclude | null } /** * Model Cart */ export type AggregateCart = { _count: CartCountAggregateOutputType | null _min: CartMinAggregateOutputType | null _max: CartMaxAggregateOutputType | null } export type CartMinAggregateOutputType = { userId: string | null } export type CartMaxAggregateOutputType = { userId: string | null } export type CartCountAggregateOutputType = { userId: number _all: number } export type CartMinAggregateInputType = { userId?: true } export type CartMaxAggregateInputType = { userId?: true } export type CartCountAggregateInputType = { userId?: true _all?: true } export type CartAggregateArgs = { /** * Filter which Cart to aggregate. */ where?: CartWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Carts to fetch. */ orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CartWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Carts 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` Carts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Carts **/ _count?: true | CartCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CartMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CartMaxAggregateInputType } export type GetCartAggregateType = { [P in keyof T & keyof AggregateCart]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CartGroupByArgs = { where?: CartWhereInput orderBy?: CartOrderByWithAggregationInput | CartOrderByWithAggregationInput[] by: CartScalarFieldEnum[] | CartScalarFieldEnum having?: CartScalarWhereWithAggregatesInput take?: number skip?: number _count?: CartCountAggregateInputType | true _min?: CartMinAggregateInputType _max?: CartMaxAggregateInputType } export type CartGroupByOutputType = { userId: string _count: CartCountAggregateOutputType | null _min: CartMinAggregateOutputType | null _max: CartMaxAggregateOutputType | null } type GetCartGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CartGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CartSelect = $Extensions.GetSelect<{ userId?: boolean user?: boolean | UserDefaultArgs cartItems?: boolean | Cart$cartItemsArgs _count?: boolean | CartCountOutputTypeDefaultArgs }, ExtArgs["result"]["cart"]> export type CartSelectScalar = { userId?: boolean } export type CartOmit = $Extensions.GetOmit<"userId", ExtArgs["result"]["cart"]> export type CartInclude = { user?: boolean | UserDefaultArgs cartItems?: boolean | Cart$cartItemsArgs _count?: boolean | CartCountOutputTypeDefaultArgs } export type $CartPayload = { name: "Cart" objects: { user: Prisma.$UserPayload cartItems: Prisma.$CartItemPayload[] } scalars: $Extensions.GetPayloadResult<{ userId: string }, ExtArgs["result"]["cart"]> composites: {} } type CartGetPayload = $Result.GetResult type CartCountArgs = Omit & { select?: CartCountAggregateInputType | true } export interface CartDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Cart'], meta: { name: 'Cart' } } /** * Find zero or one Cart that matches the filter. * @param {CartFindUniqueArgs} args - Arguments to find a Cart * @example * // Get one Cart * const cart = await prisma.cart.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Cart that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CartFindUniqueOrThrowArgs} args - Arguments to find a Cart * @example * // Get one Cart * const cart = await prisma.cart.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Cart 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 {CartFindFirstArgs} args - Arguments to find a Cart * @example * // Get one Cart * const cart = await prisma.cart.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Cart 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 {CartFindFirstOrThrowArgs} args - Arguments to find a Cart * @example * // Get one Cart * const cart = await prisma.cart.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Carts 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 {CartFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Carts * const carts = await prisma.cart.findMany() * * // Get first 10 Carts * const carts = await prisma.cart.findMany({ take: 10 }) * * // Only select the `userId` * const cartWithUserIdOnly = await prisma.cart.findMany({ select: { userId: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Cart. * @param {CartCreateArgs} args - Arguments to create a Cart. * @example * // Create one Cart * const Cart = await prisma.cart.create({ * data: { * // ... data to create a Cart * } * }) * */ create(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Carts. * @param {CartCreateManyArgs} args - Arguments to create many Carts. * @example * // Create many Carts * const cart = await prisma.cart.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Cart. * @param {CartDeleteArgs} args - Arguments to delete one Cart. * @example * // Delete one Cart * const Cart = await prisma.cart.delete({ * where: { * // ... filter to delete one Cart * } * }) * */ delete(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Cart. * @param {CartUpdateArgs} args - Arguments to update one Cart. * @example * // Update one Cart * const cart = await prisma.cart.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Carts. * @param {CartDeleteManyArgs} args - Arguments to filter Carts to delete. * @example * // Delete a few Carts * const { count } = await prisma.cart.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Carts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CartUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Carts * const cart = await prisma.cart.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Cart. * @param {CartUpsertArgs} args - Arguments to update or create a Cart. * @example * // Update or create a Cart * const cart = await prisma.cart.upsert({ * create: { * // ... data to create a Cart * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Cart we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CartClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Carts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CartCountArgs} args - Arguments to filter Carts to count. * @example * // Count the number of Carts * const count = await prisma.cart.count({ * where: { * // ... the filter for the Carts we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Cart. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CartAggregateArgs} 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(args: Subset): Prisma.PrismaPromise> /** * Group by Cart. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CartGroupByArgs} 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 CartGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CartGroupByArgs['orderBy'] } : { orderBy?: CartGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetCartGroupByPayload : Prisma.PrismaPromise /** * Fields of the Cart model */ readonly fields: CartFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Cart. * 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__CartClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> cartItems = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the Cart model */ interface CartFieldRefs { readonly userId: FieldRef<"Cart", 'String'> } // Custom InputTypes /** * Cart findUnique */ export type CartFindUniqueArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null /** * Filter, which Cart to fetch. */ where: CartWhereUniqueInput } /** * Cart findUniqueOrThrow */ export type CartFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null /** * Filter, which Cart to fetch. */ where: CartWhereUniqueInput } /** * Cart findFirst */ export type CartFindFirstArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null /** * Filter, which Cart to fetch. */ where?: CartWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Carts to fetch. */ orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Carts. */ cursor?: CartWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Carts 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` Carts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Carts. */ distinct?: CartScalarFieldEnum | CartScalarFieldEnum[] } /** * Cart findFirstOrThrow */ export type CartFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null /** * Filter, which Cart to fetch. */ where?: CartWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Carts to fetch. */ orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Carts. */ cursor?: CartWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Carts 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` Carts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Carts. */ distinct?: CartScalarFieldEnum | CartScalarFieldEnum[] } /** * Cart findMany */ export type CartFindManyArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null /** * Filter, which Carts to fetch. */ where?: CartWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Carts to fetch. */ orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Carts. */ cursor?: CartWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Carts 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` Carts. */ skip?: number distinct?: CartScalarFieldEnum | CartScalarFieldEnum[] } /** * Cart create */ export type CartCreateArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null /** * The data needed to create a Cart. */ data: XOR } /** * Cart createMany */ export type CartCreateManyArgs = { /** * The data used to create many Carts. */ data: CartCreateManyInput | CartCreateManyInput[] skipDuplicates?: boolean } /** * Cart update */ export type CartUpdateArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null /** * The data needed to update a Cart. */ data: XOR /** * Choose, which Cart to update. */ where: CartWhereUniqueInput } /** * Cart updateMany */ export type CartUpdateManyArgs = { /** * The data used to update Carts. */ data: XOR /** * Filter which Carts to update */ where?: CartWhereInput /** * Limit how many Carts to update. */ limit?: number } /** * Cart upsert */ export type CartUpsertArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null /** * The filter to search for the Cart to update in case it exists. */ where: CartWhereUniqueInput /** * In case the Cart found by the `where` argument doesn't exist, create a new Cart with this data. */ create: XOR /** * In case the Cart was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Cart delete */ export type CartDeleteArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null /** * Filter which Cart to delete. */ where: CartWhereUniqueInput } /** * Cart deleteMany */ export type CartDeleteManyArgs = { /** * Filter which Carts to delete */ where?: CartWhereInput /** * Limit how many Carts to delete. */ limit?: number } /** * Cart.cartItems */ export type Cart$cartItemsArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null where?: CartItemWhereInput orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] cursor?: CartItemWhereUniqueInput take?: number skip?: number distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] } /** * Cart without action */ export type CartDefaultArgs = { /** * Select specific fields to fetch from the Cart */ select?: CartSelect | null /** * Omit specific fields from the Cart */ omit?: CartOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartInclude | null } /** * Model CartItem */ export type AggregateCartItem = { _count: CartItemCountAggregateOutputType | null _avg: CartItemAvgAggregateOutputType | null _sum: CartItemSumAggregateOutputType | null _min: CartItemMinAggregateOutputType | null _max: CartItemMaxAggregateOutputType | null } export type CartItemAvgAggregateOutputType = { quantity: number | null } export type CartItemSumAggregateOutputType = { quantity: number | null } export type CartItemMinAggregateOutputType = { itemId: string | null quantity: number | null cartId: string | null } export type CartItemMaxAggregateOutputType = { itemId: string | null quantity: number | null cartId: string | null } export type CartItemCountAggregateOutputType = { itemId: number quantity: number cartId: number _all: number } export type CartItemAvgAggregateInputType = { quantity?: true } export type CartItemSumAggregateInputType = { quantity?: true } export type CartItemMinAggregateInputType = { itemId?: true quantity?: true cartId?: true } export type CartItemMaxAggregateInputType = { itemId?: true quantity?: true cartId?: true } export type CartItemCountAggregateInputType = { itemId?: true quantity?: true cartId?: true _all?: true } export type CartItemAggregateArgs = { /** * Filter which CartItem to aggregate. */ where?: CartItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CartItems to fetch. */ orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CartItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CartItems 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` CartItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CartItems **/ _count?: true | CartItemCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CartItemAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CartItemSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CartItemMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CartItemMaxAggregateInputType } export type GetCartItemAggregateType = { [P in keyof T & keyof AggregateCartItem]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CartItemGroupByArgs = { where?: CartItemWhereInput orderBy?: CartItemOrderByWithAggregationInput | CartItemOrderByWithAggregationInput[] by: CartItemScalarFieldEnum[] | CartItemScalarFieldEnum having?: CartItemScalarWhereWithAggregatesInput take?: number skip?: number _count?: CartItemCountAggregateInputType | true _avg?: CartItemAvgAggregateInputType _sum?: CartItemSumAggregateInputType _min?: CartItemMinAggregateInputType _max?: CartItemMaxAggregateInputType } export type CartItemGroupByOutputType = { itemId: string quantity: number cartId: string _count: CartItemCountAggregateOutputType | null _avg: CartItemAvgAggregateOutputType | null _sum: CartItemSumAggregateOutputType | null _min: CartItemMinAggregateOutputType | null _max: CartItemMaxAggregateOutputType | null } type GetCartItemGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CartItemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CartItemSelect = $Extensions.GetSelect<{ itemId?: boolean quantity?: boolean cartId?: boolean cart?: boolean | CartDefaultArgs sellable?: boolean | SellableDefaultArgs }, ExtArgs["result"]["cartItem"]> export type CartItemSelectScalar = { itemId?: boolean quantity?: boolean cartId?: boolean } export type CartItemOmit = $Extensions.GetOmit<"itemId" | "quantity" | "cartId", ExtArgs["result"]["cartItem"]> export type CartItemInclude = { cart?: boolean | CartDefaultArgs sellable?: boolean | SellableDefaultArgs } export type $CartItemPayload = { name: "CartItem" objects: { cart: Prisma.$CartPayload sellable: Prisma.$SellablePayload } scalars: $Extensions.GetPayloadResult<{ itemId: string quantity: number cartId: string }, ExtArgs["result"]["cartItem"]> composites: {} } type CartItemGetPayload = $Result.GetResult type CartItemCountArgs = Omit & { select?: CartItemCountAggregateInputType | true } export interface CartItemDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CartItem'], meta: { name: 'CartItem' } } /** * Find zero or one CartItem that matches the filter. * @param {CartItemFindUniqueArgs} args - Arguments to find a CartItem * @example * // Get one CartItem * const cartItem = await prisma.cartItem.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CartItem that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CartItemFindUniqueOrThrowArgs} args - Arguments to find a CartItem * @example * // Get one CartItem * const cartItem = await prisma.cartItem.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CartItem 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 {CartItemFindFirstArgs} args - Arguments to find a CartItem * @example * // Get one CartItem * const cartItem = await prisma.cartItem.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CartItem 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 {CartItemFindFirstOrThrowArgs} args - Arguments to find a CartItem * @example * // Get one CartItem * const cartItem = await prisma.cartItem.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CartItems 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 {CartItemFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CartItems * const cartItems = await prisma.cartItem.findMany() * * // Get first 10 CartItems * const cartItems = await prisma.cartItem.findMany({ take: 10 }) * * // Only select the `itemId` * const cartItemWithItemIdOnly = await prisma.cartItem.findMany({ select: { itemId: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CartItem. * @param {CartItemCreateArgs} args - Arguments to create a CartItem. * @example * // Create one CartItem * const CartItem = await prisma.cartItem.create({ * data: { * // ... data to create a CartItem * } * }) * */ create(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CartItems. * @param {CartItemCreateManyArgs} args - Arguments to create many CartItems. * @example * // Create many CartItems * const cartItem = await prisma.cartItem.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a CartItem. * @param {CartItemDeleteArgs} args - Arguments to delete one CartItem. * @example * // Delete one CartItem * const CartItem = await prisma.cartItem.delete({ * where: { * // ... filter to delete one CartItem * } * }) * */ delete(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CartItem. * @param {CartItemUpdateArgs} args - Arguments to update one CartItem. * @example * // Update one CartItem * const cartItem = await prisma.cartItem.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CartItems. * @param {CartItemDeleteManyArgs} args - Arguments to filter CartItems to delete. * @example * // Delete a few CartItems * const { count } = await prisma.cartItem.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CartItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CartItemUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CartItems * const cartItem = await prisma.cartItem.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one CartItem. * @param {CartItemUpsertArgs} args - Arguments to update or create a CartItem. * @example * // Update or create a CartItem * const cartItem = await prisma.cartItem.upsert({ * create: { * // ... data to create a CartItem * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CartItem we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CartItemClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CartItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CartItemCountArgs} args - Arguments to filter CartItems to count. * @example * // Count the number of CartItems * const count = await prisma.cartItem.count({ * where: { * // ... the filter for the CartItems we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a CartItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CartItemAggregateArgs} 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(args: Subset): Prisma.PrismaPromise> /** * Group by CartItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CartItemGroupByArgs} 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 CartItemGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CartItemGroupByArgs['orderBy'] } : { orderBy?: CartItemGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetCartItemGroupByPayload : Prisma.PrismaPromise /** * Fields of the CartItem model */ readonly fields: CartItemFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CartItem. * 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__CartItemClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" cart = {}>(args?: Subset>): Prisma__CartClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> sellable = {}>(args?: Subset>): Prisma__SellableClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the CartItem model */ interface CartItemFieldRefs { readonly itemId: FieldRef<"CartItem", 'String'> readonly quantity: FieldRef<"CartItem", 'Int'> readonly cartId: FieldRef<"CartItem", 'String'> } // Custom InputTypes /** * CartItem findUnique */ export type CartItemFindUniqueArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null /** * Filter, which CartItem to fetch. */ where: CartItemWhereUniqueInput } /** * CartItem findUniqueOrThrow */ export type CartItemFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null /** * Filter, which CartItem to fetch. */ where: CartItemWhereUniqueInput } /** * CartItem findFirst */ export type CartItemFindFirstArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null /** * Filter, which CartItem to fetch. */ where?: CartItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CartItems to fetch. */ orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CartItems. */ cursor?: CartItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CartItems 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` CartItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CartItems. */ distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] } /** * CartItem findFirstOrThrow */ export type CartItemFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null /** * Filter, which CartItem to fetch. */ where?: CartItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CartItems to fetch. */ orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CartItems. */ cursor?: CartItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CartItems 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` CartItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CartItems. */ distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] } /** * CartItem findMany */ export type CartItemFindManyArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null /** * Filter, which CartItems to fetch. */ where?: CartItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CartItems to fetch. */ orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CartItems. */ cursor?: CartItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CartItems 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` CartItems. */ skip?: number distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[] } /** * CartItem create */ export type CartItemCreateArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null /** * The data needed to create a CartItem. */ data: XOR } /** * CartItem createMany */ export type CartItemCreateManyArgs = { /** * The data used to create many CartItems. */ data: CartItemCreateManyInput | CartItemCreateManyInput[] skipDuplicates?: boolean } /** * CartItem update */ export type CartItemUpdateArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null /** * The data needed to update a CartItem. */ data: XOR /** * Choose, which CartItem to update. */ where: CartItemWhereUniqueInput } /** * CartItem updateMany */ export type CartItemUpdateManyArgs = { /** * The data used to update CartItems. */ data: XOR /** * Filter which CartItems to update */ where?: CartItemWhereInput /** * Limit how many CartItems to update. */ limit?: number } /** * CartItem upsert */ export type CartItemUpsertArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null /** * The filter to search for the CartItem to update in case it exists. */ where: CartItemWhereUniqueInput /** * In case the CartItem found by the `where` argument doesn't exist, create a new CartItem with this data. */ create: XOR /** * In case the CartItem was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CartItem delete */ export type CartItemDeleteArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null /** * Filter which CartItem to delete. */ where: CartItemWhereUniqueInput } /** * CartItem deleteMany */ export type CartItemDeleteManyArgs = { /** * Filter which CartItems to delete */ where?: CartItemWhereInput /** * Limit how many CartItems to delete. */ limit?: number } /** * CartItem without action */ export type CartItemDefaultArgs = { /** * Select specific fields to fetch from the CartItem */ select?: CartItemSelect | null /** * Omit specific fields from the CartItem */ omit?: CartItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CartItemInclude | null } /** * Model Adress */ export type AggregateAdress = { _count: AdressCountAggregateOutputType | null _min: AdressMinAggregateOutputType | null _max: AdressMaxAggregateOutputType | null } export type AdressMinAggregateOutputType = { id: string | null userId: string | null adress: string | null } export type AdressMaxAggregateOutputType = { id: string | null userId: string | null adress: string | null } export type AdressCountAggregateOutputType = { id: number userId: number adress: number _all: number } export type AdressMinAggregateInputType = { id?: true userId?: true adress?: true } export type AdressMaxAggregateInputType = { id?: true userId?: true adress?: true } export type AdressCountAggregateInputType = { id?: true userId?: true adress?: true _all?: true } export type AdressAggregateArgs = { /** * Filter which Adress to aggregate. */ where?: AdressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Adresses to fetch. */ orderBy?: AdressOrderByWithRelationInput | AdressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AdressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Adresses 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` Adresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Adresses **/ _count?: true | AdressCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AdressMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AdressMaxAggregateInputType } export type GetAdressAggregateType = { [P in keyof T & keyof AggregateAdress]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AdressGroupByArgs = { where?: AdressWhereInput orderBy?: AdressOrderByWithAggregationInput | AdressOrderByWithAggregationInput[] by: AdressScalarFieldEnum[] | AdressScalarFieldEnum having?: AdressScalarWhereWithAggregatesInput take?: number skip?: number _count?: AdressCountAggregateInputType | true _min?: AdressMinAggregateInputType _max?: AdressMaxAggregateInputType } export type AdressGroupByOutputType = { id: string userId: string adress: string _count: AdressCountAggregateOutputType | null _min: AdressMinAggregateOutputType | null _max: AdressMaxAggregateOutputType | null } type GetAdressGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AdressGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AdressSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean adress?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["adress"]> export type AdressSelectScalar = { id?: boolean userId?: boolean adress?: boolean } export type AdressOmit = $Extensions.GetOmit<"id" | "userId" | "adress", ExtArgs["result"]["adress"]> export type AdressInclude = { user?: boolean | UserDefaultArgs } export type $AdressPayload = { name: "Adress" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string userId: string adress: string }, ExtArgs["result"]["adress"]> composites: {} } type AdressGetPayload = $Result.GetResult type AdressCountArgs = Omit & { select?: AdressCountAggregateInputType | true } export interface AdressDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Adress'], meta: { name: 'Adress' } } /** * Find zero or one Adress that matches the filter. * @param {AdressFindUniqueArgs} args - Arguments to find a Adress * @example * // Get one Adress * const adress = await prisma.adress.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AdressClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Adress that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AdressFindUniqueOrThrowArgs} args - Arguments to find a Adress * @example * // Get one Adress * const adress = await prisma.adress.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AdressClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Adress 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 {AdressFindFirstArgs} args - Arguments to find a Adress * @example * // Get one Adress * const adress = await prisma.adress.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AdressClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Adress 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 {AdressFindFirstOrThrowArgs} args - Arguments to find a Adress * @example * // Get one Adress * const adress = await prisma.adress.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AdressClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Adresses 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 {AdressFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Adresses * const adresses = await prisma.adress.findMany() * * // Get first 10 Adresses * const adresses = await prisma.adress.findMany({ take: 10 }) * * // Only select the `id` * const adressWithIdOnly = await prisma.adress.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Adress. * @param {AdressCreateArgs} args - Arguments to create a Adress. * @example * // Create one Adress * const Adress = await prisma.adress.create({ * data: { * // ... data to create a Adress * } * }) * */ create(args: SelectSubset>): Prisma__AdressClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Adresses. * @param {AdressCreateManyArgs} args - Arguments to create many Adresses. * @example * // Create many Adresses * const adress = await prisma.adress.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Adress. * @param {AdressDeleteArgs} args - Arguments to delete one Adress. * @example * // Delete one Adress * const Adress = await prisma.adress.delete({ * where: { * // ... filter to delete one Adress * } * }) * */ delete(args: SelectSubset>): Prisma__AdressClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Adress. * @param {AdressUpdateArgs} args - Arguments to update one Adress. * @example * // Update one Adress * const adress = await prisma.adress.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AdressClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Adresses. * @param {AdressDeleteManyArgs} args - Arguments to filter Adresses to delete. * @example * // Delete a few Adresses * const { count } = await prisma.adress.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Adresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdressUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Adresses * const adress = await prisma.adress.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Adress. * @param {AdressUpsertArgs} args - Arguments to update or create a Adress. * @example * // Update or create a Adress * const adress = await prisma.adress.upsert({ * create: { * // ... data to create a Adress * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Adress we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AdressClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Adresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdressCountArgs} args - Arguments to filter Adresses to count. * @example * // Count the number of Adresses * const count = await prisma.adress.count({ * where: { * // ... the filter for the Adresses we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Adress. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdressAggregateArgs} 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(args: Subset): Prisma.PrismaPromise> /** * Group by Adress. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdressGroupByArgs} 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 AdressGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AdressGroupByArgs['orderBy'] } : { orderBy?: AdressGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetAdressGroupByPayload : Prisma.PrismaPromise /** * Fields of the Adress model */ readonly fields: AdressFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Adress. * 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__AdressClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the Adress model */ interface AdressFieldRefs { readonly id: FieldRef<"Adress", 'String'> readonly userId: FieldRef<"Adress", 'String'> readonly adress: FieldRef<"Adress", 'String'> } // Custom InputTypes /** * Adress findUnique */ export type AdressFindUniqueArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null /** * Filter, which Adress to fetch. */ where: AdressWhereUniqueInput } /** * Adress findUniqueOrThrow */ export type AdressFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null /** * Filter, which Adress to fetch. */ where: AdressWhereUniqueInput } /** * Adress findFirst */ export type AdressFindFirstArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null /** * Filter, which Adress to fetch. */ where?: AdressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Adresses to fetch. */ orderBy?: AdressOrderByWithRelationInput | AdressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Adresses. */ cursor?: AdressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Adresses 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` Adresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Adresses. */ distinct?: AdressScalarFieldEnum | AdressScalarFieldEnum[] } /** * Adress findFirstOrThrow */ export type AdressFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null /** * Filter, which Adress to fetch. */ where?: AdressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Adresses to fetch. */ orderBy?: AdressOrderByWithRelationInput | AdressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Adresses. */ cursor?: AdressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Adresses 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` Adresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Adresses. */ distinct?: AdressScalarFieldEnum | AdressScalarFieldEnum[] } /** * Adress findMany */ export type AdressFindManyArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null /** * Filter, which Adresses to fetch. */ where?: AdressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Adresses to fetch. */ orderBy?: AdressOrderByWithRelationInput | AdressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Adresses. */ cursor?: AdressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Adresses 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` Adresses. */ skip?: number distinct?: AdressScalarFieldEnum | AdressScalarFieldEnum[] } /** * Adress create */ export type AdressCreateArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null /** * The data needed to create a Adress. */ data: XOR } /** * Adress createMany */ export type AdressCreateManyArgs = { /** * The data used to create many Adresses. */ data: AdressCreateManyInput | AdressCreateManyInput[] skipDuplicates?: boolean } /** * Adress update */ export type AdressUpdateArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null /** * The data needed to update a Adress. */ data: XOR /** * Choose, which Adress to update. */ where: AdressWhereUniqueInput } /** * Adress updateMany */ export type AdressUpdateManyArgs = { /** * The data used to update Adresses. */ data: XOR /** * Filter which Adresses to update */ where?: AdressWhereInput /** * Limit how many Adresses to update. */ limit?: number } /** * Adress upsert */ export type AdressUpsertArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null /** * The filter to search for the Adress to update in case it exists. */ where: AdressWhereUniqueInput /** * In case the Adress found by the `where` argument doesn't exist, create a new Adress with this data. */ create: XOR /** * In case the Adress was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Adress delete */ export type AdressDeleteArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | null /** * Filter which Adress to delete. */ where: AdressWhereUniqueInput } /** * Adress deleteMany */ export type AdressDeleteManyArgs = { /** * Filter which Adresses to delete */ where?: AdressWhereInput /** * Limit how many Adresses to delete. */ limit?: number } /** * Adress without action */ export type AdressDefaultArgs = { /** * Select specific fields to fetch from the Adress */ select?: AdressSelect | null /** * Omit specific fields from the Adress */ omit?: AdressOmit | null /** * Choose, which related nodes to fetch as well */ include?: AdressInclude | 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', userId: 'userId', type: 'type', provider: 'provider', providerAccountId: 'providerAccountId', refresh_token: 'refresh_token', access_token: 'access_token', expires_at: 'expires_at', token_type: 'token_type', scope: 'scope', id_token: 'id_token', session_state: 'session_state', refresh_token_expires_in: 'refresh_token_expires_in' }; export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] export const SessionScalarFieldEnum: { id: 'id', sessionToken: 'sessionToken', userId: 'userId', expires: 'expires' }; export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] export const UserScalarFieldEnum: { id: 'id', name: 'name', email: 'email', emailVerified: 'emailVerified', image: 'image', balance: 'balance' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const VerificationTokenScalarFieldEnum: { identifier: 'identifier', token: 'token', expires: 'expires' }; export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum] export const ShopScalarFieldEnum: { id: 'id', userId: 'userId', label: 'label' }; export type ShopScalarFieldEnum = (typeof ShopScalarFieldEnum)[keyof typeof ShopScalarFieldEnum] export const ItemScalarFieldEnum: { item_name: 'item_name', stock: 'stock', shopId: 'shopId' }; export type ItemScalarFieldEnum = (typeof ItemScalarFieldEnum)[keyof typeof ItemScalarFieldEnum] export const SellableScalarFieldEnum: { id: 'id', item_name: 'item_name', amount: 'amount', price: 'price', shopId: 'shopId', enabled: 'enabled' }; export type SellableScalarFieldEnum = (typeof SellableScalarFieldEnum)[keyof typeof SellableScalarFieldEnum] export const CartScalarFieldEnum: { userId: 'userId' }; export type CartScalarFieldEnum = (typeof CartScalarFieldEnum)[keyof typeof CartScalarFieldEnum] export const CartItemScalarFieldEnum: { itemId: 'itemId', quantity: 'quantity', cartId: 'cartId' }; export type CartItemScalarFieldEnum = (typeof CartItemScalarFieldEnum)[keyof typeof CartItemScalarFieldEnum] export const AdressScalarFieldEnum: { id: 'id', userId: 'userId', adress: 'adress' }; export type AdressScalarFieldEnum = (typeof AdressScalarFieldEnum)[keyof typeof AdressScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] export const AccountOrderByRelevanceFieldEnum: { id: 'id', userId: 'userId', type: 'type', provider: 'provider', providerAccountId: 'providerAccountId', refresh_token: 'refresh_token', access_token: 'access_token', token_type: 'token_type', scope: 'scope', id_token: 'id_token', session_state: 'session_state' }; export type AccountOrderByRelevanceFieldEnum = (typeof AccountOrderByRelevanceFieldEnum)[keyof typeof AccountOrderByRelevanceFieldEnum] export const SessionOrderByRelevanceFieldEnum: { id: 'id', sessionToken: 'sessionToken', userId: 'userId' }; export type SessionOrderByRelevanceFieldEnum = (typeof SessionOrderByRelevanceFieldEnum)[keyof typeof SessionOrderByRelevanceFieldEnum] export const UserOrderByRelevanceFieldEnum: { id: 'id', name: 'name', email: 'email', image: 'image' }; export type UserOrderByRelevanceFieldEnum = (typeof UserOrderByRelevanceFieldEnum)[keyof typeof UserOrderByRelevanceFieldEnum] export const VerificationTokenOrderByRelevanceFieldEnum: { identifier: 'identifier', token: 'token' }; export type VerificationTokenOrderByRelevanceFieldEnum = (typeof VerificationTokenOrderByRelevanceFieldEnum)[keyof typeof VerificationTokenOrderByRelevanceFieldEnum] export const ShopOrderByRelevanceFieldEnum: { userId: 'userId', label: 'label' }; export type ShopOrderByRelevanceFieldEnum = (typeof ShopOrderByRelevanceFieldEnum)[keyof typeof ShopOrderByRelevanceFieldEnum] export const ItemOrderByRelevanceFieldEnum: { item_name: 'item_name' }; export type ItemOrderByRelevanceFieldEnum = (typeof ItemOrderByRelevanceFieldEnum)[keyof typeof ItemOrderByRelevanceFieldEnum] export const SellableOrderByRelevanceFieldEnum: { id: 'id', item_name: 'item_name' }; export type SellableOrderByRelevanceFieldEnum = (typeof SellableOrderByRelevanceFieldEnum)[keyof typeof SellableOrderByRelevanceFieldEnum] export const CartOrderByRelevanceFieldEnum: { userId: 'userId' }; export type CartOrderByRelevanceFieldEnum = (typeof CartOrderByRelevanceFieldEnum)[keyof typeof CartOrderByRelevanceFieldEnum] export const CartItemOrderByRelevanceFieldEnum: { itemId: 'itemId', cartId: 'cartId' }; export type CartItemOrderByRelevanceFieldEnum = (typeof CartItemOrderByRelevanceFieldEnum)[keyof typeof CartItemOrderByRelevanceFieldEnum] export const AdressOrderByRelevanceFieldEnum: { id: 'id', userId: 'userId', adress: 'adress' }; export type AdressOrderByRelevanceFieldEnum = (typeof AdressOrderByRelevanceFieldEnum)[keyof typeof AdressOrderByRelevanceFieldEnum] /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Deep Input Types */ export type AccountWhereInput = { AND?: AccountWhereInput | AccountWhereInput[] OR?: AccountWhereInput[] NOT?: AccountWhereInput | AccountWhereInput[] id?: StringFilter<"Account"> | string userId?: StringFilter<"Account"> | string type?: StringFilter<"Account"> | string provider?: StringFilter<"Account"> | string providerAccountId?: StringFilter<"Account"> | string refresh_token?: StringNullableFilter<"Account"> | string | null access_token?: StringNullableFilter<"Account"> | string | null expires_at?: IntNullableFilter<"Account"> | number | null token_type?: StringNullableFilter<"Account"> | string | null scope?: StringNullableFilter<"Account"> | string | null id_token?: StringNullableFilter<"Account"> | string | null session_state?: StringNullableFilter<"Account"> | string | null refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null user?: XOR } export type AccountOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder type?: SortOrder provider?: SortOrder providerAccountId?: SortOrder refresh_token?: SortOrderInput | SortOrder access_token?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder token_type?: SortOrderInput | SortOrder scope?: SortOrderInput | SortOrder id_token?: SortOrderInput | SortOrder session_state?: SortOrderInput | SortOrder refresh_token_expires_in?: SortOrderInput | SortOrder user?: UserOrderByWithRelationInput _relevance?: AccountOrderByRelevanceInput } export type AccountWhereUniqueInput = Prisma.AtLeast<{ id?: string provider_providerAccountId?: AccountProviderProviderAccountIdCompoundUniqueInput AND?: AccountWhereInput | AccountWhereInput[] OR?: AccountWhereInput[] NOT?: AccountWhereInput | AccountWhereInput[] userId?: StringFilter<"Account"> | string type?: StringFilter<"Account"> | string provider?: StringFilter<"Account"> | string providerAccountId?: StringFilter<"Account"> | string refresh_token?: StringNullableFilter<"Account"> | string | null access_token?: StringNullableFilter<"Account"> | string | null expires_at?: IntNullableFilter<"Account"> | number | null token_type?: StringNullableFilter<"Account"> | string | null scope?: StringNullableFilter<"Account"> | string | null id_token?: StringNullableFilter<"Account"> | string | null session_state?: StringNullableFilter<"Account"> | string | null refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null user?: XOR }, "id" | "provider_providerAccountId"> export type AccountOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder type?: SortOrder provider?: SortOrder providerAccountId?: SortOrder refresh_token?: SortOrderInput | SortOrder access_token?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder token_type?: SortOrderInput | SortOrder scope?: SortOrderInput | SortOrder id_token?: SortOrderInput | SortOrder session_state?: SortOrderInput | SortOrder refresh_token_expires_in?: SortOrderInput | SortOrder _count?: AccountCountOrderByAggregateInput _avg?: AccountAvgOrderByAggregateInput _max?: AccountMaxOrderByAggregateInput _min?: AccountMinOrderByAggregateInput _sum?: AccountSumOrderByAggregateInput } export type AccountScalarWhereWithAggregatesInput = { AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[] OR?: AccountScalarWhereWithAggregatesInput[] NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Account"> | string userId?: StringWithAggregatesFilter<"Account"> | string type?: StringWithAggregatesFilter<"Account"> | string provider?: StringWithAggregatesFilter<"Account"> | string providerAccountId?: StringWithAggregatesFilter<"Account"> | string refresh_token?: StringNullableWithAggregatesFilter<"Account"> | string | null access_token?: StringNullableWithAggregatesFilter<"Account"> | string | null expires_at?: IntNullableWithAggregatesFilter<"Account"> | number | null token_type?: StringNullableWithAggregatesFilter<"Account"> | string | null scope?: StringNullableWithAggregatesFilter<"Account"> | string | null id_token?: StringNullableWithAggregatesFilter<"Account"> | string | null session_state?: StringNullableWithAggregatesFilter<"Account"> | string | null refresh_token_expires_in?: IntNullableWithAggregatesFilter<"Account"> | number | null } export type SessionWhereInput = { AND?: SessionWhereInput | SessionWhereInput[] OR?: SessionWhereInput[] NOT?: SessionWhereInput | SessionWhereInput[] id?: StringFilter<"Session"> | string sessionToken?: StringFilter<"Session"> | string userId?: StringFilter<"Session"> | string expires?: DateTimeFilter<"Session"> | Date | string user?: XOR } export type SessionOrderByWithRelationInput = { id?: SortOrder sessionToken?: SortOrder userId?: SortOrder expires?: SortOrder user?: UserOrderByWithRelationInput _relevance?: SessionOrderByRelevanceInput } export type SessionWhereUniqueInput = Prisma.AtLeast<{ id?: string sessionToken?: string AND?: SessionWhereInput | SessionWhereInput[] OR?: SessionWhereInput[] NOT?: SessionWhereInput | SessionWhereInput[] userId?: StringFilter<"Session"> | string expires?: DateTimeFilter<"Session"> | Date | string user?: XOR }, "id" | "sessionToken"> export type SessionOrderByWithAggregationInput = { id?: SortOrder sessionToken?: SortOrder userId?: SortOrder expires?: SortOrder _count?: SessionCountOrderByAggregateInput _max?: SessionMaxOrderByAggregateInput _min?: SessionMinOrderByAggregateInput } export type SessionScalarWhereWithAggregatesInput = { AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] OR?: SessionScalarWhereWithAggregatesInput[] NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Session"> | string sessionToken?: StringWithAggregatesFilter<"Session"> | string userId?: StringWithAggregatesFilter<"Session"> | string expires?: DateTimeWithAggregatesFilter<"Session"> | Date | string } export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: StringFilter<"User"> | string name?: StringNullableFilter<"User"> | string | null email?: StringNullableFilter<"User"> | string | null emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null image?: StringNullableFilter<"User"> | string | null balance?: FloatFilter<"User"> | number accounts?: AccountListRelationFilter sessions?: SessionListRelationFilter shops?: ShopListRelationFilter carts?: CartListRelationFilter adresses?: AdressListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder name?: SortOrderInput | SortOrder email?: SortOrderInput | SortOrder emailVerified?: SortOrderInput | SortOrder image?: SortOrderInput | SortOrder balance?: SortOrder accounts?: AccountOrderByRelationAggregateInput sessions?: SessionOrderByRelationAggregateInput shops?: ShopOrderByRelationAggregateInput carts?: CartOrderByRelationAggregateInput adresses?: AdressOrderByRelationAggregateInput _relevance?: UserOrderByRelevanceInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: string email?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] name?: StringNullableFilter<"User"> | string | null emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null image?: StringNullableFilter<"User"> | string | null balance?: FloatFilter<"User"> | number accounts?: AccountListRelationFilter sessions?: SessionListRelationFilter shops?: ShopListRelationFilter carts?: CartListRelationFilter adresses?: AdressListRelationFilter }, "id" | "email"> export type UserOrderByWithAggregationInput = { id?: SortOrder name?: SortOrderInput | SortOrder email?: SortOrderInput | SortOrder emailVerified?: SortOrderInput | SortOrder image?: SortOrderInput | SortOrder balance?: SortOrder _count?: UserCountOrderByAggregateInput _avg?: UserAvgOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput _sum?: UserSumOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"User"> | string name?: StringNullableWithAggregatesFilter<"User"> | string | null email?: StringNullableWithAggregatesFilter<"User"> | string | null emailVerified?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null image?: StringNullableWithAggregatesFilter<"User"> | string | null balance?: FloatWithAggregatesFilter<"User"> | number } export type VerificationTokenWhereInput = { AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[] OR?: VerificationTokenWhereInput[] NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[] identifier?: StringFilter<"VerificationToken"> | string token?: StringFilter<"VerificationToken"> | string expires?: DateTimeFilter<"VerificationToken"> | Date | string } export type VerificationTokenOrderByWithRelationInput = { identifier?: SortOrder token?: SortOrder expires?: SortOrder _relevance?: VerificationTokenOrderByRelevanceInput } export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{ token?: string identifier_token?: VerificationTokenIdentifierTokenCompoundUniqueInput AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[] OR?: VerificationTokenWhereInput[] NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[] identifier?: StringFilter<"VerificationToken"> | string expires?: DateTimeFilter<"VerificationToken"> | Date | string }, "token" | "identifier_token"> export type VerificationTokenOrderByWithAggregationInput = { identifier?: SortOrder token?: SortOrder expires?: SortOrder _count?: VerificationTokenCountOrderByAggregateInput _max?: VerificationTokenMaxOrderByAggregateInput _min?: VerificationTokenMinOrderByAggregateInput } export type VerificationTokenScalarWhereWithAggregatesInput = { AND?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[] OR?: VerificationTokenScalarWhereWithAggregatesInput[] NOT?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[] identifier?: StringWithAggregatesFilter<"VerificationToken"> | string token?: StringWithAggregatesFilter<"VerificationToken"> | string expires?: DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string } export type ShopWhereInput = { AND?: ShopWhereInput | ShopWhereInput[] OR?: ShopWhereInput[] NOT?: ShopWhereInput | ShopWhereInput[] id?: IntFilter<"Shop"> | number userId?: StringFilter<"Shop"> | string label?: StringFilter<"Shop"> | string user?: XOR items?: ItemListRelationFilter sellables?: SellableListRelationFilter } export type ShopOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder label?: SortOrder user?: UserOrderByWithRelationInput items?: ItemOrderByRelationAggregateInput sellables?: SellableOrderByRelationAggregateInput _relevance?: ShopOrderByRelevanceInput } export type ShopWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ShopWhereInput | ShopWhereInput[] OR?: ShopWhereInput[] NOT?: ShopWhereInput | ShopWhereInput[] userId?: StringFilter<"Shop"> | string label?: StringFilter<"Shop"> | string user?: XOR items?: ItemListRelationFilter sellables?: SellableListRelationFilter }, "id"> export type ShopOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder label?: SortOrder _count?: ShopCountOrderByAggregateInput _avg?: ShopAvgOrderByAggregateInput _max?: ShopMaxOrderByAggregateInput _min?: ShopMinOrderByAggregateInput _sum?: ShopSumOrderByAggregateInput } export type ShopScalarWhereWithAggregatesInput = { AND?: ShopScalarWhereWithAggregatesInput | ShopScalarWhereWithAggregatesInput[] OR?: ShopScalarWhereWithAggregatesInput[] NOT?: ShopScalarWhereWithAggregatesInput | ShopScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Shop"> | number userId?: StringWithAggregatesFilter<"Shop"> | string label?: StringWithAggregatesFilter<"Shop"> | string } export type ItemWhereInput = { AND?: ItemWhereInput | ItemWhereInput[] OR?: ItemWhereInput[] NOT?: ItemWhereInput | ItemWhereInput[] item_name?: StringFilter<"Item"> | string stock?: IntFilter<"Item"> | number shopId?: IntFilter<"Item"> | number shop?: XOR sellables?: SellableListRelationFilter } export type ItemOrderByWithRelationInput = { item_name?: SortOrder stock?: SortOrder shopId?: SortOrder shop?: ShopOrderByWithRelationInput sellables?: SellableOrderByRelationAggregateInput _relevance?: ItemOrderByRelevanceInput } export type ItemWhereUniqueInput = Prisma.AtLeast<{ item_name?: string AND?: ItemWhereInput | ItemWhereInput[] OR?: ItemWhereInput[] NOT?: ItemWhereInput | ItemWhereInput[] stock?: IntFilter<"Item"> | number shopId?: IntFilter<"Item"> | number shop?: XOR sellables?: SellableListRelationFilter }, "item_name"> export type ItemOrderByWithAggregationInput = { item_name?: SortOrder stock?: SortOrder shopId?: SortOrder _count?: ItemCountOrderByAggregateInput _avg?: ItemAvgOrderByAggregateInput _max?: ItemMaxOrderByAggregateInput _min?: ItemMinOrderByAggregateInput _sum?: ItemSumOrderByAggregateInput } export type ItemScalarWhereWithAggregatesInput = { AND?: ItemScalarWhereWithAggregatesInput | ItemScalarWhereWithAggregatesInput[] OR?: ItemScalarWhereWithAggregatesInput[] NOT?: ItemScalarWhereWithAggregatesInput | ItemScalarWhereWithAggregatesInput[] item_name?: StringWithAggregatesFilter<"Item"> | string stock?: IntWithAggregatesFilter<"Item"> | number shopId?: IntWithAggregatesFilter<"Item"> | number } export type SellableWhereInput = { AND?: SellableWhereInput | SellableWhereInput[] OR?: SellableWhereInput[] NOT?: SellableWhereInput | SellableWhereInput[] id?: StringFilter<"Sellable"> | string item_name?: StringFilter<"Sellable"> | string amount?: IntFilter<"Sellable"> | number price?: FloatFilter<"Sellable"> | number shopId?: IntFilter<"Sellable"> | number enabled?: BoolFilter<"Sellable"> | boolean shop?: XOR item?: XOR cartItems?: CartItemListRelationFilter } export type SellableOrderByWithRelationInput = { id?: SortOrder item_name?: SortOrder amount?: SortOrder price?: SortOrder shopId?: SortOrder enabled?: SortOrder shop?: ShopOrderByWithRelationInput item?: ItemOrderByWithRelationInput cartItems?: CartItemOrderByRelationAggregateInput _relevance?: SellableOrderByRelevanceInput } export type SellableWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: SellableWhereInput | SellableWhereInput[] OR?: SellableWhereInput[] NOT?: SellableWhereInput | SellableWhereInput[] item_name?: StringFilter<"Sellable"> | string amount?: IntFilter<"Sellable"> | number price?: FloatFilter<"Sellable"> | number shopId?: IntFilter<"Sellable"> | number enabled?: BoolFilter<"Sellable"> | boolean shop?: XOR item?: XOR cartItems?: CartItemListRelationFilter }, "id"> export type SellableOrderByWithAggregationInput = { id?: SortOrder item_name?: SortOrder amount?: SortOrder price?: SortOrder shopId?: SortOrder enabled?: SortOrder _count?: SellableCountOrderByAggregateInput _avg?: SellableAvgOrderByAggregateInput _max?: SellableMaxOrderByAggregateInput _min?: SellableMinOrderByAggregateInput _sum?: SellableSumOrderByAggregateInput } export type SellableScalarWhereWithAggregatesInput = { AND?: SellableScalarWhereWithAggregatesInput | SellableScalarWhereWithAggregatesInput[] OR?: SellableScalarWhereWithAggregatesInput[] NOT?: SellableScalarWhereWithAggregatesInput | SellableScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Sellable"> | string item_name?: StringWithAggregatesFilter<"Sellable"> | string amount?: IntWithAggregatesFilter<"Sellable"> | number price?: FloatWithAggregatesFilter<"Sellable"> | number shopId?: IntWithAggregatesFilter<"Sellable"> | number enabled?: BoolWithAggregatesFilter<"Sellable"> | boolean } export type CartWhereInput = { AND?: CartWhereInput | CartWhereInput[] OR?: CartWhereInput[] NOT?: CartWhereInput | CartWhereInput[] userId?: StringFilter<"Cart"> | string user?: XOR cartItems?: CartItemListRelationFilter } export type CartOrderByWithRelationInput = { userId?: SortOrder user?: UserOrderByWithRelationInput cartItems?: CartItemOrderByRelationAggregateInput _relevance?: CartOrderByRelevanceInput } export type CartWhereUniqueInput = Prisma.AtLeast<{ userId?: string AND?: CartWhereInput | CartWhereInput[] OR?: CartWhereInput[] NOT?: CartWhereInput | CartWhereInput[] user?: XOR cartItems?: CartItemListRelationFilter }, "userId"> export type CartOrderByWithAggregationInput = { userId?: SortOrder _count?: CartCountOrderByAggregateInput _max?: CartMaxOrderByAggregateInput _min?: CartMinOrderByAggregateInput } export type CartScalarWhereWithAggregatesInput = { AND?: CartScalarWhereWithAggregatesInput | CartScalarWhereWithAggregatesInput[] OR?: CartScalarWhereWithAggregatesInput[] NOT?: CartScalarWhereWithAggregatesInput | CartScalarWhereWithAggregatesInput[] userId?: StringWithAggregatesFilter<"Cart"> | string } export type CartItemWhereInput = { AND?: CartItemWhereInput | CartItemWhereInput[] OR?: CartItemWhereInput[] NOT?: CartItemWhereInput | CartItemWhereInput[] itemId?: StringFilter<"CartItem"> | string quantity?: IntFilter<"CartItem"> | number cartId?: StringFilter<"CartItem"> | string cart?: XOR sellable?: XOR } export type CartItemOrderByWithRelationInput = { itemId?: SortOrder quantity?: SortOrder cartId?: SortOrder cart?: CartOrderByWithRelationInput sellable?: SellableOrderByWithRelationInput _relevance?: CartItemOrderByRelevanceInput } export type CartItemWhereUniqueInput = Prisma.AtLeast<{ itemId?: string AND?: CartItemWhereInput | CartItemWhereInput[] OR?: CartItemWhereInput[] NOT?: CartItemWhereInput | CartItemWhereInput[] quantity?: IntFilter<"CartItem"> | number cartId?: StringFilter<"CartItem"> | string cart?: XOR sellable?: XOR }, "itemId"> export type CartItemOrderByWithAggregationInput = { itemId?: SortOrder quantity?: SortOrder cartId?: SortOrder _count?: CartItemCountOrderByAggregateInput _avg?: CartItemAvgOrderByAggregateInput _max?: CartItemMaxOrderByAggregateInput _min?: CartItemMinOrderByAggregateInput _sum?: CartItemSumOrderByAggregateInput } export type CartItemScalarWhereWithAggregatesInput = { AND?: CartItemScalarWhereWithAggregatesInput | CartItemScalarWhereWithAggregatesInput[] OR?: CartItemScalarWhereWithAggregatesInput[] NOT?: CartItemScalarWhereWithAggregatesInput | CartItemScalarWhereWithAggregatesInput[] itemId?: StringWithAggregatesFilter<"CartItem"> | string quantity?: IntWithAggregatesFilter<"CartItem"> | number cartId?: StringWithAggregatesFilter<"CartItem"> | string } export type AdressWhereInput = { AND?: AdressWhereInput | AdressWhereInput[] OR?: AdressWhereInput[] NOT?: AdressWhereInput | AdressWhereInput[] id?: StringFilter<"Adress"> | string userId?: StringFilter<"Adress"> | string adress?: StringFilter<"Adress"> | string user?: XOR } export type AdressOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder adress?: SortOrder user?: UserOrderByWithRelationInput _relevance?: AdressOrderByRelevanceInput } export type AdressWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: AdressWhereInput | AdressWhereInput[] OR?: AdressWhereInput[] NOT?: AdressWhereInput | AdressWhereInput[] userId?: StringFilter<"Adress"> | string adress?: StringFilter<"Adress"> | string user?: XOR }, "id"> export type AdressOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder adress?: SortOrder _count?: AdressCountOrderByAggregateInput _max?: AdressMaxOrderByAggregateInput _min?: AdressMinOrderByAggregateInput } export type AdressScalarWhereWithAggregatesInput = { AND?: AdressScalarWhereWithAggregatesInput | AdressScalarWhereWithAggregatesInput[] OR?: AdressScalarWhereWithAggregatesInput[] NOT?: AdressScalarWhereWithAggregatesInput | AdressScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Adress"> | string userId?: StringWithAggregatesFilter<"Adress"> | string adress?: StringWithAggregatesFilter<"Adress"> | string } export type AccountCreateInput = { id?: string type: string provider: string providerAccountId: string refresh_token?: string | null access_token?: string | null expires_at?: number | null token_type?: string | null scope?: string | null id_token?: string | null session_state?: string | null refresh_token_expires_in?: number | null user: UserCreateNestedOneWithoutAccountsInput } export type AccountUncheckedCreateInput = { id?: string userId: string type: string provider: string providerAccountId: string refresh_token?: string | null access_token?: string | null expires_at?: number | null token_type?: string | null scope?: string | null id_token?: string | null session_state?: string | null refresh_token_expires_in?: number | null } export type AccountUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string providerAccountId?: StringFieldUpdateOperationsInput | string refresh_token?: NullableStringFieldUpdateOperationsInput | string | null access_token?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableIntFieldUpdateOperationsInput | number | null token_type?: NullableStringFieldUpdateOperationsInput | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null id_token?: NullableStringFieldUpdateOperationsInput | string | null session_state?: NullableStringFieldUpdateOperationsInput | string | null refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null user?: UserUpdateOneRequiredWithoutAccountsNestedInput } export type AccountUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string providerAccountId?: StringFieldUpdateOperationsInput | string refresh_token?: NullableStringFieldUpdateOperationsInput | string | null access_token?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableIntFieldUpdateOperationsInput | number | null token_type?: NullableStringFieldUpdateOperationsInput | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null id_token?: NullableStringFieldUpdateOperationsInput | string | null session_state?: NullableStringFieldUpdateOperationsInput | string | null refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null } export type AccountCreateManyInput = { id?: string userId: string type: string provider: string providerAccountId: string refresh_token?: string | null access_token?: string | null expires_at?: number | null token_type?: string | null scope?: string | null id_token?: string | null session_state?: string | null refresh_token_expires_in?: number | null } export type AccountUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string providerAccountId?: StringFieldUpdateOperationsInput | string refresh_token?: NullableStringFieldUpdateOperationsInput | string | null access_token?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableIntFieldUpdateOperationsInput | number | null token_type?: NullableStringFieldUpdateOperationsInput | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null id_token?: NullableStringFieldUpdateOperationsInput | string | null session_state?: NullableStringFieldUpdateOperationsInput | string | null refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null } export type AccountUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string providerAccountId?: StringFieldUpdateOperationsInput | string refresh_token?: NullableStringFieldUpdateOperationsInput | string | null access_token?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableIntFieldUpdateOperationsInput | number | null token_type?: NullableStringFieldUpdateOperationsInput | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null id_token?: NullableStringFieldUpdateOperationsInput | string | null session_state?: NullableStringFieldUpdateOperationsInput | string | null refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null } export type SessionCreateInput = { id?: string sessionToken: string expires: Date | string user: UserCreateNestedOneWithoutSessionsInput } export type SessionUncheckedCreateInput = { id?: string sessionToken: string userId: string expires: Date | string } export type SessionUpdateInput = { id?: StringFieldUpdateOperationsInput | string sessionToken?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutSessionsNestedInput } export type SessionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string sessionToken?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionCreateManyInput = { id?: string sessionToken: string userId: string expires: Date | string } export type SessionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string sessionToken?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string sessionToken?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserCreateInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput shops?: ShopCreateNestedManyWithoutUserInput carts?: CartCreateNestedManyWithoutUserInput adresses?: AdressCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput shops?: ShopUncheckedCreateNestedManyWithoutUserInput carts?: CartUncheckedCreateNestedManyWithoutUserInput adresses?: AdressUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput shops?: ShopUpdateManyWithoutUserNestedInput carts?: CartUpdateManyWithoutUserNestedInput adresses?: AdressUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput shops?: ShopUncheckedUpdateManyWithoutUserNestedInput carts?: CartUncheckedUpdateManyWithoutUserNestedInput adresses?: AdressUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number } export type UserUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number } export type UserUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number } export type VerificationTokenCreateInput = { identifier: string token: string expires: Date | string } export type VerificationTokenUncheckedCreateInput = { identifier: string token: string expires: Date | string } export type VerificationTokenUpdateInput = { identifier?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type VerificationTokenUncheckedUpdateInput = { identifier?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type VerificationTokenCreateManyInput = { identifier: string token: string expires: Date | string } export type VerificationTokenUpdateManyMutationInput = { identifier?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type VerificationTokenUncheckedUpdateManyInput = { identifier?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type ShopCreateInput = { id: number label: string user: UserCreateNestedOneWithoutShopsInput items?: ItemCreateNestedManyWithoutShopInput sellables?: SellableCreateNestedManyWithoutShopInput } export type ShopUncheckedCreateInput = { id: number userId: string label: string items?: ItemUncheckedCreateNestedManyWithoutShopInput sellables?: SellableUncheckedCreateNestedManyWithoutShopInput } export type ShopUpdateInput = { id?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string user?: UserUpdateOneRequiredWithoutShopsNestedInput items?: ItemUpdateManyWithoutShopNestedInput sellables?: SellableUpdateManyWithoutShopNestedInput } export type ShopUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string items?: ItemUncheckedUpdateManyWithoutShopNestedInput sellables?: SellableUncheckedUpdateManyWithoutShopNestedInput } export type ShopCreateManyInput = { id: number userId: string label: string } export type ShopUpdateManyMutationInput = { id?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string } export type ShopUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string } export type ItemCreateInput = { item_name: string stock: number shop: ShopCreateNestedOneWithoutItemsInput sellables?: SellableCreateNestedManyWithoutItemInput } export type ItemUncheckedCreateInput = { item_name: string stock: number shopId: number sellables?: SellableUncheckedCreateNestedManyWithoutItemInput } export type ItemUpdateInput = { item_name?: StringFieldUpdateOperationsInput | string stock?: IntFieldUpdateOperationsInput | number shop?: ShopUpdateOneRequiredWithoutItemsNestedInput sellables?: SellableUpdateManyWithoutItemNestedInput } export type ItemUncheckedUpdateInput = { item_name?: StringFieldUpdateOperationsInput | string stock?: IntFieldUpdateOperationsInput | number shopId?: IntFieldUpdateOperationsInput | number sellables?: SellableUncheckedUpdateManyWithoutItemNestedInput } export type ItemCreateManyInput = { item_name: string stock: number shopId: number } export type ItemUpdateManyMutationInput = { item_name?: StringFieldUpdateOperationsInput | string stock?: IntFieldUpdateOperationsInput | number } export type ItemUncheckedUpdateManyInput = { item_name?: StringFieldUpdateOperationsInput | string stock?: IntFieldUpdateOperationsInput | number shopId?: IntFieldUpdateOperationsInput | number } export type SellableCreateInput = { id?: string amount: number price: number enabled?: boolean shop: ShopCreateNestedOneWithoutSellablesInput item: ItemCreateNestedOneWithoutSellablesInput cartItems?: CartItemCreateNestedManyWithoutSellableInput } export type SellableUncheckedCreateInput = { id?: string item_name: string amount: number price: number shopId: number enabled?: boolean cartItems?: CartItemUncheckedCreateNestedManyWithoutSellableInput } export type SellableUpdateInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean shop?: ShopUpdateOneRequiredWithoutSellablesNestedInput item?: ItemUpdateOneRequiredWithoutSellablesNestedInput cartItems?: CartItemUpdateManyWithoutSellableNestedInput } export type SellableUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string item_name?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number shopId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean cartItems?: CartItemUncheckedUpdateManyWithoutSellableNestedInput } export type SellableCreateManyInput = { id?: string item_name: string amount: number price: number shopId: number enabled?: boolean } export type SellableUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean } export type SellableUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string item_name?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number shopId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean } export type CartCreateInput = { user: UserCreateNestedOneWithoutCartsInput cartItems?: CartItemCreateNestedManyWithoutCartInput } export type CartUncheckedCreateInput = { userId: string cartItems?: CartItemUncheckedCreateNestedManyWithoutCartInput } export type CartUpdateInput = { user?: UserUpdateOneRequiredWithoutCartsNestedInput cartItems?: CartItemUpdateManyWithoutCartNestedInput } export type CartUncheckedUpdateInput = { userId?: StringFieldUpdateOperationsInput | string cartItems?: CartItemUncheckedUpdateManyWithoutCartNestedInput } export type CartCreateManyInput = { userId: string } export type CartUpdateManyMutationInput = { } export type CartUncheckedUpdateManyInput = { userId?: StringFieldUpdateOperationsInput | string } export type CartItemCreateInput = { quantity: number cart: CartCreateNestedOneWithoutCartItemsInput sellable: SellableCreateNestedOneWithoutCartItemsInput } export type CartItemUncheckedCreateInput = { itemId: string quantity: number cartId: string } export type CartItemUpdateInput = { quantity?: IntFieldUpdateOperationsInput | number cart?: CartUpdateOneRequiredWithoutCartItemsNestedInput sellable?: SellableUpdateOneRequiredWithoutCartItemsNestedInput } export type CartItemUncheckedUpdateInput = { itemId?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number cartId?: StringFieldUpdateOperationsInput | string } export type CartItemCreateManyInput = { itemId: string quantity: number cartId: string } export type CartItemUpdateManyMutationInput = { quantity?: IntFieldUpdateOperationsInput | number } export type CartItemUncheckedUpdateManyInput = { itemId?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number cartId?: StringFieldUpdateOperationsInput | string } export type AdressCreateInput = { id?: string adress: string user: UserCreateNestedOneWithoutAdressesInput } export type AdressUncheckedCreateInput = { id?: string userId: string adress: string } export type AdressUpdateInput = { id?: StringFieldUpdateOperationsInput | string adress?: StringFieldUpdateOperationsInput | string user?: UserUpdateOneRequiredWithoutAdressesNestedInput } export type AdressUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string adress?: StringFieldUpdateOperationsInput | string } export type AdressCreateManyInput = { id?: string userId: string adress: string } export type AdressUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string adress?: StringFieldUpdateOperationsInput | string } export type AdressUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string adress?: StringFieldUpdateOperationsInput | string } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] 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> search?: string not?: NestedStringFilter<$PrismaModel> | string } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | null notIn?: string[] | 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> search?: string not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type UserScalarRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type AccountOrderByRelevanceInput = { fields: AccountOrderByRelevanceFieldEnum | AccountOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type AccountProviderProviderAccountIdCompoundUniqueInput = { provider: string providerAccountId: string } export type AccountCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder type?: SortOrder provider?: SortOrder providerAccountId?: SortOrder refresh_token?: SortOrder access_token?: SortOrder expires_at?: SortOrder token_type?: SortOrder scope?: SortOrder id_token?: SortOrder session_state?: SortOrder refresh_token_expires_in?: SortOrder } export type AccountAvgOrderByAggregateInput = { expires_at?: SortOrder refresh_token_expires_in?: SortOrder } export type AccountMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder type?: SortOrder provider?: SortOrder providerAccountId?: SortOrder refresh_token?: SortOrder access_token?: SortOrder expires_at?: SortOrder token_type?: SortOrder scope?: SortOrder id_token?: SortOrder session_state?: SortOrder refresh_token_expires_in?: SortOrder } export type AccountMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder type?: SortOrder provider?: SortOrder providerAccountId?: SortOrder refresh_token?: SortOrder access_token?: SortOrder expires_at?: SortOrder token_type?: SortOrder scope?: SortOrder id_token?: SortOrder session_state?: SortOrder refresh_token_expires_in?: SortOrder } export type AccountSumOrderByAggregateInput = { expires_at?: SortOrder refresh_token_expires_in?: SortOrder } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] 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> search?: string 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[] | null notIn?: string[] | 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> search?: string not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] 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 SessionOrderByRelevanceInput = { fields: SessionOrderByRelevanceFieldEnum | SessionOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type SessionCountOrderByAggregateInput = { id?: SortOrder sessionToken?: SortOrder userId?: SortOrder expires?: SortOrder } export type SessionMaxOrderByAggregateInput = { id?: SortOrder sessionToken?: SortOrder userId?: SortOrder expires?: SortOrder } export type SessionMinOrderByAggregateInput = { id?: SortOrder sessionToken?: SortOrder userId?: SortOrder expires?: SortOrder } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] 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 DateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | 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 FloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type AccountListRelationFilter = { every?: AccountWhereInput some?: AccountWhereInput none?: AccountWhereInput } export type SessionListRelationFilter = { every?: SessionWhereInput some?: SessionWhereInput none?: SessionWhereInput } export type ShopListRelationFilter = { every?: ShopWhereInput some?: ShopWhereInput none?: ShopWhereInput } export type CartListRelationFilter = { every?: CartWhereInput some?: CartWhereInput none?: CartWhereInput } export type AdressListRelationFilter = { every?: AdressWhereInput some?: AdressWhereInput none?: AdressWhereInput } export type AccountOrderByRelationAggregateInput = { _count?: SortOrder } export type SessionOrderByRelationAggregateInput = { _count?: SortOrder } export type ShopOrderByRelationAggregateInput = { _count?: SortOrder } export type CartOrderByRelationAggregateInput = { _count?: SortOrder } export type AdressOrderByRelationAggregateInput = { _count?: SortOrder } export type UserOrderByRelevanceInput = { fields: UserOrderByRelevanceFieldEnum | UserOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type UserCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder email?: SortOrder emailVerified?: SortOrder image?: SortOrder balance?: SortOrder } export type UserAvgOrderByAggregateInput = { balance?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder email?: SortOrder emailVerified?: SortOrder image?: SortOrder balance?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder email?: SortOrder emailVerified?: SortOrder image?: SortOrder balance?: SortOrder } export type UserSumOrderByAggregateInput = { balance?: SortOrder } export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | 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 FloatWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type VerificationTokenOrderByRelevanceInput = { fields: VerificationTokenOrderByRelevanceFieldEnum | VerificationTokenOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type VerificationTokenIdentifierTokenCompoundUniqueInput = { identifier: string token: string } export type VerificationTokenCountOrderByAggregateInput = { identifier?: SortOrder token?: SortOrder expires?: SortOrder } export type VerificationTokenMaxOrderByAggregateInput = { identifier?: SortOrder token?: SortOrder expires?: SortOrder } export type VerificationTokenMinOrderByAggregateInput = { identifier?: SortOrder token?: SortOrder expires?: SortOrder } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type ItemListRelationFilter = { every?: ItemWhereInput some?: ItemWhereInput none?: ItemWhereInput } export type SellableListRelationFilter = { every?: SellableWhereInput some?: SellableWhereInput none?: SellableWhereInput } export type ItemOrderByRelationAggregateInput = { _count?: SortOrder } export type SellableOrderByRelationAggregateInput = { _count?: SortOrder } export type ShopOrderByRelevanceInput = { fields: ShopOrderByRelevanceFieldEnum | ShopOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type ShopCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder label?: SortOrder } export type ShopAvgOrderByAggregateInput = { id?: SortOrder } export type ShopMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder label?: SortOrder } export type ShopMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder label?: SortOrder } export type ShopSumOrderByAggregateInput = { id?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] 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 ShopScalarRelationFilter = { is?: ShopWhereInput isNot?: ShopWhereInput } export type ItemOrderByRelevanceInput = { fields: ItemOrderByRelevanceFieldEnum | ItemOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type ItemCountOrderByAggregateInput = { item_name?: SortOrder stock?: SortOrder shopId?: SortOrder } export type ItemAvgOrderByAggregateInput = { stock?: SortOrder shopId?: SortOrder } export type ItemMaxOrderByAggregateInput = { item_name?: SortOrder stock?: SortOrder shopId?: SortOrder } export type ItemMinOrderByAggregateInput = { item_name?: SortOrder stock?: SortOrder shopId?: SortOrder } export type ItemSumOrderByAggregateInput = { stock?: SortOrder shopId?: SortOrder } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type ItemScalarRelationFilter = { is?: ItemWhereInput isNot?: ItemWhereInput } export type CartItemListRelationFilter = { every?: CartItemWhereInput some?: CartItemWhereInput none?: CartItemWhereInput } export type CartItemOrderByRelationAggregateInput = { _count?: SortOrder } export type SellableOrderByRelevanceInput = { fields: SellableOrderByRelevanceFieldEnum | SellableOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type SellableCountOrderByAggregateInput = { id?: SortOrder item_name?: SortOrder amount?: SortOrder price?: SortOrder shopId?: SortOrder enabled?: SortOrder } export type SellableAvgOrderByAggregateInput = { amount?: SortOrder price?: SortOrder shopId?: SortOrder } export type SellableMaxOrderByAggregateInput = { id?: SortOrder item_name?: SortOrder amount?: SortOrder price?: SortOrder shopId?: SortOrder enabled?: SortOrder } export type SellableMinOrderByAggregateInput = { id?: SortOrder item_name?: SortOrder amount?: SortOrder price?: SortOrder shopId?: SortOrder enabled?: SortOrder } export type SellableSumOrderByAggregateInput = { amount?: SortOrder price?: SortOrder shopId?: SortOrder } export type BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type CartOrderByRelevanceInput = { fields: CartOrderByRelevanceFieldEnum | CartOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type CartCountOrderByAggregateInput = { userId?: SortOrder } export type CartMaxOrderByAggregateInput = { userId?: SortOrder } export type CartMinOrderByAggregateInput = { userId?: SortOrder } export type CartScalarRelationFilter = { is?: CartWhereInput isNot?: CartWhereInput } export type SellableScalarRelationFilter = { is?: SellableWhereInput isNot?: SellableWhereInput } export type CartItemOrderByRelevanceInput = { fields: CartItemOrderByRelevanceFieldEnum | CartItemOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type CartItemCountOrderByAggregateInput = { itemId?: SortOrder quantity?: SortOrder cartId?: SortOrder } export type CartItemAvgOrderByAggregateInput = { quantity?: SortOrder } export type CartItemMaxOrderByAggregateInput = { itemId?: SortOrder quantity?: SortOrder cartId?: SortOrder } export type CartItemMinOrderByAggregateInput = { itemId?: SortOrder quantity?: SortOrder cartId?: SortOrder } export type CartItemSumOrderByAggregateInput = { quantity?: SortOrder } export type AdressOrderByRelevanceInput = { fields: AdressOrderByRelevanceFieldEnum | AdressOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type AdressCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder adress?: SortOrder } export type AdressMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder adress?: SortOrder } export type AdressMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder adress?: SortOrder } export type UserCreateNestedOneWithoutAccountsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAccountsInput connect?: UserWhereUniqueInput } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type UserUpdateOneRequiredWithoutAccountsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAccountsInput upsert?: UserUpsertWithoutAccountsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutAccountsInput> } export type UserCreateNestedOneWithoutSessionsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSessionsInput connect?: UserWhereUniqueInput } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type UserUpdateOneRequiredWithoutSessionsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSessionsInput upsert?: UserUpsertWithoutSessionsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutSessionsInput> } export type AccountCreateNestedManyWithoutUserInput = { create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] createMany?: AccountCreateManyUserInputEnvelope connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] } export type SessionCreateNestedManyWithoutUserInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type ShopCreateNestedManyWithoutUserInput = { create?: XOR | ShopCreateWithoutUserInput[] | ShopUncheckedCreateWithoutUserInput[] connectOrCreate?: ShopCreateOrConnectWithoutUserInput | ShopCreateOrConnectWithoutUserInput[] createMany?: ShopCreateManyUserInputEnvelope connect?: ShopWhereUniqueInput | ShopWhereUniqueInput[] } export type CartCreateNestedManyWithoutUserInput = { create?: XOR | CartCreateWithoutUserInput[] | CartUncheckedCreateWithoutUserInput[] connectOrCreate?: CartCreateOrConnectWithoutUserInput | CartCreateOrConnectWithoutUserInput[] createMany?: CartCreateManyUserInputEnvelope connect?: CartWhereUniqueInput | CartWhereUniqueInput[] } export type AdressCreateNestedManyWithoutUserInput = { create?: XOR | AdressCreateWithoutUserInput[] | AdressUncheckedCreateWithoutUserInput[] connectOrCreate?: AdressCreateOrConnectWithoutUserInput | AdressCreateOrConnectWithoutUserInput[] createMany?: AdressCreateManyUserInputEnvelope connect?: AdressWhereUniqueInput | AdressWhereUniqueInput[] } export type AccountUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] createMany?: AccountCreateManyUserInputEnvelope connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] } export type SessionUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type ShopUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | ShopCreateWithoutUserInput[] | ShopUncheckedCreateWithoutUserInput[] connectOrCreate?: ShopCreateOrConnectWithoutUserInput | ShopCreateOrConnectWithoutUserInput[] createMany?: ShopCreateManyUserInputEnvelope connect?: ShopWhereUniqueInput | ShopWhereUniqueInput[] } export type CartUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | CartCreateWithoutUserInput[] | CartUncheckedCreateWithoutUserInput[] connectOrCreate?: CartCreateOrConnectWithoutUserInput | CartCreateOrConnectWithoutUserInput[] createMany?: CartCreateManyUserInputEnvelope connect?: CartWhereUniqueInput | CartWhereUniqueInput[] } export type AdressUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | AdressCreateWithoutUserInput[] | AdressUncheckedCreateWithoutUserInput[] connectOrCreate?: AdressCreateOrConnectWithoutUserInput | AdressCreateOrConnectWithoutUserInput[] createMany?: AdressCreateManyUserInputEnvelope connect?: AdressWhereUniqueInput | AdressWhereUniqueInput[] } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type AccountUpdateManyWithoutUserNestedInput = { create?: XOR | 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 SessionUpdateManyWithoutUserNestedInput = { create?: XOR | 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 ShopUpdateManyWithoutUserNestedInput = { create?: XOR | ShopCreateWithoutUserInput[] | ShopUncheckedCreateWithoutUserInput[] connectOrCreate?: ShopCreateOrConnectWithoutUserInput | ShopCreateOrConnectWithoutUserInput[] upsert?: ShopUpsertWithWhereUniqueWithoutUserInput | ShopUpsertWithWhereUniqueWithoutUserInput[] createMany?: ShopCreateManyUserInputEnvelope set?: ShopWhereUniqueInput | ShopWhereUniqueInput[] disconnect?: ShopWhereUniqueInput | ShopWhereUniqueInput[] delete?: ShopWhereUniqueInput | ShopWhereUniqueInput[] connect?: ShopWhereUniqueInput | ShopWhereUniqueInput[] update?: ShopUpdateWithWhereUniqueWithoutUserInput | ShopUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ShopUpdateManyWithWhereWithoutUserInput | ShopUpdateManyWithWhereWithoutUserInput[] deleteMany?: ShopScalarWhereInput | ShopScalarWhereInput[] } export type CartUpdateManyWithoutUserNestedInput = { create?: XOR | CartCreateWithoutUserInput[] | CartUncheckedCreateWithoutUserInput[] connectOrCreate?: CartCreateOrConnectWithoutUserInput | CartCreateOrConnectWithoutUserInput[] upsert?: CartUpsertWithWhereUniqueWithoutUserInput | CartUpsertWithWhereUniqueWithoutUserInput[] createMany?: CartCreateManyUserInputEnvelope set?: CartWhereUniqueInput | CartWhereUniqueInput[] disconnect?: CartWhereUniqueInput | CartWhereUniqueInput[] delete?: CartWhereUniqueInput | CartWhereUniqueInput[] connect?: CartWhereUniqueInput | CartWhereUniqueInput[] update?: CartUpdateWithWhereUniqueWithoutUserInput | CartUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CartUpdateManyWithWhereWithoutUserInput | CartUpdateManyWithWhereWithoutUserInput[] deleteMany?: CartScalarWhereInput | CartScalarWhereInput[] } export type AdressUpdateManyWithoutUserNestedInput = { create?: XOR | AdressCreateWithoutUserInput[] | AdressUncheckedCreateWithoutUserInput[] connectOrCreate?: AdressCreateOrConnectWithoutUserInput | AdressCreateOrConnectWithoutUserInput[] upsert?: AdressUpsertWithWhereUniqueWithoutUserInput | AdressUpsertWithWhereUniqueWithoutUserInput[] createMany?: AdressCreateManyUserInputEnvelope set?: AdressWhereUniqueInput | AdressWhereUniqueInput[] disconnect?: AdressWhereUniqueInput | AdressWhereUniqueInput[] delete?: AdressWhereUniqueInput | AdressWhereUniqueInput[] connect?: AdressWhereUniqueInput | AdressWhereUniqueInput[] update?: AdressUpdateWithWhereUniqueWithoutUserInput | AdressUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AdressUpdateManyWithWhereWithoutUserInput | AdressUpdateManyWithWhereWithoutUserInput[] deleteMany?: AdressScalarWhereInput | AdressScalarWhereInput[] } export type AccountUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | 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 SessionUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | 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 ShopUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | ShopCreateWithoutUserInput[] | ShopUncheckedCreateWithoutUserInput[] connectOrCreate?: ShopCreateOrConnectWithoutUserInput | ShopCreateOrConnectWithoutUserInput[] upsert?: ShopUpsertWithWhereUniqueWithoutUserInput | ShopUpsertWithWhereUniqueWithoutUserInput[] createMany?: ShopCreateManyUserInputEnvelope set?: ShopWhereUniqueInput | ShopWhereUniqueInput[] disconnect?: ShopWhereUniqueInput | ShopWhereUniqueInput[] delete?: ShopWhereUniqueInput | ShopWhereUniqueInput[] connect?: ShopWhereUniqueInput | ShopWhereUniqueInput[] update?: ShopUpdateWithWhereUniqueWithoutUserInput | ShopUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ShopUpdateManyWithWhereWithoutUserInput | ShopUpdateManyWithWhereWithoutUserInput[] deleteMany?: ShopScalarWhereInput | ShopScalarWhereInput[] } export type CartUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | CartCreateWithoutUserInput[] | CartUncheckedCreateWithoutUserInput[] connectOrCreate?: CartCreateOrConnectWithoutUserInput | CartCreateOrConnectWithoutUserInput[] upsert?: CartUpsertWithWhereUniqueWithoutUserInput | CartUpsertWithWhereUniqueWithoutUserInput[] createMany?: CartCreateManyUserInputEnvelope set?: CartWhereUniqueInput | CartWhereUniqueInput[] disconnect?: CartWhereUniqueInput | CartWhereUniqueInput[] delete?: CartWhereUniqueInput | CartWhereUniqueInput[] connect?: CartWhereUniqueInput | CartWhereUniqueInput[] update?: CartUpdateWithWhereUniqueWithoutUserInput | CartUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CartUpdateManyWithWhereWithoutUserInput | CartUpdateManyWithWhereWithoutUserInput[] deleteMany?: CartScalarWhereInput | CartScalarWhereInput[] } export type AdressUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | AdressCreateWithoutUserInput[] | AdressUncheckedCreateWithoutUserInput[] connectOrCreate?: AdressCreateOrConnectWithoutUserInput | AdressCreateOrConnectWithoutUserInput[] upsert?: AdressUpsertWithWhereUniqueWithoutUserInput | AdressUpsertWithWhereUniqueWithoutUserInput[] createMany?: AdressCreateManyUserInputEnvelope set?: AdressWhereUniqueInput | AdressWhereUniqueInput[] disconnect?: AdressWhereUniqueInput | AdressWhereUniqueInput[] delete?: AdressWhereUniqueInput | AdressWhereUniqueInput[] connect?: AdressWhereUniqueInput | AdressWhereUniqueInput[] update?: AdressUpdateWithWhereUniqueWithoutUserInput | AdressUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AdressUpdateManyWithWhereWithoutUserInput | AdressUpdateManyWithWhereWithoutUserInput[] deleteMany?: AdressScalarWhereInput | AdressScalarWhereInput[] } export type UserCreateNestedOneWithoutShopsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutShopsInput connect?: UserWhereUniqueInput } export type ItemCreateNestedManyWithoutShopInput = { create?: XOR | ItemCreateWithoutShopInput[] | ItemUncheckedCreateWithoutShopInput[] connectOrCreate?: ItemCreateOrConnectWithoutShopInput | ItemCreateOrConnectWithoutShopInput[] createMany?: ItemCreateManyShopInputEnvelope connect?: ItemWhereUniqueInput | ItemWhereUniqueInput[] } export type SellableCreateNestedManyWithoutShopInput = { create?: XOR | SellableCreateWithoutShopInput[] | SellableUncheckedCreateWithoutShopInput[] connectOrCreate?: SellableCreateOrConnectWithoutShopInput | SellableCreateOrConnectWithoutShopInput[] createMany?: SellableCreateManyShopInputEnvelope connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] } export type ItemUncheckedCreateNestedManyWithoutShopInput = { create?: XOR | ItemCreateWithoutShopInput[] | ItemUncheckedCreateWithoutShopInput[] connectOrCreate?: ItemCreateOrConnectWithoutShopInput | ItemCreateOrConnectWithoutShopInput[] createMany?: ItemCreateManyShopInputEnvelope connect?: ItemWhereUniqueInput | ItemWhereUniqueInput[] } export type SellableUncheckedCreateNestedManyWithoutShopInput = { create?: XOR | SellableCreateWithoutShopInput[] | SellableUncheckedCreateWithoutShopInput[] connectOrCreate?: SellableCreateOrConnectWithoutShopInput | SellableCreateOrConnectWithoutShopInput[] createMany?: SellableCreateManyShopInputEnvelope connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type UserUpdateOneRequiredWithoutShopsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutShopsInput upsert?: UserUpsertWithoutShopsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutShopsInput> } export type ItemUpdateManyWithoutShopNestedInput = { create?: XOR | ItemCreateWithoutShopInput[] | ItemUncheckedCreateWithoutShopInput[] connectOrCreate?: ItemCreateOrConnectWithoutShopInput | ItemCreateOrConnectWithoutShopInput[] upsert?: ItemUpsertWithWhereUniqueWithoutShopInput | ItemUpsertWithWhereUniqueWithoutShopInput[] createMany?: ItemCreateManyShopInputEnvelope set?: ItemWhereUniqueInput | ItemWhereUniqueInput[] disconnect?: ItemWhereUniqueInput | ItemWhereUniqueInput[] delete?: ItemWhereUniqueInput | ItemWhereUniqueInput[] connect?: ItemWhereUniqueInput | ItemWhereUniqueInput[] update?: ItemUpdateWithWhereUniqueWithoutShopInput | ItemUpdateWithWhereUniqueWithoutShopInput[] updateMany?: ItemUpdateManyWithWhereWithoutShopInput | ItemUpdateManyWithWhereWithoutShopInput[] deleteMany?: ItemScalarWhereInput | ItemScalarWhereInput[] } export type SellableUpdateManyWithoutShopNestedInput = { create?: XOR | SellableCreateWithoutShopInput[] | SellableUncheckedCreateWithoutShopInput[] connectOrCreate?: SellableCreateOrConnectWithoutShopInput | SellableCreateOrConnectWithoutShopInput[] upsert?: SellableUpsertWithWhereUniqueWithoutShopInput | SellableUpsertWithWhereUniqueWithoutShopInput[] createMany?: SellableCreateManyShopInputEnvelope set?: SellableWhereUniqueInput | SellableWhereUniqueInput[] disconnect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] delete?: SellableWhereUniqueInput | SellableWhereUniqueInput[] connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] update?: SellableUpdateWithWhereUniqueWithoutShopInput | SellableUpdateWithWhereUniqueWithoutShopInput[] updateMany?: SellableUpdateManyWithWhereWithoutShopInput | SellableUpdateManyWithWhereWithoutShopInput[] deleteMany?: SellableScalarWhereInput | SellableScalarWhereInput[] } export type ItemUncheckedUpdateManyWithoutShopNestedInput = { create?: XOR | ItemCreateWithoutShopInput[] | ItemUncheckedCreateWithoutShopInput[] connectOrCreate?: ItemCreateOrConnectWithoutShopInput | ItemCreateOrConnectWithoutShopInput[] upsert?: ItemUpsertWithWhereUniqueWithoutShopInput | ItemUpsertWithWhereUniqueWithoutShopInput[] createMany?: ItemCreateManyShopInputEnvelope set?: ItemWhereUniqueInput | ItemWhereUniqueInput[] disconnect?: ItemWhereUniqueInput | ItemWhereUniqueInput[] delete?: ItemWhereUniqueInput | ItemWhereUniqueInput[] connect?: ItemWhereUniqueInput | ItemWhereUniqueInput[] update?: ItemUpdateWithWhereUniqueWithoutShopInput | ItemUpdateWithWhereUniqueWithoutShopInput[] updateMany?: ItemUpdateManyWithWhereWithoutShopInput | ItemUpdateManyWithWhereWithoutShopInput[] deleteMany?: ItemScalarWhereInput | ItemScalarWhereInput[] } export type SellableUncheckedUpdateManyWithoutShopNestedInput = { create?: XOR | SellableCreateWithoutShopInput[] | SellableUncheckedCreateWithoutShopInput[] connectOrCreate?: SellableCreateOrConnectWithoutShopInput | SellableCreateOrConnectWithoutShopInput[] upsert?: SellableUpsertWithWhereUniqueWithoutShopInput | SellableUpsertWithWhereUniqueWithoutShopInput[] createMany?: SellableCreateManyShopInputEnvelope set?: SellableWhereUniqueInput | SellableWhereUniqueInput[] disconnect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] delete?: SellableWhereUniqueInput | SellableWhereUniqueInput[] connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] update?: SellableUpdateWithWhereUniqueWithoutShopInput | SellableUpdateWithWhereUniqueWithoutShopInput[] updateMany?: SellableUpdateManyWithWhereWithoutShopInput | SellableUpdateManyWithWhereWithoutShopInput[] deleteMany?: SellableScalarWhereInput | SellableScalarWhereInput[] } export type ShopCreateNestedOneWithoutItemsInput = { create?: XOR connectOrCreate?: ShopCreateOrConnectWithoutItemsInput connect?: ShopWhereUniqueInput } export type SellableCreateNestedManyWithoutItemInput = { create?: XOR | SellableCreateWithoutItemInput[] | SellableUncheckedCreateWithoutItemInput[] connectOrCreate?: SellableCreateOrConnectWithoutItemInput | SellableCreateOrConnectWithoutItemInput[] createMany?: SellableCreateManyItemInputEnvelope connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] } export type SellableUncheckedCreateNestedManyWithoutItemInput = { create?: XOR | SellableCreateWithoutItemInput[] | SellableUncheckedCreateWithoutItemInput[] connectOrCreate?: SellableCreateOrConnectWithoutItemInput | SellableCreateOrConnectWithoutItemInput[] createMany?: SellableCreateManyItemInputEnvelope connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] } export type ShopUpdateOneRequiredWithoutItemsNestedInput = { create?: XOR connectOrCreate?: ShopCreateOrConnectWithoutItemsInput upsert?: ShopUpsertWithoutItemsInput connect?: ShopWhereUniqueInput update?: XOR, ShopUncheckedUpdateWithoutItemsInput> } export type SellableUpdateManyWithoutItemNestedInput = { create?: XOR | SellableCreateWithoutItemInput[] | SellableUncheckedCreateWithoutItemInput[] connectOrCreate?: SellableCreateOrConnectWithoutItemInput | SellableCreateOrConnectWithoutItemInput[] upsert?: SellableUpsertWithWhereUniqueWithoutItemInput | SellableUpsertWithWhereUniqueWithoutItemInput[] createMany?: SellableCreateManyItemInputEnvelope set?: SellableWhereUniqueInput | SellableWhereUniqueInput[] disconnect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] delete?: SellableWhereUniqueInput | SellableWhereUniqueInput[] connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] update?: SellableUpdateWithWhereUniqueWithoutItemInput | SellableUpdateWithWhereUniqueWithoutItemInput[] updateMany?: SellableUpdateManyWithWhereWithoutItemInput | SellableUpdateManyWithWhereWithoutItemInput[] deleteMany?: SellableScalarWhereInput | SellableScalarWhereInput[] } export type SellableUncheckedUpdateManyWithoutItemNestedInput = { create?: XOR | SellableCreateWithoutItemInput[] | SellableUncheckedCreateWithoutItemInput[] connectOrCreate?: SellableCreateOrConnectWithoutItemInput | SellableCreateOrConnectWithoutItemInput[] upsert?: SellableUpsertWithWhereUniqueWithoutItemInput | SellableUpsertWithWhereUniqueWithoutItemInput[] createMany?: SellableCreateManyItemInputEnvelope set?: SellableWhereUniqueInput | SellableWhereUniqueInput[] disconnect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] delete?: SellableWhereUniqueInput | SellableWhereUniqueInput[] connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[] update?: SellableUpdateWithWhereUniqueWithoutItemInput | SellableUpdateWithWhereUniqueWithoutItemInput[] updateMany?: SellableUpdateManyWithWhereWithoutItemInput | SellableUpdateManyWithWhereWithoutItemInput[] deleteMany?: SellableScalarWhereInput | SellableScalarWhereInput[] } export type ShopCreateNestedOneWithoutSellablesInput = { create?: XOR connectOrCreate?: ShopCreateOrConnectWithoutSellablesInput connect?: ShopWhereUniqueInput } export type ItemCreateNestedOneWithoutSellablesInput = { create?: XOR connectOrCreate?: ItemCreateOrConnectWithoutSellablesInput connect?: ItemWhereUniqueInput } export type CartItemCreateNestedManyWithoutSellableInput = { create?: XOR | CartItemCreateWithoutSellableInput[] | CartItemUncheckedCreateWithoutSellableInput[] connectOrCreate?: CartItemCreateOrConnectWithoutSellableInput | CartItemCreateOrConnectWithoutSellableInput[] createMany?: CartItemCreateManySellableInputEnvelope connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] } export type CartItemUncheckedCreateNestedManyWithoutSellableInput = { create?: XOR | CartItemCreateWithoutSellableInput[] | CartItemUncheckedCreateWithoutSellableInput[] connectOrCreate?: CartItemCreateOrConnectWithoutSellableInput | CartItemCreateOrConnectWithoutSellableInput[] createMany?: CartItemCreateManySellableInputEnvelope connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type ShopUpdateOneRequiredWithoutSellablesNestedInput = { create?: XOR connectOrCreate?: ShopCreateOrConnectWithoutSellablesInput upsert?: ShopUpsertWithoutSellablesInput connect?: ShopWhereUniqueInput update?: XOR, ShopUncheckedUpdateWithoutSellablesInput> } export type ItemUpdateOneRequiredWithoutSellablesNestedInput = { create?: XOR connectOrCreate?: ItemCreateOrConnectWithoutSellablesInput upsert?: ItemUpsertWithoutSellablesInput connect?: ItemWhereUniqueInput update?: XOR, ItemUncheckedUpdateWithoutSellablesInput> } export type CartItemUpdateManyWithoutSellableNestedInput = { create?: XOR | CartItemCreateWithoutSellableInput[] | CartItemUncheckedCreateWithoutSellableInput[] connectOrCreate?: CartItemCreateOrConnectWithoutSellableInput | CartItemCreateOrConnectWithoutSellableInput[] upsert?: CartItemUpsertWithWhereUniqueWithoutSellableInput | CartItemUpsertWithWhereUniqueWithoutSellableInput[] createMany?: CartItemCreateManySellableInputEnvelope set?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] disconnect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] delete?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] update?: CartItemUpdateWithWhereUniqueWithoutSellableInput | CartItemUpdateWithWhereUniqueWithoutSellableInput[] updateMany?: CartItemUpdateManyWithWhereWithoutSellableInput | CartItemUpdateManyWithWhereWithoutSellableInput[] deleteMany?: CartItemScalarWhereInput | CartItemScalarWhereInput[] } export type CartItemUncheckedUpdateManyWithoutSellableNestedInput = { create?: XOR | CartItemCreateWithoutSellableInput[] | CartItemUncheckedCreateWithoutSellableInput[] connectOrCreate?: CartItemCreateOrConnectWithoutSellableInput | CartItemCreateOrConnectWithoutSellableInput[] upsert?: CartItemUpsertWithWhereUniqueWithoutSellableInput | CartItemUpsertWithWhereUniqueWithoutSellableInput[] createMany?: CartItemCreateManySellableInputEnvelope set?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] disconnect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] delete?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] update?: CartItemUpdateWithWhereUniqueWithoutSellableInput | CartItemUpdateWithWhereUniqueWithoutSellableInput[] updateMany?: CartItemUpdateManyWithWhereWithoutSellableInput | CartItemUpdateManyWithWhereWithoutSellableInput[] deleteMany?: CartItemScalarWhereInput | CartItemScalarWhereInput[] } export type UserCreateNestedOneWithoutCartsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCartsInput connect?: UserWhereUniqueInput } export type CartItemCreateNestedManyWithoutCartInput = { create?: XOR | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[] connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[] createMany?: CartItemCreateManyCartInputEnvelope connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] } export type CartItemUncheckedCreateNestedManyWithoutCartInput = { create?: XOR | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[] connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[] createMany?: CartItemCreateManyCartInputEnvelope connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] } export type UserUpdateOneRequiredWithoutCartsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCartsInput upsert?: UserUpsertWithoutCartsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCartsInput> } export type CartItemUpdateManyWithoutCartNestedInput = { create?: XOR | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[] connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[] upsert?: CartItemUpsertWithWhereUniqueWithoutCartInput | CartItemUpsertWithWhereUniqueWithoutCartInput[] createMany?: CartItemCreateManyCartInputEnvelope set?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] disconnect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] delete?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] update?: CartItemUpdateWithWhereUniqueWithoutCartInput | CartItemUpdateWithWhereUniqueWithoutCartInput[] updateMany?: CartItemUpdateManyWithWhereWithoutCartInput | CartItemUpdateManyWithWhereWithoutCartInput[] deleteMany?: CartItemScalarWhereInput | CartItemScalarWhereInput[] } export type CartItemUncheckedUpdateManyWithoutCartNestedInput = { create?: XOR | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[] connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[] upsert?: CartItemUpsertWithWhereUniqueWithoutCartInput | CartItemUpsertWithWhereUniqueWithoutCartInput[] createMany?: CartItemCreateManyCartInputEnvelope set?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] disconnect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] delete?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[] update?: CartItemUpdateWithWhereUniqueWithoutCartInput | CartItemUpdateWithWhereUniqueWithoutCartInput[] updateMany?: CartItemUpdateManyWithWhereWithoutCartInput | CartItemUpdateManyWithWhereWithoutCartInput[] deleteMany?: CartItemScalarWhereInput | CartItemScalarWhereInput[] } export type CartCreateNestedOneWithoutCartItemsInput = { create?: XOR connectOrCreate?: CartCreateOrConnectWithoutCartItemsInput connect?: CartWhereUniqueInput } export type SellableCreateNestedOneWithoutCartItemsInput = { create?: XOR connectOrCreate?: SellableCreateOrConnectWithoutCartItemsInput connect?: SellableWhereUniqueInput } export type CartUpdateOneRequiredWithoutCartItemsNestedInput = { create?: XOR connectOrCreate?: CartCreateOrConnectWithoutCartItemsInput upsert?: CartUpsertWithoutCartItemsInput connect?: CartWhereUniqueInput update?: XOR, CartUncheckedUpdateWithoutCartItemsInput> } export type SellableUpdateOneRequiredWithoutCartItemsNestedInput = { create?: XOR connectOrCreate?: SellableCreateOrConnectWithoutCartItemsInput upsert?: SellableUpsertWithoutCartItemsInput connect?: SellableWhereUniqueInput update?: XOR, SellableUncheckedUpdateWithoutCartItemsInput> } export type UserCreateNestedOneWithoutAdressesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAdressesInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutAdressesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAdressesInput upsert?: UserUpsertWithoutAdressesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutAdressesInput> } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] 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> search?: string not?: NestedStringFilter<$PrismaModel> | string } export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | null notIn?: string[] | 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> search?: string not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] 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> search?: string not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] 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[] | null notIn?: string[] | 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> search?: string not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type NestedFloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] 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 NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] 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 NestedDateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | 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 NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | 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 NestedFloatWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] 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 NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type UserCreateWithoutAccountsInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number sessions?: SessionCreateNestedManyWithoutUserInput shops?: ShopCreateNestedManyWithoutUserInput carts?: CartCreateNestedManyWithoutUserInput adresses?: AdressCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAccountsInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number sessions?: SessionUncheckedCreateNestedManyWithoutUserInput shops?: ShopUncheckedCreateNestedManyWithoutUserInput carts?: CartUncheckedCreateNestedManyWithoutUserInput adresses?: AdressUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAccountsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutAccountsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutAccountsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutAccountsInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number sessions?: SessionUpdateManyWithoutUserNestedInput shops?: ShopUpdateManyWithoutUserNestedInput carts?: CartUpdateManyWithoutUserNestedInput adresses?: AdressUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAccountsInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput shops?: ShopUncheckedUpdateManyWithoutUserNestedInput carts?: CartUncheckedUpdateManyWithoutUserNestedInput adresses?: AdressUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutSessionsInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountCreateNestedManyWithoutUserInput shops?: ShopCreateNestedManyWithoutUserInput carts?: CartCreateNestedManyWithoutUserInput adresses?: AdressCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutSessionsInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountUncheckedCreateNestedManyWithoutUserInput shops?: ShopUncheckedCreateNestedManyWithoutUserInput carts?: CartUncheckedCreateNestedManyWithoutUserInput adresses?: AdressUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutSessionsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutSessionsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutSessionsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutSessionsInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUpdateManyWithoutUserNestedInput shops?: ShopUpdateManyWithoutUserNestedInput carts?: CartUpdateManyWithoutUserNestedInput adresses?: AdressUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutSessionsInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput shops?: ShopUncheckedUpdateManyWithoutUserNestedInput carts?: CartUncheckedUpdateManyWithoutUserNestedInput adresses?: AdressUncheckedUpdateManyWithoutUserNestedInput } export type AccountCreateWithoutUserInput = { id?: string type: string provider: string providerAccountId: string refresh_token?: string | null access_token?: string | null expires_at?: number | null token_type?: string | null scope?: string | null id_token?: string | null session_state?: string | null refresh_token_expires_in?: number | null } export type AccountUncheckedCreateWithoutUserInput = { id?: string type: string provider: string providerAccountId: string refresh_token?: string | null access_token?: string | null expires_at?: number | null token_type?: string | null scope?: string | null id_token?: string | null session_state?: string | null refresh_token_expires_in?: number | null } export type AccountCreateOrConnectWithoutUserInput = { where: AccountWhereUniqueInput create: XOR } export type AccountCreateManyUserInputEnvelope = { data: AccountCreateManyUserInput | AccountCreateManyUserInput[] skipDuplicates?: boolean } export type SessionCreateWithoutUserInput = { id?: string sessionToken: string expires: Date | string } export type SessionUncheckedCreateWithoutUserInput = { id?: string sessionToken: string expires: Date | string } export type SessionCreateOrConnectWithoutUserInput = { where: SessionWhereUniqueInput create: XOR } export type SessionCreateManyUserInputEnvelope = { data: SessionCreateManyUserInput | SessionCreateManyUserInput[] skipDuplicates?: boolean } export type ShopCreateWithoutUserInput = { id: number label: string items?: ItemCreateNestedManyWithoutShopInput sellables?: SellableCreateNestedManyWithoutShopInput } export type ShopUncheckedCreateWithoutUserInput = { id: number label: string items?: ItemUncheckedCreateNestedManyWithoutShopInput sellables?: SellableUncheckedCreateNestedManyWithoutShopInput } export type ShopCreateOrConnectWithoutUserInput = { where: ShopWhereUniqueInput create: XOR } export type ShopCreateManyUserInputEnvelope = { data: ShopCreateManyUserInput | ShopCreateManyUserInput[] skipDuplicates?: boolean } export type CartCreateWithoutUserInput = { cartItems?: CartItemCreateNestedManyWithoutCartInput } export type CartUncheckedCreateWithoutUserInput = { cartItems?: CartItemUncheckedCreateNestedManyWithoutCartInput } export type CartCreateOrConnectWithoutUserInput = { where: CartWhereUniqueInput create: XOR } export type CartCreateManyUserInputEnvelope = { data: CartCreateManyUserInput | CartCreateManyUserInput[] skipDuplicates?: boolean } export type AdressCreateWithoutUserInput = { id?: string adress: string } export type AdressUncheckedCreateWithoutUserInput = { id?: string adress: string } export type AdressCreateOrConnectWithoutUserInput = { where: AdressWhereUniqueInput create: XOR } export type AdressCreateManyUserInputEnvelope = { data: AdressCreateManyUserInput | AdressCreateManyUserInput[] skipDuplicates?: boolean } export type AccountUpsertWithWhereUniqueWithoutUserInput = { where: AccountWhereUniqueInput update: XOR create: XOR } export type AccountUpdateWithWhereUniqueWithoutUserInput = { where: AccountWhereUniqueInput data: XOR } export type AccountUpdateManyWithWhereWithoutUserInput = { where: AccountScalarWhereInput data: XOR } export type AccountScalarWhereInput = { AND?: AccountScalarWhereInput | AccountScalarWhereInput[] OR?: AccountScalarWhereInput[] NOT?: AccountScalarWhereInput | AccountScalarWhereInput[] id?: StringFilter<"Account"> | string userId?: StringFilter<"Account"> | string type?: StringFilter<"Account"> | string provider?: StringFilter<"Account"> | string providerAccountId?: StringFilter<"Account"> | string refresh_token?: StringNullableFilter<"Account"> | string | null access_token?: StringNullableFilter<"Account"> | string | null expires_at?: IntNullableFilter<"Account"> | number | null token_type?: StringNullableFilter<"Account"> | string | null scope?: StringNullableFilter<"Account"> | string | null id_token?: StringNullableFilter<"Account"> | string | null session_state?: StringNullableFilter<"Account"> | string | null refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null } export type SessionUpsertWithWhereUniqueWithoutUserInput = { where: SessionWhereUniqueInput update: XOR create: XOR } export type SessionUpdateWithWhereUniqueWithoutUserInput = { where: SessionWhereUniqueInput data: XOR } export type SessionUpdateManyWithWhereWithoutUserInput = { where: SessionScalarWhereInput data: XOR } export type SessionScalarWhereInput = { AND?: SessionScalarWhereInput | SessionScalarWhereInput[] OR?: SessionScalarWhereInput[] NOT?: SessionScalarWhereInput | SessionScalarWhereInput[] id?: StringFilter<"Session"> | string sessionToken?: StringFilter<"Session"> | string userId?: StringFilter<"Session"> | string expires?: DateTimeFilter<"Session"> | Date | string } export type ShopUpsertWithWhereUniqueWithoutUserInput = { where: ShopWhereUniqueInput update: XOR create: XOR } export type ShopUpdateWithWhereUniqueWithoutUserInput = { where: ShopWhereUniqueInput data: XOR } export type ShopUpdateManyWithWhereWithoutUserInput = { where: ShopScalarWhereInput data: XOR } export type ShopScalarWhereInput = { AND?: ShopScalarWhereInput | ShopScalarWhereInput[] OR?: ShopScalarWhereInput[] NOT?: ShopScalarWhereInput | ShopScalarWhereInput[] id?: IntFilter<"Shop"> | number userId?: StringFilter<"Shop"> | string label?: StringFilter<"Shop"> | string } export type CartUpsertWithWhereUniqueWithoutUserInput = { where: CartWhereUniqueInput update: XOR create: XOR } export type CartUpdateWithWhereUniqueWithoutUserInput = { where: CartWhereUniqueInput data: XOR } export type CartUpdateManyWithWhereWithoutUserInput = { where: CartScalarWhereInput data: XOR } export type CartScalarWhereInput = { AND?: CartScalarWhereInput | CartScalarWhereInput[] OR?: CartScalarWhereInput[] NOT?: CartScalarWhereInput | CartScalarWhereInput[] userId?: StringFilter<"Cart"> | string } export type AdressUpsertWithWhereUniqueWithoutUserInput = { where: AdressWhereUniqueInput update: XOR create: XOR } export type AdressUpdateWithWhereUniqueWithoutUserInput = { where: AdressWhereUniqueInput data: XOR } export type AdressUpdateManyWithWhereWithoutUserInput = { where: AdressScalarWhereInput data: XOR } export type AdressScalarWhereInput = { AND?: AdressScalarWhereInput | AdressScalarWhereInput[] OR?: AdressScalarWhereInput[] NOT?: AdressScalarWhereInput | AdressScalarWhereInput[] id?: StringFilter<"Adress"> | string userId?: StringFilter<"Adress"> | string adress?: StringFilter<"Adress"> | string } export type UserCreateWithoutShopsInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput carts?: CartCreateNestedManyWithoutUserInput adresses?: AdressCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutShopsInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput carts?: CartUncheckedCreateNestedManyWithoutUserInput adresses?: AdressUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutShopsInput = { where: UserWhereUniqueInput create: XOR } export type ItemCreateWithoutShopInput = { item_name: string stock: number sellables?: SellableCreateNestedManyWithoutItemInput } export type ItemUncheckedCreateWithoutShopInput = { item_name: string stock: number sellables?: SellableUncheckedCreateNestedManyWithoutItemInput } export type ItemCreateOrConnectWithoutShopInput = { where: ItemWhereUniqueInput create: XOR } export type ItemCreateManyShopInputEnvelope = { data: ItemCreateManyShopInput | ItemCreateManyShopInput[] skipDuplicates?: boolean } export type SellableCreateWithoutShopInput = { id?: string amount: number price: number enabled?: boolean item: ItemCreateNestedOneWithoutSellablesInput cartItems?: CartItemCreateNestedManyWithoutSellableInput } export type SellableUncheckedCreateWithoutShopInput = { id?: string item_name: string amount: number price: number enabled?: boolean cartItems?: CartItemUncheckedCreateNestedManyWithoutSellableInput } export type SellableCreateOrConnectWithoutShopInput = { where: SellableWhereUniqueInput create: XOR } export type SellableCreateManyShopInputEnvelope = { data: SellableCreateManyShopInput | SellableCreateManyShopInput[] skipDuplicates?: boolean } export type UserUpsertWithoutShopsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutShopsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutShopsInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput carts?: CartUpdateManyWithoutUserNestedInput adresses?: AdressUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutShopsInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput carts?: CartUncheckedUpdateManyWithoutUserNestedInput adresses?: AdressUncheckedUpdateManyWithoutUserNestedInput } export type ItemUpsertWithWhereUniqueWithoutShopInput = { where: ItemWhereUniqueInput update: XOR create: XOR } export type ItemUpdateWithWhereUniqueWithoutShopInput = { where: ItemWhereUniqueInput data: XOR } export type ItemUpdateManyWithWhereWithoutShopInput = { where: ItemScalarWhereInput data: XOR } export type ItemScalarWhereInput = { AND?: ItemScalarWhereInput | ItemScalarWhereInput[] OR?: ItemScalarWhereInput[] NOT?: ItemScalarWhereInput | ItemScalarWhereInput[] item_name?: StringFilter<"Item"> | string stock?: IntFilter<"Item"> | number shopId?: IntFilter<"Item"> | number } export type SellableUpsertWithWhereUniqueWithoutShopInput = { where: SellableWhereUniqueInput update: XOR create: XOR } export type SellableUpdateWithWhereUniqueWithoutShopInput = { where: SellableWhereUniqueInput data: XOR } export type SellableUpdateManyWithWhereWithoutShopInput = { where: SellableScalarWhereInput data: XOR } export type SellableScalarWhereInput = { AND?: SellableScalarWhereInput | SellableScalarWhereInput[] OR?: SellableScalarWhereInput[] NOT?: SellableScalarWhereInput | SellableScalarWhereInput[] id?: StringFilter<"Sellable"> | string item_name?: StringFilter<"Sellable"> | string amount?: IntFilter<"Sellable"> | number price?: FloatFilter<"Sellable"> | number shopId?: IntFilter<"Sellable"> | number enabled?: BoolFilter<"Sellable"> | boolean } export type ShopCreateWithoutItemsInput = { id: number label: string user: UserCreateNestedOneWithoutShopsInput sellables?: SellableCreateNestedManyWithoutShopInput } export type ShopUncheckedCreateWithoutItemsInput = { id: number userId: string label: string sellables?: SellableUncheckedCreateNestedManyWithoutShopInput } export type ShopCreateOrConnectWithoutItemsInput = { where: ShopWhereUniqueInput create: XOR } export type SellableCreateWithoutItemInput = { id?: string amount: number price: number enabled?: boolean shop: ShopCreateNestedOneWithoutSellablesInput cartItems?: CartItemCreateNestedManyWithoutSellableInput } export type SellableUncheckedCreateWithoutItemInput = { id?: string amount: number price: number shopId: number enabled?: boolean cartItems?: CartItemUncheckedCreateNestedManyWithoutSellableInput } export type SellableCreateOrConnectWithoutItemInput = { where: SellableWhereUniqueInput create: XOR } export type SellableCreateManyItemInputEnvelope = { data: SellableCreateManyItemInput | SellableCreateManyItemInput[] skipDuplicates?: boolean } export type ShopUpsertWithoutItemsInput = { update: XOR create: XOR where?: ShopWhereInput } export type ShopUpdateToOneWithWhereWithoutItemsInput = { where?: ShopWhereInput data: XOR } export type ShopUpdateWithoutItemsInput = { id?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string user?: UserUpdateOneRequiredWithoutShopsNestedInput sellables?: SellableUpdateManyWithoutShopNestedInput } export type ShopUncheckedUpdateWithoutItemsInput = { id?: IntFieldUpdateOperationsInput | number userId?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string sellables?: SellableUncheckedUpdateManyWithoutShopNestedInput } export type SellableUpsertWithWhereUniqueWithoutItemInput = { where: SellableWhereUniqueInput update: XOR create: XOR } export type SellableUpdateWithWhereUniqueWithoutItemInput = { where: SellableWhereUniqueInput data: XOR } export type SellableUpdateManyWithWhereWithoutItemInput = { where: SellableScalarWhereInput data: XOR } export type ShopCreateWithoutSellablesInput = { id: number label: string user: UserCreateNestedOneWithoutShopsInput items?: ItemCreateNestedManyWithoutShopInput } export type ShopUncheckedCreateWithoutSellablesInput = { id: number userId: string label: string items?: ItemUncheckedCreateNestedManyWithoutShopInput } export type ShopCreateOrConnectWithoutSellablesInput = { where: ShopWhereUniqueInput create: XOR } export type ItemCreateWithoutSellablesInput = { item_name: string stock: number shop: ShopCreateNestedOneWithoutItemsInput } export type ItemUncheckedCreateWithoutSellablesInput = { item_name: string stock: number shopId: number } export type ItemCreateOrConnectWithoutSellablesInput = { where: ItemWhereUniqueInput create: XOR } export type CartItemCreateWithoutSellableInput = { quantity: number cart: CartCreateNestedOneWithoutCartItemsInput } export type CartItemUncheckedCreateWithoutSellableInput = { quantity: number cartId: string } export type CartItemCreateOrConnectWithoutSellableInput = { where: CartItemWhereUniqueInput create: XOR } export type CartItemCreateManySellableInputEnvelope = { data: CartItemCreateManySellableInput | CartItemCreateManySellableInput[] skipDuplicates?: boolean } export type ShopUpsertWithoutSellablesInput = { update: XOR create: XOR where?: ShopWhereInput } export type ShopUpdateToOneWithWhereWithoutSellablesInput = { where?: ShopWhereInput data: XOR } export type ShopUpdateWithoutSellablesInput = { id?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string user?: UserUpdateOneRequiredWithoutShopsNestedInput items?: ItemUpdateManyWithoutShopNestedInput } export type ShopUncheckedUpdateWithoutSellablesInput = { id?: IntFieldUpdateOperationsInput | number userId?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string items?: ItemUncheckedUpdateManyWithoutShopNestedInput } export type ItemUpsertWithoutSellablesInput = { update: XOR create: XOR where?: ItemWhereInput } export type ItemUpdateToOneWithWhereWithoutSellablesInput = { where?: ItemWhereInput data: XOR } export type ItemUpdateWithoutSellablesInput = { item_name?: StringFieldUpdateOperationsInput | string stock?: IntFieldUpdateOperationsInput | number shop?: ShopUpdateOneRequiredWithoutItemsNestedInput } export type ItemUncheckedUpdateWithoutSellablesInput = { item_name?: StringFieldUpdateOperationsInput | string stock?: IntFieldUpdateOperationsInput | number shopId?: IntFieldUpdateOperationsInput | number } export type CartItemUpsertWithWhereUniqueWithoutSellableInput = { where: CartItemWhereUniqueInput update: XOR create: XOR } export type CartItemUpdateWithWhereUniqueWithoutSellableInput = { where: CartItemWhereUniqueInput data: XOR } export type CartItemUpdateManyWithWhereWithoutSellableInput = { where: CartItemScalarWhereInput data: XOR } export type CartItemScalarWhereInput = { AND?: CartItemScalarWhereInput | CartItemScalarWhereInput[] OR?: CartItemScalarWhereInput[] NOT?: CartItemScalarWhereInput | CartItemScalarWhereInput[] itemId?: StringFilter<"CartItem"> | string quantity?: IntFilter<"CartItem"> | number cartId?: StringFilter<"CartItem"> | string } export type UserCreateWithoutCartsInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput shops?: ShopCreateNestedManyWithoutUserInput adresses?: AdressCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutCartsInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput shops?: ShopUncheckedCreateNestedManyWithoutUserInput adresses?: AdressUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutCartsInput = { where: UserWhereUniqueInput create: XOR } export type CartItemCreateWithoutCartInput = { quantity: number sellable: SellableCreateNestedOneWithoutCartItemsInput } export type CartItemUncheckedCreateWithoutCartInput = { itemId: string quantity: number } export type CartItemCreateOrConnectWithoutCartInput = { where: CartItemWhereUniqueInput create: XOR } export type CartItemCreateManyCartInputEnvelope = { data: CartItemCreateManyCartInput | CartItemCreateManyCartInput[] skipDuplicates?: boolean } export type UserUpsertWithoutCartsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutCartsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutCartsInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput shops?: ShopUpdateManyWithoutUserNestedInput adresses?: AdressUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutCartsInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput shops?: ShopUncheckedUpdateManyWithoutUserNestedInput adresses?: AdressUncheckedUpdateManyWithoutUserNestedInput } export type CartItemUpsertWithWhereUniqueWithoutCartInput = { where: CartItemWhereUniqueInput update: XOR create: XOR } export type CartItemUpdateWithWhereUniqueWithoutCartInput = { where: CartItemWhereUniqueInput data: XOR } export type CartItemUpdateManyWithWhereWithoutCartInput = { where: CartItemScalarWhereInput data: XOR } export type CartCreateWithoutCartItemsInput = { user: UserCreateNestedOneWithoutCartsInput } export type CartUncheckedCreateWithoutCartItemsInput = { userId: string } export type CartCreateOrConnectWithoutCartItemsInput = { where: CartWhereUniqueInput create: XOR } export type SellableCreateWithoutCartItemsInput = { id?: string amount: number price: number enabled?: boolean shop: ShopCreateNestedOneWithoutSellablesInput item: ItemCreateNestedOneWithoutSellablesInput } export type SellableUncheckedCreateWithoutCartItemsInput = { id?: string item_name: string amount: number price: number shopId: number enabled?: boolean } export type SellableCreateOrConnectWithoutCartItemsInput = { where: SellableWhereUniqueInput create: XOR } export type CartUpsertWithoutCartItemsInput = { update: XOR create: XOR where?: CartWhereInput } export type CartUpdateToOneWithWhereWithoutCartItemsInput = { where?: CartWhereInput data: XOR } export type CartUpdateWithoutCartItemsInput = { user?: UserUpdateOneRequiredWithoutCartsNestedInput } export type CartUncheckedUpdateWithoutCartItemsInput = { userId?: StringFieldUpdateOperationsInput | string } export type SellableUpsertWithoutCartItemsInput = { update: XOR create: XOR where?: SellableWhereInput } export type SellableUpdateToOneWithWhereWithoutCartItemsInput = { where?: SellableWhereInput data: XOR } export type SellableUpdateWithoutCartItemsInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean shop?: ShopUpdateOneRequiredWithoutSellablesNestedInput item?: ItemUpdateOneRequiredWithoutSellablesNestedInput } export type SellableUncheckedUpdateWithoutCartItemsInput = { id?: StringFieldUpdateOperationsInput | string item_name?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number shopId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean } export type UserCreateWithoutAdressesInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput shops?: ShopCreateNestedManyWithoutUserInput carts?: CartCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAdressesInput = { id?: string name?: string | null email?: string | null emailVerified?: Date | string | null image?: string | null balance?: number accounts?: AccountUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput shops?: ShopUncheckedCreateNestedManyWithoutUserInput carts?: CartUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAdressesInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutAdressesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutAdressesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutAdressesInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput shops?: ShopUpdateManyWithoutUserNestedInput carts?: CartUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAdressesInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null image?: NullableStringFieldUpdateOperationsInput | string | null balance?: FloatFieldUpdateOperationsInput | number accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput shops?: ShopUncheckedUpdateManyWithoutUserNestedInput carts?: CartUncheckedUpdateManyWithoutUserNestedInput } export type AccountCreateManyUserInput = { id?: string type: string provider: string providerAccountId: string refresh_token?: string | null access_token?: string | null expires_at?: number | null token_type?: string | null scope?: string | null id_token?: string | null session_state?: string | null refresh_token_expires_in?: number | null } export type SessionCreateManyUserInput = { id?: string sessionToken: string expires: Date | string } export type ShopCreateManyUserInput = { id: number label: string } export type CartCreateManyUserInput = { } export type AdressCreateManyUserInput = { id?: string adress: string } export type AccountUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string providerAccountId?: StringFieldUpdateOperationsInput | string refresh_token?: NullableStringFieldUpdateOperationsInput | string | null access_token?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableIntFieldUpdateOperationsInput | number | null token_type?: NullableStringFieldUpdateOperationsInput | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null id_token?: NullableStringFieldUpdateOperationsInput | string | null session_state?: NullableStringFieldUpdateOperationsInput | string | null refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null } export type AccountUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string providerAccountId?: StringFieldUpdateOperationsInput | string refresh_token?: NullableStringFieldUpdateOperationsInput | string | null access_token?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableIntFieldUpdateOperationsInput | number | null token_type?: NullableStringFieldUpdateOperationsInput | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null id_token?: NullableStringFieldUpdateOperationsInput | string | null session_state?: NullableStringFieldUpdateOperationsInput | string | null refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null } export type AccountUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string providerAccountId?: StringFieldUpdateOperationsInput | string refresh_token?: NullableStringFieldUpdateOperationsInput | string | null access_token?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableIntFieldUpdateOperationsInput | number | null token_type?: NullableStringFieldUpdateOperationsInput | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null id_token?: NullableStringFieldUpdateOperationsInput | string | null session_state?: NullableStringFieldUpdateOperationsInput | string | null refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null } export type SessionUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string sessionToken?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string sessionToken?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string sessionToken?: StringFieldUpdateOperationsInput | string expires?: DateTimeFieldUpdateOperationsInput | Date | string } export type ShopUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string items?: ItemUpdateManyWithoutShopNestedInput sellables?: SellableUpdateManyWithoutShopNestedInput } export type ShopUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string items?: ItemUncheckedUpdateManyWithoutShopNestedInput sellables?: SellableUncheckedUpdateManyWithoutShopNestedInput } export type ShopUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string } export type CartUpdateWithoutUserInput = { cartItems?: CartItemUpdateManyWithoutCartNestedInput } export type CartUncheckedUpdateWithoutUserInput = { cartItems?: CartItemUncheckedUpdateManyWithoutCartNestedInput } export type CartUncheckedUpdateManyWithoutUserInput = { } export type AdressUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string adress?: StringFieldUpdateOperationsInput | string } export type AdressUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string adress?: StringFieldUpdateOperationsInput | string } export type AdressUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string adress?: StringFieldUpdateOperationsInput | string } export type ItemCreateManyShopInput = { item_name: string stock: number } export type SellableCreateManyShopInput = { id?: string item_name: string amount: number price: number enabled?: boolean } export type ItemUpdateWithoutShopInput = { item_name?: StringFieldUpdateOperationsInput | string stock?: IntFieldUpdateOperationsInput | number sellables?: SellableUpdateManyWithoutItemNestedInput } export type ItemUncheckedUpdateWithoutShopInput = { item_name?: StringFieldUpdateOperationsInput | string stock?: IntFieldUpdateOperationsInput | number sellables?: SellableUncheckedUpdateManyWithoutItemNestedInput } export type ItemUncheckedUpdateManyWithoutShopInput = { item_name?: StringFieldUpdateOperationsInput | string stock?: IntFieldUpdateOperationsInput | number } export type SellableUpdateWithoutShopInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean item?: ItemUpdateOneRequiredWithoutSellablesNestedInput cartItems?: CartItemUpdateManyWithoutSellableNestedInput } export type SellableUncheckedUpdateWithoutShopInput = { id?: StringFieldUpdateOperationsInput | string item_name?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean cartItems?: CartItemUncheckedUpdateManyWithoutSellableNestedInput } export type SellableUncheckedUpdateManyWithoutShopInput = { id?: StringFieldUpdateOperationsInput | string item_name?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean } export type SellableCreateManyItemInput = { id?: string amount: number price: number shopId: number enabled?: boolean } export type SellableUpdateWithoutItemInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean shop?: ShopUpdateOneRequiredWithoutSellablesNestedInput cartItems?: CartItemUpdateManyWithoutSellableNestedInput } export type SellableUncheckedUpdateWithoutItemInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number shopId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean cartItems?: CartItemUncheckedUpdateManyWithoutSellableNestedInput } export type SellableUncheckedUpdateManyWithoutItemInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number price?: FloatFieldUpdateOperationsInput | number shopId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean } export type CartItemCreateManySellableInput = { quantity: number cartId: string } export type CartItemUpdateWithoutSellableInput = { quantity?: IntFieldUpdateOperationsInput | number cart?: CartUpdateOneRequiredWithoutCartItemsNestedInput } export type CartItemUncheckedUpdateWithoutSellableInput = { quantity?: IntFieldUpdateOperationsInput | number cartId?: StringFieldUpdateOperationsInput | string } export type CartItemUncheckedUpdateManyWithoutSellableInput = { quantity?: IntFieldUpdateOperationsInput | number cartId?: StringFieldUpdateOperationsInput | string } export type CartItemCreateManyCartInput = { itemId: string quantity: number } export type CartItemUpdateWithoutCartInput = { quantity?: IntFieldUpdateOperationsInput | number sellable?: SellableUpdateOneRequiredWithoutCartItemsNestedInput } export type CartItemUncheckedUpdateWithoutCartInput = { itemId?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number } export type CartItemUncheckedUpdateManyWithoutCartInput = { itemId?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }