mirror of
https://github.com/ZeroCatDev/ClassworksKV.git
synced 2026-02-04 07:44:40 +00:00
1420 lines
50 KiB
TypeScript
1420 lines
50 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 `KVStore` 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 KVStore
|
|
*
|
|
*/
|
|
export type KVStoreModel = runtime.Types.Result.DefaultSelection<Prisma.$KVStorePayload>
|
|
|
|
export type AggregateKVStore = {
|
|
_count: KVStoreCountAggregateOutputType | null
|
|
_avg: KVStoreAvgAggregateOutputType | null
|
|
_sum: KVStoreSumAggregateOutputType | null
|
|
_min: KVStoreMinAggregateOutputType | null
|
|
_max: KVStoreMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type KVStoreAvgAggregateOutputType = {
|
|
deviceId: number | null
|
|
}
|
|
|
|
export type KVStoreSumAggregateOutputType = {
|
|
deviceId: number | null
|
|
}
|
|
|
|
export type KVStoreMinAggregateOutputType = {
|
|
deviceId: number | null
|
|
key: string | null
|
|
creatorIp: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type KVStoreMaxAggregateOutputType = {
|
|
deviceId: number | null
|
|
key: string | null
|
|
creatorIp: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type KVStoreCountAggregateOutputType = {
|
|
deviceId: number
|
|
key: number
|
|
value: number
|
|
creatorIp: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type KVStoreAvgAggregateInputType = {
|
|
deviceId?: true
|
|
}
|
|
|
|
export type KVStoreSumAggregateInputType = {
|
|
deviceId?: true
|
|
}
|
|
|
|
export type KVStoreMinAggregateInputType = {
|
|
deviceId?: true
|
|
key?: true
|
|
creatorIp?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type KVStoreMaxAggregateInputType = {
|
|
deviceId?: true
|
|
key?: true
|
|
creatorIp?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type KVStoreCountAggregateInputType = {
|
|
deviceId?: true
|
|
key?: true
|
|
value?: true
|
|
creatorIp?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type KVStoreAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which KVStore to aggregate.
|
|
*/
|
|
where?: Prisma.KVStoreWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KVStores to fetch.
|
|
*/
|
|
orderBy?: Prisma.KVStoreOrderByWithRelationInput | Prisma.KVStoreOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.KVStoreWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KVStores 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` KVStores.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned KVStores
|
|
**/
|
|
_count?: true | KVStoreCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: KVStoreAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: KVStoreSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: KVStoreMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: KVStoreMaxAggregateInputType
|
|
}
|
|
|
|
export type GetKVStoreAggregateType<T extends KVStoreAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateKVStore]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateKVStore[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateKVStore[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type KVStoreGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.KVStoreWhereInput
|
|
orderBy?: Prisma.KVStoreOrderByWithAggregationInput | Prisma.KVStoreOrderByWithAggregationInput[]
|
|
by: Prisma.KVStoreScalarFieldEnum[] | Prisma.KVStoreScalarFieldEnum
|
|
having?: Prisma.KVStoreScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: KVStoreCountAggregateInputType | true
|
|
_avg?: KVStoreAvgAggregateInputType
|
|
_sum?: KVStoreSumAggregateInputType
|
|
_min?: KVStoreMinAggregateInputType
|
|
_max?: KVStoreMaxAggregateInputType
|
|
}
|
|
|
|
export type KVStoreGroupByOutputType = {
|
|
deviceId: number
|
|
key: string
|
|
value: runtime.JsonValue
|
|
creatorIp: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: KVStoreCountAggregateOutputType | null
|
|
_avg: KVStoreAvgAggregateOutputType | null
|
|
_sum: KVStoreSumAggregateOutputType | null
|
|
_min: KVStoreMinAggregateOutputType | null
|
|
_max: KVStoreMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetKVStoreGroupByPayload<T extends KVStoreGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<KVStoreGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof KVStoreGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], KVStoreGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], KVStoreGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type KVStoreWhereInput = {
|
|
AND?: Prisma.KVStoreWhereInput | Prisma.KVStoreWhereInput[]
|
|
OR?: Prisma.KVStoreWhereInput[]
|
|
NOT?: Prisma.KVStoreWhereInput | Prisma.KVStoreWhereInput[]
|
|
deviceId?: Prisma.IntFilter<"KVStore"> | number
|
|
key?: Prisma.StringFilter<"KVStore"> | string
|
|
value?: Prisma.JsonFilter<"KVStore">
|
|
creatorIp?: Prisma.StringNullableFilter<"KVStore"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"KVStore"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"KVStore"> | Date | string
|
|
device?: Prisma.XOR<Prisma.DeviceScalarRelationFilter, Prisma.DeviceWhereInput>
|
|
}
|
|
|
|
export type KVStoreOrderByWithRelationInput = {
|
|
deviceId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
creatorIp?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
device?: Prisma.DeviceOrderByWithRelationInput
|
|
}
|
|
|
|
export type KVStoreWhereUniqueInput = Prisma.AtLeast<{
|
|
deviceId_key?: Prisma.KVStoreDeviceIdKeyCompoundUniqueInput
|
|
AND?: Prisma.KVStoreWhereInput | Prisma.KVStoreWhereInput[]
|
|
OR?: Prisma.KVStoreWhereInput[]
|
|
NOT?: Prisma.KVStoreWhereInput | Prisma.KVStoreWhereInput[]
|
|
deviceId?: Prisma.IntFilter<"KVStore"> | number
|
|
key?: Prisma.StringFilter<"KVStore"> | string
|
|
value?: Prisma.JsonFilter<"KVStore">
|
|
creatorIp?: Prisma.StringNullableFilter<"KVStore"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"KVStore"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"KVStore"> | Date | string
|
|
device?: Prisma.XOR<Prisma.DeviceScalarRelationFilter, Prisma.DeviceWhereInput>
|
|
}, "deviceId_key">
|
|
|
|
export type KVStoreOrderByWithAggregationInput = {
|
|
deviceId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
creatorIp?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.KVStoreCountOrderByAggregateInput
|
|
_avg?: Prisma.KVStoreAvgOrderByAggregateInput
|
|
_max?: Prisma.KVStoreMaxOrderByAggregateInput
|
|
_min?: Prisma.KVStoreMinOrderByAggregateInput
|
|
_sum?: Prisma.KVStoreSumOrderByAggregateInput
|
|
}
|
|
|
|
export type KVStoreScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.KVStoreScalarWhereWithAggregatesInput | Prisma.KVStoreScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.KVStoreScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.KVStoreScalarWhereWithAggregatesInput | Prisma.KVStoreScalarWhereWithAggregatesInput[]
|
|
deviceId?: Prisma.IntWithAggregatesFilter<"KVStore"> | number
|
|
key?: Prisma.StringWithAggregatesFilter<"KVStore"> | string
|
|
value?: Prisma.JsonWithAggregatesFilter<"KVStore">
|
|
creatorIp?: Prisma.StringNullableWithAggregatesFilter<"KVStore"> | string | null
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"KVStore"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"KVStore"> | Date | string
|
|
}
|
|
|
|
export type KVStoreCreateInput = {
|
|
key: string
|
|
value: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
device: Prisma.DeviceCreateNestedOneWithoutKvStoreInput
|
|
}
|
|
|
|
export type KVStoreUncheckedCreateInput = {
|
|
deviceId: number
|
|
key: string
|
|
value: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type KVStoreUpdateInput = {
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
device?: Prisma.DeviceUpdateOneRequiredWithoutKvStoreNestedInput
|
|
}
|
|
|
|
export type KVStoreUncheckedUpdateInput = {
|
|
deviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type KVStoreCreateManyInput = {
|
|
deviceId: number
|
|
key: string
|
|
value: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type KVStoreUpdateManyMutationInput = {
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type KVStoreUncheckedUpdateManyInput = {
|
|
deviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type KVStoreListRelationFilter = {
|
|
every?: Prisma.KVStoreWhereInput
|
|
some?: Prisma.KVStoreWhereInput
|
|
none?: Prisma.KVStoreWhereInput
|
|
}
|
|
|
|
export type KVStoreOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KVStoreDeviceIdKeyCompoundUniqueInput = {
|
|
deviceId: number
|
|
key: string
|
|
}
|
|
|
|
export type KVStoreCountOrderByAggregateInput = {
|
|
deviceId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
creatorIp?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KVStoreAvgOrderByAggregateInput = {
|
|
deviceId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KVStoreMaxOrderByAggregateInput = {
|
|
deviceId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
creatorIp?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KVStoreMinOrderByAggregateInput = {
|
|
deviceId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
creatorIp?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KVStoreSumOrderByAggregateInput = {
|
|
deviceId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KVStoreCreateNestedManyWithoutDeviceInput = {
|
|
create?: Prisma.XOR<Prisma.KVStoreCreateWithoutDeviceInput, Prisma.KVStoreUncheckedCreateWithoutDeviceInput> | Prisma.KVStoreCreateWithoutDeviceInput[] | Prisma.KVStoreUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.KVStoreCreateOrConnectWithoutDeviceInput | Prisma.KVStoreCreateOrConnectWithoutDeviceInput[]
|
|
createMany?: Prisma.KVStoreCreateManyDeviceInputEnvelope
|
|
connect?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
}
|
|
|
|
export type KVStoreUncheckedCreateNestedManyWithoutDeviceInput = {
|
|
create?: Prisma.XOR<Prisma.KVStoreCreateWithoutDeviceInput, Prisma.KVStoreUncheckedCreateWithoutDeviceInput> | Prisma.KVStoreCreateWithoutDeviceInput[] | Prisma.KVStoreUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.KVStoreCreateOrConnectWithoutDeviceInput | Prisma.KVStoreCreateOrConnectWithoutDeviceInput[]
|
|
createMany?: Prisma.KVStoreCreateManyDeviceInputEnvelope
|
|
connect?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
}
|
|
|
|
export type KVStoreUpdateManyWithoutDeviceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.KVStoreCreateWithoutDeviceInput, Prisma.KVStoreUncheckedCreateWithoutDeviceInput> | Prisma.KVStoreCreateWithoutDeviceInput[] | Prisma.KVStoreUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.KVStoreCreateOrConnectWithoutDeviceInput | Prisma.KVStoreCreateOrConnectWithoutDeviceInput[]
|
|
upsert?: Prisma.KVStoreUpsertWithWhereUniqueWithoutDeviceInput | Prisma.KVStoreUpsertWithWhereUniqueWithoutDeviceInput[]
|
|
createMany?: Prisma.KVStoreCreateManyDeviceInputEnvelope
|
|
set?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
disconnect?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
delete?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
connect?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
update?: Prisma.KVStoreUpdateWithWhereUniqueWithoutDeviceInput | Prisma.KVStoreUpdateWithWhereUniqueWithoutDeviceInput[]
|
|
updateMany?: Prisma.KVStoreUpdateManyWithWhereWithoutDeviceInput | Prisma.KVStoreUpdateManyWithWhereWithoutDeviceInput[]
|
|
deleteMany?: Prisma.KVStoreScalarWhereInput | Prisma.KVStoreScalarWhereInput[]
|
|
}
|
|
|
|
export type KVStoreUncheckedUpdateManyWithoutDeviceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.KVStoreCreateWithoutDeviceInput, Prisma.KVStoreUncheckedCreateWithoutDeviceInput> | Prisma.KVStoreCreateWithoutDeviceInput[] | Prisma.KVStoreUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.KVStoreCreateOrConnectWithoutDeviceInput | Prisma.KVStoreCreateOrConnectWithoutDeviceInput[]
|
|
upsert?: Prisma.KVStoreUpsertWithWhereUniqueWithoutDeviceInput | Prisma.KVStoreUpsertWithWhereUniqueWithoutDeviceInput[]
|
|
createMany?: Prisma.KVStoreCreateManyDeviceInputEnvelope
|
|
set?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
disconnect?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
delete?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
connect?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[]
|
|
update?: Prisma.KVStoreUpdateWithWhereUniqueWithoutDeviceInput | Prisma.KVStoreUpdateWithWhereUniqueWithoutDeviceInput[]
|
|
updateMany?: Prisma.KVStoreUpdateManyWithWhereWithoutDeviceInput | Prisma.KVStoreUpdateManyWithWhereWithoutDeviceInput[]
|
|
deleteMany?: Prisma.KVStoreScalarWhereInput | Prisma.KVStoreScalarWhereInput[]
|
|
}
|
|
|
|
export type KVStoreCreateWithoutDeviceInput = {
|
|
key: string
|
|
value: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type KVStoreUncheckedCreateWithoutDeviceInput = {
|
|
key: string
|
|
value: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type KVStoreCreateOrConnectWithoutDeviceInput = {
|
|
where: Prisma.KVStoreWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.KVStoreCreateWithoutDeviceInput, Prisma.KVStoreUncheckedCreateWithoutDeviceInput>
|
|
}
|
|
|
|
export type KVStoreCreateManyDeviceInputEnvelope = {
|
|
data: Prisma.KVStoreCreateManyDeviceInput | Prisma.KVStoreCreateManyDeviceInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type KVStoreUpsertWithWhereUniqueWithoutDeviceInput = {
|
|
where: Prisma.KVStoreWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.KVStoreUpdateWithoutDeviceInput, Prisma.KVStoreUncheckedUpdateWithoutDeviceInput>
|
|
create: Prisma.XOR<Prisma.KVStoreCreateWithoutDeviceInput, Prisma.KVStoreUncheckedCreateWithoutDeviceInput>
|
|
}
|
|
|
|
export type KVStoreUpdateWithWhereUniqueWithoutDeviceInput = {
|
|
where: Prisma.KVStoreWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.KVStoreUpdateWithoutDeviceInput, Prisma.KVStoreUncheckedUpdateWithoutDeviceInput>
|
|
}
|
|
|
|
export type KVStoreUpdateManyWithWhereWithoutDeviceInput = {
|
|
where: Prisma.KVStoreScalarWhereInput
|
|
data: Prisma.XOR<Prisma.KVStoreUpdateManyMutationInput, Prisma.KVStoreUncheckedUpdateManyWithoutDeviceInput>
|
|
}
|
|
|
|
export type KVStoreScalarWhereInput = {
|
|
AND?: Prisma.KVStoreScalarWhereInput | Prisma.KVStoreScalarWhereInput[]
|
|
OR?: Prisma.KVStoreScalarWhereInput[]
|
|
NOT?: Prisma.KVStoreScalarWhereInput | Prisma.KVStoreScalarWhereInput[]
|
|
deviceId?: Prisma.IntFilter<"KVStore"> | number
|
|
key?: Prisma.StringFilter<"KVStore"> | string
|
|
value?: Prisma.JsonFilter<"KVStore">
|
|
creatorIp?: Prisma.StringNullableFilter<"KVStore"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"KVStore"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"KVStore"> | Date | string
|
|
}
|
|
|
|
export type KVStoreCreateManyDeviceInput = {
|
|
key: string
|
|
value: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type KVStoreUpdateWithoutDeviceInput = {
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type KVStoreUncheckedUpdateWithoutDeviceInput = {
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type KVStoreUncheckedUpdateManyWithoutDeviceInput = {
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
creatorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type KVStoreSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
deviceId?: boolean
|
|
key?: boolean
|
|
value?: boolean
|
|
creatorIp?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["kVStore"]>
|
|
|
|
export type KVStoreSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
deviceId?: boolean
|
|
key?: boolean
|
|
value?: boolean
|
|
creatorIp?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["kVStore"]>
|
|
|
|
export type KVStoreSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
deviceId?: boolean
|
|
key?: boolean
|
|
value?: boolean
|
|
creatorIp?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["kVStore"]>
|
|
|
|
export type KVStoreSelectScalar = {
|
|
deviceId?: boolean
|
|
key?: boolean
|
|
value?: boolean
|
|
creatorIp?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type KVStoreOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"deviceId" | "key" | "value" | "creatorIp" | "createdAt" | "updatedAt", ExtArgs["result"]["kVStore"]>
|
|
export type KVStoreInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
|
|
}
|
|
export type KVStoreIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
|
|
}
|
|
export type KVStoreIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
device?: boolean | Prisma.DeviceDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $KVStorePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "KVStore"
|
|
objects: {
|
|
device: Prisma.$DevicePayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
deviceId: number
|
|
key: string
|
|
value: runtime.JsonValue
|
|
creatorIp: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["kVStore"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type KVStoreGetPayload<S extends boolean | null | undefined | KVStoreDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$KVStorePayload, S>
|
|
|
|
export type KVStoreCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<KVStoreFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: KVStoreCountAggregateInputType | true
|
|
}
|
|
|
|
export interface KVStoreDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['KVStore'], meta: { name: 'KVStore' } }
|
|
/**
|
|
* Find zero or one KVStore that matches the filter.
|
|
* @param {KVStoreFindUniqueArgs} args - Arguments to find a KVStore
|
|
* @example
|
|
* // Get one KVStore
|
|
* const kVStore = await prisma.kVStore.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends KVStoreFindUniqueArgs>(args: Prisma.SelectSubset<T, KVStoreFindUniqueArgs<ExtArgs>>): Prisma.Prisma__KVStoreClient<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one KVStore that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {KVStoreFindUniqueOrThrowArgs} args - Arguments to find a KVStore
|
|
* @example
|
|
* // Get one KVStore
|
|
* const kVStore = await prisma.kVStore.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends KVStoreFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, KVStoreFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__KVStoreClient<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first KVStore 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 {KVStoreFindFirstArgs} args - Arguments to find a KVStore
|
|
* @example
|
|
* // Get one KVStore
|
|
* const kVStore = await prisma.kVStore.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends KVStoreFindFirstArgs>(args?: Prisma.SelectSubset<T, KVStoreFindFirstArgs<ExtArgs>>): Prisma.Prisma__KVStoreClient<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first KVStore 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 {KVStoreFindFirstOrThrowArgs} args - Arguments to find a KVStore
|
|
* @example
|
|
* // Get one KVStore
|
|
* const kVStore = await prisma.kVStore.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends KVStoreFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, KVStoreFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__KVStoreClient<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more KVStores 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 {KVStoreFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all KVStores
|
|
* const kVStores = await prisma.kVStore.findMany()
|
|
*
|
|
* // Get first 10 KVStores
|
|
* const kVStores = await prisma.kVStore.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `deviceId`
|
|
* const kVStoreWithDeviceIdOnly = await prisma.kVStore.findMany({ select: { deviceId: true } })
|
|
*
|
|
*/
|
|
findMany<T extends KVStoreFindManyArgs>(args?: Prisma.SelectSubset<T, KVStoreFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a KVStore.
|
|
* @param {KVStoreCreateArgs} args - Arguments to create a KVStore.
|
|
* @example
|
|
* // Create one KVStore
|
|
* const KVStore = await prisma.kVStore.create({
|
|
* data: {
|
|
* // ... data to create a KVStore
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends KVStoreCreateArgs>(args: Prisma.SelectSubset<T, KVStoreCreateArgs<ExtArgs>>): Prisma.Prisma__KVStoreClient<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many KVStores.
|
|
* @param {KVStoreCreateManyArgs} args - Arguments to create many KVStores.
|
|
* @example
|
|
* // Create many KVStores
|
|
* const kVStore = await prisma.kVStore.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends KVStoreCreateManyArgs>(args?: Prisma.SelectSubset<T, KVStoreCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many KVStores and returns the data saved in the database.
|
|
* @param {KVStoreCreateManyAndReturnArgs} args - Arguments to create many KVStores.
|
|
* @example
|
|
* // Create many KVStores
|
|
* const kVStore = await prisma.kVStore.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many KVStores and only return the `deviceId`
|
|
* const kVStoreWithDeviceIdOnly = await prisma.kVStore.createManyAndReturn({
|
|
* select: { deviceId: 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 KVStoreCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, KVStoreCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a KVStore.
|
|
* @param {KVStoreDeleteArgs} args - Arguments to delete one KVStore.
|
|
* @example
|
|
* // Delete one KVStore
|
|
* const KVStore = await prisma.kVStore.delete({
|
|
* where: {
|
|
* // ... filter to delete one KVStore
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends KVStoreDeleteArgs>(args: Prisma.SelectSubset<T, KVStoreDeleteArgs<ExtArgs>>): Prisma.Prisma__KVStoreClient<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one KVStore.
|
|
* @param {KVStoreUpdateArgs} args - Arguments to update one KVStore.
|
|
* @example
|
|
* // Update one KVStore
|
|
* const kVStore = await prisma.kVStore.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends KVStoreUpdateArgs>(args: Prisma.SelectSubset<T, KVStoreUpdateArgs<ExtArgs>>): Prisma.Prisma__KVStoreClient<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more KVStores.
|
|
* @param {KVStoreDeleteManyArgs} args - Arguments to filter KVStores to delete.
|
|
* @example
|
|
* // Delete a few KVStores
|
|
* const { count } = await prisma.kVStore.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends KVStoreDeleteManyArgs>(args?: Prisma.SelectSubset<T, KVStoreDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more KVStores.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KVStoreUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many KVStores
|
|
* const kVStore = await prisma.kVStore.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends KVStoreUpdateManyArgs>(args: Prisma.SelectSubset<T, KVStoreUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more KVStores and returns the data updated in the database.
|
|
* @param {KVStoreUpdateManyAndReturnArgs} args - Arguments to update many KVStores.
|
|
* @example
|
|
* // Update many KVStores
|
|
* const kVStore = await prisma.kVStore.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more KVStores and only return the `deviceId`
|
|
* const kVStoreWithDeviceIdOnly = await prisma.kVStore.updateManyAndReturn({
|
|
* select: { deviceId: 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 KVStoreUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, KVStoreUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one KVStore.
|
|
* @param {KVStoreUpsertArgs} args - Arguments to update or create a KVStore.
|
|
* @example
|
|
* // Update or create a KVStore
|
|
* const kVStore = await prisma.kVStore.upsert({
|
|
* create: {
|
|
* // ... data to create a KVStore
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the KVStore we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends KVStoreUpsertArgs>(args: Prisma.SelectSubset<T, KVStoreUpsertArgs<ExtArgs>>): Prisma.Prisma__KVStoreClient<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of KVStores.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KVStoreCountArgs} args - Arguments to filter KVStores to count.
|
|
* @example
|
|
* // Count the number of KVStores
|
|
* const count = await prisma.kVStore.count({
|
|
* where: {
|
|
* // ... the filter for the KVStores we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends KVStoreCountArgs>(
|
|
args?: Prisma.Subset<T, KVStoreCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], KVStoreCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a KVStore.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KVStoreAggregateArgs} 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 KVStoreAggregateArgs>(args: Prisma.Subset<T, KVStoreAggregateArgs>): Prisma.PrismaPromise<GetKVStoreAggregateType<T>>
|
|
|
|
/**
|
|
* Group by KVStore.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KVStoreGroupByArgs} 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 KVStoreGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: KVStoreGroupByArgs['orderBy'] }
|
|
: { orderBy?: KVStoreGroupByArgs['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, KVStoreGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKVStoreGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the KVStore model
|
|
*/
|
|
readonly fields: KVStoreFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for KVStore.
|
|
* 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__KVStoreClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
device<T extends Prisma.DeviceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DeviceDefaultArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<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 KVStore model
|
|
*/
|
|
export interface KVStoreFieldRefs {
|
|
readonly deviceId: Prisma.FieldRef<"KVStore", 'Int'>
|
|
readonly key: Prisma.FieldRef<"KVStore", 'String'>
|
|
readonly value: Prisma.FieldRef<"KVStore", 'Json'>
|
|
readonly creatorIp: Prisma.FieldRef<"KVStore", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"KVStore", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"KVStore", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* KVStore findUnique
|
|
*/
|
|
export type KVStoreFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which KVStore to fetch.
|
|
*/
|
|
where: Prisma.KVStoreWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KVStore findUniqueOrThrow
|
|
*/
|
|
export type KVStoreFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which KVStore to fetch.
|
|
*/
|
|
where: Prisma.KVStoreWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KVStore findFirst
|
|
*/
|
|
export type KVStoreFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which KVStore to fetch.
|
|
*/
|
|
where?: Prisma.KVStoreWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KVStores to fetch.
|
|
*/
|
|
orderBy?: Prisma.KVStoreOrderByWithRelationInput | Prisma.KVStoreOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for KVStores.
|
|
*/
|
|
cursor?: Prisma.KVStoreWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KVStores 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` KVStores.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KVStores.
|
|
*/
|
|
distinct?: Prisma.KVStoreScalarFieldEnum | Prisma.KVStoreScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KVStore findFirstOrThrow
|
|
*/
|
|
export type KVStoreFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which KVStore to fetch.
|
|
*/
|
|
where?: Prisma.KVStoreWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KVStores to fetch.
|
|
*/
|
|
orderBy?: Prisma.KVStoreOrderByWithRelationInput | Prisma.KVStoreOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for KVStores.
|
|
*/
|
|
cursor?: Prisma.KVStoreWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KVStores 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` KVStores.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KVStores.
|
|
*/
|
|
distinct?: Prisma.KVStoreScalarFieldEnum | Prisma.KVStoreScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KVStore findMany
|
|
*/
|
|
export type KVStoreFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which KVStores to fetch.
|
|
*/
|
|
where?: Prisma.KVStoreWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KVStores to fetch.
|
|
*/
|
|
orderBy?: Prisma.KVStoreOrderByWithRelationInput | Prisma.KVStoreOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing KVStores.
|
|
*/
|
|
cursor?: Prisma.KVStoreWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KVStores 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` KVStores.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.KVStoreScalarFieldEnum | Prisma.KVStoreScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KVStore create
|
|
*/
|
|
export type KVStoreCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a KVStore.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KVStoreCreateInput, Prisma.KVStoreUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* KVStore createMany
|
|
*/
|
|
export type KVStoreCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many KVStores.
|
|
*/
|
|
data: Prisma.KVStoreCreateManyInput | Prisma.KVStoreCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* KVStore createManyAndReturn
|
|
*/
|
|
export type KVStoreCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many KVStores.
|
|
*/
|
|
data: Prisma.KVStoreCreateManyInput | Prisma.KVStoreCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* KVStore update
|
|
*/
|
|
export type KVStoreUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a KVStore.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KVStoreUpdateInput, Prisma.KVStoreUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which KVStore to update.
|
|
*/
|
|
where: Prisma.KVStoreWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KVStore updateMany
|
|
*/
|
|
export type KVStoreUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update KVStores.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KVStoreUpdateManyMutationInput, Prisma.KVStoreUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which KVStores to update
|
|
*/
|
|
where?: Prisma.KVStoreWhereInput
|
|
/**
|
|
* Limit how many KVStores to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* KVStore updateManyAndReturn
|
|
*/
|
|
export type KVStoreUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update KVStores.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KVStoreUpdateManyMutationInput, Prisma.KVStoreUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which KVStores to update
|
|
*/
|
|
where?: Prisma.KVStoreWhereInput
|
|
/**
|
|
* Limit how many KVStores to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* KVStore upsert
|
|
*/
|
|
export type KVStoreUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the KVStore to update in case it exists.
|
|
*/
|
|
where: Prisma.KVStoreWhereUniqueInput
|
|
/**
|
|
* In case the KVStore found by the `where` argument doesn't exist, create a new KVStore with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.KVStoreCreateInput, Prisma.KVStoreUncheckedCreateInput>
|
|
/**
|
|
* In case the KVStore was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.KVStoreUpdateInput, Prisma.KVStoreUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* KVStore delete
|
|
*/
|
|
export type KVStoreDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which KVStore to delete.
|
|
*/
|
|
where: Prisma.KVStoreWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KVStore deleteMany
|
|
*/
|
|
export type KVStoreDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which KVStores to delete
|
|
*/
|
|
where?: Prisma.KVStoreWhereInput
|
|
/**
|
|
* Limit how many KVStores to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* KVStore without action
|
|
*/
|
|
export type KVStoreDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KVStore
|
|
*/
|
|
select?: Prisma.KVStoreSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KVStore
|
|
*/
|
|
omit?: Prisma.KVStoreOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KVStoreInclude<ExtArgs> | null
|
|
}
|