/** * Client **/ import * as runtime from './runtime/library.js'; import $Types = runtime.Types // general types import $Public = runtime.Types.Public import $Utils = runtime.Types.Utils import $Extensions = runtime.Types.Extensions import $Result = runtime.Types.Result export type PrismaPromise = $Public.PrismaPromise /** * Model User * */ export type User = $Result.DefaultSelection /** * Model License * */ export type License = $Result.DefaultSelection /** * Model UserLicense * */ export type UserLicense = $Result.DefaultSelection /** * Enums */ export namespace $Enums { export const UserRole: { ADMIN: 'ADMIN', USER: 'USER' }; export type UserRole = (typeof UserRole)[keyof typeof UserRole] export const LicenseCode: { FREE: 'FREE', EDUCATION: 'EDUCATION', PROFESSIONAL: 'PROFESSIONAL' }; export type LicenseCode = (typeof LicenseCode)[keyof typeof LicenseCode] } export type UserRole = $Enums.UserRole export const UserRole: typeof $Enums.UserRole export type LicenseCode = $Enums.LicenseCode export const LicenseCode: typeof $Enums.LicenseCode /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ export class PrismaClient< ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['other'] } /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ constructor(optionsArg ?: Prisma.Subset); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * Executes a prepared raw query and returns the number of affected rows. * @example * ``` * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Executes a raw query and returns the number of affected rows. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Performs a prepared raw query and returns the `SELECT` data. * @example * ``` * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Performs a raw query and returns the `SELECT` data. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. * @example * ``` * const [george, bob, alice] = await prisma.$transaction([ * prisma.user.create({ data: { name: 'George' } }), * prisma.user.create({ data: { name: 'Bob' } }), * prisma.user.create({ data: { name: 'Alice' } }), * ]) * ``` * * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). */ $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, { extArgs: ExtArgs }>> /** * `prisma.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate; /** * `prisma.license`: Exposes CRUD operations for the **License** model. * Example usage: * ```ts * // Fetch zero or more Licenses * const licenses = await prisma.license.findMany() * ``` */ get license(): Prisma.LicenseDelegate; /** * `prisma.userLicense`: Exposes CRUD operations for the **UserLicense** model. * Example usage: * ```ts * // Fetch zero or more UserLicenses * const userLicenses = await prisma.userLicense.findMany() * ``` */ get userLicense(): Prisma.UserLicenseDelegate; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise = $Public.PrismaPromise /** * Validator */ export import validator = runtime.Public.validator /** * Prisma Errors */ export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError export import PrismaClientInitializationError = runtime.PrismaClientInitializationError export import PrismaClientValidationError = runtime.PrismaClientValidationError /** * Re-export of sql-template-tag */ export import sql = runtime.sqltag export import empty = runtime.empty export import join = runtime.join export import raw = runtime.raw export import Sql = runtime.Sql /** * Decimal.js */ export import Decimal = runtime.Decimal export type DecimalJsLike = runtime.DecimalJsLike /** * Metrics */ export type Metrics = runtime.Metrics export type Metric = runtime.Metric export type MetricHistogram = runtime.MetricHistogram export type MetricHistogramBucket = runtime.MetricHistogramBucket /** * Extensions */ export import Extension = $Extensions.UserArgs export import getExtensionContext = runtime.Extensions.getExtensionContext export import Args = $Public.Args export import Payload = $Public.Payload export import Result = $Public.Result export import Exact = $Public.Exact /** * Prisma Client JS version: 6.19.3 * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7 */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import Bytes = runtime.Bytes export import JsonObject = runtime.JsonObject export import JsonArray = runtime.JsonArray export import JsonValue = runtime.JsonValue export import InputJsonObject = runtime.InputJsonObject export import InputJsonArray = runtime.InputJsonArray export import InputJsonValue = runtime.InputJsonValue /** * Types of the values used to represent different kinds of `null` values when working with JSON fields. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ namespace NullTypes { /** * Type of `Prisma.DbNull`. * * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class DbNull { private DbNull: never private constructor() } /** * Type of `Prisma.JsonNull`. * * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class JsonNull { private JsonNull: never private constructor() } /** * Type of `Prisma.AnyNull`. * * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class AnyNull { private AnyNull: never private constructor() } } /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const DbNull: NullTypes.DbNull /** * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const JsonNull: NullTypes.JsonNull /** * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const AnyNull: NullTypes.AnyNull type SelectAndInclude = { select: any include: any } type SelectAndOmit = { select: any omit: any } /** * Get the type of the value, that the Promise holds. */ export type PromiseType> = T extends PromiseLike ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [key in keyof T]: key extends keyof U ? T[key] : never; }; /** * SelectSubset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. * Additionally, it validates, if both select and include are present. If the case, it errors. */ export type SelectSubset = { [key in keyof T]: key extends keyof U ? T[key] : never } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {}) /** * Subset + Intersection * @desc From `T` pick properties that exist in `U` and intersect `K` */ export type SubsetIntersection = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: never }; /** * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ type XOR = T extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False /** * If it's T[], return T */ export type UnEnumerate = T extends Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = NoExpand< O extends unknown ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O : never>; type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ export type False = 0 export type Not = { 0: 1 1: 0 }[B] export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 ? 1 : 0 export type Has = Not< Extends, U1> > export type Or = { 0: { 0: 0 1: 1 } 1: { 0: 1 1: 1 } }[B1][B2] export type Keys = U extends unknown ? keyof U : never type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never } : never type FieldPaths< T, U = Omit > = IsObject extends True ? U : T type GetHavingFields = { [K in keyof T]: Or< Or, Extends<'AND', K>>, Extends<'NOT', K> > extends True ? // infer is only needed to not hit TS limit // based on the brilliant idea of Pierre-Antoine Mills // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 T[K] extends infer TK ? GetHavingFields extends object ? Merge> : never> : never : {} extends FieldPaths ? never : K }[keyof T] /** * Convert tuple to union */ type _TupleToUnion = T extends (infer E)[] ? E : never type TupleToUnion = _TupleToUnion type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef export const ModelName: { User: 'User', License: 'License', UserLicense: 'UserLicense' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "user" | "license" | "userLicense" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UserUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } License: { payload: Prisma.$LicensePayload fields: Prisma.LicenseFieldRefs operations: { findUnique: { args: Prisma.LicenseFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.LicenseFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.LicenseFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.LicenseFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.LicenseFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.LicenseCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.LicenseCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.LicenseCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.LicenseDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.LicenseUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.LicenseDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.LicenseUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.LicenseUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.LicenseUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.LicenseAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.LicenseGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.LicenseCountArgs result: $Utils.Optional | number } } } UserLicense: { payload: Prisma.$UserLicensePayload fields: Prisma.UserLicenseFieldRefs operations: { findUnique: { args: Prisma.UserLicenseFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserLicenseFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserLicenseFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserLicenseFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserLicenseFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserLicenseCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserLicenseCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserLicenseCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserLicenseDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserLicenseUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserLicenseDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserLicenseUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UserLicenseUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UserLicenseUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserLicenseAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserLicenseGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserLicenseCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Shorthand for `emit: 'stdout'` * log: ['query', 'info', 'warn', 'error'] * * // Emit as events only * log: [ * { emit: 'event', level: 'query' }, * { emit: 'event', level: 'info' }, * { emit: 'event', level: 'warn' } * { emit: 'event', level: 'error' } * ] * * / Emit as events and log to stdout * og: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } * * ``` * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } /** * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` */ adapter?: runtime.SqlDriverAdapterFactory | null /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig } export type GlobalOmitConfig = { user?: UserOmit license?: LicenseOmit userLicense?: UserLicenseOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type CheckIsLogLevel = T extends LogLevel ? T : never; export type GetLogType = CheckIsLogLevel< T extends LogDefinition ? T['level'] : T >; export type GetEvents = T extends Array ? GetLogType : never; export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type UserCountOutputType */ export type UserCountOutputType = { userLicenses: number } export type UserCountOutputTypeSelect = { userLicenses?: boolean | UserCountOutputTypeCountUserLicensesArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountUserLicensesArgs = { where?: UserLicenseWhereInput } /** * Count Type LicenseCountOutputType */ export type LicenseCountOutputType = { userLicenses: number } export type LicenseCountOutputTypeSelect = { userLicenses?: boolean | LicenseCountOutputTypeCountUserLicensesArgs } // Custom InputTypes /** * LicenseCountOutputType without action */ export type LicenseCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the LicenseCountOutputType */ select?: LicenseCountOutputTypeSelect | null } /** * LicenseCountOutputType without action */ export type LicenseCountOutputTypeCountUserLicensesArgs = { where?: UserLicenseWhereInput } /** * Models */ /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserMinAggregateOutputType = { id: string | null email: string | null passwordHash: string | null name: string | null role: $Enums.UserRole | null isActive: boolean | null lastLoginAt: Date | null createdAt: Date | null updatedAt: Date | null } export type UserMaxAggregateOutputType = { id: string | null email: string | null passwordHash: string | null name: string | null role: $Enums.UserRole | null isActive: boolean | null lastLoginAt: Date | null createdAt: Date | null updatedAt: Date | null } export type UserCountAggregateOutputType = { id: number email: number passwordHash: number name: number role: number isActive: number lastLoginAt: number createdAt: number updatedAt: number _all: number } export type UserMinAggregateInputType = { id?: true email?: true passwordHash?: true name?: true role?: true isActive?: true lastLoginAt?: true createdAt?: true updatedAt?: true } export type UserMaxAggregateInputType = { id?: true email?: true passwordHash?: true name?: true role?: true isActive?: true lastLoginAt?: true createdAt?: true updatedAt?: true } export type UserCountAggregateInputType = { id?: true email?: true passwordHash?: true name?: true role?: true isActive?: true lastLoginAt?: true createdAt?: true updatedAt?: true _all?: true } export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Users **/ _count?: true | UserCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserMaxAggregateInputType } export type GetUserAggregateType = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: string email: string passwordHash: string name: string | null role: $Enums.UserRole isActive: boolean lastLoginAt: Date | null createdAt: Date updatedAt: Date _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean email?: boolean passwordHash?: boolean name?: boolean role?: boolean isActive?: boolean lastLoginAt?: boolean createdAt?: boolean updatedAt?: boolean userLicenses?: boolean | User$userLicensesArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean email?: boolean passwordHash?: boolean name?: boolean role?: boolean isActive?: boolean lastLoginAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["user"]> export type UserSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean email?: boolean passwordHash?: boolean name?: boolean role?: boolean isActive?: boolean lastLoginAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean email?: boolean passwordHash?: boolean name?: boolean role?: boolean isActive?: boolean lastLoginAt?: boolean createdAt?: boolean updatedAt?: boolean } export type UserOmit = $Extensions.GetOmit<"id" | "email" | "passwordHash" | "name" | "role" | "isActive" | "lastLoginAt" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]> export type UserInclude = { userLicenses?: boolean | User$userLicensesArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} export type UserIncludeUpdateManyAndReturn = {} export type $UserPayload = { name: "User" objects: { userLicenses: Prisma.$UserLicensePayload[] } scalars: $Extensions.GetPayloadResult<{ id: string email: string passwordHash: string name: string | null role: $Enums.UserRole isActive: boolean lastLoginAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one User that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first User that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first User that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Users that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Users * const users = await prisma.user.findMany() * * // Get first 10 Users * const users = await prisma.user.findMany({ take: 10 }) * * // Only select the `id` * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a User. * @param {UserCreateArgs} args - Arguments to create a User. * @example * // Create one User * const User = await prisma.user.create({ * data: { * // ... data to create a User * } * }) * */ create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Users and returns the data saved in the database. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const userWithIdOnly = await prisma.user.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prisma.user.delete({ * where: { * // ... filter to delete one User * } * }) * */ delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one User. * @param {UserUpdateArgs} args - Arguments to update one User. * @example * // Update one User * const user = await prisma.user.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.user.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users and returns the data updated in the database. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. * @example * // Update many Users * const user = await prisma.user.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Users and only return the `id` * const userWithIdOnly = await prisma.user.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User * const user = await prisma.user.upsert({ * create: { * // ... data to create a User * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the User we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserCountArgs} args - Arguments to filter Users to count. * @example * // Count the number of Users * const count = await prisma.user.count({ * where: { * // ... the filter for the Users we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends UserGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise /** * Fields of the User model */ readonly fields: UserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for User. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" userLicenses = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the User model */ interface UserFieldRefs { readonly id: FieldRef<"User", 'String'> readonly email: FieldRef<"User", 'String'> readonly passwordHash: FieldRef<"User", 'String'> readonly name: FieldRef<"User", 'String'> readonly role: FieldRef<"User", 'UserRole'> readonly isActive: FieldRef<"User", 'Boolean'> readonly lastLoginAt: FieldRef<"User", 'DateTime'> readonly createdAt: FieldRef<"User", 'DateTime'> readonly updatedAt: FieldRef<"User", 'DateTime'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectUpdateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput /** * Limit how many Users to delete. */ limit?: number } /** * User.userLicenses */ export type User$userLicensesArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null where?: UserLicenseWhereInput orderBy?: UserLicenseOrderByWithRelationInput | UserLicenseOrderByWithRelationInput[] cursor?: UserLicenseWhereUniqueInput take?: number skip?: number distinct?: UserLicenseScalarFieldEnum | UserLicenseScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model License */ export type AggregateLicense = { _count: LicenseCountAggregateOutputType | null _avg: LicenseAvgAggregateOutputType | null _sum: LicenseSumAggregateOutputType | null _min: LicenseMinAggregateOutputType | null _max: LicenseMaxAggregateOutputType | null } export type LicenseAvgAggregateOutputType = { defaultDurationDays: number | null } export type LicenseSumAggregateOutputType = { defaultDurationDays: number | null } export type LicenseMinAggregateOutputType = { id: string | null code: $Enums.LicenseCode | null name: string | null description: string | null defaultDurationDays: number | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type LicenseMaxAggregateOutputType = { id: string | null code: $Enums.LicenseCode | null name: string | null description: string | null defaultDurationDays: number | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type LicenseCountAggregateOutputType = { id: number code: number name: number description: number defaultDurationDays: number isActive: number createdAt: number updatedAt: number _all: number } export type LicenseAvgAggregateInputType = { defaultDurationDays?: true } export type LicenseSumAggregateInputType = { defaultDurationDays?: true } export type LicenseMinAggregateInputType = { id?: true code?: true name?: true description?: true defaultDurationDays?: true isActive?: true createdAt?: true updatedAt?: true } export type LicenseMaxAggregateInputType = { id?: true code?: true name?: true description?: true defaultDurationDays?: true isActive?: true createdAt?: true updatedAt?: true } export type LicenseCountAggregateInputType = { id?: true code?: true name?: true description?: true defaultDurationDays?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type LicenseAggregateArgs = { /** * Filter which License to aggregate. */ where?: LicenseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Licenses to fetch. */ orderBy?: LicenseOrderByWithRelationInput | LicenseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: LicenseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Licenses 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` Licenses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Licenses **/ _count?: true | LicenseCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: LicenseAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: LicenseSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LicenseMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LicenseMaxAggregateInputType } export type GetLicenseAggregateType = { [P in keyof T & keyof AggregateLicense]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type LicenseGroupByArgs = { where?: LicenseWhereInput orderBy?: LicenseOrderByWithAggregationInput | LicenseOrderByWithAggregationInput[] by: LicenseScalarFieldEnum[] | LicenseScalarFieldEnum having?: LicenseScalarWhereWithAggregatesInput take?: number skip?: number _count?: LicenseCountAggregateInputType | true _avg?: LicenseAvgAggregateInputType _sum?: LicenseSumAggregateInputType _min?: LicenseMinAggregateInputType _max?: LicenseMaxAggregateInputType } export type LicenseGroupByOutputType = { id: string code: $Enums.LicenseCode name: string description: string | null defaultDurationDays: number | null isActive: boolean createdAt: Date updatedAt: Date _count: LicenseCountAggregateOutputType | null _avg: LicenseAvgAggregateOutputType | null _sum: LicenseSumAggregateOutputType | null _min: LicenseMinAggregateOutputType | null _max: LicenseMaxAggregateOutputType | null } type GetLicenseGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof LicenseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type LicenseSelect = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean description?: boolean defaultDurationDays?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean userLicenses?: boolean | License$userLicensesArgs _count?: boolean | LicenseCountOutputTypeDefaultArgs }, ExtArgs["result"]["license"]> export type LicenseSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean description?: boolean defaultDurationDays?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["license"]> export type LicenseSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean description?: boolean defaultDurationDays?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["license"]> export type LicenseSelectScalar = { id?: boolean code?: boolean name?: boolean description?: boolean defaultDurationDays?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type LicenseOmit = $Extensions.GetOmit<"id" | "code" | "name" | "description" | "defaultDurationDays" | "isActive" | "createdAt" | "updatedAt", ExtArgs["result"]["license"]> export type LicenseInclude = { userLicenses?: boolean | License$userLicensesArgs _count?: boolean | LicenseCountOutputTypeDefaultArgs } export type LicenseIncludeCreateManyAndReturn = {} export type LicenseIncludeUpdateManyAndReturn = {} export type $LicensePayload = { name: "License" objects: { userLicenses: Prisma.$UserLicensePayload[] } scalars: $Extensions.GetPayloadResult<{ id: string code: $Enums.LicenseCode name: string description: string | null defaultDurationDays: number | null isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["license"]> composites: {} } type LicenseGetPayload = $Result.GetResult type LicenseCountArgs = Omit & { select?: LicenseCountAggregateInputType | true } export interface LicenseDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['License'], meta: { name: 'License' } } /** * Find zero or one License that matches the filter. * @param {LicenseFindUniqueArgs} args - Arguments to find a License * @example * // Get one License * const license = await prisma.license.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__LicenseClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one License that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LicenseFindUniqueOrThrowArgs} args - Arguments to find a License * @example * // Get one License * const license = await prisma.license.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__LicenseClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first License 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 {LicenseFindFirstArgs} args - Arguments to find a License * @example * // Get one License * const license = await prisma.license.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__LicenseClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first License 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 {LicenseFindFirstOrThrowArgs} args - Arguments to find a License * @example * // Get one License * const license = await prisma.license.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__LicenseClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Licenses 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 {LicenseFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Licenses * const licenses = await prisma.license.findMany() * * // Get first 10 Licenses * const licenses = await prisma.license.findMany({ take: 10 }) * * // Only select the `id` * const licenseWithIdOnly = await prisma.license.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a License. * @param {LicenseCreateArgs} args - Arguments to create a License. * @example * // Create one License * const License = await prisma.license.create({ * data: { * // ... data to create a License * } * }) * */ create(args: SelectSubset>): Prisma__LicenseClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Licenses. * @param {LicenseCreateManyArgs} args - Arguments to create many Licenses. * @example * // Create many Licenses * const license = await prisma.license.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Licenses and returns the data saved in the database. * @param {LicenseCreateManyAndReturnArgs} args - Arguments to create many Licenses. * @example * // Create many Licenses * const license = await prisma.license.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Licenses and only return the `id` * const licenseWithIdOnly = await prisma.license.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a License. * @param {LicenseDeleteArgs} args - Arguments to delete one License. * @example * // Delete one License * const License = await prisma.license.delete({ * where: { * // ... filter to delete one License * } * }) * */ delete(args: SelectSubset>): Prisma__LicenseClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one License. * @param {LicenseUpdateArgs} args - Arguments to update one License. * @example * // Update one License * const license = await prisma.license.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__LicenseClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Licenses. * @param {LicenseDeleteManyArgs} args - Arguments to filter Licenses to delete. * @example * // Delete a few Licenses * const { count } = await prisma.license.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Licenses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Licenses * const license = await prisma.license.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Licenses and returns the data updated in the database. * @param {LicenseUpdateManyAndReturnArgs} args - Arguments to update many Licenses. * @example * // Update many Licenses * const license = await prisma.license.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Licenses and only return the `id` * const licenseWithIdOnly = await prisma.license.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one License. * @param {LicenseUpsertArgs} args - Arguments to update or create a License. * @example * // Update or create a License * const license = await prisma.license.upsert({ * create: { * // ... data to create a License * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the License we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__LicenseClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Licenses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseCountArgs} args - Arguments to filter Licenses to count. * @example * // Count the number of Licenses * const count = await prisma.license.count({ * where: { * // ... the filter for the Licenses we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a License. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by License. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseGroupByArgs} 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 LicenseGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: LicenseGroupByArgs['orderBy'] } : { orderBy?: LicenseGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetLicenseGroupByPayload : Prisma.PrismaPromise /** * Fields of the License model */ readonly fields: LicenseFieldRefs; } /** * The delegate class that acts as a "Promise-like" for License. * 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__LicenseClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" userLicenses = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the License model */ interface LicenseFieldRefs { readonly id: FieldRef<"License", 'String'> readonly code: FieldRef<"License", 'LicenseCode'> readonly name: FieldRef<"License", 'String'> readonly description: FieldRef<"License", 'String'> readonly defaultDurationDays: FieldRef<"License", 'Int'> readonly isActive: FieldRef<"License", 'Boolean'> readonly createdAt: FieldRef<"License", 'DateTime'> readonly updatedAt: FieldRef<"License", 'DateTime'> } // Custom InputTypes /** * License findUnique */ export type LicenseFindUniqueArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null /** * Filter, which License to fetch. */ where: LicenseWhereUniqueInput } /** * License findUniqueOrThrow */ export type LicenseFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null /** * Filter, which License to fetch. */ where: LicenseWhereUniqueInput } /** * License findFirst */ export type LicenseFindFirstArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null /** * Filter, which License to fetch. */ where?: LicenseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Licenses to fetch. */ orderBy?: LicenseOrderByWithRelationInput | LicenseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Licenses. */ cursor?: LicenseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Licenses 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` Licenses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Licenses. */ distinct?: LicenseScalarFieldEnum | LicenseScalarFieldEnum[] } /** * License findFirstOrThrow */ export type LicenseFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null /** * Filter, which License to fetch. */ where?: LicenseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Licenses to fetch. */ orderBy?: LicenseOrderByWithRelationInput | LicenseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Licenses. */ cursor?: LicenseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Licenses 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` Licenses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Licenses. */ distinct?: LicenseScalarFieldEnum | LicenseScalarFieldEnum[] } /** * License findMany */ export type LicenseFindManyArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null /** * Filter, which Licenses to fetch. */ where?: LicenseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Licenses to fetch. */ orderBy?: LicenseOrderByWithRelationInput | LicenseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Licenses. */ cursor?: LicenseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Licenses 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` Licenses. */ skip?: number distinct?: LicenseScalarFieldEnum | LicenseScalarFieldEnum[] } /** * License create */ export type LicenseCreateArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null /** * The data needed to create a License. */ data: XOR } /** * License createMany */ export type LicenseCreateManyArgs = { /** * The data used to create many Licenses. */ data: LicenseCreateManyInput | LicenseCreateManyInput[] skipDuplicates?: boolean } /** * License createManyAndReturn */ export type LicenseCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelectCreateManyAndReturn | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * The data used to create many Licenses. */ data: LicenseCreateManyInput | LicenseCreateManyInput[] skipDuplicates?: boolean } /** * License update */ export type LicenseUpdateArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null /** * The data needed to update a License. */ data: XOR /** * Choose, which License to update. */ where: LicenseWhereUniqueInput } /** * License updateMany */ export type LicenseUpdateManyArgs = { /** * The data used to update Licenses. */ data: XOR /** * Filter which Licenses to update */ where?: LicenseWhereInput /** * Limit how many Licenses to update. */ limit?: number } /** * License updateManyAndReturn */ export type LicenseUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelectUpdateManyAndReturn | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * The data used to update Licenses. */ data: XOR /** * Filter which Licenses to update */ where?: LicenseWhereInput /** * Limit how many Licenses to update. */ limit?: number } /** * License upsert */ export type LicenseUpsertArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null /** * The filter to search for the License to update in case it exists. */ where: LicenseWhereUniqueInput /** * In case the License found by the `where` argument doesn't exist, create a new License with this data. */ create: XOR /** * In case the License was found with the provided `where` argument, update it with this data. */ update: XOR } /** * License delete */ export type LicenseDeleteArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null /** * Filter which License to delete. */ where: LicenseWhereUniqueInput } /** * License deleteMany */ export type LicenseDeleteManyArgs = { /** * Filter which Licenses to delete */ where?: LicenseWhereInput /** * Limit how many Licenses to delete. */ limit?: number } /** * License.userLicenses */ export type License$userLicensesArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null where?: UserLicenseWhereInput orderBy?: UserLicenseOrderByWithRelationInput | UserLicenseOrderByWithRelationInput[] cursor?: UserLicenseWhereUniqueInput take?: number skip?: number distinct?: UserLicenseScalarFieldEnum | UserLicenseScalarFieldEnum[] } /** * License without action */ export type LicenseDefaultArgs = { /** * Select specific fields to fetch from the License */ select?: LicenseSelect | null /** * Omit specific fields from the License */ omit?: LicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: LicenseInclude | null } /** * Model UserLicense */ export type AggregateUserLicense = { _count: UserLicenseCountAggregateOutputType | null _min: UserLicenseMinAggregateOutputType | null _max: UserLicenseMaxAggregateOutputType | null } export type UserLicenseMinAggregateOutputType = { id: string | null userId: string | null licenseId: string | null startsAt: Date | null expiresAt: Date | null assignedById: string | null createdAt: Date | null } export type UserLicenseMaxAggregateOutputType = { id: string | null userId: string | null licenseId: string | null startsAt: Date | null expiresAt: Date | null assignedById: string | null createdAt: Date | null } export type UserLicenseCountAggregateOutputType = { id: number userId: number licenseId: number startsAt: number expiresAt: number assignedById: number createdAt: number _all: number } export type UserLicenseMinAggregateInputType = { id?: true userId?: true licenseId?: true startsAt?: true expiresAt?: true assignedById?: true createdAt?: true } export type UserLicenseMaxAggregateInputType = { id?: true userId?: true licenseId?: true startsAt?: true expiresAt?: true assignedById?: true createdAt?: true } export type UserLicenseCountAggregateInputType = { id?: true userId?: true licenseId?: true startsAt?: true expiresAt?: true assignedById?: true createdAt?: true _all?: true } export type UserLicenseAggregateArgs = { /** * Filter which UserLicense to aggregate. */ where?: UserLicenseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserLicenses to fetch. */ orderBy?: UserLicenseOrderByWithRelationInput | UserLicenseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserLicenseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserLicenses 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` UserLicenses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UserLicenses **/ _count?: true | UserLicenseCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserLicenseMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserLicenseMaxAggregateInputType } export type GetUserLicenseAggregateType = { [P in keyof T & keyof AggregateUserLicense]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserLicenseGroupByArgs = { where?: UserLicenseWhereInput orderBy?: UserLicenseOrderByWithAggregationInput | UserLicenseOrderByWithAggregationInput[] by: UserLicenseScalarFieldEnum[] | UserLicenseScalarFieldEnum having?: UserLicenseScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserLicenseCountAggregateInputType | true _min?: UserLicenseMinAggregateInputType _max?: UserLicenseMaxAggregateInputType } export type UserLicenseGroupByOutputType = { id: string userId: string licenseId: string startsAt: Date expiresAt: Date | null assignedById: string | null createdAt: Date _count: UserLicenseCountAggregateOutputType | null _min: UserLicenseMinAggregateOutputType | null _max: UserLicenseMaxAggregateOutputType | null } type GetUserLicenseGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserLicenseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserLicenseSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean licenseId?: boolean startsAt?: boolean expiresAt?: boolean assignedById?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs license?: boolean | LicenseDefaultArgs }, ExtArgs["result"]["userLicense"]> export type UserLicenseSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean licenseId?: boolean startsAt?: boolean expiresAt?: boolean assignedById?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs license?: boolean | LicenseDefaultArgs }, ExtArgs["result"]["userLicense"]> export type UserLicenseSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean licenseId?: boolean startsAt?: boolean expiresAt?: boolean assignedById?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs license?: boolean | LicenseDefaultArgs }, ExtArgs["result"]["userLicense"]> export type UserLicenseSelectScalar = { id?: boolean userId?: boolean licenseId?: boolean startsAt?: boolean expiresAt?: boolean assignedById?: boolean createdAt?: boolean } export type UserLicenseOmit = $Extensions.GetOmit<"id" | "userId" | "licenseId" | "startsAt" | "expiresAt" | "assignedById" | "createdAt", ExtArgs["result"]["userLicense"]> export type UserLicenseInclude = { user?: boolean | UserDefaultArgs license?: boolean | LicenseDefaultArgs } export type UserLicenseIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs license?: boolean | LicenseDefaultArgs } export type UserLicenseIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs license?: boolean | LicenseDefaultArgs } export type $UserLicensePayload = { name: "UserLicense" objects: { user: Prisma.$UserPayload license: Prisma.$LicensePayload } scalars: $Extensions.GetPayloadResult<{ id: string userId: string licenseId: string startsAt: Date expiresAt: Date | null assignedById: string | null createdAt: Date }, ExtArgs["result"]["userLicense"]> composites: {} } type UserLicenseGetPayload = $Result.GetResult type UserLicenseCountArgs = Omit & { select?: UserLicenseCountAggregateInputType | true } export interface UserLicenseDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['UserLicense'], meta: { name: 'UserLicense' } } /** * Find zero or one UserLicense that matches the filter. * @param {UserLicenseFindUniqueArgs} args - Arguments to find a UserLicense * @example * // Get one UserLicense * const userLicense = await prisma.userLicense.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserLicenseClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one UserLicense that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserLicenseFindUniqueOrThrowArgs} args - Arguments to find a UserLicense * @example * // Get one UserLicense * const userLicense = await prisma.userLicense.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserLicenseClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first UserLicense 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 {UserLicenseFindFirstArgs} args - Arguments to find a UserLicense * @example * // Get one UserLicense * const userLicense = await prisma.userLicense.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserLicenseClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first UserLicense 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 {UserLicenseFindFirstOrThrowArgs} args - Arguments to find a UserLicense * @example * // Get one UserLicense * const userLicense = await prisma.userLicense.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserLicenseClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more UserLicenses 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 {UserLicenseFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UserLicenses * const userLicenses = await prisma.userLicense.findMany() * * // Get first 10 UserLicenses * const userLicenses = await prisma.userLicense.findMany({ take: 10 }) * * // Only select the `id` * const userLicenseWithIdOnly = await prisma.userLicense.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a UserLicense. * @param {UserLicenseCreateArgs} args - Arguments to create a UserLicense. * @example * // Create one UserLicense * const UserLicense = await prisma.userLicense.create({ * data: { * // ... data to create a UserLicense * } * }) * */ create(args: SelectSubset>): Prisma__UserLicenseClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many UserLicenses. * @param {UserLicenseCreateManyArgs} args - Arguments to create many UserLicenses. * @example * // Create many UserLicenses * const userLicense = await prisma.userLicense.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many UserLicenses and returns the data saved in the database. * @param {UserLicenseCreateManyAndReturnArgs} args - Arguments to create many UserLicenses. * @example * // Create many UserLicenses * const userLicense = await prisma.userLicense.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many UserLicenses and only return the `id` * const userLicenseWithIdOnly = await prisma.userLicense.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a UserLicense. * @param {UserLicenseDeleteArgs} args - Arguments to delete one UserLicense. * @example * // Delete one UserLicense * const UserLicense = await prisma.userLicense.delete({ * where: { * // ... filter to delete one UserLicense * } * }) * */ delete(args: SelectSubset>): Prisma__UserLicenseClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one UserLicense. * @param {UserLicenseUpdateArgs} args - Arguments to update one UserLicense. * @example * // Update one UserLicense * const userLicense = await prisma.userLicense.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserLicenseClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more UserLicenses. * @param {UserLicenseDeleteManyArgs} args - Arguments to filter UserLicenses to delete. * @example * // Delete a few UserLicenses * const { count } = await prisma.userLicense.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserLicenses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserLicenseUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UserLicenses * const userLicense = await prisma.userLicense.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserLicenses and returns the data updated in the database. * @param {UserLicenseUpdateManyAndReturnArgs} args - Arguments to update many UserLicenses. * @example * // Update many UserLicenses * const userLicense = await prisma.userLicense.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more UserLicenses and only return the `id` * const userLicenseWithIdOnly = await prisma.userLicense.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one UserLicense. * @param {UserLicenseUpsertArgs} args - Arguments to update or create a UserLicense. * @example * // Update or create a UserLicense * const userLicense = await prisma.userLicense.upsert({ * create: { * // ... data to create a UserLicense * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UserLicense we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserLicenseClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of UserLicenses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserLicenseCountArgs} args - Arguments to filter UserLicenses to count. * @example * // Count the number of UserLicenses * const count = await prisma.userLicense.count({ * where: { * // ... the filter for the UserLicenses we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a UserLicense. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserLicenseAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by UserLicense. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserLicenseGroupByArgs} 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 UserLicenseGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserLicenseGroupByArgs['orderBy'] } : { orderBy?: UserLicenseGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserLicenseGroupByPayload : Prisma.PrismaPromise /** * Fields of the UserLicense model */ readonly fields: UserLicenseFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UserLicense. * 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__UserLicenseClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> license = {}>(args?: Subset>): Prisma__LicenseClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the UserLicense model */ interface UserLicenseFieldRefs { readonly id: FieldRef<"UserLicense", 'String'> readonly userId: FieldRef<"UserLicense", 'String'> readonly licenseId: FieldRef<"UserLicense", 'String'> readonly startsAt: FieldRef<"UserLicense", 'DateTime'> readonly expiresAt: FieldRef<"UserLicense", 'DateTime'> readonly assignedById: FieldRef<"UserLicense", 'String'> readonly createdAt: FieldRef<"UserLicense", 'DateTime'> } // Custom InputTypes /** * UserLicense findUnique */ export type UserLicenseFindUniqueArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null /** * Filter, which UserLicense to fetch. */ where: UserLicenseWhereUniqueInput } /** * UserLicense findUniqueOrThrow */ export type UserLicenseFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null /** * Filter, which UserLicense to fetch. */ where: UserLicenseWhereUniqueInput } /** * UserLicense findFirst */ export type UserLicenseFindFirstArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null /** * Filter, which UserLicense to fetch. */ where?: UserLicenseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserLicenses to fetch. */ orderBy?: UserLicenseOrderByWithRelationInput | UserLicenseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserLicenses. */ cursor?: UserLicenseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserLicenses 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` UserLicenses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserLicenses. */ distinct?: UserLicenseScalarFieldEnum | UserLicenseScalarFieldEnum[] } /** * UserLicense findFirstOrThrow */ export type UserLicenseFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null /** * Filter, which UserLicense to fetch. */ where?: UserLicenseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserLicenses to fetch. */ orderBy?: UserLicenseOrderByWithRelationInput | UserLicenseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserLicenses. */ cursor?: UserLicenseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserLicenses 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` UserLicenses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserLicenses. */ distinct?: UserLicenseScalarFieldEnum | UserLicenseScalarFieldEnum[] } /** * UserLicense findMany */ export type UserLicenseFindManyArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null /** * Filter, which UserLicenses to fetch. */ where?: UserLicenseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserLicenses to fetch. */ orderBy?: UserLicenseOrderByWithRelationInput | UserLicenseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UserLicenses. */ cursor?: UserLicenseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserLicenses 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` UserLicenses. */ skip?: number distinct?: UserLicenseScalarFieldEnum | UserLicenseScalarFieldEnum[] } /** * UserLicense create */ export type UserLicenseCreateArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null /** * The data needed to create a UserLicense. */ data: XOR } /** * UserLicense createMany */ export type UserLicenseCreateManyArgs = { /** * The data used to create many UserLicenses. */ data: UserLicenseCreateManyInput | UserLicenseCreateManyInput[] skipDuplicates?: boolean } /** * UserLicense createManyAndReturn */ export type UserLicenseCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelectCreateManyAndReturn | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * The data used to create many UserLicenses. */ data: UserLicenseCreateManyInput | UserLicenseCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: UserLicenseIncludeCreateManyAndReturn | null } /** * UserLicense update */ export type UserLicenseUpdateArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null /** * The data needed to update a UserLicense. */ data: XOR /** * Choose, which UserLicense to update. */ where: UserLicenseWhereUniqueInput } /** * UserLicense updateMany */ export type UserLicenseUpdateManyArgs = { /** * The data used to update UserLicenses. */ data: XOR /** * Filter which UserLicenses to update */ where?: UserLicenseWhereInput /** * Limit how many UserLicenses to update. */ limit?: number } /** * UserLicense updateManyAndReturn */ export type UserLicenseUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelectUpdateManyAndReturn | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * The data used to update UserLicenses. */ data: XOR /** * Filter which UserLicenses to update */ where?: UserLicenseWhereInput /** * Limit how many UserLicenses to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: UserLicenseIncludeUpdateManyAndReturn | null } /** * UserLicense upsert */ export type UserLicenseUpsertArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null /** * The filter to search for the UserLicense to update in case it exists. */ where: UserLicenseWhereUniqueInput /** * In case the UserLicense found by the `where` argument doesn't exist, create a new UserLicense with this data. */ create: XOR /** * In case the UserLicense was found with the provided `where` argument, update it with this data. */ update: XOR } /** * UserLicense delete */ export type UserLicenseDeleteArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null /** * Filter which UserLicense to delete. */ where: UserLicenseWhereUniqueInput } /** * UserLicense deleteMany */ export type UserLicenseDeleteManyArgs = { /** * Filter which UserLicenses to delete */ where?: UserLicenseWhereInput /** * Limit how many UserLicenses to delete. */ limit?: number } /** * UserLicense without action */ export type UserLicenseDefaultArgs = { /** * Select specific fields to fetch from the UserLicense */ select?: UserLicenseSelect | null /** * Omit specific fields from the UserLicense */ omit?: UserLicenseOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserLicenseInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const UserScalarFieldEnum: { id: 'id', email: 'email', passwordHash: 'passwordHash', name: 'name', role: 'role', isActive: 'isActive', lastLoginAt: 'lastLoginAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const LicenseScalarFieldEnum: { id: 'id', code: 'code', name: 'name', description: 'description', defaultDurationDays: 'defaultDurationDays', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type LicenseScalarFieldEnum = (typeof LicenseScalarFieldEnum)[keyof typeof LicenseScalarFieldEnum] export const UserLicenseScalarFieldEnum: { id: 'id', userId: 'userId', licenseId: 'licenseId', startsAt: 'startsAt', expiresAt: 'expiresAt', assignedById: 'assignedById', createdAt: 'createdAt' }; export type UserLicenseScalarFieldEnum = (typeof UserLicenseScalarFieldEnum)[keyof typeof UserLicenseScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> /** * Reference to a field of type 'UserRole' */ export type EnumUserRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UserRole'> /** * Reference to a field of type 'UserRole[]' */ export type ListEnumUserRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UserRole[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type 'LicenseCode' */ export type EnumLicenseCodeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'LicenseCode'> /** * Reference to a field of type 'LicenseCode[]' */ export type ListEnumLicenseCodeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'LicenseCode[]'> /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'Int[]' */ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> /** * Deep Input Types */ export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: UuidFilter<"User"> | string email?: StringFilter<"User"> | string passwordHash?: StringFilter<"User"> | string name?: StringNullableFilter<"User"> | string | null role?: EnumUserRoleFilter<"User"> | $Enums.UserRole isActive?: BoolFilter<"User"> | boolean lastLoginAt?: DateTimeNullableFilter<"User"> | Date | string | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string userLicenses?: UserLicenseListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: SortOrderInput | SortOrder role?: SortOrder isActive?: SortOrder lastLoginAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder userLicenses?: UserLicenseOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: string email?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] passwordHash?: StringFilter<"User"> | string name?: StringNullableFilter<"User"> | string | null role?: EnumUserRoleFilter<"User"> | $Enums.UserRole isActive?: BoolFilter<"User"> | boolean lastLoginAt?: DateTimeNullableFilter<"User"> | Date | string | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string userLicenses?: UserLicenseListRelationFilter }, "id" | "email"> export type UserOrderByWithAggregationInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: SortOrderInput | SortOrder role?: SortOrder isActive?: SortOrder lastLoginAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: UserCountOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: UuidWithAggregatesFilter<"User"> | string email?: StringWithAggregatesFilter<"User"> | string passwordHash?: StringWithAggregatesFilter<"User"> | string name?: StringNullableWithAggregatesFilter<"User"> | string | null role?: EnumUserRoleWithAggregatesFilter<"User"> | $Enums.UserRole isActive?: BoolWithAggregatesFilter<"User"> | boolean lastLoginAt?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string } export type LicenseWhereInput = { AND?: LicenseWhereInput | LicenseWhereInput[] OR?: LicenseWhereInput[] NOT?: LicenseWhereInput | LicenseWhereInput[] id?: UuidFilter<"License"> | string code?: EnumLicenseCodeFilter<"License"> | $Enums.LicenseCode name?: StringFilter<"License"> | string description?: StringNullableFilter<"License"> | string | null defaultDurationDays?: IntNullableFilter<"License"> | number | null isActive?: BoolFilter<"License"> | boolean createdAt?: DateTimeFilter<"License"> | Date | string updatedAt?: DateTimeFilter<"License"> | Date | string userLicenses?: UserLicenseListRelationFilter } export type LicenseOrderByWithRelationInput = { id?: SortOrder code?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder defaultDurationDays?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder userLicenses?: UserLicenseOrderByRelationAggregateInput } export type LicenseWhereUniqueInput = Prisma.AtLeast<{ id?: string code?: $Enums.LicenseCode AND?: LicenseWhereInput | LicenseWhereInput[] OR?: LicenseWhereInput[] NOT?: LicenseWhereInput | LicenseWhereInput[] name?: StringFilter<"License"> | string description?: StringNullableFilter<"License"> | string | null defaultDurationDays?: IntNullableFilter<"License"> | number | null isActive?: BoolFilter<"License"> | boolean createdAt?: DateTimeFilter<"License"> | Date | string updatedAt?: DateTimeFilter<"License"> | Date | string userLicenses?: UserLicenseListRelationFilter }, "id" | "code"> export type LicenseOrderByWithAggregationInput = { id?: SortOrder code?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder defaultDurationDays?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: LicenseCountOrderByAggregateInput _avg?: LicenseAvgOrderByAggregateInput _max?: LicenseMaxOrderByAggregateInput _min?: LicenseMinOrderByAggregateInput _sum?: LicenseSumOrderByAggregateInput } export type LicenseScalarWhereWithAggregatesInput = { AND?: LicenseScalarWhereWithAggregatesInput | LicenseScalarWhereWithAggregatesInput[] OR?: LicenseScalarWhereWithAggregatesInput[] NOT?: LicenseScalarWhereWithAggregatesInput | LicenseScalarWhereWithAggregatesInput[] id?: UuidWithAggregatesFilter<"License"> | string code?: EnumLicenseCodeWithAggregatesFilter<"License"> | $Enums.LicenseCode name?: StringWithAggregatesFilter<"License"> | string description?: StringNullableWithAggregatesFilter<"License"> | string | null defaultDurationDays?: IntNullableWithAggregatesFilter<"License"> | number | null isActive?: BoolWithAggregatesFilter<"License"> | boolean createdAt?: DateTimeWithAggregatesFilter<"License"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"License"> | Date | string } export type UserLicenseWhereInput = { AND?: UserLicenseWhereInput | UserLicenseWhereInput[] OR?: UserLicenseWhereInput[] NOT?: UserLicenseWhereInput | UserLicenseWhereInput[] id?: UuidFilter<"UserLicense"> | string userId?: UuidFilter<"UserLicense"> | string licenseId?: UuidFilter<"UserLicense"> | string startsAt?: DateTimeFilter<"UserLicense"> | Date | string expiresAt?: DateTimeNullableFilter<"UserLicense"> | Date | string | null assignedById?: UuidNullableFilter<"UserLicense"> | string | null createdAt?: DateTimeFilter<"UserLicense"> | Date | string user?: XOR license?: XOR } export type UserLicenseOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder licenseId?: SortOrder startsAt?: SortOrder expiresAt?: SortOrderInput | SortOrder assignedById?: SortOrderInput | SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput license?: LicenseOrderByWithRelationInput } export type UserLicenseWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: UserLicenseWhereInput | UserLicenseWhereInput[] OR?: UserLicenseWhereInput[] NOT?: UserLicenseWhereInput | UserLicenseWhereInput[] userId?: UuidFilter<"UserLicense"> | string licenseId?: UuidFilter<"UserLicense"> | string startsAt?: DateTimeFilter<"UserLicense"> | Date | string expiresAt?: DateTimeNullableFilter<"UserLicense"> | Date | string | null assignedById?: UuidNullableFilter<"UserLicense"> | string | null createdAt?: DateTimeFilter<"UserLicense"> | Date | string user?: XOR license?: XOR }, "id"> export type UserLicenseOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder licenseId?: SortOrder startsAt?: SortOrder expiresAt?: SortOrderInput | SortOrder assignedById?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: UserLicenseCountOrderByAggregateInput _max?: UserLicenseMaxOrderByAggregateInput _min?: UserLicenseMinOrderByAggregateInput } export type UserLicenseScalarWhereWithAggregatesInput = { AND?: UserLicenseScalarWhereWithAggregatesInput | UserLicenseScalarWhereWithAggregatesInput[] OR?: UserLicenseScalarWhereWithAggregatesInput[] NOT?: UserLicenseScalarWhereWithAggregatesInput | UserLicenseScalarWhereWithAggregatesInput[] id?: UuidWithAggregatesFilter<"UserLicense"> | string userId?: UuidWithAggregatesFilter<"UserLicense"> | string licenseId?: UuidWithAggregatesFilter<"UserLicense"> | string startsAt?: DateTimeWithAggregatesFilter<"UserLicense"> | Date | string expiresAt?: DateTimeNullableWithAggregatesFilter<"UserLicense"> | Date | string | null assignedById?: UuidNullableWithAggregatesFilter<"UserLicense"> | string | null createdAt?: DateTimeWithAggregatesFilter<"UserLicense"> | Date | string } export type UserCreateInput = { id?: string email: string passwordHash: string name?: string | null role?: $Enums.UserRole isActive?: boolean lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string userLicenses?: UserLicenseCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: string email: string passwordHash: string name?: string | null role?: $Enums.UserRole isActive?: boolean lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string userLicenses?: UserLicenseUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null role?: EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole isActive?: BoolFieldUpdateOperationsInput | boolean lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string userLicenses?: UserLicenseUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null role?: EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole isActive?: BoolFieldUpdateOperationsInput | boolean lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string userLicenses?: UserLicenseUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: string email: string passwordHash: string name?: string | null role?: $Enums.UserRole isActive?: boolean lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type UserUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null role?: EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole isActive?: BoolFieldUpdateOperationsInput | boolean lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null role?: EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole isActive?: BoolFieldUpdateOperationsInput | boolean lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LicenseCreateInput = { id?: string code: $Enums.LicenseCode name: string description?: string | null defaultDurationDays?: number | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string userLicenses?: UserLicenseCreateNestedManyWithoutLicenseInput } export type LicenseUncheckedCreateInput = { id?: string code: $Enums.LicenseCode name: string description?: string | null defaultDurationDays?: number | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string userLicenses?: UserLicenseUncheckedCreateNestedManyWithoutLicenseInput } export type LicenseUpdateInput = { id?: StringFieldUpdateOperationsInput | string code?: EnumLicenseCodeFieldUpdateOperationsInput | $Enums.LicenseCode name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null defaultDurationDays?: NullableIntFieldUpdateOperationsInput | number | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string userLicenses?: UserLicenseUpdateManyWithoutLicenseNestedInput } export type LicenseUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string code?: EnumLicenseCodeFieldUpdateOperationsInput | $Enums.LicenseCode name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null defaultDurationDays?: NullableIntFieldUpdateOperationsInput | number | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string userLicenses?: UserLicenseUncheckedUpdateManyWithoutLicenseNestedInput } export type LicenseCreateManyInput = { id?: string code: $Enums.LicenseCode name: string description?: string | null defaultDurationDays?: number | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type LicenseUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string code?: EnumLicenseCodeFieldUpdateOperationsInput | $Enums.LicenseCode name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null defaultDurationDays?: NullableIntFieldUpdateOperationsInput | number | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LicenseUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string code?: EnumLicenseCodeFieldUpdateOperationsInput | $Enums.LicenseCode name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null defaultDurationDays?: NullableIntFieldUpdateOperationsInput | number | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserLicenseCreateInput = { id?: string startsAt?: Date | string expiresAt?: Date | string | null assignedById?: string | null createdAt?: Date | string user: UserCreateNestedOneWithoutUserLicensesInput license: LicenseCreateNestedOneWithoutUserLicensesInput } export type UserLicenseUncheckedCreateInput = { id?: string userId: string licenseId: string startsAt?: Date | string expiresAt?: Date | string | null assignedById?: string | null createdAt?: Date | string } export type UserLicenseUpdateInput = { id?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutUserLicensesNestedInput license?: LicenseUpdateOneRequiredWithoutUserLicensesNestedInput } export type UserLicenseUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string licenseId?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserLicenseCreateManyInput = { id?: string userId: string licenseId: string startsAt?: Date | string expiresAt?: Date | string | null assignedById?: string | null createdAt?: Date | string } export type UserLicenseUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserLicenseUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string licenseId?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UuidFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedUuidFilter<$PrismaModel> | string } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringFilter<$PrismaModel> | string } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type EnumUserRoleFilter<$PrismaModel = never> = { equals?: $Enums.UserRole | EnumUserRoleFieldRefInput<$PrismaModel> in?: $Enums.UserRole[] | ListEnumUserRoleFieldRefInput<$PrismaModel> notIn?: $Enums.UserRole[] | ListEnumUserRoleFieldRefInput<$PrismaModel> not?: NestedEnumUserRoleFilter<$PrismaModel> | $Enums.UserRole } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type DateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type UserLicenseListRelationFilter = { every?: UserLicenseWhereInput some?: UserLicenseWhereInput none?: UserLicenseWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type UserLicenseOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: SortOrder role?: SortOrder isActive?: SortOrder lastLoginAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: SortOrder role?: SortOrder isActive?: SortOrder lastLoginAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: SortOrder role?: SortOrder isActive?: SortOrder lastLoginAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UuidWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedUuidWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type EnumUserRoleWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.UserRole | EnumUserRoleFieldRefInput<$PrismaModel> in?: $Enums.UserRole[] | ListEnumUserRoleFieldRefInput<$PrismaModel> notIn?: $Enums.UserRole[] | ListEnumUserRoleFieldRefInput<$PrismaModel> not?: NestedEnumUserRoleWithAggregatesFilter<$PrismaModel> | $Enums.UserRole _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumUserRoleFilter<$PrismaModel> _max?: NestedEnumUserRoleFilter<$PrismaModel> } export type BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type EnumLicenseCodeFilter<$PrismaModel = never> = { equals?: $Enums.LicenseCode | EnumLicenseCodeFieldRefInput<$PrismaModel> in?: $Enums.LicenseCode[] | ListEnumLicenseCodeFieldRefInput<$PrismaModel> notIn?: $Enums.LicenseCode[] | ListEnumLicenseCodeFieldRefInput<$PrismaModel> not?: NestedEnumLicenseCodeFilter<$PrismaModel> | $Enums.LicenseCode } export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type LicenseCountOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder description?: SortOrder defaultDurationDays?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LicenseAvgOrderByAggregateInput = { defaultDurationDays?: SortOrder } export type LicenseMaxOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder description?: SortOrder defaultDurationDays?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LicenseMinOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder description?: SortOrder defaultDurationDays?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LicenseSumOrderByAggregateInput = { defaultDurationDays?: SortOrder } export type EnumLicenseCodeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.LicenseCode | EnumLicenseCodeFieldRefInput<$PrismaModel> in?: $Enums.LicenseCode[] | ListEnumLicenseCodeFieldRefInput<$PrismaModel> notIn?: $Enums.LicenseCode[] | ListEnumLicenseCodeFieldRefInput<$PrismaModel> not?: NestedEnumLicenseCodeWithAggregatesFilter<$PrismaModel> | $Enums.LicenseCode _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumLicenseCodeFilter<$PrismaModel> _max?: NestedEnumLicenseCodeFilter<$PrismaModel> } export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type UuidNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedUuidNullableFilter<$PrismaModel> | string | null } export type UserScalarRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type LicenseScalarRelationFilter = { is?: LicenseWhereInput isNot?: LicenseWhereInput } export type UserLicenseCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder licenseId?: SortOrder startsAt?: SortOrder expiresAt?: SortOrder assignedById?: SortOrder createdAt?: SortOrder } export type UserLicenseMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder licenseId?: SortOrder startsAt?: SortOrder expiresAt?: SortOrder assignedById?: SortOrder createdAt?: SortOrder } export type UserLicenseMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder licenseId?: SortOrder startsAt?: SortOrder expiresAt?: SortOrder assignedById?: SortOrder createdAt?: SortOrder } export type UuidNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedUuidNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type UserLicenseCreateNestedManyWithoutUserInput = { create?: XOR | UserLicenseCreateWithoutUserInput[] | UserLicenseUncheckedCreateWithoutUserInput[] connectOrCreate?: UserLicenseCreateOrConnectWithoutUserInput | UserLicenseCreateOrConnectWithoutUserInput[] createMany?: UserLicenseCreateManyUserInputEnvelope connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] } export type UserLicenseUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | UserLicenseCreateWithoutUserInput[] | UserLicenseUncheckedCreateWithoutUserInput[] connectOrCreate?: UserLicenseCreateOrConnectWithoutUserInput | UserLicenseCreateOrConnectWithoutUserInput[] createMany?: UserLicenseCreateManyUserInputEnvelope connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type EnumUserRoleFieldUpdateOperationsInput = { set?: $Enums.UserRole } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type UserLicenseUpdateManyWithoutUserNestedInput = { create?: XOR | UserLicenseCreateWithoutUserInput[] | UserLicenseUncheckedCreateWithoutUserInput[] connectOrCreate?: UserLicenseCreateOrConnectWithoutUserInput | UserLicenseCreateOrConnectWithoutUserInput[] upsert?: UserLicenseUpsertWithWhereUniqueWithoutUserInput | UserLicenseUpsertWithWhereUniqueWithoutUserInput[] createMany?: UserLicenseCreateManyUserInputEnvelope set?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] disconnect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] delete?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] update?: UserLicenseUpdateWithWhereUniqueWithoutUserInput | UserLicenseUpdateWithWhereUniqueWithoutUserInput[] updateMany?: UserLicenseUpdateManyWithWhereWithoutUserInput | UserLicenseUpdateManyWithWhereWithoutUserInput[] deleteMany?: UserLicenseScalarWhereInput | UserLicenseScalarWhereInput[] } export type UserLicenseUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | UserLicenseCreateWithoutUserInput[] | UserLicenseUncheckedCreateWithoutUserInput[] connectOrCreate?: UserLicenseCreateOrConnectWithoutUserInput | UserLicenseCreateOrConnectWithoutUserInput[] upsert?: UserLicenseUpsertWithWhereUniqueWithoutUserInput | UserLicenseUpsertWithWhereUniqueWithoutUserInput[] createMany?: UserLicenseCreateManyUserInputEnvelope set?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] disconnect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] delete?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] update?: UserLicenseUpdateWithWhereUniqueWithoutUserInput | UserLicenseUpdateWithWhereUniqueWithoutUserInput[] updateMany?: UserLicenseUpdateManyWithWhereWithoutUserInput | UserLicenseUpdateManyWithWhereWithoutUserInput[] deleteMany?: UserLicenseScalarWhereInput | UserLicenseScalarWhereInput[] } export type UserLicenseCreateNestedManyWithoutLicenseInput = { create?: XOR | UserLicenseCreateWithoutLicenseInput[] | UserLicenseUncheckedCreateWithoutLicenseInput[] connectOrCreate?: UserLicenseCreateOrConnectWithoutLicenseInput | UserLicenseCreateOrConnectWithoutLicenseInput[] createMany?: UserLicenseCreateManyLicenseInputEnvelope connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] } export type UserLicenseUncheckedCreateNestedManyWithoutLicenseInput = { create?: XOR | UserLicenseCreateWithoutLicenseInput[] | UserLicenseUncheckedCreateWithoutLicenseInput[] connectOrCreate?: UserLicenseCreateOrConnectWithoutLicenseInput | UserLicenseCreateOrConnectWithoutLicenseInput[] createMany?: UserLicenseCreateManyLicenseInputEnvelope connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] } export type EnumLicenseCodeFieldUpdateOperationsInput = { set?: $Enums.LicenseCode } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type UserLicenseUpdateManyWithoutLicenseNestedInput = { create?: XOR | UserLicenseCreateWithoutLicenseInput[] | UserLicenseUncheckedCreateWithoutLicenseInput[] connectOrCreate?: UserLicenseCreateOrConnectWithoutLicenseInput | UserLicenseCreateOrConnectWithoutLicenseInput[] upsert?: UserLicenseUpsertWithWhereUniqueWithoutLicenseInput | UserLicenseUpsertWithWhereUniqueWithoutLicenseInput[] createMany?: UserLicenseCreateManyLicenseInputEnvelope set?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] disconnect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] delete?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] update?: UserLicenseUpdateWithWhereUniqueWithoutLicenseInput | UserLicenseUpdateWithWhereUniqueWithoutLicenseInput[] updateMany?: UserLicenseUpdateManyWithWhereWithoutLicenseInput | UserLicenseUpdateManyWithWhereWithoutLicenseInput[] deleteMany?: UserLicenseScalarWhereInput | UserLicenseScalarWhereInput[] } export type UserLicenseUncheckedUpdateManyWithoutLicenseNestedInput = { create?: XOR | UserLicenseCreateWithoutLicenseInput[] | UserLicenseUncheckedCreateWithoutLicenseInput[] connectOrCreate?: UserLicenseCreateOrConnectWithoutLicenseInput | UserLicenseCreateOrConnectWithoutLicenseInput[] upsert?: UserLicenseUpsertWithWhereUniqueWithoutLicenseInput | UserLicenseUpsertWithWhereUniqueWithoutLicenseInput[] createMany?: UserLicenseCreateManyLicenseInputEnvelope set?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] disconnect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] delete?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[] update?: UserLicenseUpdateWithWhereUniqueWithoutLicenseInput | UserLicenseUpdateWithWhereUniqueWithoutLicenseInput[] updateMany?: UserLicenseUpdateManyWithWhereWithoutLicenseInput | UserLicenseUpdateManyWithWhereWithoutLicenseInput[] deleteMany?: UserLicenseScalarWhereInput | UserLicenseScalarWhereInput[] } export type UserCreateNestedOneWithoutUserLicensesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutUserLicensesInput connect?: UserWhereUniqueInput } export type LicenseCreateNestedOneWithoutUserLicensesInput = { create?: XOR connectOrCreate?: LicenseCreateOrConnectWithoutUserLicensesInput connect?: LicenseWhereUniqueInput } export type UserUpdateOneRequiredWithoutUserLicensesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutUserLicensesInput upsert?: UserUpsertWithoutUserLicensesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutUserLicensesInput> } export type LicenseUpdateOneRequiredWithoutUserLicensesNestedInput = { create?: XOR connectOrCreate?: LicenseCreateOrConnectWithoutUserLicensesInput upsert?: LicenseUpsertWithoutUserLicensesInput connect?: LicenseWhereUniqueInput update?: XOR, LicenseUncheckedUpdateWithoutUserLicensesInput> } export type NestedUuidFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> not?: NestedUuidFilter<$PrismaModel> | string } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringFilter<$PrismaModel> | string } export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedEnumUserRoleFilter<$PrismaModel = never> = { equals?: $Enums.UserRole | EnumUserRoleFieldRefInput<$PrismaModel> in?: $Enums.UserRole[] | ListEnumUserRoleFieldRefInput<$PrismaModel> notIn?: $Enums.UserRole[] | ListEnumUserRoleFieldRefInput<$PrismaModel> not?: NestedEnumUserRoleFilter<$PrismaModel> | $Enums.UserRole } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedDateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type NestedUuidWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> not?: NestedUuidWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedEnumUserRoleWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.UserRole | EnumUserRoleFieldRefInput<$PrismaModel> in?: $Enums.UserRole[] | ListEnumUserRoleFieldRefInput<$PrismaModel> notIn?: $Enums.UserRole[] | ListEnumUserRoleFieldRefInput<$PrismaModel> not?: NestedEnumUserRoleWithAggregatesFilter<$PrismaModel> | $Enums.UserRole _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumUserRoleFilter<$PrismaModel> _max?: NestedEnumUserRoleFilter<$PrismaModel> } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type NestedEnumLicenseCodeFilter<$PrismaModel = never> = { equals?: $Enums.LicenseCode | EnumLicenseCodeFieldRefInput<$PrismaModel> in?: $Enums.LicenseCode[] | ListEnumLicenseCodeFieldRefInput<$PrismaModel> notIn?: $Enums.LicenseCode[] | ListEnumLicenseCodeFieldRefInput<$PrismaModel> not?: NestedEnumLicenseCodeFilter<$PrismaModel> | $Enums.LicenseCode } export type NestedEnumLicenseCodeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.LicenseCode | EnumLicenseCodeFieldRefInput<$PrismaModel> in?: $Enums.LicenseCode[] | ListEnumLicenseCodeFieldRefInput<$PrismaModel> notIn?: $Enums.LicenseCode[] | ListEnumLicenseCodeFieldRefInput<$PrismaModel> not?: NestedEnumLicenseCodeWithAggregatesFilter<$PrismaModel> | $Enums.LicenseCode _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumLicenseCodeFilter<$PrismaModel> _max?: NestedEnumLicenseCodeFilter<$PrismaModel> } export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: 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[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type NestedUuidNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> not?: NestedUuidNullableFilter<$PrismaModel> | string | null } export type NestedUuidNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> not?: NestedUuidNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type UserLicenseCreateWithoutUserInput = { id?: string startsAt?: Date | string expiresAt?: Date | string | null assignedById?: string | null createdAt?: Date | string license: LicenseCreateNestedOneWithoutUserLicensesInput } export type UserLicenseUncheckedCreateWithoutUserInput = { id?: string licenseId: string startsAt?: Date | string expiresAt?: Date | string | null assignedById?: string | null createdAt?: Date | string } export type UserLicenseCreateOrConnectWithoutUserInput = { where: UserLicenseWhereUniqueInput create: XOR } export type UserLicenseCreateManyUserInputEnvelope = { data: UserLicenseCreateManyUserInput | UserLicenseCreateManyUserInput[] skipDuplicates?: boolean } export type UserLicenseUpsertWithWhereUniqueWithoutUserInput = { where: UserLicenseWhereUniqueInput update: XOR create: XOR } export type UserLicenseUpdateWithWhereUniqueWithoutUserInput = { where: UserLicenseWhereUniqueInput data: XOR } export type UserLicenseUpdateManyWithWhereWithoutUserInput = { where: UserLicenseScalarWhereInput data: XOR } export type UserLicenseScalarWhereInput = { AND?: UserLicenseScalarWhereInput | UserLicenseScalarWhereInput[] OR?: UserLicenseScalarWhereInput[] NOT?: UserLicenseScalarWhereInput | UserLicenseScalarWhereInput[] id?: UuidFilter<"UserLicense"> | string userId?: UuidFilter<"UserLicense"> | string licenseId?: UuidFilter<"UserLicense"> | string startsAt?: DateTimeFilter<"UserLicense"> | Date | string expiresAt?: DateTimeNullableFilter<"UserLicense"> | Date | string | null assignedById?: UuidNullableFilter<"UserLicense"> | string | null createdAt?: DateTimeFilter<"UserLicense"> | Date | string } export type UserLicenseCreateWithoutLicenseInput = { id?: string startsAt?: Date | string expiresAt?: Date | string | null assignedById?: string | null createdAt?: Date | string user: UserCreateNestedOneWithoutUserLicensesInput } export type UserLicenseUncheckedCreateWithoutLicenseInput = { id?: string userId: string startsAt?: Date | string expiresAt?: Date | string | null assignedById?: string | null createdAt?: Date | string } export type UserLicenseCreateOrConnectWithoutLicenseInput = { where: UserLicenseWhereUniqueInput create: XOR } export type UserLicenseCreateManyLicenseInputEnvelope = { data: UserLicenseCreateManyLicenseInput | UserLicenseCreateManyLicenseInput[] skipDuplicates?: boolean } export type UserLicenseUpsertWithWhereUniqueWithoutLicenseInput = { where: UserLicenseWhereUniqueInput update: XOR create: XOR } export type UserLicenseUpdateWithWhereUniqueWithoutLicenseInput = { where: UserLicenseWhereUniqueInput data: XOR } export type UserLicenseUpdateManyWithWhereWithoutLicenseInput = { where: UserLicenseScalarWhereInput data: XOR } export type UserCreateWithoutUserLicensesInput = { id?: string email: string passwordHash: string name?: string | null role?: $Enums.UserRole isActive?: boolean lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type UserUncheckedCreateWithoutUserLicensesInput = { id?: string email: string passwordHash: string name?: string | null role?: $Enums.UserRole isActive?: boolean lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type UserCreateOrConnectWithoutUserLicensesInput = { where: UserWhereUniqueInput create: XOR } export type LicenseCreateWithoutUserLicensesInput = { id?: string code: $Enums.LicenseCode name: string description?: string | null defaultDurationDays?: number | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type LicenseUncheckedCreateWithoutUserLicensesInput = { id?: string code: $Enums.LicenseCode name: string description?: string | null defaultDurationDays?: number | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type LicenseCreateOrConnectWithoutUserLicensesInput = { where: LicenseWhereUniqueInput create: XOR } export type UserUpsertWithoutUserLicensesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutUserLicensesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutUserLicensesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null role?: EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole isActive?: BoolFieldUpdateOperationsInput | boolean lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUncheckedUpdateWithoutUserLicensesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null role?: EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole isActive?: BoolFieldUpdateOperationsInput | boolean lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LicenseUpsertWithoutUserLicensesInput = { update: XOR create: XOR where?: LicenseWhereInput } export type LicenseUpdateToOneWithWhereWithoutUserLicensesInput = { where?: LicenseWhereInput data: XOR } export type LicenseUpdateWithoutUserLicensesInput = { id?: StringFieldUpdateOperationsInput | string code?: EnumLicenseCodeFieldUpdateOperationsInput | $Enums.LicenseCode name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null defaultDurationDays?: NullableIntFieldUpdateOperationsInput | number | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LicenseUncheckedUpdateWithoutUserLicensesInput = { id?: StringFieldUpdateOperationsInput | string code?: EnumLicenseCodeFieldUpdateOperationsInput | $Enums.LicenseCode name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null defaultDurationDays?: NullableIntFieldUpdateOperationsInput | number | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserLicenseCreateManyUserInput = { id?: string licenseId: string startsAt?: Date | string expiresAt?: Date | string | null assignedById?: string | null createdAt?: Date | string } export type UserLicenseUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string license?: LicenseUpdateOneRequiredWithoutUserLicensesNestedInput } export type UserLicenseUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string licenseId?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserLicenseUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string licenseId?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserLicenseCreateManyLicenseInput = { id?: string userId: string startsAt?: Date | string expiresAt?: Date | string | null assignedById?: string | null createdAt?: Date | string } export type UserLicenseUpdateWithoutLicenseInput = { id?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutUserLicensesNestedInput } export type UserLicenseUncheckedUpdateWithoutLicenseInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserLicenseUncheckedUpdateManyWithoutLicenseInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string startsAt?: DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }