1400 lines
51 KiB
TypeScript
1400 lines
51 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `LicenseKey` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model LicenseKey
|
|
*
|
|
*/
|
|
export type LicenseKeyModel = runtime.Types.Result.DefaultSelection<Prisma.$LicenseKeyPayload>
|
|
|
|
export type AggregateLicenseKey = {
|
|
_count: LicenseKeyCountAggregateOutputType | null
|
|
_min: LicenseKeyMinAggregateOutputType | null
|
|
_max: LicenseKeyMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type LicenseKeyMinAggregateOutputType = {
|
|
id: string | null
|
|
key: string | null
|
|
active: boolean | null
|
|
createdAt: Date | null
|
|
userId: string | null
|
|
email: string | null
|
|
}
|
|
|
|
export type LicenseKeyMaxAggregateOutputType = {
|
|
id: string | null
|
|
key: string | null
|
|
active: boolean | null
|
|
createdAt: Date | null
|
|
userId: string | null
|
|
email: string | null
|
|
}
|
|
|
|
export type LicenseKeyCountAggregateOutputType = {
|
|
id: number
|
|
key: number
|
|
active: number
|
|
createdAt: number
|
|
userId: number
|
|
email: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type LicenseKeyMinAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
active?: true
|
|
createdAt?: true
|
|
userId?: true
|
|
email?: true
|
|
}
|
|
|
|
export type LicenseKeyMaxAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
active?: true
|
|
createdAt?: true
|
|
userId?: true
|
|
email?: true
|
|
}
|
|
|
|
export type LicenseKeyCountAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
active?: true
|
|
createdAt?: true
|
|
userId?: true
|
|
email?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type LicenseKeyAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which LicenseKey to aggregate.
|
|
*/
|
|
where?: Prisma.LicenseKeyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of LicenseKeys to fetch.
|
|
*/
|
|
orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.LicenseKeyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` LicenseKeys 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` LicenseKeys.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned LicenseKeys
|
|
**/
|
|
_count?: true | LicenseKeyCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: LicenseKeyMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: LicenseKeyMaxAggregateInputType
|
|
}
|
|
|
|
export type GetLicenseKeyAggregateType<T extends LicenseKeyAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateLicenseKey]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateLicenseKey[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateLicenseKey[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type LicenseKeyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.LicenseKeyWhereInput
|
|
orderBy?: Prisma.LicenseKeyOrderByWithAggregationInput | Prisma.LicenseKeyOrderByWithAggregationInput[]
|
|
by: Prisma.LicenseKeyScalarFieldEnum[] | Prisma.LicenseKeyScalarFieldEnum
|
|
having?: Prisma.LicenseKeyScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: LicenseKeyCountAggregateInputType | true
|
|
_min?: LicenseKeyMinAggregateInputType
|
|
_max?: LicenseKeyMaxAggregateInputType
|
|
}
|
|
|
|
export type LicenseKeyGroupByOutputType = {
|
|
id: string
|
|
key: string
|
|
active: boolean
|
|
createdAt: Date
|
|
userId: string | null
|
|
email: string | null
|
|
_count: LicenseKeyCountAggregateOutputType | null
|
|
_min: LicenseKeyMinAggregateOutputType | null
|
|
_max: LicenseKeyMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetLicenseKeyGroupByPayload<T extends LicenseKeyGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<LicenseKeyGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof LicenseKeyGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], LicenseKeyGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], LicenseKeyGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type LicenseKeyWhereInput = {
|
|
AND?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[]
|
|
OR?: Prisma.LicenseKeyWhereInput[]
|
|
NOT?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[]
|
|
id?: Prisma.StringFilter<"LicenseKey"> | string
|
|
key?: Prisma.StringFilter<"LicenseKey"> | string
|
|
active?: Prisma.BoolFilter<"LicenseKey"> | boolean
|
|
createdAt?: Prisma.DateTimeFilter<"LicenseKey"> | Date | string
|
|
userId?: Prisma.StringNullableFilter<"LicenseKey"> | string | null
|
|
email?: Prisma.StringNullableFilter<"LicenseKey"> | string | null
|
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
}
|
|
|
|
export type LicenseKeyOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
user?: Prisma.UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type LicenseKeyWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
key?: string
|
|
AND?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[]
|
|
OR?: Prisma.LicenseKeyWhereInput[]
|
|
NOT?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[]
|
|
active?: Prisma.BoolFilter<"LicenseKey"> | boolean
|
|
createdAt?: Prisma.DateTimeFilter<"LicenseKey"> | Date | string
|
|
userId?: Prisma.StringNullableFilter<"LicenseKey"> | string | null
|
|
email?: Prisma.StringNullableFilter<"LicenseKey"> | string | null
|
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
}, "id" | "key">
|
|
|
|
export type LicenseKeyOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.LicenseKeyCountOrderByAggregateInput
|
|
_max?: Prisma.LicenseKeyMaxOrderByAggregateInput
|
|
_min?: Prisma.LicenseKeyMinOrderByAggregateInput
|
|
}
|
|
|
|
export type LicenseKeyScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.LicenseKeyScalarWhereWithAggregatesInput | Prisma.LicenseKeyScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.LicenseKeyScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.LicenseKeyScalarWhereWithAggregatesInput | Prisma.LicenseKeyScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
|
|
key?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
|
|
active?: Prisma.BoolWithAggregatesFilter<"LicenseKey"> | boolean
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"LicenseKey"> | Date | string
|
|
userId?: Prisma.StringNullableWithAggregatesFilter<"LicenseKey"> | string | null
|
|
email?: Prisma.StringNullableWithAggregatesFilter<"LicenseKey"> | string | null
|
|
}
|
|
|
|
export type LicenseKeyCreateInput = {
|
|
id?: string
|
|
key: string
|
|
active: boolean
|
|
createdAt?: Date | string
|
|
email?: string | null
|
|
user?: Prisma.UserCreateNestedOneWithoutLicenseKeysInput
|
|
}
|
|
|
|
export type LicenseKeyUncheckedCreateInput = {
|
|
id?: string
|
|
key: string
|
|
active: boolean
|
|
createdAt?: Date | string
|
|
userId?: string | null
|
|
email?: string | null
|
|
}
|
|
|
|
export type LicenseKeyUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
user?: Prisma.UserUpdateOneWithoutLicenseKeysNestedInput
|
|
}
|
|
|
|
export type LicenseKeyUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type LicenseKeyCreateManyInput = {
|
|
id?: string
|
|
key: string
|
|
active: boolean
|
|
createdAt?: Date | string
|
|
userId?: string | null
|
|
email?: string | null
|
|
}
|
|
|
|
export type LicenseKeyUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type LicenseKeyUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type LicenseKeyListRelationFilter = {
|
|
every?: Prisma.LicenseKeyWhereInput
|
|
some?: Prisma.LicenseKeyWhereInput
|
|
none?: Prisma.LicenseKeyWhereInput
|
|
}
|
|
|
|
export type LicenseKeyOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type LicenseKeyCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
}
|
|
|
|
export type LicenseKeyMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
}
|
|
|
|
export type LicenseKeyMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
}
|
|
|
|
export type LicenseKeyCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.LicenseKeyCreateWithoutUserInput, Prisma.LicenseKeyUncheckedCreateWithoutUserInput> | Prisma.LicenseKeyCreateWithoutUserInput[] | Prisma.LicenseKeyUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.LicenseKeyCreateOrConnectWithoutUserInput | Prisma.LicenseKeyCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.LicenseKeyCreateManyUserInputEnvelope
|
|
connect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
}
|
|
|
|
export type LicenseKeyUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.LicenseKeyCreateWithoutUserInput, Prisma.LicenseKeyUncheckedCreateWithoutUserInput> | Prisma.LicenseKeyCreateWithoutUserInput[] | Prisma.LicenseKeyUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.LicenseKeyCreateOrConnectWithoutUserInput | Prisma.LicenseKeyCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.LicenseKeyCreateManyUserInputEnvelope
|
|
connect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
}
|
|
|
|
export type LicenseKeyUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.LicenseKeyCreateWithoutUserInput, Prisma.LicenseKeyUncheckedCreateWithoutUserInput> | Prisma.LicenseKeyCreateWithoutUserInput[] | Prisma.LicenseKeyUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.LicenseKeyCreateOrConnectWithoutUserInput | Prisma.LicenseKeyCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.LicenseKeyUpsertWithWhereUniqueWithoutUserInput | Prisma.LicenseKeyUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.LicenseKeyCreateManyUserInputEnvelope
|
|
set?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
disconnect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
delete?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
connect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
update?: Prisma.LicenseKeyUpdateWithWhereUniqueWithoutUserInput | Prisma.LicenseKeyUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.LicenseKeyUpdateManyWithWhereWithoutUserInput | Prisma.LicenseKeyUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.LicenseKeyScalarWhereInput | Prisma.LicenseKeyScalarWhereInput[]
|
|
}
|
|
|
|
export type LicenseKeyUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.LicenseKeyCreateWithoutUserInput, Prisma.LicenseKeyUncheckedCreateWithoutUserInput> | Prisma.LicenseKeyCreateWithoutUserInput[] | Prisma.LicenseKeyUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.LicenseKeyCreateOrConnectWithoutUserInput | Prisma.LicenseKeyCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.LicenseKeyUpsertWithWhereUniqueWithoutUserInput | Prisma.LicenseKeyUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.LicenseKeyCreateManyUserInputEnvelope
|
|
set?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
disconnect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
delete?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
connect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[]
|
|
update?: Prisma.LicenseKeyUpdateWithWhereUniqueWithoutUserInput | Prisma.LicenseKeyUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.LicenseKeyUpdateManyWithWhereWithoutUserInput | Prisma.LicenseKeyUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.LicenseKeyScalarWhereInput | Prisma.LicenseKeyScalarWhereInput[]
|
|
}
|
|
|
|
export type LicenseKeyCreateWithoutUserInput = {
|
|
id?: string
|
|
key: string
|
|
active: boolean
|
|
createdAt?: Date | string
|
|
email?: string | null
|
|
}
|
|
|
|
export type LicenseKeyUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
key: string
|
|
active: boolean
|
|
createdAt?: Date | string
|
|
email?: string | null
|
|
}
|
|
|
|
export type LicenseKeyCreateOrConnectWithoutUserInput = {
|
|
where: Prisma.LicenseKeyWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.LicenseKeyCreateWithoutUserInput, Prisma.LicenseKeyUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type LicenseKeyCreateManyUserInputEnvelope = {
|
|
data: Prisma.LicenseKeyCreateManyUserInput | Prisma.LicenseKeyCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type LicenseKeyUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.LicenseKeyWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.LicenseKeyUpdateWithoutUserInput, Prisma.LicenseKeyUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.LicenseKeyCreateWithoutUserInput, Prisma.LicenseKeyUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type LicenseKeyUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.LicenseKeyWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.LicenseKeyUpdateWithoutUserInput, Prisma.LicenseKeyUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type LicenseKeyUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.LicenseKeyScalarWhereInput
|
|
data: Prisma.XOR<Prisma.LicenseKeyUpdateManyMutationInput, Prisma.LicenseKeyUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type LicenseKeyScalarWhereInput = {
|
|
AND?: Prisma.LicenseKeyScalarWhereInput | Prisma.LicenseKeyScalarWhereInput[]
|
|
OR?: Prisma.LicenseKeyScalarWhereInput[]
|
|
NOT?: Prisma.LicenseKeyScalarWhereInput | Prisma.LicenseKeyScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"LicenseKey"> | string
|
|
key?: Prisma.StringFilter<"LicenseKey"> | string
|
|
active?: Prisma.BoolFilter<"LicenseKey"> | boolean
|
|
createdAt?: Prisma.DateTimeFilter<"LicenseKey"> | Date | string
|
|
userId?: Prisma.StringNullableFilter<"LicenseKey"> | string | null
|
|
email?: Prisma.StringNullableFilter<"LicenseKey"> | string | null
|
|
}
|
|
|
|
export type LicenseKeyCreateManyUserInput = {
|
|
id?: string
|
|
key: string
|
|
active: boolean
|
|
createdAt?: Date | string
|
|
email?: string | null
|
|
}
|
|
|
|
export type LicenseKeyUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type LicenseKeyUncheckedUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type LicenseKeyUncheckedUpdateManyWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
|
|
|
|
export type LicenseKeySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
key?: boolean
|
|
active?: boolean
|
|
createdAt?: boolean
|
|
userId?: boolean
|
|
email?: boolean
|
|
user?: boolean | Prisma.LicenseKey$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["licenseKey"]>
|
|
|
|
export type LicenseKeySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
key?: boolean
|
|
active?: boolean
|
|
createdAt?: boolean
|
|
userId?: boolean
|
|
email?: boolean
|
|
user?: boolean | Prisma.LicenseKey$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["licenseKey"]>
|
|
|
|
export type LicenseKeySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
key?: boolean
|
|
active?: boolean
|
|
createdAt?: boolean
|
|
userId?: boolean
|
|
email?: boolean
|
|
user?: boolean | Prisma.LicenseKey$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["licenseKey"]>
|
|
|
|
export type LicenseKeySelectScalar = {
|
|
id?: boolean
|
|
key?: boolean
|
|
active?: boolean
|
|
createdAt?: boolean
|
|
userId?: boolean
|
|
email?: boolean
|
|
}
|
|
|
|
export type LicenseKeyOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "key" | "active" | "createdAt" | "userId" | "email", ExtArgs["result"]["licenseKey"]>
|
|
export type LicenseKeyInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.LicenseKey$userArgs<ExtArgs>
|
|
}
|
|
export type LicenseKeyIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.LicenseKey$userArgs<ExtArgs>
|
|
}
|
|
export type LicenseKeyIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.LicenseKey$userArgs<ExtArgs>
|
|
}
|
|
|
|
export type $LicenseKeyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "LicenseKey"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs> | null
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
key: string
|
|
active: boolean
|
|
createdAt: Date
|
|
userId: string | null
|
|
email: string | null
|
|
}, ExtArgs["result"]["licenseKey"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type LicenseKeyGetPayload<S extends boolean | null | undefined | LicenseKeyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload, S>
|
|
|
|
export type LicenseKeyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<LicenseKeyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: LicenseKeyCountAggregateInputType | true
|
|
}
|
|
|
|
export interface LicenseKeyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LicenseKey'], meta: { name: 'LicenseKey' } }
|
|
/**
|
|
* Find zero or one LicenseKey that matches the filter.
|
|
* @param {LicenseKeyFindUniqueArgs} args - Arguments to find a LicenseKey
|
|
* @example
|
|
* // Get one LicenseKey
|
|
* const licenseKey = await prisma.licenseKey.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends LicenseKeyFindUniqueArgs>(args: Prisma.SelectSubset<T, LicenseKeyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one LicenseKey that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {LicenseKeyFindUniqueOrThrowArgs} args - Arguments to find a LicenseKey
|
|
* @example
|
|
* // Get one LicenseKey
|
|
* const licenseKey = await prisma.licenseKey.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends LicenseKeyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LicenseKeyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first LicenseKey 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 {LicenseKeyFindFirstArgs} args - Arguments to find a LicenseKey
|
|
* @example
|
|
* // Get one LicenseKey
|
|
* const licenseKey = await prisma.licenseKey.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends LicenseKeyFindFirstArgs>(args?: Prisma.SelectSubset<T, LicenseKeyFindFirstArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first LicenseKey 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 {LicenseKeyFindFirstOrThrowArgs} args - Arguments to find a LicenseKey
|
|
* @example
|
|
* // Get one LicenseKey
|
|
* const licenseKey = await prisma.licenseKey.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends LicenseKeyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LicenseKeyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more LicenseKeys 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 {LicenseKeyFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all LicenseKeys
|
|
* const licenseKeys = await prisma.licenseKey.findMany()
|
|
*
|
|
* // Get first 10 LicenseKeys
|
|
* const licenseKeys = await prisma.licenseKey.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const licenseKeyWithIdOnly = await prisma.licenseKey.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends LicenseKeyFindManyArgs>(args?: Prisma.SelectSubset<T, LicenseKeyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a LicenseKey.
|
|
* @param {LicenseKeyCreateArgs} args - Arguments to create a LicenseKey.
|
|
* @example
|
|
* // Create one LicenseKey
|
|
* const LicenseKey = await prisma.licenseKey.create({
|
|
* data: {
|
|
* // ... data to create a LicenseKey
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends LicenseKeyCreateArgs>(args: Prisma.SelectSubset<T, LicenseKeyCreateArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many LicenseKeys.
|
|
* @param {LicenseKeyCreateManyArgs} args - Arguments to create many LicenseKeys.
|
|
* @example
|
|
* // Create many LicenseKeys
|
|
* const licenseKey = await prisma.licenseKey.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends LicenseKeyCreateManyArgs>(args?: Prisma.SelectSubset<T, LicenseKeyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many LicenseKeys and returns the data saved in the database.
|
|
* @param {LicenseKeyCreateManyAndReturnArgs} args - Arguments to create many LicenseKeys.
|
|
* @example
|
|
* // Create many LicenseKeys
|
|
* const licenseKey = await prisma.licenseKey.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many LicenseKeys and only return the `id`
|
|
* const licenseKeyWithIdOnly = await prisma.licenseKey.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 LicenseKeyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LicenseKeyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a LicenseKey.
|
|
* @param {LicenseKeyDeleteArgs} args - Arguments to delete one LicenseKey.
|
|
* @example
|
|
* // Delete one LicenseKey
|
|
* const LicenseKey = await prisma.licenseKey.delete({
|
|
* where: {
|
|
* // ... filter to delete one LicenseKey
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends LicenseKeyDeleteArgs>(args: Prisma.SelectSubset<T, LicenseKeyDeleteArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one LicenseKey.
|
|
* @param {LicenseKeyUpdateArgs} args - Arguments to update one LicenseKey.
|
|
* @example
|
|
* // Update one LicenseKey
|
|
* const licenseKey = await prisma.licenseKey.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends LicenseKeyUpdateArgs>(args: Prisma.SelectSubset<T, LicenseKeyUpdateArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more LicenseKeys.
|
|
* @param {LicenseKeyDeleteManyArgs} args - Arguments to filter LicenseKeys to delete.
|
|
* @example
|
|
* // Delete a few LicenseKeys
|
|
* const { count } = await prisma.licenseKey.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends LicenseKeyDeleteManyArgs>(args?: Prisma.SelectSubset<T, LicenseKeyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more LicenseKeys.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LicenseKeyUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many LicenseKeys
|
|
* const licenseKey = await prisma.licenseKey.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends LicenseKeyUpdateManyArgs>(args: Prisma.SelectSubset<T, LicenseKeyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more LicenseKeys and returns the data updated in the database.
|
|
* @param {LicenseKeyUpdateManyAndReturnArgs} args - Arguments to update many LicenseKeys.
|
|
* @example
|
|
* // Update many LicenseKeys
|
|
* const licenseKey = await prisma.licenseKey.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more LicenseKeys and only return the `id`
|
|
* const licenseKeyWithIdOnly = await prisma.licenseKey.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 LicenseKeyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LicenseKeyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one LicenseKey.
|
|
* @param {LicenseKeyUpsertArgs} args - Arguments to update or create a LicenseKey.
|
|
* @example
|
|
* // Update or create a LicenseKey
|
|
* const licenseKey = await prisma.licenseKey.upsert({
|
|
* create: {
|
|
* // ... data to create a LicenseKey
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the LicenseKey we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends LicenseKeyUpsertArgs>(args: Prisma.SelectSubset<T, LicenseKeyUpsertArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of LicenseKeys.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LicenseKeyCountArgs} args - Arguments to filter LicenseKeys to count.
|
|
* @example
|
|
* // Count the number of LicenseKeys
|
|
* const count = await prisma.licenseKey.count({
|
|
* where: {
|
|
* // ... the filter for the LicenseKeys we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends LicenseKeyCountArgs>(
|
|
args?: Prisma.Subset<T, LicenseKeyCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], LicenseKeyCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a LicenseKey.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LicenseKeyAggregateArgs} 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 LicenseKeyAggregateArgs>(args: Prisma.Subset<T, LicenseKeyAggregateArgs>): Prisma.PrismaPromise<GetLicenseKeyAggregateType<T>>
|
|
|
|
/**
|
|
* Group by LicenseKey.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LicenseKeyGroupByArgs} 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 LicenseKeyGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: LicenseKeyGroupByArgs['orderBy'] }
|
|
: { orderBy?: LicenseKeyGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.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 Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.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 Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.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 Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, LicenseKeyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLicenseKeyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the LicenseKey model
|
|
*/
|
|
readonly fields: LicenseKeyFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for LicenseKey.
|
|
* 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__LicenseKeyClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.LicenseKey$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseKey$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.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): runtime.Types.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): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the LicenseKey model
|
|
*/
|
|
export interface LicenseKeyFieldRefs {
|
|
readonly id: Prisma.FieldRef<"LicenseKey", 'String'>
|
|
readonly key: Prisma.FieldRef<"LicenseKey", 'String'>
|
|
readonly active: Prisma.FieldRef<"LicenseKey", 'Boolean'>
|
|
readonly createdAt: Prisma.FieldRef<"LicenseKey", 'DateTime'>
|
|
readonly userId: Prisma.FieldRef<"LicenseKey", 'String'>
|
|
readonly email: Prisma.FieldRef<"LicenseKey", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* LicenseKey findUnique
|
|
*/
|
|
export type LicenseKeyFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LicenseKey to fetch.
|
|
*/
|
|
where: Prisma.LicenseKeyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LicenseKey findUniqueOrThrow
|
|
*/
|
|
export type LicenseKeyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LicenseKey to fetch.
|
|
*/
|
|
where: Prisma.LicenseKeyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LicenseKey findFirst
|
|
*/
|
|
export type LicenseKeyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LicenseKey to fetch.
|
|
*/
|
|
where?: Prisma.LicenseKeyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of LicenseKeys to fetch.
|
|
*/
|
|
orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for LicenseKeys.
|
|
*/
|
|
cursor?: Prisma.LicenseKeyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` LicenseKeys 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` LicenseKeys.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of LicenseKeys.
|
|
*/
|
|
distinct?: Prisma.LicenseKeyScalarFieldEnum | Prisma.LicenseKeyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* LicenseKey findFirstOrThrow
|
|
*/
|
|
export type LicenseKeyFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LicenseKey to fetch.
|
|
*/
|
|
where?: Prisma.LicenseKeyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of LicenseKeys to fetch.
|
|
*/
|
|
orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for LicenseKeys.
|
|
*/
|
|
cursor?: Prisma.LicenseKeyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` LicenseKeys 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` LicenseKeys.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of LicenseKeys.
|
|
*/
|
|
distinct?: Prisma.LicenseKeyScalarFieldEnum | Prisma.LicenseKeyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* LicenseKey findMany
|
|
*/
|
|
export type LicenseKeyFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LicenseKeys to fetch.
|
|
*/
|
|
where?: Prisma.LicenseKeyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of LicenseKeys to fetch.
|
|
*/
|
|
orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing LicenseKeys.
|
|
*/
|
|
cursor?: Prisma.LicenseKeyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` LicenseKeys 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` LicenseKeys.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of LicenseKeys.
|
|
*/
|
|
distinct?: Prisma.LicenseKeyScalarFieldEnum | Prisma.LicenseKeyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* LicenseKey create
|
|
*/
|
|
export type LicenseKeyCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a LicenseKey.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LicenseKeyCreateInput, Prisma.LicenseKeyUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* LicenseKey createMany
|
|
*/
|
|
export type LicenseKeyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many LicenseKeys.
|
|
*/
|
|
data: Prisma.LicenseKeyCreateManyInput | Prisma.LicenseKeyCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* LicenseKey createManyAndReturn
|
|
*/
|
|
export type LicenseKeyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many LicenseKeys.
|
|
*/
|
|
data: Prisma.LicenseKeyCreateManyInput | Prisma.LicenseKeyCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* LicenseKey update
|
|
*/
|
|
export type LicenseKeyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a LicenseKey.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LicenseKeyUpdateInput, Prisma.LicenseKeyUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which LicenseKey to update.
|
|
*/
|
|
where: Prisma.LicenseKeyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LicenseKey updateMany
|
|
*/
|
|
export type LicenseKeyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update LicenseKeys.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LicenseKeyUpdateManyMutationInput, Prisma.LicenseKeyUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which LicenseKeys to update
|
|
*/
|
|
where?: Prisma.LicenseKeyWhereInput
|
|
/**
|
|
* Limit how many LicenseKeys to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* LicenseKey updateManyAndReturn
|
|
*/
|
|
export type LicenseKeyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update LicenseKeys.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LicenseKeyUpdateManyMutationInput, Prisma.LicenseKeyUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which LicenseKeys to update
|
|
*/
|
|
where?: Prisma.LicenseKeyWhereInput
|
|
/**
|
|
* Limit how many LicenseKeys to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* LicenseKey upsert
|
|
*/
|
|
export type LicenseKeyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the LicenseKey to update in case it exists.
|
|
*/
|
|
where: Prisma.LicenseKeyWhereUniqueInput
|
|
/**
|
|
* In case the LicenseKey found by the `where` argument doesn't exist, create a new LicenseKey with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.LicenseKeyCreateInput, Prisma.LicenseKeyUncheckedCreateInput>
|
|
/**
|
|
* In case the LicenseKey was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.LicenseKeyUpdateInput, Prisma.LicenseKeyUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* LicenseKey delete
|
|
*/
|
|
export type LicenseKeyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which LicenseKey to delete.
|
|
*/
|
|
where: Prisma.LicenseKeyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LicenseKey deleteMany
|
|
*/
|
|
export type LicenseKeyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which LicenseKeys to delete
|
|
*/
|
|
where?: Prisma.LicenseKeyWhereInput
|
|
/**
|
|
* Limit how many LicenseKeys to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* LicenseKey.user
|
|
*/
|
|
export type LicenseKey$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* LicenseKey without action
|
|
*/
|
|
export type LicenseKeyDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LicenseKey
|
|
*/
|
|
select?: Prisma.LicenseKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LicenseKey
|
|
*/
|
|
omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LicenseKeyInclude<ExtArgs> | null
|
|
}
|