15766 lines
538 KiB
TypeScript
15766 lines
538 KiB
TypeScript
|
|
/**
|
|
* Client
|
|
**/
|
|
|
|
import * as runtime from './runtime/library.js';
|
|
import $Types = runtime.Types // general types
|
|
import $Public = runtime.Types.Public
|
|
import $Utils = runtime.Types.Utils
|
|
import $Extensions = runtime.Types.Extensions
|
|
import $Result = runtime.Types.Result
|
|
|
|
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
|
|
|
|
/**
|
|
* Model Account
|
|
*
|
|
*/
|
|
export type Account = $Result.DefaultSelection<Prisma.$AccountPayload>
|
|
/**
|
|
* Model Session
|
|
*
|
|
*/
|
|
export type Session = $Result.DefaultSelection<Prisma.$SessionPayload>
|
|
/**
|
|
* Model User
|
|
*
|
|
*/
|
|
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
|
|
/**
|
|
* Model VerificationToken
|
|
*
|
|
*/
|
|
export type VerificationToken = $Result.DefaultSelection<Prisma.$VerificationTokenPayload>
|
|
/**
|
|
* Model Shop
|
|
*
|
|
*/
|
|
export type Shop = $Result.DefaultSelection<Prisma.$ShopPayload>
|
|
/**
|
|
* Model Item
|
|
*
|
|
*/
|
|
export type Item = $Result.DefaultSelection<Prisma.$ItemPayload>
|
|
/**
|
|
* Model Sellable
|
|
*
|
|
*/
|
|
export type Sellable = $Result.DefaultSelection<Prisma.$SellablePayload>
|
|
/**
|
|
* Model Cart
|
|
*
|
|
*/
|
|
export type Cart = $Result.DefaultSelection<Prisma.$CartPayload>
|
|
/**
|
|
* Model CartItem
|
|
*
|
|
*/
|
|
export type CartItem = $Result.DefaultSelection<Prisma.$CartItemPayload>
|
|
/**
|
|
* Model Adress
|
|
*
|
|
*/
|
|
export type Adress = $Result.DefaultSelection<Prisma.$AdressPayload>
|
|
|
|
/**
|
|
* ## 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.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
|
|
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
|
|
> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
|
|
/**
|
|
* ## Prisma Client ʲˢ
|
|
*
|
|
* Type-safe database client for TypeScript & Node.js
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient()
|
|
* // Fetch zero or more Accounts
|
|
* const accounts = await prisma.account.findMany()
|
|
* ```
|
|
*
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
*/
|
|
|
|
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
|
|
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
|
|
/**
|
|
* Connect with the database
|
|
*/
|
|
$connect(): $Utils.JsPromise<void>;
|
|
|
|
/**
|
|
* Disconnect from the database
|
|
*/
|
|
$disconnect(): $Utils.JsPromise<void>;
|
|
|
|
/**
|
|
* Executes a prepared raw query and returns the number of affected rows.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
/**
|
|
* Executes a raw query and returns the number of affected rows.
|
|
* Susceptible to SQL injections, see documentation.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
/**
|
|
* Performs a prepared raw query and returns the `SELECT` data.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
/**
|
|
* Performs a raw query and returns the `SELECT` data.
|
|
* Susceptible to SQL injections, see documentation.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
|
|
/**
|
|
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
* @example
|
|
* ```
|
|
* const [george, bob, alice] = await prisma.$transaction([
|
|
* prisma.user.create({ data: { name: 'George' } }),
|
|
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
* ])
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
|
*/
|
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
|
|
|
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
|
|
|
|
|
|
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
|
|
extArgs: ExtArgs
|
|
}>>
|
|
|
|
/**
|
|
* `prisma.account`: Exposes CRUD operations for the **Account** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Accounts
|
|
* const accounts = await prisma.account.findMany()
|
|
* ```
|
|
*/
|
|
get account(): Prisma.AccountDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.session`: Exposes CRUD operations for the **Session** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Sessions
|
|
* const sessions = await prisma.session.findMany()
|
|
* ```
|
|
*/
|
|
get session(): Prisma.SessionDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Users
|
|
* const users = await prisma.user.findMany()
|
|
* ```
|
|
*/
|
|
get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.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<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `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<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `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<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `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<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `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<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `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<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `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<ExtArgs, ClientOptions>;
|
|
}
|
|
|
|
export namespace Prisma {
|
|
export import DMMF = runtime.DMMF
|
|
|
|
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
|
|
/**
|
|
* Validator
|
|
*/
|
|
export import validator = runtime.Public.validator
|
|
|
|
/**
|
|
* Prisma Errors
|
|
*/
|
|
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
|
|
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
|
|
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
|
|
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
|
|
export import PrismaClientValidationError = runtime.PrismaClientValidationError
|
|
|
|
/**
|
|
* Re-export of sql-template-tag
|
|
*/
|
|
export import sql = runtime.sqltag
|
|
export import empty = runtime.empty
|
|
export import join = runtime.join
|
|
export import raw = runtime.raw
|
|
export import Sql = runtime.Sql
|
|
|
|
|
|
|
|
/**
|
|
* Decimal.js
|
|
*/
|
|
export import Decimal = runtime.Decimal
|
|
|
|
export type DecimalJsLike = runtime.DecimalJsLike
|
|
|
|
/**
|
|
* Metrics
|
|
*/
|
|
export type Metrics = runtime.Metrics
|
|
export type Metric<T> = runtime.Metric<T>
|
|
export type MetricHistogram = runtime.MetricHistogram
|
|
export type MetricHistogramBucket = runtime.MetricHistogramBucket
|
|
|
|
/**
|
|
* Extensions
|
|
*/
|
|
export import Extension = $Extensions.UserArgs
|
|
export import getExtensionContext = runtime.Extensions.getExtensionContext
|
|
export import Args = $Public.Args
|
|
export import Payload = $Public.Payload
|
|
export import Result = $Public.Result
|
|
export import Exact = $Public.Exact
|
|
|
|
/**
|
|
* Prisma Client JS version: 6.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<any>> = T extends PromiseLike<infer U> ? U : T;
|
|
|
|
/**
|
|
* Get the return type of a function which returns a Promise.
|
|
*/
|
|
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
|
|
|
|
/**
|
|
* From T, pick a set of properties whose keys are in the union K
|
|
*/
|
|
type Prisma__Pick<T, K extends keyof T> = {
|
|
[P in K]: T[P];
|
|
};
|
|
|
|
|
|
export type Enumerable<T> = T | Array<T>;
|
|
|
|
export type RequiredKeys<T> = {
|
|
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
|
|
}[keyof T]
|
|
|
|
export type TruthyKeys<T> = keyof {
|
|
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
|
|
}
|
|
|
|
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
|
|
|
|
/**
|
|
* Subset
|
|
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
|
|
*/
|
|
export type Subset<T, U> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
};
|
|
|
|
/**
|
|
* SelectSubset
|
|
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
|
|
* Additionally, it validates, if both select and include are present. If the case, it errors.
|
|
*/
|
|
export type SelectSubset<T, U> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
} &
|
|
(T extends SelectAndInclude
|
|
? 'Please either choose `select` or `include`.'
|
|
: T extends SelectAndOmit
|
|
? 'Please either choose `select` or `omit`.'
|
|
: {})
|
|
|
|
/**
|
|
* Subset + Intersection
|
|
* @desc From `T` pick properties that exist in `U` and intersect `K`
|
|
*/
|
|
export type SubsetIntersection<T, U, K> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
} &
|
|
K
|
|
|
|
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
|
|
|
/**
|
|
* XOR is needed to have a real mutually exclusive union type
|
|
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
|
|
*/
|
|
type XOR<T, U> =
|
|
T extends object ?
|
|
U extends object ?
|
|
(Without<T, U> & U) | (Without<U, T> & T)
|
|
: U : T
|
|
|
|
|
|
/**
|
|
* Is T a Record?
|
|
*/
|
|
type IsObject<T extends any> = T extends Array<any>
|
|
? False
|
|
: T extends Date
|
|
? False
|
|
: T extends Uint8Array
|
|
? False
|
|
: T extends BigInt
|
|
? False
|
|
: T extends object
|
|
? True
|
|
: False
|
|
|
|
|
|
/**
|
|
* If it's T[], return T
|
|
*/
|
|
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
|
|
|
|
/**
|
|
* From ts-toolbelt
|
|
*/
|
|
|
|
type __Either<O extends object, K extends Key> = Omit<O, K> &
|
|
{
|
|
// Merge all but K
|
|
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
|
|
}[K]
|
|
|
|
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
|
|
|
|
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
|
|
|
|
type _Either<
|
|
O extends object,
|
|
K extends Key,
|
|
strict extends Boolean
|
|
> = {
|
|
1: EitherStrict<O, K>
|
|
0: EitherLoose<O, K>
|
|
}[strict]
|
|
|
|
type Either<
|
|
O extends object,
|
|
K extends Key,
|
|
strict extends Boolean = 1
|
|
> = O extends unknown ? _Either<O, K, strict> : never
|
|
|
|
export type Union = any
|
|
|
|
type PatchUndefined<O extends object, O1 extends object> = {
|
|
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
|
|
} & {}
|
|
|
|
/** Helper Types for "Merge" **/
|
|
export type IntersectOf<U extends Union> = (
|
|
U extends unknown ? (k: U) => void : never
|
|
) extends (k: infer I) => void
|
|
? I
|
|
: never
|
|
|
|
export type Overwrite<O extends object, O1 extends object> = {
|
|
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
|
|
} & {};
|
|
|
|
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
|
|
[K in keyof U]-?: At<U, K>;
|
|
}>>;
|
|
|
|
type Key = string | number | symbol;
|
|
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
|
|
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
|
|
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
|
|
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
|
|
1: AtStrict<O, K>;
|
|
0: AtLoose<O, K>;
|
|
}[strict];
|
|
|
|
export type ComputeRaw<A extends any> = A extends Function ? A : {
|
|
[K in keyof A]: A[K];
|
|
} & {};
|
|
|
|
export type OptionalFlat<O> = {
|
|
[K in keyof O]?: O[K];
|
|
} & {};
|
|
|
|
type _Record<K extends keyof any, T> = {
|
|
[P in K]: T;
|
|
};
|
|
|
|
// cause typescript not to expand types and preserve names
|
|
type NoExpand<T> = T extends unknown ? T : never;
|
|
|
|
// this type assumes the passed object is entirely optional
|
|
type AtLeast<O extends object, K extends string> = NoExpand<
|
|
O extends unknown
|
|
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
|
|
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
|
|
: never>;
|
|
|
|
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
|
|
|
|
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
|
|
/** End Helper Types for "Merge" **/
|
|
|
|
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
|
|
|
|
/**
|
|
A [[Boolean]]
|
|
*/
|
|
export type Boolean = True | False
|
|
|
|
// /**
|
|
// 1
|
|
// */
|
|
export type True = 1
|
|
|
|
/**
|
|
0
|
|
*/
|
|
export type False = 0
|
|
|
|
export type Not<B extends Boolean> = {
|
|
0: 1
|
|
1: 0
|
|
}[B]
|
|
|
|
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
|
|
? 0 // anything `never` is false
|
|
: A1 extends A2
|
|
? 1
|
|
: 0
|
|
|
|
export type Has<U extends Union, U1 extends Union> = Not<
|
|
Extends<Exclude<U1, U>, U1>
|
|
>
|
|
|
|
export type Or<B1 extends Boolean, B2 extends Boolean> = {
|
|
0: {
|
|
0: 0
|
|
1: 1
|
|
}
|
|
1: {
|
|
0: 1
|
|
1: 1
|
|
}
|
|
}[B1][B2]
|
|
|
|
export type Keys<U extends Union> = U extends unknown ? keyof U : never
|
|
|
|
type Cast<A, B> = A extends B ? A : B;
|
|
|
|
export const type: unique symbol;
|
|
|
|
|
|
|
|
/**
|
|
* Used by group by
|
|
*/
|
|
|
|
export type GetScalarType<T, O> = O extends object ? {
|
|
[P in keyof T]: P extends keyof O
|
|
? O[P]
|
|
: never
|
|
} : never
|
|
|
|
type FieldPaths<
|
|
T,
|
|
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
|
|
> = IsObject<T> extends True ? U : T
|
|
|
|
type GetHavingFields<T> = {
|
|
[K in keyof T]: Or<
|
|
Or<Extends<'OR', K>, Extends<'AND', K>>,
|
|
Extends<'NOT', K>
|
|
> extends True
|
|
? // infer is only needed to not hit TS limit
|
|
// based on the brilliant idea of Pierre-Antoine Mills
|
|
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
|
|
T[K] extends infer TK
|
|
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
|
|
: never
|
|
: {} extends FieldPaths<T[K]>
|
|
? never
|
|
: K
|
|
}[keyof T]
|
|
|
|
/**
|
|
* Convert tuple to union
|
|
*/
|
|
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
|
|
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
|
|
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
|
|
|
|
/**
|
|
* Like `Pick`, but additionally can also accept an array of keys
|
|
*/
|
|
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
|
|
|
|
/**
|
|
* Exclude all keys with underscores
|
|
*/
|
|
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
|
|
|
|
|
|
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
|
|
|
|
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
|
|
|
|
|
|
export const ModelName: {
|
|
Account: 'Account',
|
|
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<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
|
|
returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
|
|
}
|
|
|
|
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
|
|
globalOmitOptions: {
|
|
omit: GlobalOmitOptions
|
|
}
|
|
meta: {
|
|
modelProps: "account" | "session" | "user" | "verificationToken" | "shop" | "item" | "sellable" | "cart" | "cartItem" | "adress"
|
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
}
|
|
model: {
|
|
Account: {
|
|
payload: Prisma.$AccountPayload<ExtArgs>
|
|
fields: Prisma.AccountFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.AccountFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.AccountFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.AccountFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.AccountFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.AccountFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.AccountCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.AccountCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.AccountDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.AccountUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.AccountDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.AccountUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.AccountUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.AccountAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateAccount>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.AccountGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<AccountGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.AccountCountArgs<ExtArgs>
|
|
result: $Utils.Optional<AccountCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Session: {
|
|
payload: Prisma.$SessionPayload<ExtArgs>
|
|
fields: Prisma.SessionFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.SessionFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.SessionFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.SessionFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.SessionCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.SessionCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.SessionDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.SessionUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.SessionDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.SessionUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.SessionUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SessionAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSession>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.SessionGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SessionGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.SessionCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SessionCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
User: {
|
|
payload: Prisma.$UserPayload<ExtArgs>
|
|
fields: Prisma.UserFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.UserFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.UserFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.UserFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.UserCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.UserCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.UserDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.UserUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.UserDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.UserUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.UserUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.UserAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateUser>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.UserGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<UserGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.UserCountArgs<ExtArgs>
|
|
result: $Utils.Optional<UserCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
VerificationToken: {
|
|
payload: Prisma.$VerificationTokenPayload<ExtArgs>
|
|
fields: Prisma.VerificationTokenFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.VerificationTokenFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.VerificationTokenFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.VerificationTokenFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.VerificationTokenFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.VerificationTokenFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.VerificationTokenCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.VerificationTokenCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.VerificationTokenDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.VerificationTokenUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.VerificationTokenDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.VerificationTokenUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.VerificationTokenUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.VerificationTokenAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateVerificationToken>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.VerificationTokenGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<VerificationTokenGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.VerificationTokenCountArgs<ExtArgs>
|
|
result: $Utils.Optional<VerificationTokenCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Shop: {
|
|
payload: Prisma.$ShopPayload<ExtArgs>
|
|
fields: Prisma.ShopFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ShopFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ShopPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ShopFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ShopPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ShopFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ShopPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ShopFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ShopPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ShopFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ShopPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ShopCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ShopPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ShopCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.ShopDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ShopPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ShopUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ShopPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ShopDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ShopUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ShopUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ShopPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ShopAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateShop>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ShopGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ShopGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ShopCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ShopCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Item: {
|
|
payload: Prisma.$ItemPayload<ExtArgs>
|
|
fields: Prisma.ItemFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ItemFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ItemPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ItemFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ItemPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ItemFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ItemPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ItemFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ItemPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ItemFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ItemPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ItemCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ItemPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ItemCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.ItemDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ItemPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ItemUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ItemPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ItemDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ItemUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ItemUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ItemPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ItemAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateItem>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ItemGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ItemGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ItemCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ItemCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Sellable: {
|
|
payload: Prisma.$SellablePayload<ExtArgs>
|
|
fields: Prisma.SellableFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.SellableFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SellablePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.SellableFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SellablePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.SellableFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SellablePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.SellableFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SellablePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.SellableFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SellablePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.SellableCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SellablePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.SellableCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.SellableDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SellablePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.SellableUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SellablePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.SellableDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.SellableUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.SellableUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SellablePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SellableAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSellable>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.SellableGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SellableGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.SellableCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SellableCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Cart: {
|
|
payload: Prisma.$CartPayload<ExtArgs>
|
|
fields: Prisma.CartFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.CartFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.CartFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.CartFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.CartFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.CartFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.CartCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.CartCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.CartDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.CartUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.CartDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.CartUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.CartUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.CartAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCart>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.CartGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<CartGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.CartCountArgs<ExtArgs>
|
|
result: $Utils.Optional<CartCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
CartItem: {
|
|
payload: Prisma.$CartItemPayload<ExtArgs>
|
|
fields: Prisma.CartItemFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.CartItemFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartItemPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.CartItemFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartItemPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.CartItemFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartItemPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.CartItemFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartItemPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.CartItemFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartItemPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.CartItemCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartItemPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.CartItemCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.CartItemDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartItemPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.CartItemUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartItemPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.CartItemDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.CartItemUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.CartItemUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CartItemPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.CartItemAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCartItem>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.CartItemGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<CartItemGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.CartItemCountArgs<ExtArgs>
|
|
result: $Utils.Optional<CartItemCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Adress: {
|
|
payload: Prisma.$AdressPayload<ExtArgs>
|
|
fields: Prisma.AdressFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.AdressFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdressPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.AdressFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdressPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.AdressFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdressPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.AdressFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdressPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.AdressFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdressPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.AdressCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdressPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.AdressCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.AdressDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdressPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.AdressUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdressPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.AdressDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.AdressUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.AdressUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdressPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.AdressAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateAdress>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.AdressGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<AdressGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.AdressCountArgs<ExtArgs>
|
|
result: $Utils.Optional<AdressCountAggregateOutputType> | 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> = T extends LogLevel ? T : never;
|
|
|
|
export type GetLogType<T> = CheckIsLogLevel<
|
|
T extends LogDefinition ? T['level'] : T
|
|
>;
|
|
|
|
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
|
|
? GetLogType<T[number]>
|
|
: 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 | LogDefinition>): LogLevel | undefined;
|
|
|
|
/**
|
|
* `PrismaClient` proxy available in interactive transactions.
|
|
*/
|
|
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
|
|
|
|
export type Datasource = {
|
|
url?: string
|
|
}
|
|
|
|
/**
|
|
* Count Types
|
|
*/
|
|
|
|
|
|
/**
|
|
* Count Type UserCountOutputType
|
|
*/
|
|
|
|
export type UserCountOutputType = {
|
|
accounts: number
|
|
sessions: number
|
|
shops: number
|
|
carts: number
|
|
adresses: number
|
|
}
|
|
|
|
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
accounts?: boolean | UserCountOutputTypeCountAccountsArgs
|
|
sessions?: boolean | UserCountOutputTypeCountSessionsArgs
|
|
shops?: boolean | UserCountOutputTypeCountShopsArgs
|
|
carts?: boolean | UserCountOutputTypeCountCartsArgs
|
|
adresses?: boolean | UserCountOutputTypeCountAdressesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserCountOutputType
|
|
*/
|
|
select?: UserCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountAccountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AccountWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SessionWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountShopsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ShopWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountCartsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CartWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountAdressesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AdressWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ShopCountOutputType
|
|
*/
|
|
|
|
export type ShopCountOutputType = {
|
|
items: number
|
|
sellables: number
|
|
}
|
|
|
|
export type ShopCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
items?: boolean | ShopCountOutputTypeCountItemsArgs
|
|
sellables?: boolean | ShopCountOutputTypeCountSellablesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ShopCountOutputType without action
|
|
*/
|
|
export type ShopCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShopCountOutputType
|
|
*/
|
|
select?: ShopCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ShopCountOutputType without action
|
|
*/
|
|
export type ShopCountOutputTypeCountItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ItemWhereInput
|
|
}
|
|
|
|
/**
|
|
* ShopCountOutputType without action
|
|
*/
|
|
export type ShopCountOutputTypeCountSellablesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SellableWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ItemCountOutputType
|
|
*/
|
|
|
|
export type ItemCountOutputType = {
|
|
sellables: number
|
|
}
|
|
|
|
export type ItemCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
sellables?: boolean | ItemCountOutputTypeCountSellablesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ItemCountOutputType without action
|
|
*/
|
|
export type ItemCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ItemCountOutputType
|
|
*/
|
|
select?: ItemCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ItemCountOutputType without action
|
|
*/
|
|
export type ItemCountOutputTypeCountSellablesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SellableWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type SellableCountOutputType
|
|
*/
|
|
|
|
export type SellableCountOutputType = {
|
|
cartItems: number
|
|
}
|
|
|
|
export type SellableCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
cartItems?: boolean | SellableCountOutputTypeCountCartItemsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SellableCountOutputType without action
|
|
*/
|
|
export type SellableCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SellableCountOutputType
|
|
*/
|
|
select?: SellableCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SellableCountOutputType without action
|
|
*/
|
|
export type SellableCountOutputTypeCountCartItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CartItemWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type CartCountOutputType
|
|
*/
|
|
|
|
export type CartCountOutputType = {
|
|
cartItems: number
|
|
}
|
|
|
|
export type CartCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
cartItems?: boolean | CartCountOutputTypeCountCartItemsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* CartCountOutputType without action
|
|
*/
|
|
export type CartCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartCountOutputType
|
|
*/
|
|
select?: CartCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* CartCountOutputType without action
|
|
*/
|
|
export type CartCountOutputTypeCountCartItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Account to aggregate.
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Accounts to fetch.
|
|
*/
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: AccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Accounts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Accounts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Accounts
|
|
**/
|
|
_count?: true | AccountCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to 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<T extends AccountAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateAccount[P]>
|
|
: GetScalarType<T[P], AggregateAccount[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AccountGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AccountWhereInput
|
|
orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[]
|
|
by: AccountScalarFieldEnum[] | AccountScalarFieldEnum
|
|
having?: AccountScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AccountCountAggregateInputType | true
|
|
_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<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<AccountGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], AccountGroupByOutputType[P]>
|
|
: GetScalarType<T[P], AccountGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type AccountSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
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>
|
|
}, 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AccountPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Account"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
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<S extends boolean | null | undefined | AccountDefaultArgs> = $Result.GetResult<Prisma.$AccountPayload, S>
|
|
|
|
type AccountCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AccountCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AccountDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
|
|
/**
|
|
* Find zero or one Account that matches the filter.
|
|
* @param {AccountFindUniqueArgs} args - Arguments to find a Account
|
|
* @example
|
|
* // Get one Account
|
|
* const account = await prisma.account.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AccountFindUniqueArgs>(args: SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Account that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
|
|
* @example
|
|
* // Get one Account
|
|
* const account = await prisma.account.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Account that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountFindFirstArgs} args - Arguments to find a Account
|
|
* @example
|
|
* // Get one Account
|
|
* const account = await prisma.account.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AccountFindFirstArgs>(args?: SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Account that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
|
|
* @example
|
|
* // Get one Account
|
|
* const account = await prisma.account.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Accounts that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Accounts
|
|
* const accounts = await prisma.account.findMany()
|
|
*
|
|
* // Get first 10 Accounts
|
|
* const accounts = await prisma.account.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AccountFindManyArgs>(args?: SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Account.
|
|
* @param {AccountCreateArgs} args - Arguments to create a Account.
|
|
* @example
|
|
* // Create one Account
|
|
* const Account = await prisma.account.create({
|
|
* data: {
|
|
* // ... data to create a Account
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AccountCreateArgs>(args: SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Accounts.
|
|
* @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
|
|
* @example
|
|
* // Create many Accounts
|
|
* const account = await prisma.account.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AccountCreateManyArgs>(args?: SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Account.
|
|
* @param {AccountDeleteArgs} args - Arguments to delete one Account.
|
|
* @example
|
|
* // Delete one Account
|
|
* const Account = await prisma.account.delete({
|
|
* where: {
|
|
* // ... filter to delete one Account
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AccountDeleteArgs>(args: SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Account.
|
|
* @param {AccountUpdateArgs} args - Arguments to update one Account.
|
|
* @example
|
|
* // Update one Account
|
|
* const account = await prisma.account.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AccountUpdateArgs>(args: SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Accounts.
|
|
* @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
|
|
* @example
|
|
* // Delete a few Accounts
|
|
* const { count } = await prisma.account.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AccountDeleteManyArgs>(args?: SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Accounts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Accounts
|
|
* const account = await prisma.account.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AccountUpdateManyArgs>(args: SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Account.
|
|
* @param {AccountUpsertArgs} args - Arguments to update or create a Account.
|
|
* @example
|
|
* // Update or create a Account
|
|
* const account = await prisma.account.upsert({
|
|
* create: {
|
|
* // ... data to create a Account
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Account we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AccountUpsertArgs>(args: SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Accounts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountCountArgs} args - Arguments to filter Accounts to count.
|
|
* @example
|
|
* // Count the number of Accounts
|
|
* const count = await prisma.account.count({
|
|
* where: {
|
|
* // ... the filter for the Accounts we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AccountCountArgs>(
|
|
args?: Subset<T, AccountCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], AccountCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Account.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends AccountAggregateArgs>(args: Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Account.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends AccountGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: AccountGroupByArgs['orderBy'] }
|
|
: { orderBy?: AccountGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Account model
|
|
*/
|
|
readonly fields: AccountFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Account.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__AccountClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Account model
|
|
*/
|
|
interface AccountFieldRefs {
|
|
readonly id: FieldRef<"Account", 'String'>
|
|
readonly 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Account to fetch.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Account findUniqueOrThrow
|
|
*/
|
|
export type AccountFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Account to fetch.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Account findFirst
|
|
*/
|
|
export type AccountFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Account to fetch.
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Accounts to fetch.
|
|
*/
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Accounts.
|
|
*/
|
|
cursor?: AccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Accounts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Accounts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Accounts.
|
|
*/
|
|
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Account findFirstOrThrow
|
|
*/
|
|
export type AccountFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Account to fetch.
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Accounts to fetch.
|
|
*/
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Accounts.
|
|
*/
|
|
cursor?: AccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Accounts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Accounts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Accounts.
|
|
*/
|
|
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Account findMany
|
|
*/
|
|
export type AccountFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Accounts to fetch.
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Accounts to fetch.
|
|
*/
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Accounts.
|
|
*/
|
|
cursor?: AccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Accounts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Accounts.
|
|
*/
|
|
skip?: number
|
|
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Account create
|
|
*/
|
|
export type AccountCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Account.
|
|
*/
|
|
data: XOR<AccountCreateInput, AccountUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Account createMany
|
|
*/
|
|
export type AccountCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Accounts.
|
|
*/
|
|
data: AccountCreateManyInput | AccountCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Account update
|
|
*/
|
|
export type AccountUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Account.
|
|
*/
|
|
data: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Account to update.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Account updateMany
|
|
*/
|
|
export type AccountUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Accounts.
|
|
*/
|
|
data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Accounts to update
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* Limit how many Accounts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Account upsert
|
|
*/
|
|
export type AccountUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Account to update in case it exists.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
/**
|
|
* In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
|
|
*/
|
|
create: XOR<AccountCreateInput, AccountUncheckedCreateInput>
|
|
/**
|
|
* In case the Account was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Account delete
|
|
*/
|
|
export type AccountDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Account to delete.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Account deleteMany
|
|
*/
|
|
export type AccountDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Accounts to delete
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* Limit how many Accounts to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Account without action
|
|
*/
|
|
export type AccountDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Session to aggregate.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Sessions
|
|
**/
|
|
_count?: true | SessionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SessionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SessionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSession[P]>
|
|
: GetScalarType<T[P], AggregateSession[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SessionWhereInput
|
|
orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
|
|
by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
|
|
having?: SessionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SessionCountAggregateInputType | true
|
|
_min?: SessionMinAggregateInputType
|
|
_max?: SessionMaxAggregateInputType
|
|
}
|
|
|
|
export type SessionGroupByOutputType = {
|
|
id: string
|
|
sessionToken: string
|
|
userId: string
|
|
expires: Date
|
|
_count: SessionCountAggregateOutputType | null
|
|
_min: SessionMinAggregateOutputType | null
|
|
_max: SessionMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SessionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SessionGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SessionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
sessionToken?: boolean
|
|
userId?: boolean
|
|
expires?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["session"]>
|
|
|
|
|
|
|
|
export type SessionSelectScalar = {
|
|
id?: boolean
|
|
sessionToken?: boolean
|
|
userId?: boolean
|
|
expires?: boolean
|
|
}
|
|
|
|
export type SessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sessionToken" | "userId" | "expires", ExtArgs["result"]["session"]>
|
|
export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Session"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
sessionToken: string
|
|
userId: string
|
|
expires: Date
|
|
}, ExtArgs["result"]["session"]>
|
|
composites: {}
|
|
}
|
|
|
|
type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
|
|
|
|
type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SessionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
|
|
/**
|
|
* Find zero or one Session that matches the filter.
|
|
* @param {SessionFindUniqueArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Session that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Session that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionFindFirstArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SessionFindFirstArgs>(args?: SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Session that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Sessions that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Sessions
|
|
* const sessions = await prisma.session.findMany()
|
|
*
|
|
* // Get first 10 Sessions
|
|
* const sessions = await prisma.session.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SessionFindManyArgs>(args?: SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Session.
|
|
* @param {SessionCreateArgs} args - Arguments to create a Session.
|
|
* @example
|
|
* // Create one Session
|
|
* const Session = await prisma.session.create({
|
|
* data: {
|
|
* // ... data to create a Session
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SessionCreateArgs>(args: SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Sessions.
|
|
* @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
|
|
* @example
|
|
* // Create many Sessions
|
|
* const session = await prisma.session.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SessionCreateManyArgs>(args?: SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Session.
|
|
* @param {SessionDeleteArgs} args - Arguments to delete one Session.
|
|
* @example
|
|
* // Delete one Session
|
|
* const Session = await prisma.session.delete({
|
|
* where: {
|
|
* // ... filter to delete one Session
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SessionDeleteArgs>(args: SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Session.
|
|
* @param {SessionUpdateArgs} args - Arguments to update one Session.
|
|
* @example
|
|
* // Update one Session
|
|
* const session = await prisma.session.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Sessions.
|
|
* @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
|
|
* @example
|
|
* // Delete a few Sessions
|
|
* const { count } = await prisma.session.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SessionDeleteManyArgs>(args?: SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Sessions
|
|
* const session = await prisma.session.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SessionUpdateManyArgs>(args: SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Session.
|
|
* @param {SessionUpsertArgs} args - Arguments to update or create a Session.
|
|
* @example
|
|
* // Update or create a Session
|
|
* const session = await prisma.session.upsert({
|
|
* create: {
|
|
* // ... data to create a Session
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Session we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SessionUpsertArgs>(args: SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionCountArgs} args - Arguments to filter Sessions to count.
|
|
* @example
|
|
* // Count the number of Sessions
|
|
* const count = await prisma.session.count({
|
|
* where: {
|
|
* // ... the filter for the Sessions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SessionCountArgs>(
|
|
args?: Subset<T, SessionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SessionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Session.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Session.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends SessionGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: SessionGroupByArgs['orderBy'] }
|
|
: { orderBy?: SessionGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Session model
|
|
*/
|
|
readonly fields: SessionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Session.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Session model
|
|
*/
|
|
interface SessionFieldRefs {
|
|
readonly id: FieldRef<"Session", 'String'>
|
|
readonly sessionToken: FieldRef<"Session", 'String'>
|
|
readonly userId: FieldRef<"Session", 'String'>
|
|
readonly expires: FieldRef<"Session", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Session findUnique
|
|
*/
|
|
export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session findUniqueOrThrow
|
|
*/
|
|
export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session findFirst
|
|
*/
|
|
export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sessions.
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sessions.
|
|
*/
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Session findFirstOrThrow
|
|
*/
|
|
export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sessions.
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sessions.
|
|
*/
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Session findMany
|
|
*/
|
|
export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sessions to fetch.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Sessions.
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Sessions.
|
|
*/
|
|
skip?: number
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Session create
|
|
*/
|
|
export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Session.
|
|
*/
|
|
data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Session createMany
|
|
*/
|
|
export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Sessions.
|
|
*/
|
|
data: SessionCreateManyInput | SessionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Session update
|
|
*/
|
|
export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Session.
|
|
*/
|
|
data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Session to update.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session updateMany
|
|
*/
|
|
export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Sessions.
|
|
*/
|
|
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Sessions to update
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* Limit how many Sessions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Session upsert
|
|
*/
|
|
export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Session to update in case it exists.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
/**
|
|
* In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
|
|
*/
|
|
create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
|
|
/**
|
|
* In case the Session was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Session delete
|
|
*/
|
|
export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Session to delete.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session deleteMany
|
|
*/
|
|
export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Sessions to delete
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* Limit how many Sessions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Session without action
|
|
*/
|
|
export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model User
|
|
*/
|
|
|
|
export type AggregateUser = {
|
|
_count: UserCountAggregateOutputType | null
|
|
_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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which User to aggregate.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Users
|
|
**/
|
|
_count?: true | UserCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to 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<T extends UserAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateUser[P]>
|
|
: GetScalarType<T[P], AggregateUser[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: UserWhereInput
|
|
orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
|
|
by: UserScalarFieldEnum[] | UserScalarFieldEnum
|
|
having?: UserScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UserCountAggregateInputType | true
|
|
_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<T extends UserGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<UserGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
email?: boolean
|
|
emailVerified?: boolean
|
|
image?: boolean
|
|
balance?: boolean
|
|
accounts?: boolean | User$accountsArgs<ExtArgs>
|
|
sessions?: boolean | User$sessionsArgs<ExtArgs>
|
|
shops?: boolean | User$shopsArgs<ExtArgs>
|
|
carts?: boolean | User$cartsArgs<ExtArgs>
|
|
adresses?: boolean | User$adressesArgs<ExtArgs>
|
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
|
|
|
|
export type UserSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
email?: boolean
|
|
emailVerified?: boolean
|
|
image?: boolean
|
|
balance?: boolean
|
|
}
|
|
|
|
export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "image" | "balance", ExtArgs["result"]["user"]>
|
|
export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
accounts?: boolean | User$accountsArgs<ExtArgs>
|
|
sessions?: boolean | User$sessionsArgs<ExtArgs>
|
|
shops?: boolean | User$shopsArgs<ExtArgs>
|
|
carts?: boolean | User$cartsArgs<ExtArgs>
|
|
adresses?: boolean | User$adressesArgs<ExtArgs>
|
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "User"
|
|
objects: {
|
|
accounts: Prisma.$AccountPayload<ExtArgs>[]
|
|
sessions: Prisma.$SessionPayload<ExtArgs>[]
|
|
shops: Prisma.$ShopPayload<ExtArgs>[]
|
|
carts: Prisma.$CartPayload<ExtArgs>[]
|
|
adresses: Prisma.$AdressPayload<ExtArgs>[]
|
|
}
|
|
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<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
|
|
|
|
type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: UserCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
|
|
/**
|
|
* Find zero or one User that matches the filter.
|
|
* @param {UserFindUniqueArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one User that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first User that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first User that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Users that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Users
|
|
* const users = await prisma.user.findMany()
|
|
*
|
|
* // Get first 10 Users
|
|
* const users = await prisma.user.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a User.
|
|
* @param {UserCreateArgs} args - Arguments to create a User.
|
|
* @example
|
|
* // Create one User
|
|
* const User = await prisma.user.create({
|
|
* data: {
|
|
* // ... data to create a User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Users.
|
|
* @param {UserCreateManyArgs} args - Arguments to create many Users.
|
|
* @example
|
|
* // Create many Users
|
|
* const user = await prisma.user.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a User.
|
|
* @param {UserDeleteArgs} args - Arguments to delete one User.
|
|
* @example
|
|
* // Delete one User
|
|
* const User = await prisma.user.delete({
|
|
* where: {
|
|
* // ... filter to delete one User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one User.
|
|
* @param {UserUpdateArgs} args - Arguments to update one User.
|
|
* @example
|
|
* // Update one User
|
|
* const user = await prisma.user.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Users.
|
|
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
|
|
* @example
|
|
* // Delete a few Users
|
|
* const { count } = await prisma.user.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Users
|
|
* const user = await prisma.user.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one User.
|
|
* @param {UserUpsertArgs} args - Arguments to update or create a User.
|
|
* @example
|
|
* // Update or create a User
|
|
* const user = await prisma.user.upsert({
|
|
* create: {
|
|
* // ... data to create a User
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the User we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserCountArgs} args - Arguments to filter Users to count.
|
|
* @example
|
|
* // Count the number of Users
|
|
* const count = await prisma.user.count({
|
|
* where: {
|
|
* // ... the filter for the Users we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UserCountArgs>(
|
|
args?: Subset<T, UserCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], UserCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
|
|
|
|
/**
|
|
* Group by User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends UserGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: UserGroupByArgs['orderBy'] }
|
|
: { orderBy?: UserGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
readonly fields: UserFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for User.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
accounts<T extends User$accountsArgs<ExtArgs> = {}>(args?: Subset<T, User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
sessions<T extends User$sessionsArgs<ExtArgs> = {}>(args?: Subset<T, User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
shops<T extends User$shopsArgs<ExtArgs> = {}>(args?: Subset<T, User$shopsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
carts<T extends User$cartsArgs<ExtArgs> = {}>(args?: Subset<T, User$cartsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
adresses<T extends User$adressesArgs<ExtArgs> = {}>(args?: Subset<T, User$adressesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
interface UserFieldRefs {
|
|
readonly id: FieldRef<"User", 'String'>
|
|
readonly name: FieldRef<"User", 'String'>
|
|
readonly email: FieldRef<"User", 'String'>
|
|
readonly emailVerified: FieldRef<"User", 'DateTime'>
|
|
readonly image: FieldRef<"User", 'String'>
|
|
readonly balance: FieldRef<"User", 'Float'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* User findUnique
|
|
*/
|
|
export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findUniqueOrThrow
|
|
*/
|
|
export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findFirst
|
|
*/
|
|
export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findFirstOrThrow
|
|
*/
|
|
export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findMany
|
|
*/
|
|
export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Users to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User create
|
|
*/
|
|
export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a User.
|
|
*/
|
|
data?: XOR<UserCreateInput, UserUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* User createMany
|
|
*/
|
|
export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Users.
|
|
*/
|
|
data: UserCreateManyInput | UserCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* User update
|
|
*/
|
|
export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a User.
|
|
*/
|
|
data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which User to update.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User updateMany
|
|
*/
|
|
export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Users.
|
|
*/
|
|
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Users to update
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* Limit how many Users to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* User upsert
|
|
*/
|
|
export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the User to update in case it exists.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
/**
|
|
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
|
|
*/
|
|
create: XOR<UserCreateInput, UserUncheckedCreateInput>
|
|
/**
|
|
* In case the User was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* User delete
|
|
*/
|
|
export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which User to delete.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User deleteMany
|
|
*/
|
|
export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Users to delete
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* Limit how many Users to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* User.accounts
|
|
*/
|
|
export type User$accountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
where?: AccountWhereInput
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
cursor?: AccountWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.sessions
|
|
*/
|
|
export type User$sessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
where?: SessionWhereInput
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
cursor?: SessionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.shops
|
|
*/
|
|
export type User$shopsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | null
|
|
where?: ShopWhereInput
|
|
orderBy?: ShopOrderByWithRelationInput | ShopOrderByWithRelationInput[]
|
|
cursor?: ShopWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ShopScalarFieldEnum | ShopScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.carts
|
|
*/
|
|
export type User$cartsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | null
|
|
where?: CartWhereInput
|
|
orderBy?: CartOrderByWithRelationInput | CartOrderByWithRelationInput[]
|
|
cursor?: CartWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: CartScalarFieldEnum | CartScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.adresses
|
|
*/
|
|
export type User$adressesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | null
|
|
where?: AdressWhereInput
|
|
orderBy?: AdressOrderByWithRelationInput | AdressOrderByWithRelationInput[]
|
|
cursor?: AdressWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: AdressScalarFieldEnum | AdressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User without action
|
|
*/
|
|
export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends VerificationTokenAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateVerificationToken[P]>
|
|
: GetScalarType<T[P], AggregateVerificationToken[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type VerificationTokenGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends VerificationTokenGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<VerificationTokenGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
|
|
: GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type VerificationTokenSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
identifier?: boolean
|
|
token?: boolean
|
|
expires?: boolean
|
|
}, ExtArgs["result"]["verificationToken"]>
|
|
|
|
|
|
|
|
export type VerificationTokenSelectScalar = {
|
|
identifier?: boolean
|
|
token?: boolean
|
|
expires?: boolean
|
|
}
|
|
|
|
export type VerificationTokenOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]>
|
|
|
|
export type $VerificationTokenPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "VerificationToken"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
identifier: string
|
|
token: string
|
|
expires: Date
|
|
}, ExtArgs["result"]["verificationToken"]>
|
|
composites: {}
|
|
}
|
|
|
|
type VerificationTokenGetPayload<S extends boolean | null | undefined | VerificationTokenDefaultArgs> = $Result.GetResult<Prisma.$VerificationTokenPayload, S>
|
|
|
|
type VerificationTokenCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<VerificationTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: VerificationTokenCountAggregateInputType | true
|
|
}
|
|
|
|
export interface VerificationTokenDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends VerificationTokenFindUniqueArgs>(args: SelectSubset<T, VerificationTokenFindUniqueArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, 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<T extends VerificationTokenFindUniqueOrThrowArgs>(args: SelectSubset<T, VerificationTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, 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<T extends VerificationTokenFindFirstArgs>(args?: SelectSubset<T, VerificationTokenFindFirstArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, 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<T extends VerificationTokenFindFirstOrThrowArgs>(args?: SelectSubset<T, VerificationTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, 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<T extends VerificationTokenFindManyArgs>(args?: SelectSubset<T, VerificationTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, 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<T extends VerificationTokenCreateArgs>(args: SelectSubset<T, VerificationTokenCreateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, 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<T extends VerificationTokenCreateManyArgs>(args?: SelectSubset<T, VerificationTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends VerificationTokenDeleteArgs>(args: SelectSubset<T, VerificationTokenDeleteArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, 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<T extends VerificationTokenUpdateArgs>(args: SelectSubset<T, VerificationTokenUpdateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, 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<T extends VerificationTokenDeleteManyArgs>(args?: SelectSubset<T, VerificationTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends VerificationTokenUpdateManyArgs>(args: SelectSubset<T, VerificationTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends VerificationTokenUpsertArgs>(args: SelectSubset<T, VerificationTokenUpsertArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, 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<T extends VerificationTokenCountArgs>(
|
|
args?: Subset<T, VerificationTokenCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], VerificationTokenCountAggregateOutputType>
|
|
: 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<T extends VerificationTokenAggregateArgs>(args: Subset<T, VerificationTokenAggregateArgs>): Prisma.PrismaPromise<GetVerificationTokenAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: VerificationTokenGroupByArgs['orderBy'] }
|
|
: { orderBy?: VerificationTokenGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, VerificationTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which VerificationToken to fetch.
|
|
*/
|
|
where: VerificationTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken findUniqueOrThrow
|
|
*/
|
|
export type VerificationTokenFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which VerificationToken to fetch.
|
|
*/
|
|
where: VerificationTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken findFirst
|
|
*/
|
|
export type VerificationTokenFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a VerificationToken.
|
|
*/
|
|
data: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* VerificationToken createMany
|
|
*/
|
|
export type VerificationTokenCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many VerificationTokens.
|
|
*/
|
|
data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* VerificationToken update
|
|
*/
|
|
export type VerificationTokenUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a VerificationToken.
|
|
*/
|
|
data: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which VerificationToken to update.
|
|
*/
|
|
where: VerificationTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken updateMany
|
|
*/
|
|
export type VerificationTokenUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update VerificationTokens.
|
|
*/
|
|
data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which VerificationTokens to update
|
|
*/
|
|
where?: VerificationTokenWhereInput
|
|
/**
|
|
* Limit how many VerificationTokens to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* VerificationToken upsert
|
|
*/
|
|
export type VerificationTokenUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | 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<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
|
|
/**
|
|
* In case the VerificationToken was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* VerificationToken delete
|
|
*/
|
|
export type VerificationTokenDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which VerificationToken to delete.
|
|
*/
|
|
where: VerificationTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken deleteMany
|
|
*/
|
|
export type VerificationTokenDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which VerificationTokens to delete
|
|
*/
|
|
where?: VerificationTokenWhereInput
|
|
/**
|
|
* Limit how many VerificationTokens to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* VerificationToken without action
|
|
*/
|
|
export type VerificationTokenDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the VerificationToken
|
|
*/
|
|
omit?: VerificationTokenOmit<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends ShopAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateShop]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateShop[P]>
|
|
: GetScalarType<T[P], AggregateShop[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ShopGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends ShopGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ShopGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ShopGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ShopGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ShopGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ShopSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
label?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
items?: boolean | Shop$itemsArgs<ExtArgs>
|
|
sellables?: boolean | Shop$sellablesArgs<ExtArgs>
|
|
_count?: boolean | ShopCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["shop"]>
|
|
|
|
|
|
|
|
export type ShopSelectScalar = {
|
|
id?: boolean
|
|
userId?: boolean
|
|
label?: boolean
|
|
}
|
|
|
|
export type ShopOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "label", ExtArgs["result"]["shop"]>
|
|
export type ShopInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
items?: boolean | Shop$itemsArgs<ExtArgs>
|
|
sellables?: boolean | Shop$sellablesArgs<ExtArgs>
|
|
_count?: boolean | ShopCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ShopPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Shop"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
items: Prisma.$ItemPayload<ExtArgs>[]
|
|
sellables: Prisma.$SellablePayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
userId: string
|
|
label: string
|
|
}, ExtArgs["result"]["shop"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ShopGetPayload<S extends boolean | null | undefined | ShopDefaultArgs> = $Result.GetResult<Prisma.$ShopPayload, S>
|
|
|
|
type ShopCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ShopFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ShopCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ShopDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends ShopFindUniqueArgs>(args: SelectSubset<T, ShopFindUniqueArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, 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<T extends ShopFindUniqueOrThrowArgs>(args: SelectSubset<T, ShopFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, 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<T extends ShopFindFirstArgs>(args?: SelectSubset<T, ShopFindFirstArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, 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<T extends ShopFindFirstOrThrowArgs>(args?: SelectSubset<T, ShopFindFirstOrThrowArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, 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<T extends ShopFindManyArgs>(args?: SelectSubset<T, ShopFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, 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<T extends ShopCreateArgs>(args: SelectSubset<T, ShopCreateArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, 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<T extends ShopCreateManyArgs>(args?: SelectSubset<T, ShopCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ShopDeleteArgs>(args: SelectSubset<T, ShopDeleteArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, 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<T extends ShopUpdateArgs>(args: SelectSubset<T, ShopUpdateArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, 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<T extends ShopDeleteManyArgs>(args?: SelectSubset<T, ShopDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ShopUpdateManyArgs>(args: SelectSubset<T, ShopUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ShopUpsertArgs>(args: SelectSubset<T, ShopUpsertArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, 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<T extends ShopCountArgs>(
|
|
args?: Subset<T, ShopCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ShopCountAggregateOutputType>
|
|
: 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<T extends ShopAggregateArgs>(args: Subset<T, ShopAggregateArgs>): Prisma.PrismaPromise<GetShopAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ShopGroupByArgs['orderBy'] }
|
|
: { orderBy?: ShopGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ShopGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShopGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
items<T extends Shop$itemsArgs<ExtArgs> = {}>(args?: Subset<T, Shop$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
sellables<T extends Shop$sellablesArgs<ExtArgs> = {}>(args?: Subset<T, Shop$sellablesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Shop to fetch.
|
|
*/
|
|
where: ShopWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Shop findUniqueOrThrow
|
|
*/
|
|
export type ShopFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Shop to fetch.
|
|
*/
|
|
where: ShopWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Shop findFirst
|
|
*/
|
|
export type ShopFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Shop.
|
|
*/
|
|
data: XOR<ShopCreateInput, ShopUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Shop createMany
|
|
*/
|
|
export type ShopCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Shops.
|
|
*/
|
|
data: ShopCreateManyInput | ShopCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Shop update
|
|
*/
|
|
export type ShopUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Shop.
|
|
*/
|
|
data: XOR<ShopUpdateInput, ShopUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Shop to update.
|
|
*/
|
|
where: ShopWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Shop updateMany
|
|
*/
|
|
export type ShopUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Shops.
|
|
*/
|
|
data: XOR<ShopUpdateManyMutationInput, ShopUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Shops to update
|
|
*/
|
|
where?: ShopWhereInput
|
|
/**
|
|
* Limit how many Shops to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Shop upsert
|
|
*/
|
|
export type ShopUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | 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<ShopCreateInput, ShopUncheckedCreateInput>
|
|
/**
|
|
* In case the Shop was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ShopUpdateInput, ShopUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Shop delete
|
|
*/
|
|
export type ShopDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Shop to delete.
|
|
*/
|
|
where: ShopWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Shop deleteMany
|
|
*/
|
|
export type ShopDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Shops to delete
|
|
*/
|
|
where?: ShopWhereInput
|
|
/**
|
|
* Limit how many Shops to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Shop.items
|
|
*/
|
|
export type Shop$itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | null
|
|
where?: ItemWhereInput
|
|
orderBy?: ItemOrderByWithRelationInput | ItemOrderByWithRelationInput[]
|
|
cursor?: ItemWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ItemScalarFieldEnum | ItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Shop.sellables
|
|
*/
|
|
export type Shop$sellablesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | null
|
|
where?: SellableWhereInput
|
|
orderBy?: SellableOrderByWithRelationInput | SellableOrderByWithRelationInput[]
|
|
cursor?: SellableWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: SellableScalarFieldEnum | SellableScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Shop without action
|
|
*/
|
|
export type ShopDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Shop
|
|
*/
|
|
select?: ShopSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Shop
|
|
*/
|
|
omit?: ShopOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ShopInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends ItemAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateItem]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateItem[P]>
|
|
: GetScalarType<T[P], AggregateItem[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ItemGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends ItemGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ItemGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ItemGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ItemGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ItemGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ItemSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
item_name?: boolean
|
|
stock?: boolean
|
|
shopId?: boolean
|
|
shop?: boolean | ShopDefaultArgs<ExtArgs>
|
|
sellables?: boolean | Item$sellablesArgs<ExtArgs>
|
|
_count?: boolean | ItemCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["item"]>
|
|
|
|
|
|
|
|
export type ItemSelectScalar = {
|
|
item_name?: boolean
|
|
stock?: boolean
|
|
shopId?: boolean
|
|
}
|
|
|
|
export type ItemOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"item_name" | "stock" | "shopId", ExtArgs["result"]["item"]>
|
|
export type ItemInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
shop?: boolean | ShopDefaultArgs<ExtArgs>
|
|
sellables?: boolean | Item$sellablesArgs<ExtArgs>
|
|
_count?: boolean | ItemCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ItemPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Item"
|
|
objects: {
|
|
shop: Prisma.$ShopPayload<ExtArgs>
|
|
sellables: Prisma.$SellablePayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
item_name: string
|
|
stock: number
|
|
shopId: number
|
|
}, ExtArgs["result"]["item"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ItemGetPayload<S extends boolean | null | undefined | ItemDefaultArgs> = $Result.GetResult<Prisma.$ItemPayload, S>
|
|
|
|
type ItemCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ItemCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ItemDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends ItemFindUniqueArgs>(args: SelectSubset<T, ItemFindUniqueArgs<ExtArgs>>): Prisma__ItemClient<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, 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<T extends ItemFindUniqueOrThrowArgs>(args: SelectSubset<T, ItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ItemClient<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, 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<T extends ItemFindFirstArgs>(args?: SelectSubset<T, ItemFindFirstArgs<ExtArgs>>): Prisma__ItemClient<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, 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<T extends ItemFindFirstOrThrowArgs>(args?: SelectSubset<T, ItemFindFirstOrThrowArgs<ExtArgs>>): Prisma__ItemClient<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, 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<T extends ItemFindManyArgs>(args?: SelectSubset<T, ItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, 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<T extends ItemCreateArgs>(args: SelectSubset<T, ItemCreateArgs<ExtArgs>>): Prisma__ItemClient<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, 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<T extends ItemCreateManyArgs>(args?: SelectSubset<T, ItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ItemDeleteArgs>(args: SelectSubset<T, ItemDeleteArgs<ExtArgs>>): Prisma__ItemClient<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, 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<T extends ItemUpdateArgs>(args: SelectSubset<T, ItemUpdateArgs<ExtArgs>>): Prisma__ItemClient<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, 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<T extends ItemDeleteManyArgs>(args?: SelectSubset<T, ItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ItemUpdateManyArgs>(args: SelectSubset<T, ItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ItemUpsertArgs>(args: SelectSubset<T, ItemUpsertArgs<ExtArgs>>): Prisma__ItemClient<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, 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<T extends ItemCountArgs>(
|
|
args?: Subset<T, ItemCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ItemCountAggregateOutputType>
|
|
: 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<T extends ItemAggregateArgs>(args: Subset<T, ItemAggregateArgs>): Prisma.PrismaPromise<GetItemAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ItemGroupByArgs['orderBy'] }
|
|
: { orderBy?: ItemGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
shop<T extends ShopDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ShopDefaultArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
sellables<T extends Item$sellablesArgs<ExtArgs> = {}>(args?: Subset<T, Item$sellablesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Item to fetch.
|
|
*/
|
|
where: ItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Item findUniqueOrThrow
|
|
*/
|
|
export type ItemFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Item to fetch.
|
|
*/
|
|
where: ItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Item findFirst
|
|
*/
|
|
export type ItemFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Item.
|
|
*/
|
|
data: XOR<ItemCreateInput, ItemUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Item createMany
|
|
*/
|
|
export type ItemCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Items.
|
|
*/
|
|
data: ItemCreateManyInput | ItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Item update
|
|
*/
|
|
export type ItemUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Item.
|
|
*/
|
|
data: XOR<ItemUpdateInput, ItemUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Item to update.
|
|
*/
|
|
where: ItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Item updateMany
|
|
*/
|
|
export type ItemUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Items.
|
|
*/
|
|
data: XOR<ItemUpdateManyMutationInput, ItemUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Items to update
|
|
*/
|
|
where?: ItemWhereInput
|
|
/**
|
|
* Limit how many Items to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Item upsert
|
|
*/
|
|
export type ItemUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | 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<ItemCreateInput, ItemUncheckedCreateInput>
|
|
/**
|
|
* In case the Item was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ItemUpdateInput, ItemUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Item delete
|
|
*/
|
|
export type ItemDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Item to delete.
|
|
*/
|
|
where: ItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Item deleteMany
|
|
*/
|
|
export type ItemDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Items to delete
|
|
*/
|
|
where?: ItemWhereInput
|
|
/**
|
|
* Limit how many Items to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Item.sellables
|
|
*/
|
|
export type Item$sellablesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | null
|
|
where?: SellableWhereInput
|
|
orderBy?: SellableOrderByWithRelationInput | SellableOrderByWithRelationInput[]
|
|
cursor?: SellableWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: SellableScalarFieldEnum | SellableScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Item without action
|
|
*/
|
|
export type ItemDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Item
|
|
*/
|
|
select?: ItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Item
|
|
*/
|
|
omit?: ItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends SellableAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSellable]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSellable[P]>
|
|
: GetScalarType<T[P], AggregateSellable[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SellableGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends SellableGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SellableGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SellableGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SellableGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SellableGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type SellableSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
item_name?: boolean
|
|
amount?: boolean
|
|
price?: boolean
|
|
shopId?: boolean
|
|
enabled?: boolean
|
|
shop?: boolean | ShopDefaultArgs<ExtArgs>
|
|
item?: boolean | ItemDefaultArgs<ExtArgs>
|
|
cartItems?: boolean | Sellable$cartItemsArgs<ExtArgs>
|
|
_count?: boolean | SellableCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["sellable"]>
|
|
|
|
|
|
|
|
export type SellableSelectScalar = {
|
|
id?: boolean
|
|
item_name?: boolean
|
|
amount?: boolean
|
|
price?: boolean
|
|
shopId?: boolean
|
|
enabled?: boolean
|
|
}
|
|
|
|
export type SellableOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "item_name" | "amount" | "price" | "shopId" | "enabled", ExtArgs["result"]["sellable"]>
|
|
export type SellableInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
shop?: boolean | ShopDefaultArgs<ExtArgs>
|
|
item?: boolean | ItemDefaultArgs<ExtArgs>
|
|
cartItems?: boolean | Sellable$cartItemsArgs<ExtArgs>
|
|
_count?: boolean | SellableCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SellablePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Sellable"
|
|
objects: {
|
|
shop: Prisma.$ShopPayload<ExtArgs>
|
|
item: Prisma.$ItemPayload<ExtArgs>
|
|
cartItems: Prisma.$CartItemPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
item_name: string
|
|
amount: number
|
|
price: number
|
|
shopId: number
|
|
enabled: boolean
|
|
}, ExtArgs["result"]["sellable"]>
|
|
composites: {}
|
|
}
|
|
|
|
type SellableGetPayload<S extends boolean | null | undefined | SellableDefaultArgs> = $Result.GetResult<Prisma.$SellablePayload, S>
|
|
|
|
type SellableCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<SellableFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SellableCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SellableDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends SellableFindUniqueArgs>(args: SelectSubset<T, SellableFindUniqueArgs<ExtArgs>>): Prisma__SellableClient<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, 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<T extends SellableFindUniqueOrThrowArgs>(args: SelectSubset<T, SellableFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SellableClient<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, 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<T extends SellableFindFirstArgs>(args?: SelectSubset<T, SellableFindFirstArgs<ExtArgs>>): Prisma__SellableClient<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, 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<T extends SellableFindFirstOrThrowArgs>(args?: SelectSubset<T, SellableFindFirstOrThrowArgs<ExtArgs>>): Prisma__SellableClient<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, 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<T extends SellableFindManyArgs>(args?: SelectSubset<T, SellableFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, 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<T extends SellableCreateArgs>(args: SelectSubset<T, SellableCreateArgs<ExtArgs>>): Prisma__SellableClient<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, 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<T extends SellableCreateManyArgs>(args?: SelectSubset<T, SellableCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends SellableDeleteArgs>(args: SelectSubset<T, SellableDeleteArgs<ExtArgs>>): Prisma__SellableClient<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, 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<T extends SellableUpdateArgs>(args: SelectSubset<T, SellableUpdateArgs<ExtArgs>>): Prisma__SellableClient<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, 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<T extends SellableDeleteManyArgs>(args?: SelectSubset<T, SellableDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends SellableUpdateManyArgs>(args: SelectSubset<T, SellableUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends SellableUpsertArgs>(args: SelectSubset<T, SellableUpsertArgs<ExtArgs>>): Prisma__SellableClient<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, 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<T extends SellableCountArgs>(
|
|
args?: Subset<T, SellableCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SellableCountAggregateOutputType>
|
|
: 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<T extends SellableAggregateArgs>(args: Subset<T, SellableAggregateArgs>): Prisma.PrismaPromise<GetSellableAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: SellableGroupByArgs['orderBy'] }
|
|
: { orderBy?: SellableGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, SellableGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSellableGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
shop<T extends ShopDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ShopDefaultArgs<ExtArgs>>): Prisma__ShopClient<$Result.GetResult<Prisma.$ShopPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
item<T extends ItemDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ItemDefaultArgs<ExtArgs>>): Prisma__ItemClient<$Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
cartItems<T extends Sellable$cartItemsArgs<ExtArgs> = {}>(args?: Subset<T, Sellable$cartItemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sellable to fetch.
|
|
*/
|
|
where: SellableWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sellable findUniqueOrThrow
|
|
*/
|
|
export type SellableFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sellable to fetch.
|
|
*/
|
|
where: SellableWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sellable findFirst
|
|
*/
|
|
export type SellableFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Sellable.
|
|
*/
|
|
data: XOR<SellableCreateInput, SellableUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Sellable createMany
|
|
*/
|
|
export type SellableCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Sellables.
|
|
*/
|
|
data: SellableCreateManyInput | SellableCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Sellable update
|
|
*/
|
|
export type SellableUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Sellable.
|
|
*/
|
|
data: XOR<SellableUpdateInput, SellableUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Sellable to update.
|
|
*/
|
|
where: SellableWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sellable updateMany
|
|
*/
|
|
export type SellableUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Sellables.
|
|
*/
|
|
data: XOR<SellableUpdateManyMutationInput, SellableUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Sellables to update
|
|
*/
|
|
where?: SellableWhereInput
|
|
/**
|
|
* Limit how many Sellables to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Sellable upsert
|
|
*/
|
|
export type SellableUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | 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<SellableCreateInput, SellableUncheckedCreateInput>
|
|
/**
|
|
* In case the Sellable was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<SellableUpdateInput, SellableUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Sellable delete
|
|
*/
|
|
export type SellableDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Sellable to delete.
|
|
*/
|
|
where: SellableWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sellable deleteMany
|
|
*/
|
|
export type SellableDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Sellables to delete
|
|
*/
|
|
where?: SellableWhereInput
|
|
/**
|
|
* Limit how many Sellables to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Sellable.cartItems
|
|
*/
|
|
export type Sellable$cartItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | null
|
|
where?: CartItemWhereInput
|
|
orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[]
|
|
cursor?: CartItemWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Sellable without action
|
|
*/
|
|
export type SellableDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sellable
|
|
*/
|
|
select?: SellableSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sellable
|
|
*/
|
|
omit?: SellableOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SellableInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Cart
|
|
*/
|
|
|
|
export type AggregateCart = {
|
|
_count: CartCountAggregateOutputType | null
|
|
_min: CartMinAggregateOutputType | null
|
|
_max: CartMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CartMinAggregateOutputType = {
|
|
id: string | null
|
|
userId: string | null
|
|
}
|
|
|
|
export type CartMaxAggregateOutputType = {
|
|
id: string | null
|
|
userId: string | null
|
|
}
|
|
|
|
export type CartCountAggregateOutputType = {
|
|
id: number
|
|
userId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CartMinAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type CartMaxAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type CartCountAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CartAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends CartAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCart]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCart[P]>
|
|
: GetScalarType<T[P], AggregateCart[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CartGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CartWhereInput
|
|
orderBy?: CartOrderByWithAggregationInput | CartOrderByWithAggregationInput[]
|
|
by: CartScalarFieldEnum[] | CartScalarFieldEnum
|
|
having?: CartScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CartCountAggregateInputType | true
|
|
_min?: CartMinAggregateInputType
|
|
_max?: CartMaxAggregateInputType
|
|
}
|
|
|
|
export type CartGroupByOutputType = {
|
|
id: string
|
|
userId: string
|
|
_count: CartCountAggregateOutputType | null
|
|
_min: CartMinAggregateOutputType | null
|
|
_max: CartMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCartGroupByPayload<T extends CartGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<CartGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CartGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], CartGroupByOutputType[P]>
|
|
: GetScalarType<T[P], CartGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type CartSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
cartItems?: boolean | Cart$cartItemsArgs<ExtArgs>
|
|
_count?: boolean | CartCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["cart"]>
|
|
|
|
|
|
|
|
export type CartSelectScalar = {
|
|
id?: boolean
|
|
userId?: boolean
|
|
}
|
|
|
|
export type CartOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId", ExtArgs["result"]["cart"]>
|
|
export type CartInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
cartItems?: boolean | Cart$cartItemsArgs<ExtArgs>
|
|
_count?: boolean | CartCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $CartPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Cart"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
cartItems: Prisma.$CartItemPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
userId: string
|
|
}, ExtArgs["result"]["cart"]>
|
|
composites: {}
|
|
}
|
|
|
|
type CartGetPayload<S extends boolean | null | undefined | CartDefaultArgs> = $Result.GetResult<Prisma.$CartPayload, S>
|
|
|
|
type CartCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<CartFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: CartCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CartDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends CartFindUniqueArgs>(args: SelectSubset<T, CartFindUniqueArgs<ExtArgs>>): Prisma__CartClient<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, 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<T extends CartFindUniqueOrThrowArgs>(args: SelectSubset<T, CartFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CartClient<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, 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<T extends CartFindFirstArgs>(args?: SelectSubset<T, CartFindFirstArgs<ExtArgs>>): Prisma__CartClient<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, 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<T extends CartFindFirstOrThrowArgs>(args?: SelectSubset<T, CartFindFirstOrThrowArgs<ExtArgs>>): Prisma__CartClient<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, 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 `id`
|
|
* const cartWithIdOnly = await prisma.cart.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends CartFindManyArgs>(args?: SelectSubset<T, CartFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, 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<T extends CartCreateArgs>(args: SelectSubset<T, CartCreateArgs<ExtArgs>>): Prisma__CartClient<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, 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<T extends CartCreateManyArgs>(args?: SelectSubset<T, CartCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CartDeleteArgs>(args: SelectSubset<T, CartDeleteArgs<ExtArgs>>): Prisma__CartClient<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, 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<T extends CartUpdateArgs>(args: SelectSubset<T, CartUpdateArgs<ExtArgs>>): Prisma__CartClient<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, 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<T extends CartDeleteManyArgs>(args?: SelectSubset<T, CartDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CartUpdateManyArgs>(args: SelectSubset<T, CartUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CartUpsertArgs>(args: SelectSubset<T, CartUpsertArgs<ExtArgs>>): Prisma__CartClient<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, 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<T extends CartCountArgs>(
|
|
args?: Subset<T, CartCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], CartCountAggregateOutputType>
|
|
: 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<T extends CartAggregateArgs>(args: Subset<T, CartAggregateArgs>): Prisma.PrismaPromise<GetCartAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: CartGroupByArgs['orderBy'] }
|
|
: { orderBy?: CartGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, CartGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCartGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
cartItems<T extends Cart$cartItemsArgs<ExtArgs> = {}>(args?: Subset<T, Cart$cartItemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Cart model
|
|
*/
|
|
interface CartFieldRefs {
|
|
readonly id: FieldRef<"Cart", 'String'>
|
|
readonly userId: FieldRef<"Cart", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Cart findUnique
|
|
*/
|
|
export type CartFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Cart to fetch.
|
|
*/
|
|
where: CartWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Cart findUniqueOrThrow
|
|
*/
|
|
export type CartFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Cart to fetch.
|
|
*/
|
|
where: CartWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Cart findFirst
|
|
*/
|
|
export type CartFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Cart.
|
|
*/
|
|
data: XOR<CartCreateInput, CartUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Cart createMany
|
|
*/
|
|
export type CartCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Carts.
|
|
*/
|
|
data: CartCreateManyInput | CartCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Cart update
|
|
*/
|
|
export type CartUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Cart.
|
|
*/
|
|
data: XOR<CartUpdateInput, CartUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Cart to update.
|
|
*/
|
|
where: CartWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Cart updateMany
|
|
*/
|
|
export type CartUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Carts.
|
|
*/
|
|
data: XOR<CartUpdateManyMutationInput, CartUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Carts to update
|
|
*/
|
|
where?: CartWhereInput
|
|
/**
|
|
* Limit how many Carts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Cart upsert
|
|
*/
|
|
export type CartUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | 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<CartCreateInput, CartUncheckedCreateInput>
|
|
/**
|
|
* In case the Cart was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<CartUpdateInput, CartUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Cart delete
|
|
*/
|
|
export type CartDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Cart to delete.
|
|
*/
|
|
where: CartWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Cart deleteMany
|
|
*/
|
|
export type CartDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Carts to delete
|
|
*/
|
|
where?: CartWhereInput
|
|
/**
|
|
* Limit how many Carts to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Cart.cartItems
|
|
*/
|
|
export type Cart$cartItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | null
|
|
where?: CartItemWhereInput
|
|
orderBy?: CartItemOrderByWithRelationInput | CartItemOrderByWithRelationInput[]
|
|
cursor?: CartItemWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: CartItemScalarFieldEnum | CartItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Cart without action
|
|
*/
|
|
export type CartDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Cart
|
|
*/
|
|
select?: CartSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Cart
|
|
*/
|
|
omit?: CartOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends CartItemAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCartItem]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCartItem[P]>
|
|
: GetScalarType<T[P], AggregateCartItem[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CartItemGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends CartItemGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<CartItemGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CartItemGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], CartItemGroupByOutputType[P]>
|
|
: GetScalarType<T[P], CartItemGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type CartItemSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
itemId?: boolean
|
|
quantity?: boolean
|
|
cartId?: boolean
|
|
cart?: boolean | CartDefaultArgs<ExtArgs>
|
|
sellable?: boolean | SellableDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["cartItem"]>
|
|
|
|
|
|
|
|
export type CartItemSelectScalar = {
|
|
itemId?: boolean
|
|
quantity?: boolean
|
|
cartId?: boolean
|
|
}
|
|
|
|
export type CartItemOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"itemId" | "quantity" | "cartId", ExtArgs["result"]["cartItem"]>
|
|
export type CartItemInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
cart?: boolean | CartDefaultArgs<ExtArgs>
|
|
sellable?: boolean | SellableDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $CartItemPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "CartItem"
|
|
objects: {
|
|
cart: Prisma.$CartPayload<ExtArgs>
|
|
sellable: Prisma.$SellablePayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
itemId: string
|
|
quantity: number
|
|
cartId: string
|
|
}, ExtArgs["result"]["cartItem"]>
|
|
composites: {}
|
|
}
|
|
|
|
type CartItemGetPayload<S extends boolean | null | undefined | CartItemDefaultArgs> = $Result.GetResult<Prisma.$CartItemPayload, S>
|
|
|
|
type CartItemCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<CartItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: CartItemCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CartItemDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends CartItemFindUniqueArgs>(args: SelectSubset<T, CartItemFindUniqueArgs<ExtArgs>>): Prisma__CartItemClient<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, 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<T extends CartItemFindUniqueOrThrowArgs>(args: SelectSubset<T, CartItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CartItemClient<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, 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<T extends CartItemFindFirstArgs>(args?: SelectSubset<T, CartItemFindFirstArgs<ExtArgs>>): Prisma__CartItemClient<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, 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<T extends CartItemFindFirstOrThrowArgs>(args?: SelectSubset<T, CartItemFindFirstOrThrowArgs<ExtArgs>>): Prisma__CartItemClient<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, 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<T extends CartItemFindManyArgs>(args?: SelectSubset<T, CartItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, 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<T extends CartItemCreateArgs>(args: SelectSubset<T, CartItemCreateArgs<ExtArgs>>): Prisma__CartItemClient<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, 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<T extends CartItemCreateManyArgs>(args?: SelectSubset<T, CartItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CartItemDeleteArgs>(args: SelectSubset<T, CartItemDeleteArgs<ExtArgs>>): Prisma__CartItemClient<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, 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<T extends CartItemUpdateArgs>(args: SelectSubset<T, CartItemUpdateArgs<ExtArgs>>): Prisma__CartItemClient<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, 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<T extends CartItemDeleteManyArgs>(args?: SelectSubset<T, CartItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CartItemUpdateManyArgs>(args: SelectSubset<T, CartItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CartItemUpsertArgs>(args: SelectSubset<T, CartItemUpsertArgs<ExtArgs>>): Prisma__CartItemClient<$Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, 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<T extends CartItemCountArgs>(
|
|
args?: Subset<T, CartItemCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], CartItemCountAggregateOutputType>
|
|
: 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<T extends CartItemAggregateArgs>(args: Subset<T, CartItemAggregateArgs>): Prisma.PrismaPromise<GetCartItemAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: CartItemGroupByArgs['orderBy'] }
|
|
: { orderBy?: CartItemGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, CartItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCartItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
cart<T extends CartDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CartDefaultArgs<ExtArgs>>): Prisma__CartClient<$Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
sellable<T extends SellableDefaultArgs<ExtArgs> = {}>(args?: Subset<T, SellableDefaultArgs<ExtArgs>>): Prisma__SellableClient<$Result.GetResult<Prisma.$SellablePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CartItem to fetch.
|
|
*/
|
|
where: CartItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CartItem findUniqueOrThrow
|
|
*/
|
|
export type CartItemFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CartItem to fetch.
|
|
*/
|
|
where: CartItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CartItem findFirst
|
|
*/
|
|
export type CartItemFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a CartItem.
|
|
*/
|
|
data: XOR<CartItemCreateInput, CartItemUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* CartItem createMany
|
|
*/
|
|
export type CartItemCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many CartItems.
|
|
*/
|
|
data: CartItemCreateManyInput | CartItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* CartItem update
|
|
*/
|
|
export type CartItemUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a CartItem.
|
|
*/
|
|
data: XOR<CartItemUpdateInput, CartItemUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which CartItem to update.
|
|
*/
|
|
where: CartItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CartItem updateMany
|
|
*/
|
|
export type CartItemUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update CartItems.
|
|
*/
|
|
data: XOR<CartItemUpdateManyMutationInput, CartItemUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which CartItems to update
|
|
*/
|
|
where?: CartItemWhereInput
|
|
/**
|
|
* Limit how many CartItems to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* CartItem upsert
|
|
*/
|
|
export type CartItemUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | 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<CartItemCreateInput, CartItemUncheckedCreateInput>
|
|
/**
|
|
* In case the CartItem was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<CartItemUpdateInput, CartItemUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* CartItem delete
|
|
*/
|
|
export type CartItemDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which CartItem to delete.
|
|
*/
|
|
where: CartItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CartItem deleteMany
|
|
*/
|
|
export type CartItemDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CartItems to delete
|
|
*/
|
|
where?: CartItemWhereInput
|
|
/**
|
|
* Limit how many CartItems to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* CartItem without action
|
|
*/
|
|
export type CartItemDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CartItem
|
|
*/
|
|
select?: CartItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CartItem
|
|
*/
|
|
omit?: CartItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CartItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends AdressAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdress]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateAdress[P]>
|
|
: GetScalarType<T[P], AggregateAdress[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdressGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends AdressGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<AdressGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdressGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], AdressGroupByOutputType[P]>
|
|
: GetScalarType<T[P], AdressGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type AdressSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
adress?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adress"]>
|
|
|
|
|
|
|
|
export type AdressSelectScalar = {
|
|
id?: boolean
|
|
userId?: boolean
|
|
adress?: boolean
|
|
}
|
|
|
|
export type AdressOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "adress", ExtArgs["result"]["adress"]>
|
|
export type AdressInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AdressPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Adress"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
userId: string
|
|
adress: string
|
|
}, ExtArgs["result"]["adress"]>
|
|
composites: {}
|
|
}
|
|
|
|
type AdressGetPayload<S extends boolean | null | undefined | AdressDefaultArgs> = $Result.GetResult<Prisma.$AdressPayload, S>
|
|
|
|
type AdressCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<AdressFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdressCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdressDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends AdressFindUniqueArgs>(args: SelectSubset<T, AdressFindUniqueArgs<ExtArgs>>): Prisma__AdressClient<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, 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<T extends AdressFindUniqueOrThrowArgs>(args: SelectSubset<T, AdressFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AdressClient<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, 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<T extends AdressFindFirstArgs>(args?: SelectSubset<T, AdressFindFirstArgs<ExtArgs>>): Prisma__AdressClient<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, 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<T extends AdressFindFirstOrThrowArgs>(args?: SelectSubset<T, AdressFindFirstOrThrowArgs<ExtArgs>>): Prisma__AdressClient<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, 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<T extends AdressFindManyArgs>(args?: SelectSubset<T, AdressFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, 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<T extends AdressCreateArgs>(args: SelectSubset<T, AdressCreateArgs<ExtArgs>>): Prisma__AdressClient<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, 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<T extends AdressCreateManyArgs>(args?: SelectSubset<T, AdressCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AdressDeleteArgs>(args: SelectSubset<T, AdressDeleteArgs<ExtArgs>>): Prisma__AdressClient<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, 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<T extends AdressUpdateArgs>(args: SelectSubset<T, AdressUpdateArgs<ExtArgs>>): Prisma__AdressClient<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, 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<T extends AdressDeleteManyArgs>(args?: SelectSubset<T, AdressDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AdressUpdateManyArgs>(args: SelectSubset<T, AdressUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AdressUpsertArgs>(args: SelectSubset<T, AdressUpsertArgs<ExtArgs>>): Prisma__AdressClient<$Result.GetResult<Prisma.$AdressPayload<ExtArgs>, 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<T extends AdressCountArgs>(
|
|
args?: Subset<T, AdressCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], AdressCountAggregateOutputType>
|
|
: 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<T extends AdressAggregateArgs>(args: Subset<T, AdressAggregateArgs>): Prisma.PrismaPromise<GetAdressAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: AdressGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdressGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, AdressGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdressGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Adress to fetch.
|
|
*/
|
|
where: AdressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Adress findUniqueOrThrow
|
|
*/
|
|
export type AdressFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Adress to fetch.
|
|
*/
|
|
where: AdressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Adress findFirst
|
|
*/
|
|
export type AdressFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Adress.
|
|
*/
|
|
data: XOR<AdressCreateInput, AdressUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Adress createMany
|
|
*/
|
|
export type AdressCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Adresses.
|
|
*/
|
|
data: AdressCreateManyInput | AdressCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Adress update
|
|
*/
|
|
export type AdressUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Adress.
|
|
*/
|
|
data: XOR<AdressUpdateInput, AdressUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Adress to update.
|
|
*/
|
|
where: AdressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Adress updateMany
|
|
*/
|
|
export type AdressUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Adresses.
|
|
*/
|
|
data: XOR<AdressUpdateManyMutationInput, AdressUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Adresses to update
|
|
*/
|
|
where?: AdressWhereInput
|
|
/**
|
|
* Limit how many Adresses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Adress upsert
|
|
*/
|
|
export type AdressUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | 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<AdressCreateInput, AdressUncheckedCreateInput>
|
|
/**
|
|
* In case the Adress was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<AdressUpdateInput, AdressUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Adress delete
|
|
*/
|
|
export type AdressDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Adress to delete.
|
|
*/
|
|
where: AdressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Adress deleteMany
|
|
*/
|
|
export type AdressDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Adresses to delete
|
|
*/
|
|
where?: AdressWhereInput
|
|
/**
|
|
* Limit how many Adresses to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Adress without action
|
|
*/
|
|
export type AdressDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Adress
|
|
*/
|
|
select?: AdressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Adress
|
|
*/
|
|
omit?: AdressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AdressInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel: {
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
};
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const AccountScalarFieldEnum: {
|
|
id: 'id',
|
|
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: {
|
|
id: 'id',
|
|
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: {
|
|
id: 'id',
|
|
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<UserScalarRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
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<UserScalarRelationFilter, UserWhereInput>
|
|
}, "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<UserScalarRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
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<UserScalarRelationFilter, UserWhereInput>
|
|
}, "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<UserScalarRelationFilter, UserWhereInput>
|
|
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<UserScalarRelationFilter, UserWhereInput>
|
|
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<ShopScalarRelationFilter, ShopWhereInput>
|
|
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<ShopScalarRelationFilter, ShopWhereInput>
|
|
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<ShopScalarRelationFilter, ShopWhereInput>
|
|
item?: XOR<ItemScalarRelationFilter, ItemWhereInput>
|
|
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<ShopScalarRelationFilter, ShopWhereInput>
|
|
item?: XOR<ItemScalarRelationFilter, ItemWhereInput>
|
|
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[]
|
|
id?: StringFilter<"Cart"> | string
|
|
userId?: StringFilter<"Cart"> | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
cartItems?: CartItemListRelationFilter
|
|
}
|
|
|
|
export type CartOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
cartItems?: CartItemOrderByRelationAggregateInput
|
|
_relevance?: CartOrderByRelevanceInput
|
|
}
|
|
|
|
export type CartWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: CartWhereInput | CartWhereInput[]
|
|
OR?: CartWhereInput[]
|
|
NOT?: CartWhereInput | CartWhereInput[]
|
|
userId?: StringFilter<"Cart"> | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
cartItems?: CartItemListRelationFilter
|
|
}, "id">
|
|
|
|
export type CartOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
_count?: CartCountOrderByAggregateInput
|
|
_max?: CartMaxOrderByAggregateInput
|
|
_min?: CartMinOrderByAggregateInput
|
|
}
|
|
|
|
export type CartScalarWhereWithAggregatesInput = {
|
|
AND?: CartScalarWhereWithAggregatesInput | CartScalarWhereWithAggregatesInput[]
|
|
OR?: CartScalarWhereWithAggregatesInput[]
|
|
NOT?: CartScalarWhereWithAggregatesInput | CartScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"Cart"> | string
|
|
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<CartScalarRelationFilter, CartWhereInput>
|
|
sellable?: XOR<SellableScalarRelationFilter, SellableWhereInput>
|
|
}
|
|
|
|
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<CartScalarRelationFilter, CartWhereInput>
|
|
sellable?: XOR<SellableScalarRelationFilter, SellableWhereInput>
|
|
}, "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<UserScalarRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
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<UserScalarRelationFilter, UserWhereInput>
|
|
}, "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 = {
|
|
id: string
|
|
user: UserCreateNestedOneWithoutCartsInput
|
|
cartItems?: CartItemCreateNestedManyWithoutCartInput
|
|
}
|
|
|
|
export type CartUncheckedCreateInput = {
|
|
id: string
|
|
userId: string
|
|
cartItems?: CartItemUncheckedCreateNestedManyWithoutCartInput
|
|
}
|
|
|
|
export type CartUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
user?: UserUpdateOneRequiredWithoutCartsNestedInput
|
|
cartItems?: CartItemUpdateManyWithoutCartNestedInput
|
|
}
|
|
|
|
export type CartUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
cartItems?: CartItemUncheckedUpdateManyWithoutCartNestedInput
|
|
}
|
|
|
|
export type CartCreateManyInput = {
|
|
id: string
|
|
userId: string
|
|
}
|
|
|
|
export type CartUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type CartUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
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 = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
}
|
|
|
|
export type CartMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
}
|
|
|
|
export type CartMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
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<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
|
|
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<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
|
|
upsert?: UserUpsertWithoutAccountsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAccountsInput, UserUpdateWithoutAccountsInput>, UserUncheckedUpdateWithoutAccountsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutSessionsInput = {
|
|
create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
|
|
create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
|
|
upsert?: UserUpsertWithoutSessionsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSessionsInput, UserUpdateWithoutSessionsInput>, UserUncheckedUpdateWithoutSessionsInput>
|
|
}
|
|
|
|
export type AccountCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
|
|
createMany?: AccountCreateManyUserInputEnvelope
|
|
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
}
|
|
|
|
export type SessionCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type ShopCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<ShopCreateWithoutUserInput, ShopUncheckedCreateWithoutUserInput> | ShopCreateWithoutUserInput[] | ShopUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: ShopCreateOrConnectWithoutUserInput | ShopCreateOrConnectWithoutUserInput[]
|
|
createMany?: ShopCreateManyUserInputEnvelope
|
|
connect?: ShopWhereUniqueInput | ShopWhereUniqueInput[]
|
|
}
|
|
|
|
export type CartCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<CartCreateWithoutUserInput, CartUncheckedCreateWithoutUserInput> | CartCreateWithoutUserInput[] | CartUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: CartCreateOrConnectWithoutUserInput | CartCreateOrConnectWithoutUserInput[]
|
|
createMany?: CartCreateManyUserInputEnvelope
|
|
connect?: CartWhereUniqueInput | CartWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdressCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<AdressCreateWithoutUserInput, AdressUncheckedCreateWithoutUserInput> | AdressCreateWithoutUserInput[] | AdressUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AdressCreateOrConnectWithoutUserInput | AdressCreateOrConnectWithoutUserInput[]
|
|
createMany?: AdressCreateManyUserInputEnvelope
|
|
connect?: AdressWhereUniqueInput | AdressWhereUniqueInput[]
|
|
}
|
|
|
|
export type AccountUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
|
|
createMany?: AccountCreateManyUserInputEnvelope
|
|
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
}
|
|
|
|
export type SessionUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type ShopUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<ShopCreateWithoutUserInput, ShopUncheckedCreateWithoutUserInput> | ShopCreateWithoutUserInput[] | ShopUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: ShopCreateOrConnectWithoutUserInput | ShopCreateOrConnectWithoutUserInput[]
|
|
createMany?: ShopCreateManyUserInputEnvelope
|
|
connect?: ShopWhereUniqueInput | ShopWhereUniqueInput[]
|
|
}
|
|
|
|
export type CartUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<CartCreateWithoutUserInput, CartUncheckedCreateWithoutUserInput> | CartCreateWithoutUserInput[] | CartUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: CartCreateOrConnectWithoutUserInput | CartCreateOrConnectWithoutUserInput[]
|
|
createMany?: CartCreateManyUserInputEnvelope
|
|
connect?: CartWhereUniqueInput | CartWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdressUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<AdressCreateWithoutUserInput, AdressUncheckedCreateWithoutUserInput> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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<UserCreateWithoutShopsInput, UserUncheckedCreateWithoutShopsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutShopsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type ItemCreateNestedManyWithoutShopInput = {
|
|
create?: XOR<ItemCreateWithoutShopInput, ItemUncheckedCreateWithoutShopInput> | ItemCreateWithoutShopInput[] | ItemUncheckedCreateWithoutShopInput[]
|
|
connectOrCreate?: ItemCreateOrConnectWithoutShopInput | ItemCreateOrConnectWithoutShopInput[]
|
|
createMany?: ItemCreateManyShopInputEnvelope
|
|
connect?: ItemWhereUniqueInput | ItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type SellableCreateNestedManyWithoutShopInput = {
|
|
create?: XOR<SellableCreateWithoutShopInput, SellableUncheckedCreateWithoutShopInput> | SellableCreateWithoutShopInput[] | SellableUncheckedCreateWithoutShopInput[]
|
|
connectOrCreate?: SellableCreateOrConnectWithoutShopInput | SellableCreateOrConnectWithoutShopInput[]
|
|
createMany?: SellableCreateManyShopInputEnvelope
|
|
connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[]
|
|
}
|
|
|
|
export type ItemUncheckedCreateNestedManyWithoutShopInput = {
|
|
create?: XOR<ItemCreateWithoutShopInput, ItemUncheckedCreateWithoutShopInput> | ItemCreateWithoutShopInput[] | ItemUncheckedCreateWithoutShopInput[]
|
|
connectOrCreate?: ItemCreateOrConnectWithoutShopInput | ItemCreateOrConnectWithoutShopInput[]
|
|
createMany?: ItemCreateManyShopInputEnvelope
|
|
connect?: ItemWhereUniqueInput | ItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type SellableUncheckedCreateNestedManyWithoutShopInput = {
|
|
create?: XOR<SellableCreateWithoutShopInput, SellableUncheckedCreateWithoutShopInput> | 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<UserCreateWithoutShopsInput, UserUncheckedCreateWithoutShopsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutShopsInput
|
|
upsert?: UserUpsertWithoutShopsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutShopsInput, UserUpdateWithoutShopsInput>, UserUncheckedUpdateWithoutShopsInput>
|
|
}
|
|
|
|
export type ItemUpdateManyWithoutShopNestedInput = {
|
|
create?: XOR<ItemCreateWithoutShopInput, ItemUncheckedCreateWithoutShopInput> | 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> | 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> | 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> | 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<ShopCreateWithoutItemsInput, ShopUncheckedCreateWithoutItemsInput>
|
|
connectOrCreate?: ShopCreateOrConnectWithoutItemsInput
|
|
connect?: ShopWhereUniqueInput
|
|
}
|
|
|
|
export type SellableCreateNestedManyWithoutItemInput = {
|
|
create?: XOR<SellableCreateWithoutItemInput, SellableUncheckedCreateWithoutItemInput> | SellableCreateWithoutItemInput[] | SellableUncheckedCreateWithoutItemInput[]
|
|
connectOrCreate?: SellableCreateOrConnectWithoutItemInput | SellableCreateOrConnectWithoutItemInput[]
|
|
createMany?: SellableCreateManyItemInputEnvelope
|
|
connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[]
|
|
}
|
|
|
|
export type SellableUncheckedCreateNestedManyWithoutItemInput = {
|
|
create?: XOR<SellableCreateWithoutItemInput, SellableUncheckedCreateWithoutItemInput> | SellableCreateWithoutItemInput[] | SellableUncheckedCreateWithoutItemInput[]
|
|
connectOrCreate?: SellableCreateOrConnectWithoutItemInput | SellableCreateOrConnectWithoutItemInput[]
|
|
createMany?: SellableCreateManyItemInputEnvelope
|
|
connect?: SellableWhereUniqueInput | SellableWhereUniqueInput[]
|
|
}
|
|
|
|
export type ShopUpdateOneRequiredWithoutItemsNestedInput = {
|
|
create?: XOR<ShopCreateWithoutItemsInput, ShopUncheckedCreateWithoutItemsInput>
|
|
connectOrCreate?: ShopCreateOrConnectWithoutItemsInput
|
|
upsert?: ShopUpsertWithoutItemsInput
|
|
connect?: ShopWhereUniqueInput
|
|
update?: XOR<XOR<ShopUpdateToOneWithWhereWithoutItemsInput, ShopUpdateWithoutItemsInput>, ShopUncheckedUpdateWithoutItemsInput>
|
|
}
|
|
|
|
export type SellableUpdateManyWithoutItemNestedInput = {
|
|
create?: XOR<SellableCreateWithoutItemInput, SellableUncheckedCreateWithoutItemInput> | 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> | 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<ShopCreateWithoutSellablesInput, ShopUncheckedCreateWithoutSellablesInput>
|
|
connectOrCreate?: ShopCreateOrConnectWithoutSellablesInput
|
|
connect?: ShopWhereUniqueInput
|
|
}
|
|
|
|
export type ItemCreateNestedOneWithoutSellablesInput = {
|
|
create?: XOR<ItemCreateWithoutSellablesInput, ItemUncheckedCreateWithoutSellablesInput>
|
|
connectOrCreate?: ItemCreateOrConnectWithoutSellablesInput
|
|
connect?: ItemWhereUniqueInput
|
|
}
|
|
|
|
export type CartItemCreateNestedManyWithoutSellableInput = {
|
|
create?: XOR<CartItemCreateWithoutSellableInput, CartItemUncheckedCreateWithoutSellableInput> | CartItemCreateWithoutSellableInput[] | CartItemUncheckedCreateWithoutSellableInput[]
|
|
connectOrCreate?: CartItemCreateOrConnectWithoutSellableInput | CartItemCreateOrConnectWithoutSellableInput[]
|
|
createMany?: CartItemCreateManySellableInputEnvelope
|
|
connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type CartItemUncheckedCreateNestedManyWithoutSellableInput = {
|
|
create?: XOR<CartItemCreateWithoutSellableInput, CartItemUncheckedCreateWithoutSellableInput> | CartItemCreateWithoutSellableInput[] | CartItemUncheckedCreateWithoutSellableInput[]
|
|
connectOrCreate?: CartItemCreateOrConnectWithoutSellableInput | CartItemCreateOrConnectWithoutSellableInput[]
|
|
createMany?: CartItemCreateManySellableInputEnvelope
|
|
connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type BoolFieldUpdateOperationsInput = {
|
|
set?: boolean
|
|
}
|
|
|
|
export type ShopUpdateOneRequiredWithoutSellablesNestedInput = {
|
|
create?: XOR<ShopCreateWithoutSellablesInput, ShopUncheckedCreateWithoutSellablesInput>
|
|
connectOrCreate?: ShopCreateOrConnectWithoutSellablesInput
|
|
upsert?: ShopUpsertWithoutSellablesInput
|
|
connect?: ShopWhereUniqueInput
|
|
update?: XOR<XOR<ShopUpdateToOneWithWhereWithoutSellablesInput, ShopUpdateWithoutSellablesInput>, ShopUncheckedUpdateWithoutSellablesInput>
|
|
}
|
|
|
|
export type ItemUpdateOneRequiredWithoutSellablesNestedInput = {
|
|
create?: XOR<ItemCreateWithoutSellablesInput, ItemUncheckedCreateWithoutSellablesInput>
|
|
connectOrCreate?: ItemCreateOrConnectWithoutSellablesInput
|
|
upsert?: ItemUpsertWithoutSellablesInput
|
|
connect?: ItemWhereUniqueInput
|
|
update?: XOR<XOR<ItemUpdateToOneWithWhereWithoutSellablesInput, ItemUpdateWithoutSellablesInput>, ItemUncheckedUpdateWithoutSellablesInput>
|
|
}
|
|
|
|
export type CartItemUpdateManyWithoutSellableNestedInput = {
|
|
create?: XOR<CartItemCreateWithoutSellableInput, CartItemUncheckedCreateWithoutSellableInput> | 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> | 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<UserCreateWithoutCartsInput, UserUncheckedCreateWithoutCartsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutCartsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type CartItemCreateNestedManyWithoutCartInput = {
|
|
create?: XOR<CartItemCreateWithoutCartInput, CartItemUncheckedCreateWithoutCartInput> | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[]
|
|
connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[]
|
|
createMany?: CartItemCreateManyCartInputEnvelope
|
|
connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type CartItemUncheckedCreateNestedManyWithoutCartInput = {
|
|
create?: XOR<CartItemCreateWithoutCartInput, CartItemUncheckedCreateWithoutCartInput> | CartItemCreateWithoutCartInput[] | CartItemUncheckedCreateWithoutCartInput[]
|
|
connectOrCreate?: CartItemCreateOrConnectWithoutCartInput | CartItemCreateOrConnectWithoutCartInput[]
|
|
createMany?: CartItemCreateManyCartInputEnvelope
|
|
connect?: CartItemWhereUniqueInput | CartItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutCartsNestedInput = {
|
|
create?: XOR<UserCreateWithoutCartsInput, UserUncheckedCreateWithoutCartsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutCartsInput
|
|
upsert?: UserUpsertWithoutCartsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCartsInput, UserUpdateWithoutCartsInput>, UserUncheckedUpdateWithoutCartsInput>
|
|
}
|
|
|
|
export type CartItemUpdateManyWithoutCartNestedInput = {
|
|
create?: XOR<CartItemCreateWithoutCartInput, CartItemUncheckedCreateWithoutCartInput> | 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> | 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<CartCreateWithoutCartItemsInput, CartUncheckedCreateWithoutCartItemsInput>
|
|
connectOrCreate?: CartCreateOrConnectWithoutCartItemsInput
|
|
connect?: CartWhereUniqueInput
|
|
}
|
|
|
|
export type SellableCreateNestedOneWithoutCartItemsInput = {
|
|
create?: XOR<SellableCreateWithoutCartItemsInput, SellableUncheckedCreateWithoutCartItemsInput>
|
|
connectOrCreate?: SellableCreateOrConnectWithoutCartItemsInput
|
|
connect?: SellableWhereUniqueInput
|
|
}
|
|
|
|
export type CartUpdateOneRequiredWithoutCartItemsNestedInput = {
|
|
create?: XOR<CartCreateWithoutCartItemsInput, CartUncheckedCreateWithoutCartItemsInput>
|
|
connectOrCreate?: CartCreateOrConnectWithoutCartItemsInput
|
|
upsert?: CartUpsertWithoutCartItemsInput
|
|
connect?: CartWhereUniqueInput
|
|
update?: XOR<XOR<CartUpdateToOneWithWhereWithoutCartItemsInput, CartUpdateWithoutCartItemsInput>, CartUncheckedUpdateWithoutCartItemsInput>
|
|
}
|
|
|
|
export type SellableUpdateOneRequiredWithoutCartItemsNestedInput = {
|
|
create?: XOR<SellableCreateWithoutCartItemsInput, SellableUncheckedCreateWithoutCartItemsInput>
|
|
connectOrCreate?: SellableCreateOrConnectWithoutCartItemsInput
|
|
upsert?: SellableUpsertWithoutCartItemsInput
|
|
connect?: SellableWhereUniqueInput
|
|
update?: XOR<XOR<SellableUpdateToOneWithWhereWithoutCartItemsInput, SellableUpdateWithoutCartItemsInput>, SellableUncheckedUpdateWithoutCartItemsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutAdressesInput = {
|
|
create?: XOR<UserCreateWithoutAdressesInput, UserUncheckedCreateWithoutAdressesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutAdressesInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutAdressesNestedInput = {
|
|
create?: XOR<UserCreateWithoutAdressesInput, UserUncheckedCreateWithoutAdressesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutAdressesInput
|
|
upsert?: UserUpsertWithoutAdressesInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAdressesInput, UserUpdateWithoutAdressesInput>, 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<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutAccountsInput = {
|
|
update: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
|
|
create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutAccountsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
|
|
}
|
|
|
|
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<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutSessionsInput = {
|
|
update: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
|
|
create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutSessionsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
|
|
}
|
|
|
|
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<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
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<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
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<ShopCreateWithoutUserInput, ShopUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type ShopCreateManyUserInputEnvelope = {
|
|
data: ShopCreateManyUserInput | ShopCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CartCreateWithoutUserInput = {
|
|
id: string
|
|
cartItems?: CartItemCreateNestedManyWithoutCartInput
|
|
}
|
|
|
|
export type CartUncheckedCreateWithoutUserInput = {
|
|
id: string
|
|
cartItems?: CartItemUncheckedCreateNestedManyWithoutCartInput
|
|
}
|
|
|
|
export type CartCreateOrConnectWithoutUserInput = {
|
|
where: CartWhereUniqueInput
|
|
create: XOR<CartCreateWithoutUserInput, CartUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
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<AdressCreateWithoutUserInput, AdressUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type AdressCreateManyUserInputEnvelope = {
|
|
data: AdressCreateManyUserInput | AdressCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type AccountUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: AccountWhereUniqueInput
|
|
update: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
|
|
create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type AccountUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: AccountWhereUniqueInput
|
|
data: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type AccountUpdateManyWithWhereWithoutUserInput = {
|
|
where: AccountScalarWhereInput
|
|
data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type AccountScalarWhereInput = {
|
|
AND?: AccountScalarWhereInput | AccountScalarWhereInput[]
|
|
OR?: AccountScalarWhereInput[]
|
|
NOT?: AccountScalarWhereInput | AccountScalarWhereInput[]
|
|
id?: StringFilter<"Account"> | string
|
|
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<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
|
|
create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type SessionUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: SessionWhereUniqueInput
|
|
data: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type SessionUpdateManyWithWhereWithoutUserInput = {
|
|
where: SessionScalarWhereInput
|
|
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type SessionScalarWhereInput = {
|
|
AND?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
OR?: SessionScalarWhereInput[]
|
|
NOT?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
id?: StringFilter<"Session"> | string
|
|
sessionToken?: StringFilter<"Session"> | string
|
|
userId?: StringFilter<"Session"> | string
|
|
expires?: DateTimeFilter<"Session"> | Date | string
|
|
}
|
|
|
|
export type ShopUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: ShopWhereUniqueInput
|
|
update: XOR<ShopUpdateWithoutUserInput, ShopUncheckedUpdateWithoutUserInput>
|
|
create: XOR<ShopCreateWithoutUserInput, ShopUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type ShopUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: ShopWhereUniqueInput
|
|
data: XOR<ShopUpdateWithoutUserInput, ShopUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type ShopUpdateManyWithWhereWithoutUserInput = {
|
|
where: ShopScalarWhereInput
|
|
data: XOR<ShopUpdateManyMutationInput, ShopUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
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<CartUpdateWithoutUserInput, CartUncheckedUpdateWithoutUserInput>
|
|
create: XOR<CartCreateWithoutUserInput, CartUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type CartUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: CartWhereUniqueInput
|
|
data: XOR<CartUpdateWithoutUserInput, CartUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type CartUpdateManyWithWhereWithoutUserInput = {
|
|
where: CartScalarWhereInput
|
|
data: XOR<CartUpdateManyMutationInput, CartUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type CartScalarWhereInput = {
|
|
AND?: CartScalarWhereInput | CartScalarWhereInput[]
|
|
OR?: CartScalarWhereInput[]
|
|
NOT?: CartScalarWhereInput | CartScalarWhereInput[]
|
|
id?: StringFilter<"Cart"> | string
|
|
userId?: StringFilter<"Cart"> | string
|
|
}
|
|
|
|
export type AdressUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: AdressWhereUniqueInput
|
|
update: XOR<AdressUpdateWithoutUserInput, AdressUncheckedUpdateWithoutUserInput>
|
|
create: XOR<AdressCreateWithoutUserInput, AdressUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type AdressUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: AdressWhereUniqueInput
|
|
data: XOR<AdressUpdateWithoutUserInput, AdressUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type AdressUpdateManyWithWhereWithoutUserInput = {
|
|
where: AdressScalarWhereInput
|
|
data: XOR<AdressUpdateManyMutationInput, AdressUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
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<UserCreateWithoutShopsInput, UserUncheckedCreateWithoutShopsInput>
|
|
}
|
|
|
|
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<ItemCreateWithoutShopInput, ItemUncheckedCreateWithoutShopInput>
|
|
}
|
|
|
|
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<SellableCreateWithoutShopInput, SellableUncheckedCreateWithoutShopInput>
|
|
}
|
|
|
|
export type SellableCreateManyShopInputEnvelope = {
|
|
data: SellableCreateManyShopInput | SellableCreateManyShopInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type UserUpsertWithoutShopsInput = {
|
|
update: XOR<UserUpdateWithoutShopsInput, UserUncheckedUpdateWithoutShopsInput>
|
|
create: XOR<UserCreateWithoutShopsInput, UserUncheckedCreateWithoutShopsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutShopsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutShopsInput, UserUncheckedUpdateWithoutShopsInput>
|
|
}
|
|
|
|
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<ItemUpdateWithoutShopInput, ItemUncheckedUpdateWithoutShopInput>
|
|
create: XOR<ItemCreateWithoutShopInput, ItemUncheckedCreateWithoutShopInput>
|
|
}
|
|
|
|
export type ItemUpdateWithWhereUniqueWithoutShopInput = {
|
|
where: ItemWhereUniqueInput
|
|
data: XOR<ItemUpdateWithoutShopInput, ItemUncheckedUpdateWithoutShopInput>
|
|
}
|
|
|
|
export type ItemUpdateManyWithWhereWithoutShopInput = {
|
|
where: ItemScalarWhereInput
|
|
data: XOR<ItemUpdateManyMutationInput, ItemUncheckedUpdateManyWithoutShopInput>
|
|
}
|
|
|
|
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<SellableUpdateWithoutShopInput, SellableUncheckedUpdateWithoutShopInput>
|
|
create: XOR<SellableCreateWithoutShopInput, SellableUncheckedCreateWithoutShopInput>
|
|
}
|
|
|
|
export type SellableUpdateWithWhereUniqueWithoutShopInput = {
|
|
where: SellableWhereUniqueInput
|
|
data: XOR<SellableUpdateWithoutShopInput, SellableUncheckedUpdateWithoutShopInput>
|
|
}
|
|
|
|
export type SellableUpdateManyWithWhereWithoutShopInput = {
|
|
where: SellableScalarWhereInput
|
|
data: XOR<SellableUpdateManyMutationInput, SellableUncheckedUpdateManyWithoutShopInput>
|
|
}
|
|
|
|
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<ShopCreateWithoutItemsInput, ShopUncheckedCreateWithoutItemsInput>
|
|
}
|
|
|
|
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<SellableCreateWithoutItemInput, SellableUncheckedCreateWithoutItemInput>
|
|
}
|
|
|
|
export type SellableCreateManyItemInputEnvelope = {
|
|
data: SellableCreateManyItemInput | SellableCreateManyItemInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ShopUpsertWithoutItemsInput = {
|
|
update: XOR<ShopUpdateWithoutItemsInput, ShopUncheckedUpdateWithoutItemsInput>
|
|
create: XOR<ShopCreateWithoutItemsInput, ShopUncheckedCreateWithoutItemsInput>
|
|
where?: ShopWhereInput
|
|
}
|
|
|
|
export type ShopUpdateToOneWithWhereWithoutItemsInput = {
|
|
where?: ShopWhereInput
|
|
data: XOR<ShopUpdateWithoutItemsInput, ShopUncheckedUpdateWithoutItemsInput>
|
|
}
|
|
|
|
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<SellableUpdateWithoutItemInput, SellableUncheckedUpdateWithoutItemInput>
|
|
create: XOR<SellableCreateWithoutItemInput, SellableUncheckedCreateWithoutItemInput>
|
|
}
|
|
|
|
export type SellableUpdateWithWhereUniqueWithoutItemInput = {
|
|
where: SellableWhereUniqueInput
|
|
data: XOR<SellableUpdateWithoutItemInput, SellableUncheckedUpdateWithoutItemInput>
|
|
}
|
|
|
|
export type SellableUpdateManyWithWhereWithoutItemInput = {
|
|
where: SellableScalarWhereInput
|
|
data: XOR<SellableUpdateManyMutationInput, SellableUncheckedUpdateManyWithoutItemInput>
|
|
}
|
|
|
|
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<ShopCreateWithoutSellablesInput, ShopUncheckedCreateWithoutSellablesInput>
|
|
}
|
|
|
|
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<ItemCreateWithoutSellablesInput, ItemUncheckedCreateWithoutSellablesInput>
|
|
}
|
|
|
|
export type CartItemCreateWithoutSellableInput = {
|
|
quantity: number
|
|
cart: CartCreateNestedOneWithoutCartItemsInput
|
|
}
|
|
|
|
export type CartItemUncheckedCreateWithoutSellableInput = {
|
|
quantity: number
|
|
cartId: string
|
|
}
|
|
|
|
export type CartItemCreateOrConnectWithoutSellableInput = {
|
|
where: CartItemWhereUniqueInput
|
|
create: XOR<CartItemCreateWithoutSellableInput, CartItemUncheckedCreateWithoutSellableInput>
|
|
}
|
|
|
|
export type CartItemCreateManySellableInputEnvelope = {
|
|
data: CartItemCreateManySellableInput | CartItemCreateManySellableInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ShopUpsertWithoutSellablesInput = {
|
|
update: XOR<ShopUpdateWithoutSellablesInput, ShopUncheckedUpdateWithoutSellablesInput>
|
|
create: XOR<ShopCreateWithoutSellablesInput, ShopUncheckedCreateWithoutSellablesInput>
|
|
where?: ShopWhereInput
|
|
}
|
|
|
|
export type ShopUpdateToOneWithWhereWithoutSellablesInput = {
|
|
where?: ShopWhereInput
|
|
data: XOR<ShopUpdateWithoutSellablesInput, ShopUncheckedUpdateWithoutSellablesInput>
|
|
}
|
|
|
|
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<ItemUpdateWithoutSellablesInput, ItemUncheckedUpdateWithoutSellablesInput>
|
|
create: XOR<ItemCreateWithoutSellablesInput, ItemUncheckedCreateWithoutSellablesInput>
|
|
where?: ItemWhereInput
|
|
}
|
|
|
|
export type ItemUpdateToOneWithWhereWithoutSellablesInput = {
|
|
where?: ItemWhereInput
|
|
data: XOR<ItemUpdateWithoutSellablesInput, ItemUncheckedUpdateWithoutSellablesInput>
|
|
}
|
|
|
|
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<CartItemUpdateWithoutSellableInput, CartItemUncheckedUpdateWithoutSellableInput>
|
|
create: XOR<CartItemCreateWithoutSellableInput, CartItemUncheckedCreateWithoutSellableInput>
|
|
}
|
|
|
|
export type CartItemUpdateWithWhereUniqueWithoutSellableInput = {
|
|
where: CartItemWhereUniqueInput
|
|
data: XOR<CartItemUpdateWithoutSellableInput, CartItemUncheckedUpdateWithoutSellableInput>
|
|
}
|
|
|
|
export type CartItemUpdateManyWithWhereWithoutSellableInput = {
|
|
where: CartItemScalarWhereInput
|
|
data: XOR<CartItemUpdateManyMutationInput, CartItemUncheckedUpdateManyWithoutSellableInput>
|
|
}
|
|
|
|
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<UserCreateWithoutCartsInput, UserUncheckedCreateWithoutCartsInput>
|
|
}
|
|
|
|
export type CartItemCreateWithoutCartInput = {
|
|
quantity: number
|
|
sellable: SellableCreateNestedOneWithoutCartItemsInput
|
|
}
|
|
|
|
export type CartItemUncheckedCreateWithoutCartInput = {
|
|
itemId: string
|
|
quantity: number
|
|
}
|
|
|
|
export type CartItemCreateOrConnectWithoutCartInput = {
|
|
where: CartItemWhereUniqueInput
|
|
create: XOR<CartItemCreateWithoutCartInput, CartItemUncheckedCreateWithoutCartInput>
|
|
}
|
|
|
|
export type CartItemCreateManyCartInputEnvelope = {
|
|
data: CartItemCreateManyCartInput | CartItemCreateManyCartInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type UserUpsertWithoutCartsInput = {
|
|
update: XOR<UserUpdateWithoutCartsInput, UserUncheckedUpdateWithoutCartsInput>
|
|
create: XOR<UserCreateWithoutCartsInput, UserUncheckedCreateWithoutCartsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutCartsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutCartsInput, UserUncheckedUpdateWithoutCartsInput>
|
|
}
|
|
|
|
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<CartItemUpdateWithoutCartInput, CartItemUncheckedUpdateWithoutCartInput>
|
|
create: XOR<CartItemCreateWithoutCartInput, CartItemUncheckedCreateWithoutCartInput>
|
|
}
|
|
|
|
export type CartItemUpdateWithWhereUniqueWithoutCartInput = {
|
|
where: CartItemWhereUniqueInput
|
|
data: XOR<CartItemUpdateWithoutCartInput, CartItemUncheckedUpdateWithoutCartInput>
|
|
}
|
|
|
|
export type CartItemUpdateManyWithWhereWithoutCartInput = {
|
|
where: CartItemScalarWhereInput
|
|
data: XOR<CartItemUpdateManyMutationInput, CartItemUncheckedUpdateManyWithoutCartInput>
|
|
}
|
|
|
|
export type CartCreateWithoutCartItemsInput = {
|
|
id: string
|
|
user: UserCreateNestedOneWithoutCartsInput
|
|
}
|
|
|
|
export type CartUncheckedCreateWithoutCartItemsInput = {
|
|
id: string
|
|
userId: string
|
|
}
|
|
|
|
export type CartCreateOrConnectWithoutCartItemsInput = {
|
|
where: CartWhereUniqueInput
|
|
create: XOR<CartCreateWithoutCartItemsInput, CartUncheckedCreateWithoutCartItemsInput>
|
|
}
|
|
|
|
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<SellableCreateWithoutCartItemsInput, SellableUncheckedCreateWithoutCartItemsInput>
|
|
}
|
|
|
|
export type CartUpsertWithoutCartItemsInput = {
|
|
update: XOR<CartUpdateWithoutCartItemsInput, CartUncheckedUpdateWithoutCartItemsInput>
|
|
create: XOR<CartCreateWithoutCartItemsInput, CartUncheckedCreateWithoutCartItemsInput>
|
|
where?: CartWhereInput
|
|
}
|
|
|
|
export type CartUpdateToOneWithWhereWithoutCartItemsInput = {
|
|
where?: CartWhereInput
|
|
data: XOR<CartUpdateWithoutCartItemsInput, CartUncheckedUpdateWithoutCartItemsInput>
|
|
}
|
|
|
|
export type CartUpdateWithoutCartItemsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
user?: UserUpdateOneRequiredWithoutCartsNestedInput
|
|
}
|
|
|
|
export type CartUncheckedUpdateWithoutCartItemsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SellableUpsertWithoutCartItemsInput = {
|
|
update: XOR<SellableUpdateWithoutCartItemsInput, SellableUncheckedUpdateWithoutCartItemsInput>
|
|
create: XOR<SellableCreateWithoutCartItemsInput, SellableUncheckedCreateWithoutCartItemsInput>
|
|
where?: SellableWhereInput
|
|
}
|
|
|
|
export type SellableUpdateToOneWithWhereWithoutCartItemsInput = {
|
|
where?: SellableWhereInput
|
|
data: XOR<SellableUpdateWithoutCartItemsInput, SellableUncheckedUpdateWithoutCartItemsInput>
|
|
}
|
|
|
|
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<UserCreateWithoutAdressesInput, UserUncheckedCreateWithoutAdressesInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutAdressesInput = {
|
|
update: XOR<UserUpdateWithoutAdressesInput, UserUncheckedUpdateWithoutAdressesInput>
|
|
create: XOR<UserCreateWithoutAdressesInput, UserUncheckedCreateWithoutAdressesInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutAdressesInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutAdressesInput, UserUncheckedUpdateWithoutAdressesInput>
|
|
}
|
|
|
|
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 = {
|
|
id: string
|
|
}
|
|
|
|
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 = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
cartItems?: CartItemUpdateManyWithoutCartNestedInput
|
|
}
|
|
|
|
export type CartUncheckedUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
cartItems?: CartItemUncheckedUpdateManyWithoutCartNestedInput
|
|
}
|
|
|
|
export type CartUncheckedUpdateManyWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
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
|
|
} |