Files
studio-admin-be/src/generated/auth-client/index.d.ts
T
2026-07-01 17:30:04 +09:00

6218 lines
215 KiB
TypeScript

/**
* Client
**/
import * as runtime from './runtime/library.js';
import $Types = runtime.Types // general types
import $Public = runtime.Types.Public
import $Utils = runtime.Types.Utils
import $Extensions = runtime.Types.Extensions
import $Result = runtime.Types.Result
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Model User
*
*/
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
/**
* Model License
*
*/
export type License = $Result.DefaultSelection<Prisma.$LicensePayload>
/**
* Model UserLicense
*
*/
export type UserLicense = $Result.DefaultSelection<Prisma.$UserLicensePayload>
/**
* 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.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more 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<ClientOptions, Prisma.PrismaClientOptions>);
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
/**
* Connect with the database
*/
$connect(): $Utils.JsPromise<void>;
/**
* Disconnect from the database
*/
$disconnect(): $Utils.JsPromise<void>;
/**
* Executes a prepared raw query and returns the number of affected rows.
* @example
* ```
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Executes a raw query and returns the number of affected rows.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Performs a prepared raw query and returns the `SELECT` data.
* @example
* ```
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Performs a raw query and returns the `SELECT` data.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
* @example
* ```
* const [george, bob, alice] = await prisma.$transaction([
* prisma.user.create({ data: { name: 'George' } }),
* prisma.user.create({ data: { name: 'Bob' } }),
* prisma.user.create({ data: { name: 'Alice' } }),
* ])
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
*/
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
extArgs: ExtArgs
}>>
/**
* `prisma.user`: Exposes CRUD operations for the **User** model.
* Example usage:
* ```ts
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*/
get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.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<ExtArgs, ClientOptions>;
/**
* `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<ExtArgs, ClientOptions>;
}
export namespace Prisma {
export import DMMF = runtime.DMMF
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Validator
*/
export import validator = runtime.Public.validator
/**
* Prisma Errors
*/
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
export import PrismaClientValidationError = runtime.PrismaClientValidationError
/**
* Re-export of sql-template-tag
*/
export import sql = runtime.sqltag
export import empty = runtime.empty
export import join = runtime.join
export import raw = runtime.raw
export import Sql = runtime.Sql
/**
* Decimal.js
*/
export import Decimal = runtime.Decimal
export type DecimalJsLike = runtime.DecimalJsLike
/**
* Metrics
*/
export type Metrics = runtime.Metrics
export type Metric<T> = runtime.Metric<T>
export type MetricHistogram = runtime.MetricHistogram
export type MetricHistogramBucket = runtime.MetricHistogramBucket
/**
* Extensions
*/
export import Extension = $Extensions.UserArgs
export import getExtensionContext = runtime.Extensions.getExtensionContext
export import Args = $Public.Args
export import Payload = $Public.Payload
export import Result = $Public.Result
export import Exact = $Public.Exact
/**
* Prisma Client JS version: 6.19.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<any>> = T extends PromiseLike<infer U> ? U : T;
/**
* Get the return type of a function which returns a Promise.
*/
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
export type RequiredKeys<T> = {
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
}[keyof T]
export type TruthyKeys<T> = keyof {
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
}
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
type IsObject<T extends any> = T extends Array<any>
? False
: T extends Date
? False
: T extends Uint8Array
? False
: T extends BigInt
? False
: T extends object
? True
: False
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
type Either<
O extends object,
K extends Key,
strict extends Boolean = 1
> = O extends unknown ? _Either<O, K, strict> : never
export type Union = any
type PatchUndefined<O extends object, O1 extends object> = {
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
1: AtStrict<O, K>;
0: AtLoose<O, K>;
}[strict];
export type ComputeRaw<A extends any> = A extends Function ? A : {
[K in keyof A]: A[K];
} & {};
export type OptionalFlat<O> = {
[K in keyof O]?: O[K];
} & {};
type _Record<K extends keyof any, T> = {
[P in K]: T;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
/**
A [[Boolean]]
*/
export type Boolean = True | False
// /**
// 1
// */
export type True = 1
/**
0
*/
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
type Cast<A, B> = A extends B ? A : B;
export const type: unique symbol;
/**
* Used by group by
*/
export type GetScalarType<T, O> = O extends object ? {
[P in keyof T]: P extends keyof O
? O[P]
: never
} : never
type FieldPaths<
T,
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
> = IsObject<T> extends True ? U : T
type GetHavingFields<T> = {
[K in keyof T]: Or<
Or<Extends<'OR', K>, Extends<'AND', K>>,
Extends<'NOT', K>
> extends True
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
export const ModelName: {
User: 'User',
License: 'License',
UserLicense: 'UserLicense'
};
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
export type Datasources = {
db?: Datasource
}
interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
}
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
globalOmitOptions: {
omit: GlobalOmitOptions
}
meta: {
modelProps: "user" | "license" | "userLicense"
txIsolationLevel: Prisma.TransactionIsolationLevel
}
model: {
User: {
payload: Prisma.$UserPayload<ExtArgs>
fields: Prisma.UserFieldRefs
operations: {
findUnique: {
args: Prisma.UserFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
}
findUniqueOrThrow: {
args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
findFirst: {
args: Prisma.UserFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
}
findFirstOrThrow: {
args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
findMany: {
args: Prisma.UserFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
}
create: {
args: Prisma.UserCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
createMany: {
args: Prisma.UserCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
}
delete: {
args: Prisma.UserDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
update: {
args: Prisma.UserUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
deleteMany: {
args: Prisma.UserDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.UserUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
}
upsert: {
args: Prisma.UserUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
aggregate: {
args: Prisma.UserAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateUser>
}
groupBy: {
args: Prisma.UserGroupByArgs<ExtArgs>
result: $Utils.Optional<UserGroupByOutputType>[]
}
count: {
args: Prisma.UserCountArgs<ExtArgs>
result: $Utils.Optional<UserCountAggregateOutputType> | number
}
}
}
License: {
payload: Prisma.$LicensePayload<ExtArgs>
fields: Prisma.LicenseFieldRefs
operations: {
findUnique: {
args: Prisma.LicenseFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload> | null
}
findUniqueOrThrow: {
args: Prisma.LicenseFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload>
}
findFirst: {
args: Prisma.LicenseFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload> | null
}
findFirstOrThrow: {
args: Prisma.LicenseFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload>
}
findMany: {
args: Prisma.LicenseFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload>[]
}
create: {
args: Prisma.LicenseCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload>
}
createMany: {
args: Prisma.LicenseCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.LicenseCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload>[]
}
delete: {
args: Prisma.LicenseDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload>
}
update: {
args: Prisma.LicenseUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload>
}
deleteMany: {
args: Prisma.LicenseDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.LicenseUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.LicenseUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload>[]
}
upsert: {
args: Prisma.LicenseUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LicensePayload>
}
aggregate: {
args: Prisma.LicenseAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateLicense>
}
groupBy: {
args: Prisma.LicenseGroupByArgs<ExtArgs>
result: $Utils.Optional<LicenseGroupByOutputType>[]
}
count: {
args: Prisma.LicenseCountArgs<ExtArgs>
result: $Utils.Optional<LicenseCountAggregateOutputType> | number
}
}
}
UserLicense: {
payload: Prisma.$UserLicensePayload<ExtArgs>
fields: Prisma.UserLicenseFieldRefs
operations: {
findUnique: {
args: Prisma.UserLicenseFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload> | null
}
findUniqueOrThrow: {
args: Prisma.UserLicenseFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload>
}
findFirst: {
args: Prisma.UserLicenseFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload> | null
}
findFirstOrThrow: {
args: Prisma.UserLicenseFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload>
}
findMany: {
args: Prisma.UserLicenseFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload>[]
}
create: {
args: Prisma.UserLicenseCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload>
}
createMany: {
args: Prisma.UserLicenseCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.UserLicenseCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload>[]
}
delete: {
args: Prisma.UserLicenseDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload>
}
update: {
args: Prisma.UserLicenseUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload>
}
deleteMany: {
args: Prisma.UserLicenseDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.UserLicenseUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.UserLicenseUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload>[]
}
upsert: {
args: Prisma.UserLicenseUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserLicensePayload>
}
aggregate: {
args: Prisma.UserLicenseAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateUserLicense>
}
groupBy: {
args: Prisma.UserLicenseGroupByArgs<ExtArgs>
result: $Utils.Optional<UserLicenseGroupByOutputType>[]
}
count: {
args: Prisma.UserLicenseCountArgs<ExtArgs>
result: $Utils.Optional<UserLicenseCountAggregateOutputType> | 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> = T extends LogLevel ? T : never;
export type GetLogType<T> = CheckIsLogLevel<
T extends LogDefinition ? T['level'] : T
>;
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
? GetLogType<T[number]>
: never;
export type QueryEvent = {
timestamp: Date
query: string
params: string
duration: number
target: string
}
export type LogEvent = {
timestamp: Date
message: string
target: string
}
/* End Types for Logging */
export type PrismaAction =
| 'findUnique'
| 'findUniqueOrThrow'
| 'findMany'
| 'findFirst'
| 'findFirstOrThrow'
| 'create'
| 'createMany'
| 'createManyAndReturn'
| 'update'
| 'updateMany'
| 'updateManyAndReturn'
| 'upsert'
| 'delete'
| 'deleteMany'
| 'executeRaw'
| 'queryRaw'
| 'aggregate'
| 'count'
| 'runCommandRaw'
| 'findRaw'
| 'groupBy'
// tested in getLogLevel.test.ts
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
export type Datasource = {
url?: string
}
/**
* Count Types
*/
/**
* Count Type UserCountOutputType
*/
export type UserCountOutputType = {
userLicenses: number
}
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
userLicenses?: boolean | UserCountOutputTypeCountUserLicensesArgs
}
// Custom InputTypes
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserCountOutputType
*/
select?: UserCountOutputTypeSelect<ExtArgs> | null
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountUserLicensesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: UserLicenseWhereInput
}
/**
* Count Type LicenseCountOutputType
*/
export type LicenseCountOutputType = {
userLicenses: number
}
export type LicenseCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
userLicenses?: boolean | LicenseCountOutputTypeCountUserLicensesArgs
}
// Custom InputTypes
/**
* LicenseCountOutputType without action
*/
export type LicenseCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseCountOutputType
*/
select?: LicenseCountOutputTypeSelect<ExtArgs> | null
}
/**
* LicenseCountOutputType without action
*/
export type LicenseCountOutputTypeCountUserLicensesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which User to aggregate.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Users
**/
_count?: true | UserCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: UserMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: UserMaxAggregateInputType
}
export type GetUserAggregateType<T extends UserAggregateArgs> = {
[P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateUser[P]>
: GetScalarType<T[P], AggregateUser[P]>
}
export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: UserWhereInput
orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
by: UserScalarFieldEnum[] | UserScalarFieldEnum
having?: UserScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: UserCountAggregateInputType | true
_min?: UserMinAggregateInputType
_max?: UserMaxAggregateInputType
}
export type UserGroupByOutputType = {
id: string
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<T extends UserGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<UserGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], UserGroupByOutputType[P]>
: GetScalarType<T[P], UserGroupByOutputType[P]>
}
>
>
export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
email?: boolean
passwordHash?: boolean
name?: boolean
role?: boolean
isActive?: boolean
lastLoginAt?: boolean
createdAt?: boolean
updatedAt?: boolean
userLicenses?: boolean | User$userLicensesArgs<ExtArgs>
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["user"]>
export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "email" | "passwordHash" | "name" | "role" | "isActive" | "lastLoginAt" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]>
export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
userLicenses?: boolean | User$userLicensesArgs<ExtArgs>
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
}
export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type UserIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "User"
objects: {
userLicenses: Prisma.$UserLicensePayload<ExtArgs>[]
}
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<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: UserCountAggregateInputType | true
}
export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
/**
* Find zero or one User that matches the filter.
* @param {UserFindUniqueArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one User that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first User that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindFirstArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first User that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Users that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Users
* const users = await prisma.user.findMany()
*
* // Get first 10 Users
* const users = await prisma.user.findMany({ take: 10 })
*
* // Only select the `id`
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
*
*/
findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a User.
* @param {UserCreateArgs} args - Arguments to create a User.
* @example
* // Create one User
* const User = await prisma.user.create({
* data: {
* // ... data to create a User
* }
* })
*
*/
create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Users.
* @param {UserCreateManyArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Users and returns the data saved in the database.
* @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Users and only return the `id`
* const userWithIdOnly = await prisma.user.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a User.
* @param {UserDeleteArgs} args - Arguments to delete one User.
* @example
* // Delete one User
* const User = await prisma.user.delete({
* where: {
* // ... filter to delete one User
* }
* })
*
*/
delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one User.
* @param {UserUpdateArgs} args - Arguments to update one User.
* @example
* // Update one User
* const user = await prisma.user.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Users.
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
* @example
* // Delete a few Users
* const { count } = await prisma.user.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Users
* const user = await prisma.user.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Users and returns the data updated in the database.
* @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
* @example
* // Update many Users
* const user = await prisma.user.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Users and only return the `id`
* const userWithIdOnly = await prisma.user.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one User.
* @param {UserUpsertArgs} args - Arguments to update or create a User.
* @example
* // Update or create a User
* const user = await prisma.user.upsert({
* create: {
* // ... data to create a User
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the User we want to update
* }
* })
*/
upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserCountArgs} args - Arguments to filter Users to count.
* @example
* // Count the number of Users
* const count = await prisma.user.count({
* where: {
* // ... the filter for the Users we want to count
* }
* })
**/
count<T extends UserCountArgs>(
args?: Subset<T, UserCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], UserCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
/**
* Group by User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends UserGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: UserGroupByArgs['orderBy'] }
: { orderBy?: UserGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the User model
*/
readonly fields: UserFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for User.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
userLicenses<T extends User$userLicensesArgs<ExtArgs> = {}>(args?: Subset<T, User$userLicensesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the User model
*/
interface UserFieldRefs {
readonly id: FieldRef<"User", 'String'>
readonly 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where: UserWhereUniqueInput
}
/**
* User findUniqueOrThrow
*/
export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where: UserWhereUniqueInput
}
/**
* User findFirst
*/
export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User findFirstOrThrow
*/
export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User findMany
*/
export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which Users to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User create
*/
export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The data needed to create a User.
*/
data: XOR<UserCreateInput, UserUncheckedCreateInput>
}
/**
* User createMany
*/
export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Users.
*/
data: UserCreateManyInput | UserCreateManyInput[]
skipDuplicates?: boolean
}
/**
* User createManyAndReturn
*/
export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* The data used to create many Users.
*/
data: UserCreateManyInput | UserCreateManyInput[]
skipDuplicates?: boolean
}
/**
* User update
*/
export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The data needed to update a User.
*/
data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
/**
* Choose, which User to update.
*/
where: UserWhereUniqueInput
}
/**
* User updateMany
*/
export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Users.
*/
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
/**
* Filter which Users to update
*/
where?: UserWhereInput
/**
* Limit how many Users to update.
*/
limit?: number
}
/**
* User updateManyAndReturn
*/
export type UserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* The data used to update Users.
*/
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
/**
* Filter which Users to update
*/
where?: UserWhereInput
/**
* Limit how many Users to update.
*/
limit?: number
}
/**
* User upsert
*/
export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The filter to search for the User to update in case it exists.
*/
where: UserWhereUniqueInput
/**
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
*/
create: XOR<UserCreateInput, UserUncheckedCreateInput>
/**
* In case the User was found with the provided `where` argument, update it with this data.
*/
update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
}
/**
* User delete
*/
export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter which User to delete.
*/
where: UserWhereUniqueInput
}
/**
* User deleteMany
*/
export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Users to delete
*/
where?: UserWhereInput
/**
* Limit how many Users to delete.
*/
limit?: number
}
/**
* User.userLicenses
*/
export type User$userLicensesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | null
where?: UserLicenseWhereInput
orderBy?: UserLicenseOrderByWithRelationInput | UserLicenseOrderByWithRelationInput[]
cursor?: UserLicenseWhereUniqueInput
take?: number
skip?: number
distinct?: UserLicenseScalarFieldEnum | UserLicenseScalarFieldEnum[]
}
/**
* User without action
*/
export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
}
/**
* Model 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* 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<T extends LicenseAggregateArgs> = {
[P in keyof T & keyof AggregateLicense]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateLicense[P]>
: GetScalarType<T[P], AggregateLicense[P]>
}
export type LicenseGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
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<T extends LicenseGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<LicenseGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof LicenseGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], LicenseGroupByOutputType[P]>
: GetScalarType<T[P], LicenseGroupByOutputType[P]>
}
>
>
export type LicenseSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
code?: boolean
name?: boolean
description?: boolean
defaultDurationDays?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
userLicenses?: boolean | License$userLicensesArgs<ExtArgs>
_count?: boolean | LicenseCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["license"]>
export type LicenseSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
code?: boolean
name?: boolean
description?: boolean
defaultDurationDays?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["license"]>
export type LicenseSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "code" | "name" | "description" | "defaultDurationDays" | "isActive" | "createdAt" | "updatedAt", ExtArgs["result"]["license"]>
export type LicenseInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
userLicenses?: boolean | License$userLicensesArgs<ExtArgs>
_count?: boolean | LicenseCountOutputTypeDefaultArgs<ExtArgs>
}
export type LicenseIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type LicenseIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $LicensePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "License"
objects: {
userLicenses: Prisma.$UserLicensePayload<ExtArgs>[]
}
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<S extends boolean | null | undefined | LicenseDefaultArgs> = $Result.GetResult<Prisma.$LicensePayload, S>
type LicenseCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<LicenseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: LicenseCountAggregateInputType | true
}
export interface LicenseDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends LicenseFindUniqueArgs>(args: SelectSubset<T, LicenseFindUniqueArgs<ExtArgs>>): Prisma__LicenseClient<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseFindUniqueOrThrowArgs>(args: SelectSubset<T, LicenseFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LicenseClient<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseFindFirstArgs>(args?: SelectSubset<T, LicenseFindFirstArgs<ExtArgs>>): Prisma__LicenseClient<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseFindFirstOrThrowArgs>(args?: SelectSubset<T, LicenseFindFirstOrThrowArgs<ExtArgs>>): Prisma__LicenseClient<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseFindManyArgs>(args?: SelectSubset<T, LicenseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseCreateArgs>(args: SelectSubset<T, LicenseCreateArgs<ExtArgs>>): Prisma__LicenseClient<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseCreateManyArgs>(args?: SelectSubset<T, LicenseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends LicenseCreateManyAndReturnArgs>(args?: SelectSubset<T, LicenseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseDeleteArgs>(args: SelectSubset<T, LicenseDeleteArgs<ExtArgs>>): Prisma__LicenseClient<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseUpdateArgs>(args: SelectSubset<T, LicenseUpdateArgs<ExtArgs>>): Prisma__LicenseClient<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseDeleteManyArgs>(args?: SelectSubset<T, LicenseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends LicenseUpdateManyArgs>(args: SelectSubset<T, LicenseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends LicenseUpdateManyAndReturnArgs>(args: SelectSubset<T, LicenseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseUpsertArgs>(args: SelectSubset<T, LicenseUpsertArgs<ExtArgs>>): Prisma__LicenseClient<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, 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<T extends LicenseCountArgs>(
args?: Subset<T, LicenseCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], LicenseCountAggregateOutputType>
: 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<T extends LicenseAggregateArgs>(args: Subset<T, LicenseAggregateArgs>): Prisma.PrismaPromise<GetLicenseAggregateType<T>>
/**
* 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<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: LicenseGroupByArgs['orderBy'] }
: { orderBy?: LicenseGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, LicenseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLicenseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
userLicenses<T extends License$userLicensesArgs<ExtArgs> = {}>(args?: Subset<T, License$userLicensesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | null
/**
* Filter, which License to fetch.
*/
where: LicenseWhereUniqueInput
}
/**
* License findUniqueOrThrow
*/
export type LicenseFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | null
/**
* Filter, which License to fetch.
*/
where: LicenseWhereUniqueInput
}
/**
* License findFirst
*/
export type LicenseFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | null
/**
* The data needed to create a License.
*/
data: XOR<LicenseCreateInput, LicenseUncheckedCreateInput>
}
/**
* License createMany
*/
export type LicenseCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Licenses.
*/
data: LicenseCreateManyInput | LicenseCreateManyInput[]
skipDuplicates?: boolean
}
/**
* License createManyAndReturn
*/
export type LicenseCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* The data used to create many Licenses.
*/
data: LicenseCreateManyInput | LicenseCreateManyInput[]
skipDuplicates?: boolean
}
/**
* License update
*/
export type LicenseUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | null
/**
* The data needed to update a License.
*/
data: XOR<LicenseUpdateInput, LicenseUncheckedUpdateInput>
/**
* Choose, which License to update.
*/
where: LicenseWhereUniqueInput
}
/**
* License updateMany
*/
export type LicenseUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Licenses.
*/
data: XOR<LicenseUpdateManyMutationInput, LicenseUncheckedUpdateManyInput>
/**
* Filter which Licenses to update
*/
where?: LicenseWhereInput
/**
* Limit how many Licenses to update.
*/
limit?: number
}
/**
* License updateManyAndReturn
*/
export type LicenseUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* The data used to update Licenses.
*/
data: XOR<LicenseUpdateManyMutationInput, LicenseUncheckedUpdateManyInput>
/**
* Filter which Licenses to update
*/
where?: LicenseWhereInput
/**
* Limit how many Licenses to update.
*/
limit?: number
}
/**
* License upsert
*/
export type LicenseUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | 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<LicenseCreateInput, LicenseUncheckedCreateInput>
/**
* In case the License was found with the provided `where` argument, update it with this data.
*/
update: XOR<LicenseUpdateInput, LicenseUncheckedUpdateInput>
}
/**
* License delete
*/
export type LicenseDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | null
/**
* Filter which License to delete.
*/
where: LicenseWhereUniqueInput
}
/**
* License deleteMany
*/
export type LicenseDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Licenses to delete
*/
where?: LicenseWhereInput
/**
* Limit how many Licenses to delete.
*/
limit?: number
}
/**
* License.userLicenses
*/
export type License$userLicensesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | null
where?: UserLicenseWhereInput
orderBy?: UserLicenseOrderByWithRelationInput | UserLicenseOrderByWithRelationInput[]
cursor?: UserLicenseWhereUniqueInput
take?: number
skip?: number
distinct?: UserLicenseScalarFieldEnum | UserLicenseScalarFieldEnum[]
}
/**
* License without action
*/
export type LicenseDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the License
*/
select?: LicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the License
*/
omit?: LicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LicenseInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* 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<T extends UserLicenseAggregateArgs> = {
[P in keyof T & keyof AggregateUserLicense]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateUserLicense[P]>
: GetScalarType<T[P], AggregateUserLicense[P]>
}
export type UserLicenseGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
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<T extends UserLicenseGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<UserLicenseGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof UserLicenseGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], UserLicenseGroupByOutputType[P]>
: GetScalarType<T[P], UserLicenseGroupByOutputType[P]>
}
>
>
export type UserLicenseSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
licenseId?: boolean
startsAt?: boolean
expiresAt?: boolean
assignedById?: boolean
createdAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
license?: boolean | LicenseDefaultArgs<ExtArgs>
}, ExtArgs["result"]["userLicense"]>
export type UserLicenseSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
licenseId?: boolean
startsAt?: boolean
expiresAt?: boolean
assignedById?: boolean
createdAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
license?: boolean | LicenseDefaultArgs<ExtArgs>
}, ExtArgs["result"]["userLicense"]>
export type UserLicenseSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
licenseId?: boolean
startsAt?: boolean
expiresAt?: boolean
assignedById?: boolean
createdAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
license?: boolean | LicenseDefaultArgs<ExtArgs>
}, ExtArgs["result"]["userLicense"]>
export type UserLicenseSelectScalar = {
id?: boolean
userId?: boolean
licenseId?: boolean
startsAt?: boolean
expiresAt?: boolean
assignedById?: boolean
createdAt?: boolean
}
export type UserLicenseOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "licenseId" | "startsAt" | "expiresAt" | "assignedById" | "createdAt", ExtArgs["result"]["userLicense"]>
export type UserLicenseInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
license?: boolean | LicenseDefaultArgs<ExtArgs>
}
export type UserLicenseIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
license?: boolean | LicenseDefaultArgs<ExtArgs>
}
export type UserLicenseIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
license?: boolean | LicenseDefaultArgs<ExtArgs>
}
export type $UserLicensePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "UserLicense"
objects: {
user: Prisma.$UserPayload<ExtArgs>
license: Prisma.$LicensePayload<ExtArgs>
}
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<S extends boolean | null | undefined | UserLicenseDefaultArgs> = $Result.GetResult<Prisma.$UserLicensePayload, S>
type UserLicenseCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<UserLicenseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: UserLicenseCountAggregateInputType | true
}
export interface UserLicenseDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends UserLicenseFindUniqueArgs>(args: SelectSubset<T, UserLicenseFindUniqueArgs<ExtArgs>>): Prisma__UserLicenseClient<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseFindUniqueOrThrowArgs>(args: SelectSubset<T, UserLicenseFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserLicenseClient<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseFindFirstArgs>(args?: SelectSubset<T, UserLicenseFindFirstArgs<ExtArgs>>): Prisma__UserLicenseClient<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseFindFirstOrThrowArgs>(args?: SelectSubset<T, UserLicenseFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserLicenseClient<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseFindManyArgs>(args?: SelectSubset<T, UserLicenseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseCreateArgs>(args: SelectSubset<T, UserLicenseCreateArgs<ExtArgs>>): Prisma__UserLicenseClient<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseCreateManyArgs>(args?: SelectSubset<T, UserLicenseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends UserLicenseCreateManyAndReturnArgs>(args?: SelectSubset<T, UserLicenseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseDeleteArgs>(args: SelectSubset<T, UserLicenseDeleteArgs<ExtArgs>>): Prisma__UserLicenseClient<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseUpdateArgs>(args: SelectSubset<T, UserLicenseUpdateArgs<ExtArgs>>): Prisma__UserLicenseClient<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseDeleteManyArgs>(args?: SelectSubset<T, UserLicenseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends UserLicenseUpdateManyArgs>(args: SelectSubset<T, UserLicenseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends UserLicenseUpdateManyAndReturnArgs>(args: SelectSubset<T, UserLicenseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseUpsertArgs>(args: SelectSubset<T, UserLicenseUpsertArgs<ExtArgs>>): Prisma__UserLicenseClient<$Result.GetResult<Prisma.$UserLicensePayload<ExtArgs>, 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<T extends UserLicenseCountArgs>(
args?: Subset<T, UserLicenseCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], UserLicenseCountAggregateOutputType>
: 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<T extends UserLicenseAggregateArgs>(args: Subset<T, UserLicenseAggregateArgs>): Prisma.PrismaPromise<GetUserLicenseAggregateType<T>>
/**
* 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<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: UserLicenseGroupByArgs['orderBy'] }
: { orderBy?: UserLicenseGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, UserLicenseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserLicenseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
license<T extends LicenseDefaultArgs<ExtArgs> = {}>(args?: Subset<T, LicenseDefaultArgs<ExtArgs>>): Prisma__LicenseClient<$Result.GetResult<Prisma.$LicensePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | null
/**
* Filter, which UserLicense to fetch.
*/
where: UserLicenseWhereUniqueInput
}
/**
* UserLicense findUniqueOrThrow
*/
export type UserLicenseFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | null
/**
* Filter, which UserLicense to fetch.
*/
where: UserLicenseWhereUniqueInput
}
/**
* UserLicense findFirst
*/
export type UserLicenseFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | null
/**
* The data needed to create a UserLicense.
*/
data: XOR<UserLicenseCreateInput, UserLicenseUncheckedCreateInput>
}
/**
* UserLicense createMany
*/
export type UserLicenseCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many UserLicenses.
*/
data: UserLicenseCreateManyInput | UserLicenseCreateManyInput[]
skipDuplicates?: boolean
}
/**
* UserLicense createManyAndReturn
*/
export type UserLicenseCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* The data used to create many UserLicenses.
*/
data: UserLicenseCreateManyInput | UserLicenseCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* UserLicense update
*/
export type UserLicenseUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | null
/**
* The data needed to update a UserLicense.
*/
data: XOR<UserLicenseUpdateInput, UserLicenseUncheckedUpdateInput>
/**
* Choose, which UserLicense to update.
*/
where: UserLicenseWhereUniqueInput
}
/**
* UserLicense updateMany
*/
export type UserLicenseUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update UserLicenses.
*/
data: XOR<UserLicenseUpdateManyMutationInput, UserLicenseUncheckedUpdateManyInput>
/**
* Filter which UserLicenses to update
*/
where?: UserLicenseWhereInput
/**
* Limit how many UserLicenses to update.
*/
limit?: number
}
/**
* UserLicense updateManyAndReturn
*/
export type UserLicenseUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* The data used to update UserLicenses.
*/
data: XOR<UserLicenseUpdateManyMutationInput, UserLicenseUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* UserLicense upsert
*/
export type UserLicenseUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | 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<UserLicenseCreateInput, UserLicenseUncheckedCreateInput>
/**
* In case the UserLicense was found with the provided `where` argument, update it with this data.
*/
update: XOR<UserLicenseUpdateInput, UserLicenseUncheckedUpdateInput>
}
/**
* UserLicense delete
*/
export type UserLicenseDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | null
/**
* Filter which UserLicense to delete.
*/
where: UserLicenseWhereUniqueInput
}
/**
* UserLicense deleteMany
*/
export type UserLicenseDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which UserLicenses to delete
*/
where?: UserLicenseWhereInput
/**
* Limit how many UserLicenses to delete.
*/
limit?: number
}
/**
* UserLicense without action
*/
export type UserLicenseDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserLicense
*/
select?: UserLicenseSelect<ExtArgs> | null
/**
* Omit specific fields from the UserLicense
*/
omit?: UserLicenseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserLicenseInclude<ExtArgs> | 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<UserScalarRelationFilter, UserWhereInput>
license?: XOR<LicenseScalarRelationFilter, LicenseWhereInput>
}
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<UserScalarRelationFilter, UserWhereInput>
license?: XOR<LicenseScalarRelationFilter, LicenseWhereInput>
}, "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> | UserLicenseCreateWithoutUserInput[] | UserLicenseUncheckedCreateWithoutUserInput[]
connectOrCreate?: UserLicenseCreateOrConnectWithoutUserInput | UserLicenseCreateOrConnectWithoutUserInput[]
createMany?: UserLicenseCreateManyUserInputEnvelope
connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[]
}
export type UserLicenseUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<UserLicenseCreateWithoutUserInput, UserLicenseUncheckedCreateWithoutUserInput> | 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> | 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> | 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> | UserLicenseCreateWithoutLicenseInput[] | UserLicenseUncheckedCreateWithoutLicenseInput[]
connectOrCreate?: UserLicenseCreateOrConnectWithoutLicenseInput | UserLicenseCreateOrConnectWithoutLicenseInput[]
createMany?: UserLicenseCreateManyLicenseInputEnvelope
connect?: UserLicenseWhereUniqueInput | UserLicenseWhereUniqueInput[]
}
export type UserLicenseUncheckedCreateNestedManyWithoutLicenseInput = {
create?: XOR<UserLicenseCreateWithoutLicenseInput, UserLicenseUncheckedCreateWithoutLicenseInput> | 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> | 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> | 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<UserCreateWithoutUserLicensesInput, UserUncheckedCreateWithoutUserLicensesInput>
connectOrCreate?: UserCreateOrConnectWithoutUserLicensesInput
connect?: UserWhereUniqueInput
}
export type LicenseCreateNestedOneWithoutUserLicensesInput = {
create?: XOR<LicenseCreateWithoutUserLicensesInput, LicenseUncheckedCreateWithoutUserLicensesInput>
connectOrCreate?: LicenseCreateOrConnectWithoutUserLicensesInput
connect?: LicenseWhereUniqueInput
}
export type UserUpdateOneRequiredWithoutUserLicensesNestedInput = {
create?: XOR<UserCreateWithoutUserLicensesInput, UserUncheckedCreateWithoutUserLicensesInput>
connectOrCreate?: UserCreateOrConnectWithoutUserLicensesInput
upsert?: UserUpsertWithoutUserLicensesInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUserLicensesInput, UserUpdateWithoutUserLicensesInput>, UserUncheckedUpdateWithoutUserLicensesInput>
}
export type LicenseUpdateOneRequiredWithoutUserLicensesNestedInput = {
create?: XOR<LicenseCreateWithoutUserLicensesInput, LicenseUncheckedCreateWithoutUserLicensesInput>
connectOrCreate?: LicenseCreateOrConnectWithoutUserLicensesInput
upsert?: LicenseUpsertWithoutUserLicensesInput
connect?: LicenseWhereUniqueInput
update?: XOR<XOR<LicenseUpdateToOneWithWhereWithoutUserLicensesInput, LicenseUpdateWithoutUserLicensesInput>, 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<UserLicenseCreateWithoutUserInput, UserLicenseUncheckedCreateWithoutUserInput>
}
export type UserLicenseCreateManyUserInputEnvelope = {
data: UserLicenseCreateManyUserInput | UserLicenseCreateManyUserInput[]
skipDuplicates?: boolean
}
export type UserLicenseUpsertWithWhereUniqueWithoutUserInput = {
where: UserLicenseWhereUniqueInput
update: XOR<UserLicenseUpdateWithoutUserInput, UserLicenseUncheckedUpdateWithoutUserInput>
create: XOR<UserLicenseCreateWithoutUserInput, UserLicenseUncheckedCreateWithoutUserInput>
}
export type UserLicenseUpdateWithWhereUniqueWithoutUserInput = {
where: UserLicenseWhereUniqueInput
data: XOR<UserLicenseUpdateWithoutUserInput, UserLicenseUncheckedUpdateWithoutUserInput>
}
export type UserLicenseUpdateManyWithWhereWithoutUserInput = {
where: UserLicenseScalarWhereInput
data: XOR<UserLicenseUpdateManyMutationInput, UserLicenseUncheckedUpdateManyWithoutUserInput>
}
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<UserLicenseCreateWithoutLicenseInput, UserLicenseUncheckedCreateWithoutLicenseInput>
}
export type UserLicenseCreateManyLicenseInputEnvelope = {
data: UserLicenseCreateManyLicenseInput | UserLicenseCreateManyLicenseInput[]
skipDuplicates?: boolean
}
export type UserLicenseUpsertWithWhereUniqueWithoutLicenseInput = {
where: UserLicenseWhereUniqueInput
update: XOR<UserLicenseUpdateWithoutLicenseInput, UserLicenseUncheckedUpdateWithoutLicenseInput>
create: XOR<UserLicenseCreateWithoutLicenseInput, UserLicenseUncheckedCreateWithoutLicenseInput>
}
export type UserLicenseUpdateWithWhereUniqueWithoutLicenseInput = {
where: UserLicenseWhereUniqueInput
data: XOR<UserLicenseUpdateWithoutLicenseInput, UserLicenseUncheckedUpdateWithoutLicenseInput>
}
export type UserLicenseUpdateManyWithWhereWithoutLicenseInput = {
where: UserLicenseScalarWhereInput
data: XOR<UserLicenseUpdateManyMutationInput, UserLicenseUncheckedUpdateManyWithoutLicenseInput>
}
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<UserCreateWithoutUserLicensesInput, UserUncheckedCreateWithoutUserLicensesInput>
}
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<LicenseCreateWithoutUserLicensesInput, LicenseUncheckedCreateWithoutUserLicensesInput>
}
export type UserUpsertWithoutUserLicensesInput = {
update: XOR<UserUpdateWithoutUserLicensesInput, UserUncheckedUpdateWithoutUserLicensesInput>
create: XOR<UserCreateWithoutUserLicensesInput, UserUncheckedCreateWithoutUserLicensesInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutUserLicensesInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutUserLicensesInput, UserUncheckedUpdateWithoutUserLicensesInput>
}
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<LicenseUpdateWithoutUserLicensesInput, LicenseUncheckedUpdateWithoutUserLicensesInput>
create: XOR<LicenseCreateWithoutUserLicensesInput, LicenseUncheckedCreateWithoutUserLicensesInput>
where?: LicenseWhereInput
}
export type LicenseUpdateToOneWithWhereWithoutUserLicensesInput = {
where?: LicenseWhereInput
data: XOR<LicenseUpdateWithoutUserLicensesInput, LicenseUncheckedUpdateWithoutUserLicensesInput>
}
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
}