/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateKVStore]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type KVStoreGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof KVStoreGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 } 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 }, "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[] connectOrCreate?: Prisma.KVStoreCreateOrConnectWithoutDeviceInput | Prisma.KVStoreCreateOrConnectWithoutDeviceInput[] createMany?: Prisma.KVStoreCreateManyDeviceInputEnvelope connect?: Prisma.KVStoreWhereUniqueInput | Prisma.KVStoreWhereUniqueInput[] } export type KVStoreUncheckedCreateNestedManyWithoutDeviceInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type KVStoreCreateManyDeviceInputEnvelope = { data: Prisma.KVStoreCreateManyDeviceInput | Prisma.KVStoreCreateManyDeviceInput[] skipDuplicates?: boolean } export type KVStoreUpsertWithWhereUniqueWithoutDeviceInput = { where: Prisma.KVStoreWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type KVStoreUpdateWithWhereUniqueWithoutDeviceInput = { where: Prisma.KVStoreWhereUniqueInput data: Prisma.XOR } export type KVStoreUpdateManyWithWhereWithoutDeviceInput = { where: Prisma.KVStoreScalarWhereInput data: Prisma.XOR } 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 = runtime.Types.Extensions.GetSelect<{ deviceId?: boolean key?: boolean value?: boolean creatorIp?: boolean createdAt?: boolean updatedAt?: boolean device?: boolean | Prisma.DeviceDefaultArgs }, ExtArgs["result"]["kVStore"]> export type KVStoreSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ deviceId?: boolean key?: boolean value?: boolean creatorIp?: boolean createdAt?: boolean updatedAt?: boolean device?: boolean | Prisma.DeviceDefaultArgs }, ExtArgs["result"]["kVStore"]> export type KVStoreSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ deviceId?: boolean key?: boolean value?: boolean creatorIp?: boolean createdAt?: boolean updatedAt?: boolean device?: boolean | Prisma.DeviceDefaultArgs }, ExtArgs["result"]["kVStore"]> export type KVStoreSelectScalar = { deviceId?: boolean key?: boolean value?: boolean creatorIp?: boolean createdAt?: boolean updatedAt?: boolean } export type KVStoreOmit = runtime.Types.Extensions.GetOmit<"deviceId" | "key" | "value" | "creatorIp" | "createdAt" | "updatedAt", ExtArgs["result"]["kVStore"]> export type KVStoreInclude = { device?: boolean | Prisma.DeviceDefaultArgs } export type KVStoreIncludeCreateManyAndReturn = { device?: boolean | Prisma.DeviceDefaultArgs } export type KVStoreIncludeUpdateManyAndReturn = { device?: boolean | Prisma.DeviceDefaultArgs } export type $KVStorePayload = { name: "KVStore" objects: { device: Prisma.$DevicePayload } 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 = runtime.Types.Result.GetResult export type KVStoreCountArgs = Omit & { select?: KVStoreCountAggregateInputType | true } export interface KVStoreDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__KVStoreClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KVStoreClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__KVStoreClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__KVStoreClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KVStoreClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KVStoreClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KVStoreClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KVStoreClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: KVStoreGroupByArgs['orderBy'] } : { orderBy?: KVStoreGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetKVStoreGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" device = {}>(args?: Prisma.Subset>): Prisma.Prisma__DeviceClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * 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 = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | null /** * Filter, which KVStore to fetch. */ where: Prisma.KVStoreWhereUniqueInput } /** * KVStore findUniqueOrThrow */ export type KVStoreFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | null /** * Filter, which KVStore to fetch. */ where: Prisma.KVStoreWhereUniqueInput } /** * KVStore findFirst */ export type KVStoreFindFirstArgs = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | 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 = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | 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 = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | 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 = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | null /** * The data needed to create a KVStore. */ data: Prisma.XOR } /** * KVStore createMany */ export type KVStoreCreateManyArgs = { /** * The data used to create many KVStores. */ data: Prisma.KVStoreCreateManyInput | Prisma.KVStoreCreateManyInput[] skipDuplicates?: boolean } /** * KVStore createManyAndReturn */ export type KVStoreCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelectCreateManyAndReturn | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | 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 | null } /** * KVStore update */ export type KVStoreUpdateArgs = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | null /** * The data needed to update a KVStore. */ data: Prisma.XOR /** * Choose, which KVStore to update. */ where: Prisma.KVStoreWhereUniqueInput } /** * KVStore updateMany */ export type KVStoreUpdateManyArgs = { /** * The data used to update KVStores. */ data: Prisma.XOR /** * Filter which KVStores to update */ where?: Prisma.KVStoreWhereInput /** * Limit how many KVStores to update. */ limit?: number } /** * KVStore updateManyAndReturn */ export type KVStoreUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelectUpdateManyAndReturn | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * The data used to update KVStores. */ data: Prisma.XOR /** * 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 | null } /** * KVStore upsert */ export type KVStoreUpsertArgs = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | 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 /** * In case the KVStore was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * KVStore delete */ export type KVStoreDeleteArgs = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | null /** * Filter which KVStore to delete. */ where: Prisma.KVStoreWhereUniqueInput } /** * KVStore deleteMany */ export type KVStoreDeleteManyArgs = { /** * Filter which KVStores to delete */ where?: Prisma.KVStoreWhereInput /** * Limit how many KVStores to delete. */ limit?: number } /** * KVStore without action */ export type KVStoreDefaultArgs = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | null }