/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `LicenseKey` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model LicenseKey * */ export type LicenseKeyModel = runtime.Types.Result.DefaultSelection export type AggregateLicenseKey = { _count: LicenseKeyCountAggregateOutputType | null _min: LicenseKeyMinAggregateOutputType | null _max: LicenseKeyMaxAggregateOutputType | null } export type LicenseKeyMinAggregateOutputType = { id: string | null key: string | null active: boolean | null level: string | null userId: string | null } export type LicenseKeyMaxAggregateOutputType = { id: string | null key: string | null active: boolean | null level: string | null userId: string | null } export type LicenseKeyCountAggregateOutputType = { id: number key: number active: number level: number userId: number _all: number } export type LicenseKeyMinAggregateInputType = { id?: true key?: true active?: true level?: true userId?: true } export type LicenseKeyMaxAggregateInputType = { id?: true key?: true active?: true level?: true userId?: true } export type LicenseKeyCountAggregateInputType = { id?: true key?: true active?: true level?: true userId?: true _all?: true } export type LicenseKeyAggregateArgs = { /** * Filter which LicenseKey to aggregate. */ where?: Prisma.LicenseKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LicenseKeys to fetch. */ orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.LicenseKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LicenseKeys from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LicenseKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned LicenseKeys **/ _count?: true | LicenseKeyCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LicenseKeyMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LicenseKeyMaxAggregateInputType } export type GetLicenseKeyAggregateType = { [P in keyof T & keyof AggregateLicenseKey]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type LicenseKeyGroupByArgs = { where?: Prisma.LicenseKeyWhereInput orderBy?: Prisma.LicenseKeyOrderByWithAggregationInput | Prisma.LicenseKeyOrderByWithAggregationInput[] by: Prisma.LicenseKeyScalarFieldEnum[] | Prisma.LicenseKeyScalarFieldEnum having?: Prisma.LicenseKeyScalarWhereWithAggregatesInput take?: number skip?: number _count?: LicenseKeyCountAggregateInputType | true _min?: LicenseKeyMinAggregateInputType _max?: LicenseKeyMaxAggregateInputType } export type LicenseKeyGroupByOutputType = { id: string key: string active: boolean level: string userId: string _count: LicenseKeyCountAggregateOutputType | null _min: LicenseKeyMinAggregateOutputType | null _max: LicenseKeyMaxAggregateOutputType | null } export type GetLicenseKeyGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof LicenseKeyGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type LicenseKeyWhereInput = { AND?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[] OR?: Prisma.LicenseKeyWhereInput[] NOT?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[] id?: Prisma.StringFilter<"LicenseKey"> | string key?: Prisma.StringFilter<"LicenseKey"> | string active?: Prisma.BoolFilter<"LicenseKey"> | boolean level?: Prisma.StringFilter<"LicenseKey"> | string userId?: Prisma.StringFilter<"LicenseKey"> | string user?: Prisma.XOR } export type LicenseKeyOrderByWithRelationInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder active?: Prisma.SortOrder level?: Prisma.SortOrder userId?: Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput } export type LicenseKeyWhereUniqueInput = Prisma.AtLeast<{ id?: string key?: string AND?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[] OR?: Prisma.LicenseKeyWhereInput[] NOT?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[] active?: Prisma.BoolFilter<"LicenseKey"> | boolean level?: Prisma.StringFilter<"LicenseKey"> | string userId?: Prisma.StringFilter<"LicenseKey"> | string user?: Prisma.XOR }, "id" | "key"> export type LicenseKeyOrderByWithAggregationInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder active?: Prisma.SortOrder level?: Prisma.SortOrder userId?: Prisma.SortOrder _count?: Prisma.LicenseKeyCountOrderByAggregateInput _max?: Prisma.LicenseKeyMaxOrderByAggregateInput _min?: Prisma.LicenseKeyMinOrderByAggregateInput } export type LicenseKeyScalarWhereWithAggregatesInput = { AND?: Prisma.LicenseKeyScalarWhereWithAggregatesInput | Prisma.LicenseKeyScalarWhereWithAggregatesInput[] OR?: Prisma.LicenseKeyScalarWhereWithAggregatesInput[] NOT?: Prisma.LicenseKeyScalarWhereWithAggregatesInput | Prisma.LicenseKeyScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string key?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string active?: Prisma.BoolWithAggregatesFilter<"LicenseKey"> | boolean level?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string userId?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string } export type LicenseKeyCreateInput = { id?: string key: string active: boolean level: string user: Prisma.UserCreateNestedOneWithoutLicenseKeysInput } export type LicenseKeyUncheckedCreateInput = { id?: string key: string active: boolean level: string userId: string } export type LicenseKeyUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string active?: Prisma.BoolFieldUpdateOperationsInput | boolean level?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.UserUpdateOneRequiredWithoutLicenseKeysNestedInput } export type LicenseKeyUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string active?: Prisma.BoolFieldUpdateOperationsInput | boolean level?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type LicenseKeyCreateManyInput = { id?: string key: string active: boolean level: string userId: string } export type LicenseKeyUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string active?: Prisma.BoolFieldUpdateOperationsInput | boolean level?: Prisma.StringFieldUpdateOperationsInput | string } export type LicenseKeyUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string active?: Prisma.BoolFieldUpdateOperationsInput | boolean level?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type LicenseKeyListRelationFilter = { every?: Prisma.LicenseKeyWhereInput some?: Prisma.LicenseKeyWhereInput none?: Prisma.LicenseKeyWhereInput } export type LicenseKeyOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type LicenseKeyCountOrderByAggregateInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder active?: Prisma.SortOrder level?: Prisma.SortOrder userId?: Prisma.SortOrder } export type LicenseKeyMaxOrderByAggregateInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder active?: Prisma.SortOrder level?: Prisma.SortOrder userId?: Prisma.SortOrder } export type LicenseKeyMinOrderByAggregateInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder active?: Prisma.SortOrder level?: Prisma.SortOrder userId?: Prisma.SortOrder } export type LicenseKeyCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.LicenseKeyCreateWithoutUserInput[] | Prisma.LicenseKeyUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.LicenseKeyCreateOrConnectWithoutUserInput | Prisma.LicenseKeyCreateOrConnectWithoutUserInput[] createMany?: Prisma.LicenseKeyCreateManyUserInputEnvelope connect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] } export type LicenseKeyUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.LicenseKeyCreateWithoutUserInput[] | Prisma.LicenseKeyUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.LicenseKeyCreateOrConnectWithoutUserInput | Prisma.LicenseKeyCreateOrConnectWithoutUserInput[] createMany?: Prisma.LicenseKeyCreateManyUserInputEnvelope connect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] } export type LicenseKeyUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.LicenseKeyCreateWithoutUserInput[] | Prisma.LicenseKeyUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.LicenseKeyCreateOrConnectWithoutUserInput | Prisma.LicenseKeyCreateOrConnectWithoutUserInput[] upsert?: Prisma.LicenseKeyUpsertWithWhereUniqueWithoutUserInput | Prisma.LicenseKeyUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.LicenseKeyCreateManyUserInputEnvelope set?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] disconnect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] delete?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] connect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] update?: Prisma.LicenseKeyUpdateWithWhereUniqueWithoutUserInput | Prisma.LicenseKeyUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.LicenseKeyUpdateManyWithWhereWithoutUserInput | Prisma.LicenseKeyUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.LicenseKeyScalarWhereInput | Prisma.LicenseKeyScalarWhereInput[] } export type LicenseKeyUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.LicenseKeyCreateWithoutUserInput[] | Prisma.LicenseKeyUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.LicenseKeyCreateOrConnectWithoutUserInput | Prisma.LicenseKeyCreateOrConnectWithoutUserInput[] upsert?: Prisma.LicenseKeyUpsertWithWhereUniqueWithoutUserInput | Prisma.LicenseKeyUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.LicenseKeyCreateManyUserInputEnvelope set?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] disconnect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] delete?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] connect?: Prisma.LicenseKeyWhereUniqueInput | Prisma.LicenseKeyWhereUniqueInput[] update?: Prisma.LicenseKeyUpdateWithWhereUniqueWithoutUserInput | Prisma.LicenseKeyUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.LicenseKeyUpdateManyWithWhereWithoutUserInput | Prisma.LicenseKeyUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.LicenseKeyScalarWhereInput | Prisma.LicenseKeyScalarWhereInput[] } export type LicenseKeyCreateWithoutUserInput = { id?: string key: string active: boolean level: string } export type LicenseKeyUncheckedCreateWithoutUserInput = { id?: string key: string active: boolean level: string } export type LicenseKeyCreateOrConnectWithoutUserInput = { where: Prisma.LicenseKeyWhereUniqueInput create: Prisma.XOR } export type LicenseKeyCreateManyUserInputEnvelope = { data: Prisma.LicenseKeyCreateManyUserInput | Prisma.LicenseKeyCreateManyUserInput[] skipDuplicates?: boolean } export type LicenseKeyUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.LicenseKeyWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type LicenseKeyUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.LicenseKeyWhereUniqueInput data: Prisma.XOR } export type LicenseKeyUpdateManyWithWhereWithoutUserInput = { where: Prisma.LicenseKeyScalarWhereInput data: Prisma.XOR } export type LicenseKeyScalarWhereInput = { AND?: Prisma.LicenseKeyScalarWhereInput | Prisma.LicenseKeyScalarWhereInput[] OR?: Prisma.LicenseKeyScalarWhereInput[] NOT?: Prisma.LicenseKeyScalarWhereInput | Prisma.LicenseKeyScalarWhereInput[] id?: Prisma.StringFilter<"LicenseKey"> | string key?: Prisma.StringFilter<"LicenseKey"> | string active?: Prisma.BoolFilter<"LicenseKey"> | boolean level?: Prisma.StringFilter<"LicenseKey"> | string userId?: Prisma.StringFilter<"LicenseKey"> | string } export type LicenseKeyCreateManyUserInput = { id?: string key: string active: boolean level: string } export type LicenseKeyUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string active?: Prisma.BoolFieldUpdateOperationsInput | boolean level?: Prisma.StringFieldUpdateOperationsInput | string } export type LicenseKeyUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string active?: Prisma.BoolFieldUpdateOperationsInput | boolean level?: Prisma.StringFieldUpdateOperationsInput | string } export type LicenseKeyUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string active?: Prisma.BoolFieldUpdateOperationsInput | boolean level?: Prisma.StringFieldUpdateOperationsInput | string } export type LicenseKeySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean key?: boolean active?: boolean level?: boolean userId?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["licenseKey"]> export type LicenseKeySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean key?: boolean active?: boolean level?: boolean userId?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["licenseKey"]> export type LicenseKeySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean key?: boolean active?: boolean level?: boolean userId?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["licenseKey"]> export type LicenseKeySelectScalar = { id?: boolean key?: boolean active?: boolean level?: boolean userId?: boolean } export type LicenseKeyOmit = runtime.Types.Extensions.GetOmit<"id" | "key" | "active" | "level" | "userId", ExtArgs["result"]["licenseKey"]> export type LicenseKeyInclude = { user?: boolean | Prisma.UserDefaultArgs } export type LicenseKeyIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type LicenseKeyIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type $LicenseKeyPayload = { name: "LicenseKey" objects: { user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string key: string active: boolean level: string userId: string }, ExtArgs["result"]["licenseKey"]> composites: {} } export type LicenseKeyGetPayload = runtime.Types.Result.GetResult export type LicenseKeyCountArgs = Omit & { select?: LicenseKeyCountAggregateInputType | true } export interface LicenseKeyDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['LicenseKey'], meta: { name: 'LicenseKey' } } /** * Find zero or one LicenseKey that matches the filter. * @param {LicenseKeyFindUniqueArgs} args - Arguments to find a LicenseKey * @example * // Get one LicenseKey * const licenseKey = await prisma.licenseKey.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__LicenseKeyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one LicenseKey that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LicenseKeyFindUniqueOrThrowArgs} args - Arguments to find a LicenseKey * @example * // Get one LicenseKey * const licenseKey = await prisma.licenseKey.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__LicenseKeyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first LicenseKey that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseKeyFindFirstArgs} args - Arguments to find a LicenseKey * @example * // Get one LicenseKey * const licenseKey = await prisma.licenseKey.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__LicenseKeyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first LicenseKey that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseKeyFindFirstOrThrowArgs} args - Arguments to find a LicenseKey * @example * // Get one LicenseKey * const licenseKey = await prisma.licenseKey.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__LicenseKeyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more LicenseKeys that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseKeyFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all LicenseKeys * const licenseKeys = await prisma.licenseKey.findMany() * * // Get first 10 LicenseKeys * const licenseKeys = await prisma.licenseKey.findMany({ take: 10 }) * * // Only select the `id` * const licenseKeyWithIdOnly = await prisma.licenseKey.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a LicenseKey. * @param {LicenseKeyCreateArgs} args - Arguments to create a LicenseKey. * @example * // Create one LicenseKey * const LicenseKey = await prisma.licenseKey.create({ * data: { * // ... data to create a LicenseKey * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__LicenseKeyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many LicenseKeys. * @param {LicenseKeyCreateManyArgs} args - Arguments to create many LicenseKeys. * @example * // Create many LicenseKeys * const licenseKey = await prisma.licenseKey.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many LicenseKeys and returns the data saved in the database. * @param {LicenseKeyCreateManyAndReturnArgs} args - Arguments to create many LicenseKeys. * @example * // Create many LicenseKeys * const licenseKey = await prisma.licenseKey.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many LicenseKeys and only return the `id` * const licenseKeyWithIdOnly = await prisma.licenseKey.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a LicenseKey. * @param {LicenseKeyDeleteArgs} args - Arguments to delete one LicenseKey. * @example * // Delete one LicenseKey * const LicenseKey = await prisma.licenseKey.delete({ * where: { * // ... filter to delete one LicenseKey * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__LicenseKeyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one LicenseKey. * @param {LicenseKeyUpdateArgs} args - Arguments to update one LicenseKey. * @example * // Update one LicenseKey * const licenseKey = await prisma.licenseKey.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__LicenseKeyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more LicenseKeys. * @param {LicenseKeyDeleteManyArgs} args - Arguments to filter LicenseKeys to delete. * @example * // Delete a few LicenseKeys * const { count } = await prisma.licenseKey.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LicenseKeys. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseKeyUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many LicenseKeys * const licenseKey = await prisma.licenseKey.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LicenseKeys and returns the data updated in the database. * @param {LicenseKeyUpdateManyAndReturnArgs} args - Arguments to update many LicenseKeys. * @example * // Update many LicenseKeys * const licenseKey = await prisma.licenseKey.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more LicenseKeys and only return the `id` * const licenseKeyWithIdOnly = await prisma.licenseKey.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one LicenseKey. * @param {LicenseKeyUpsertArgs} args - Arguments to update or create a LicenseKey. * @example * // Update or create a LicenseKey * const licenseKey = await prisma.licenseKey.upsert({ * create: { * // ... data to create a LicenseKey * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the LicenseKey we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__LicenseKeyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of LicenseKeys. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseKeyCountArgs} args - Arguments to filter LicenseKeys to count. * @example * // Count the number of LicenseKeys * const count = await prisma.licenseKey.count({ * where: { * // ... the filter for the LicenseKeys we want to count * } * }) **/ count( 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 LicenseKey. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseKeyAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by LicenseKey. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LicenseKeyGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends LicenseKeyGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: LicenseKeyGroupByArgs['orderBy'] } : { orderBy?: LicenseKeyGroupByArgs['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 ? GetLicenseKeyGroupByPayload : Prisma.PrismaPromise /** * Fields of the LicenseKey model */ readonly fields: LicenseKeyFieldRefs; } /** * The delegate class that acts as a "Promise-like" for LicenseKey. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__LicenseKeyClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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 LicenseKey model */ export interface LicenseKeyFieldRefs { readonly id: Prisma.FieldRef<"LicenseKey", 'String'> readonly key: Prisma.FieldRef<"LicenseKey", 'String'> readonly active: Prisma.FieldRef<"LicenseKey", 'Boolean'> readonly level: Prisma.FieldRef<"LicenseKey", 'String'> readonly userId: Prisma.FieldRef<"LicenseKey", 'String'> } // Custom InputTypes /** * LicenseKey findUnique */ export type LicenseKeyFindUniqueArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null /** * Filter, which LicenseKey to fetch. */ where: Prisma.LicenseKeyWhereUniqueInput } /** * LicenseKey findUniqueOrThrow */ export type LicenseKeyFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null /** * Filter, which LicenseKey to fetch. */ where: Prisma.LicenseKeyWhereUniqueInput } /** * LicenseKey findFirst */ export type LicenseKeyFindFirstArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null /** * Filter, which LicenseKey to fetch. */ where?: Prisma.LicenseKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LicenseKeys to fetch. */ orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LicenseKeys. */ cursor?: Prisma.LicenseKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LicenseKeys from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LicenseKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LicenseKeys. */ distinct?: Prisma.LicenseKeyScalarFieldEnum | Prisma.LicenseKeyScalarFieldEnum[] } /** * LicenseKey findFirstOrThrow */ export type LicenseKeyFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null /** * Filter, which LicenseKey to fetch. */ where?: Prisma.LicenseKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LicenseKeys to fetch. */ orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LicenseKeys. */ cursor?: Prisma.LicenseKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LicenseKeys from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LicenseKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LicenseKeys. */ distinct?: Prisma.LicenseKeyScalarFieldEnum | Prisma.LicenseKeyScalarFieldEnum[] } /** * LicenseKey findMany */ export type LicenseKeyFindManyArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null /** * Filter, which LicenseKeys to fetch. */ where?: Prisma.LicenseKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LicenseKeys to fetch. */ orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing LicenseKeys. */ cursor?: Prisma.LicenseKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LicenseKeys from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LicenseKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LicenseKeys. */ distinct?: Prisma.LicenseKeyScalarFieldEnum | Prisma.LicenseKeyScalarFieldEnum[] } /** * LicenseKey create */ export type LicenseKeyCreateArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null /** * The data needed to create a LicenseKey. */ data: Prisma.XOR } /** * LicenseKey createMany */ export type LicenseKeyCreateManyArgs = { /** * The data used to create many LicenseKeys. */ data: Prisma.LicenseKeyCreateManyInput | Prisma.LicenseKeyCreateManyInput[] skipDuplicates?: boolean } /** * LicenseKey createManyAndReturn */ export type LicenseKeyCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelectCreateManyAndReturn | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * The data used to create many LicenseKeys. */ data: Prisma.LicenseKeyCreateManyInput | Prisma.LicenseKeyCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyIncludeCreateManyAndReturn | null } /** * LicenseKey update */ export type LicenseKeyUpdateArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null /** * The data needed to update a LicenseKey. */ data: Prisma.XOR /** * Choose, which LicenseKey to update. */ where: Prisma.LicenseKeyWhereUniqueInput } /** * LicenseKey updateMany */ export type LicenseKeyUpdateManyArgs = { /** * The data used to update LicenseKeys. */ data: Prisma.XOR /** * Filter which LicenseKeys to update */ where?: Prisma.LicenseKeyWhereInput /** * Limit how many LicenseKeys to update. */ limit?: number } /** * LicenseKey updateManyAndReturn */ export type LicenseKeyUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelectUpdateManyAndReturn | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * The data used to update LicenseKeys. */ data: Prisma.XOR /** * Filter which LicenseKeys to update */ where?: Prisma.LicenseKeyWhereInput /** * Limit how many LicenseKeys to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyIncludeUpdateManyAndReturn | null } /** * LicenseKey upsert */ export type LicenseKeyUpsertArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null /** * The filter to search for the LicenseKey to update in case it exists. */ where: Prisma.LicenseKeyWhereUniqueInput /** * In case the LicenseKey found by the `where` argument doesn't exist, create a new LicenseKey with this data. */ create: Prisma.XOR /** * In case the LicenseKey was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * LicenseKey delete */ export type LicenseKeyDeleteArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null /** * Filter which LicenseKey to delete. */ where: Prisma.LicenseKeyWhereUniqueInput } /** * LicenseKey deleteMany */ export type LicenseKeyDeleteManyArgs = { /** * Filter which LicenseKeys to delete */ where?: Prisma.LicenseKeyWhereInput /** * Limit how many LicenseKeys to delete. */ limit?: number } /** * LicenseKey without action */ export type LicenseKeyDefaultArgs = { /** * Select specific fields to fetch from the LicenseKey */ select?: Prisma.LicenseKeySelect | null /** * Omit specific fields from the LicenseKey */ omit?: Prisma.LicenseKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LicenseKeyInclude | null }