/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Channel` 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 Channel * */ export type ChannelModel = runtime.Types.Result.DefaultSelection export type AggregateChannel = { _count: ChannelCountAggregateOutputType | null _avg: ChannelAvgAggregateOutputType | null _sum: ChannelSumAggregateOutputType | null _min: ChannelMinAggregateOutputType | null _max: ChannelMaxAggregateOutputType | null } export type ChannelAvgAggregateOutputType = { maxClients: number | null } export type ChannelSumAggregateOutputType = { maxClients: number | null } export type ChannelMinAggregateOutputType = { id: string | null name: string | null maxClients: number | null persistent: boolean | null owner_id: string | null } export type ChannelMaxAggregateOutputType = { id: string | null name: string | null maxClients: number | null persistent: boolean | null owner_id: string | null } export type ChannelCountAggregateOutputType = { id: number name: number maxClients: number persistent: number owner_id: number _all: number } export type ChannelAvgAggregateInputType = { maxClients?: true } export type ChannelSumAggregateInputType = { maxClients?: true } export type ChannelMinAggregateInputType = { id?: true name?: true maxClients?: true persistent?: true owner_id?: true } export type ChannelMaxAggregateInputType = { id?: true name?: true maxClients?: true persistent?: true owner_id?: true } export type ChannelCountAggregateInputType = { id?: true name?: true maxClients?: true persistent?: true owner_id?: true _all?: true } export type ChannelAggregateArgs = { /** * Filter which Channel to aggregate. */ where?: Prisma.ChannelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Channels to fetch. */ orderBy?: Prisma.ChannelOrderByWithRelationInput | Prisma.ChannelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ChannelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Channels 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` Channels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Channels **/ _count?: true | ChannelCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ChannelAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ChannelSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ChannelMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ChannelMaxAggregateInputType } export type GetChannelAggregateType = { [P in keyof T & keyof AggregateChannel]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ChannelGroupByArgs = { where?: Prisma.ChannelWhereInput orderBy?: Prisma.ChannelOrderByWithAggregationInput | Prisma.ChannelOrderByWithAggregationInput[] by: Prisma.ChannelScalarFieldEnum[] | Prisma.ChannelScalarFieldEnum having?: Prisma.ChannelScalarWhereWithAggregatesInput take?: number skip?: number _count?: ChannelCountAggregateInputType | true _avg?: ChannelAvgAggregateInputType _sum?: ChannelSumAggregateInputType _min?: ChannelMinAggregateInputType _max?: ChannelMaxAggregateInputType } export type ChannelGroupByOutputType = { id: string name: string maxClients: number | null persistent: boolean owner_id: string | null _count: ChannelCountAggregateOutputType | null _avg: ChannelAvgAggregateOutputType | null _sum: ChannelSumAggregateOutputType | null _min: ChannelMinAggregateOutputType | null _max: ChannelMaxAggregateOutputType | null } type GetChannelGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ChannelGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ChannelWhereInput = { AND?: Prisma.ChannelWhereInput | Prisma.ChannelWhereInput[] OR?: Prisma.ChannelWhereInput[] NOT?: Prisma.ChannelWhereInput | Prisma.ChannelWhereInput[] id?: Prisma.StringFilter<"Channel"> | string name?: Prisma.StringFilter<"Channel"> | string maxClients?: Prisma.IntNullableFilter<"Channel"> | number | null persistent?: Prisma.BoolFilter<"Channel"> | boolean owner_id?: Prisma.StringNullableFilter<"Channel"> | string | null owner?: Prisma.XOR | null } export type ChannelOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder maxClients?: Prisma.SortOrderInput | Prisma.SortOrder persistent?: Prisma.SortOrder owner_id?: Prisma.SortOrderInput | Prisma.SortOrder owner?: Prisma.UserOrderByWithRelationInput } export type ChannelWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.ChannelWhereInput | Prisma.ChannelWhereInput[] OR?: Prisma.ChannelWhereInput[] NOT?: Prisma.ChannelWhereInput | Prisma.ChannelWhereInput[] name?: Prisma.StringFilter<"Channel"> | string maxClients?: Prisma.IntNullableFilter<"Channel"> | number | null persistent?: Prisma.BoolFilter<"Channel"> | boolean owner_id?: Prisma.StringNullableFilter<"Channel"> | string | null owner?: Prisma.XOR | null }, "id"> export type ChannelOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder maxClients?: Prisma.SortOrderInput | Prisma.SortOrder persistent?: Prisma.SortOrder owner_id?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.ChannelCountOrderByAggregateInput _avg?: Prisma.ChannelAvgOrderByAggregateInput _max?: Prisma.ChannelMaxOrderByAggregateInput _min?: Prisma.ChannelMinOrderByAggregateInput _sum?: Prisma.ChannelSumOrderByAggregateInput } export type ChannelScalarWhereWithAggregatesInput = { AND?: Prisma.ChannelScalarWhereWithAggregatesInput | Prisma.ChannelScalarWhereWithAggregatesInput[] OR?: Prisma.ChannelScalarWhereWithAggregatesInput[] NOT?: Prisma.ChannelScalarWhereWithAggregatesInput | Prisma.ChannelScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Channel"> | string name?: Prisma.StringWithAggregatesFilter<"Channel"> | string maxClients?: Prisma.IntNullableWithAggregatesFilter<"Channel"> | number | null persistent?: Prisma.BoolWithAggregatesFilter<"Channel"> | boolean owner_id?: Prisma.StringNullableWithAggregatesFilter<"Channel"> | string | null } export type ChannelCreateInput = { id?: string name: string maxClients?: number | null persistent?: boolean owner?: Prisma.UserCreateNestedOneWithoutChannelsInput } export type ChannelUncheckedCreateInput = { id?: string name: string maxClients?: number | null persistent?: boolean owner_id?: string | null } export type ChannelUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string maxClients?: Prisma.NullableIntFieldUpdateOperationsInput | number | null persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean owner?: Prisma.UserUpdateOneWithoutChannelsNestedInput } export type ChannelUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string maxClients?: Prisma.NullableIntFieldUpdateOperationsInput | number | null persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean owner_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ChannelCreateManyInput = { id?: string name: string maxClients?: number | null persistent?: boolean owner_id?: string | null } export type ChannelUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string maxClients?: Prisma.NullableIntFieldUpdateOperationsInput | number | null persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type ChannelUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string maxClients?: Prisma.NullableIntFieldUpdateOperationsInput | number | null persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean owner_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ChannelListRelationFilter = { every?: Prisma.ChannelWhereInput some?: Prisma.ChannelWhereInput none?: Prisma.ChannelWhereInput } export type ChannelOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type ChannelCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder maxClients?: Prisma.SortOrder persistent?: Prisma.SortOrder owner_id?: Prisma.SortOrder } export type ChannelAvgOrderByAggregateInput = { maxClients?: Prisma.SortOrder } export type ChannelMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder maxClients?: Prisma.SortOrder persistent?: Prisma.SortOrder owner_id?: Prisma.SortOrder } export type ChannelMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder maxClients?: Prisma.SortOrder persistent?: Prisma.SortOrder owner_id?: Prisma.SortOrder } export type ChannelSumOrderByAggregateInput = { maxClients?: Prisma.SortOrder } export type ChannelCreateNestedManyWithoutOwnerInput = { create?: Prisma.XOR | Prisma.ChannelCreateWithoutOwnerInput[] | Prisma.ChannelUncheckedCreateWithoutOwnerInput[] connectOrCreate?: Prisma.ChannelCreateOrConnectWithoutOwnerInput | Prisma.ChannelCreateOrConnectWithoutOwnerInput[] createMany?: Prisma.ChannelCreateManyOwnerInputEnvelope connect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] } export type ChannelUncheckedCreateNestedManyWithoutOwnerInput = { create?: Prisma.XOR | Prisma.ChannelCreateWithoutOwnerInput[] | Prisma.ChannelUncheckedCreateWithoutOwnerInput[] connectOrCreate?: Prisma.ChannelCreateOrConnectWithoutOwnerInput | Prisma.ChannelCreateOrConnectWithoutOwnerInput[] createMany?: Prisma.ChannelCreateManyOwnerInputEnvelope connect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] } export type ChannelUpdateManyWithoutOwnerNestedInput = { create?: Prisma.XOR | Prisma.ChannelCreateWithoutOwnerInput[] | Prisma.ChannelUncheckedCreateWithoutOwnerInput[] connectOrCreate?: Prisma.ChannelCreateOrConnectWithoutOwnerInput | Prisma.ChannelCreateOrConnectWithoutOwnerInput[] upsert?: Prisma.ChannelUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ChannelUpsertWithWhereUniqueWithoutOwnerInput[] createMany?: Prisma.ChannelCreateManyOwnerInputEnvelope set?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] disconnect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] delete?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] connect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] update?: Prisma.ChannelUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ChannelUpdateWithWhereUniqueWithoutOwnerInput[] updateMany?: Prisma.ChannelUpdateManyWithWhereWithoutOwnerInput | Prisma.ChannelUpdateManyWithWhereWithoutOwnerInput[] deleteMany?: Prisma.ChannelScalarWhereInput | Prisma.ChannelScalarWhereInput[] } export type ChannelUncheckedUpdateManyWithoutOwnerNestedInput = { create?: Prisma.XOR | Prisma.ChannelCreateWithoutOwnerInput[] | Prisma.ChannelUncheckedCreateWithoutOwnerInput[] connectOrCreate?: Prisma.ChannelCreateOrConnectWithoutOwnerInput | Prisma.ChannelCreateOrConnectWithoutOwnerInput[] upsert?: Prisma.ChannelUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ChannelUpsertWithWhereUniqueWithoutOwnerInput[] createMany?: Prisma.ChannelCreateManyOwnerInputEnvelope set?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] disconnect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] delete?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] connect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[] update?: Prisma.ChannelUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ChannelUpdateWithWhereUniqueWithoutOwnerInput[] updateMany?: Prisma.ChannelUpdateManyWithWhereWithoutOwnerInput | Prisma.ChannelUpdateManyWithWhereWithoutOwnerInput[] deleteMany?: Prisma.ChannelScalarWhereInput | Prisma.ChannelScalarWhereInput[] } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type ChannelCreateWithoutOwnerInput = { id?: string name: string maxClients?: number | null persistent?: boolean } export type ChannelUncheckedCreateWithoutOwnerInput = { id?: string name: string maxClients?: number | null persistent?: boolean } export type ChannelCreateOrConnectWithoutOwnerInput = { where: Prisma.ChannelWhereUniqueInput create: Prisma.XOR } export type ChannelCreateManyOwnerInputEnvelope = { data: Prisma.ChannelCreateManyOwnerInput | Prisma.ChannelCreateManyOwnerInput[] } export type ChannelUpsertWithWhereUniqueWithoutOwnerInput = { where: Prisma.ChannelWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ChannelUpdateWithWhereUniqueWithoutOwnerInput = { where: Prisma.ChannelWhereUniqueInput data: Prisma.XOR } export type ChannelUpdateManyWithWhereWithoutOwnerInput = { where: Prisma.ChannelScalarWhereInput data: Prisma.XOR } export type ChannelScalarWhereInput = { AND?: Prisma.ChannelScalarWhereInput | Prisma.ChannelScalarWhereInput[] OR?: Prisma.ChannelScalarWhereInput[] NOT?: Prisma.ChannelScalarWhereInput | Prisma.ChannelScalarWhereInput[] id?: Prisma.StringFilter<"Channel"> | string name?: Prisma.StringFilter<"Channel"> | string maxClients?: Prisma.IntNullableFilter<"Channel"> | number | null persistent?: Prisma.BoolFilter<"Channel"> | boolean owner_id?: Prisma.StringNullableFilter<"Channel"> | string | null } export type ChannelCreateManyOwnerInput = { id?: string name: string maxClients?: number | null persistent?: boolean } export type ChannelUpdateWithoutOwnerInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string maxClients?: Prisma.NullableIntFieldUpdateOperationsInput | number | null persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type ChannelUncheckedUpdateWithoutOwnerInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string maxClients?: Prisma.NullableIntFieldUpdateOperationsInput | number | null persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type ChannelUncheckedUpdateManyWithoutOwnerInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string maxClients?: Prisma.NullableIntFieldUpdateOperationsInput | number | null persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type ChannelSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean maxClients?: boolean persistent?: boolean owner_id?: boolean owner?: boolean | Prisma.Channel$ownerArgs }, ExtArgs["result"]["channel"]> export type ChannelSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean maxClients?: boolean persistent?: boolean owner_id?: boolean owner?: boolean | Prisma.Channel$ownerArgs }, ExtArgs["result"]["channel"]> export type ChannelSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean maxClients?: boolean persistent?: boolean owner_id?: boolean owner?: boolean | Prisma.Channel$ownerArgs }, ExtArgs["result"]["channel"]> export type ChannelSelectScalar = { id?: boolean name?: boolean maxClients?: boolean persistent?: boolean owner_id?: boolean } export type ChannelOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "maxClients" | "persistent" | "owner_id", ExtArgs["result"]["channel"]> export type ChannelInclude = { owner?: boolean | Prisma.Channel$ownerArgs } export type ChannelIncludeCreateManyAndReturn = { owner?: boolean | Prisma.Channel$ownerArgs } export type ChannelIncludeUpdateManyAndReturn = { owner?: boolean | Prisma.Channel$ownerArgs } export type $ChannelPayload = { name: "Channel" objects: { owner: Prisma.$UserPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string maxClients: number | null persistent: boolean owner_id: string | null }, ExtArgs["result"]["channel"]> composites: {} } export type ChannelGetPayload = runtime.Types.Result.GetResult export type ChannelCountArgs = Omit & { select?: ChannelCountAggregateInputType | true } export interface ChannelDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Channel'], meta: { name: 'Channel' } } /** * Find zero or one Channel that matches the filter. * @param {ChannelFindUniqueArgs} args - Arguments to find a Channel * @example * // Get one Channel * const channel = await prisma.channel.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ChannelClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Channel that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ChannelFindUniqueOrThrowArgs} args - Arguments to find a Channel * @example * // Get one Channel * const channel = await prisma.channel.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ChannelClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Channel 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 {ChannelFindFirstArgs} args - Arguments to find a Channel * @example * // Get one Channel * const channel = await prisma.channel.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ChannelClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Channel 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 {ChannelFindFirstOrThrowArgs} args - Arguments to find a Channel * @example * // Get one Channel * const channel = await prisma.channel.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ChannelClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Channels 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 {ChannelFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Channels * const channels = await prisma.channel.findMany() * * // Get first 10 Channels * const channels = await prisma.channel.findMany({ take: 10 }) * * // Only select the `id` * const channelWithIdOnly = await prisma.channel.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Channel. * @param {ChannelCreateArgs} args - Arguments to create a Channel. * @example * // Create one Channel * const Channel = await prisma.channel.create({ * data: { * // ... data to create a Channel * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ChannelClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Channels. * @param {ChannelCreateManyArgs} args - Arguments to create many Channels. * @example * // Create many Channels * const channel = await prisma.channel.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Channels and returns the data saved in the database. * @param {ChannelCreateManyAndReturnArgs} args - Arguments to create many Channels. * @example * // Create many Channels * const channel = await prisma.channel.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Channels and only return the `id` * const channelWithIdOnly = await prisma.channel.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 Channel. * @param {ChannelDeleteArgs} args - Arguments to delete one Channel. * @example * // Delete one Channel * const Channel = await prisma.channel.delete({ * where: { * // ... filter to delete one Channel * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ChannelClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Channel. * @param {ChannelUpdateArgs} args - Arguments to update one Channel. * @example * // Update one Channel * const channel = await prisma.channel.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ChannelClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Channels. * @param {ChannelDeleteManyArgs} args - Arguments to filter Channels to delete. * @example * // Delete a few Channels * const { count } = await prisma.channel.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Channels. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChannelUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Channels * const channel = await prisma.channel.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Channels and returns the data updated in the database. * @param {ChannelUpdateManyAndReturnArgs} args - Arguments to update many Channels. * @example * // Update many Channels * const channel = await prisma.channel.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Channels and only return the `id` * const channelWithIdOnly = await prisma.channel.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 Channel. * @param {ChannelUpsertArgs} args - Arguments to update or create a Channel. * @example * // Update or create a Channel * const channel = await prisma.channel.upsert({ * create: { * // ... data to create a Channel * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Channel we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ChannelClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Channels. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChannelCountArgs} args - Arguments to filter Channels to count. * @example * // Count the number of Channels * const count = await prisma.channel.count({ * where: { * // ... the filter for the Channels 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 Channel. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChannelAggregateArgs} 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 Channel. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChannelGroupByArgs} 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 ChannelGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ChannelGroupByArgs['orderBy'] } : { orderBy?: ChannelGroupByArgs['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 ? GetChannelGroupByPayload : Prisma.PrismaPromise /** * Fields of the Channel model */ readonly fields: ChannelFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Channel. * 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__ChannelClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" owner = {}>(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 Channel model */ export interface ChannelFieldRefs { readonly id: Prisma.FieldRef<"Channel", 'String'> readonly name: Prisma.FieldRef<"Channel", 'String'> readonly maxClients: Prisma.FieldRef<"Channel", 'Int'> readonly persistent: Prisma.FieldRef<"Channel", 'Boolean'> readonly owner_id: Prisma.FieldRef<"Channel", 'String'> } // Custom InputTypes /** * Channel findUnique */ export type ChannelFindUniqueArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null /** * Filter, which Channel to fetch. */ where: Prisma.ChannelWhereUniqueInput } /** * Channel findUniqueOrThrow */ export type ChannelFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null /** * Filter, which Channel to fetch. */ where: Prisma.ChannelWhereUniqueInput } /** * Channel findFirst */ export type ChannelFindFirstArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null /** * Filter, which Channel to fetch. */ where?: Prisma.ChannelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Channels to fetch. */ orderBy?: Prisma.ChannelOrderByWithRelationInput | Prisma.ChannelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Channels. */ cursor?: Prisma.ChannelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Channels 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` Channels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Channels. */ distinct?: Prisma.ChannelScalarFieldEnum | Prisma.ChannelScalarFieldEnum[] } /** * Channel findFirstOrThrow */ export type ChannelFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null /** * Filter, which Channel to fetch. */ where?: Prisma.ChannelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Channels to fetch. */ orderBy?: Prisma.ChannelOrderByWithRelationInput | Prisma.ChannelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Channels. */ cursor?: Prisma.ChannelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Channels 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` Channels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Channels. */ distinct?: Prisma.ChannelScalarFieldEnum | Prisma.ChannelScalarFieldEnum[] } /** * Channel findMany */ export type ChannelFindManyArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null /** * Filter, which Channels to fetch. */ where?: Prisma.ChannelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Channels to fetch. */ orderBy?: Prisma.ChannelOrderByWithRelationInput | Prisma.ChannelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Channels. */ cursor?: Prisma.ChannelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Channels 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` Channels. */ skip?: number distinct?: Prisma.ChannelScalarFieldEnum | Prisma.ChannelScalarFieldEnum[] } /** * Channel create */ export type ChannelCreateArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null /** * The data needed to create a Channel. */ data: Prisma.XOR } /** * Channel createMany */ export type ChannelCreateManyArgs = { /** * The data used to create many Channels. */ data: Prisma.ChannelCreateManyInput | Prisma.ChannelCreateManyInput[] } /** * Channel createManyAndReturn */ export type ChannelCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelectCreateManyAndReturn | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * The data used to create many Channels. */ data: Prisma.ChannelCreateManyInput | Prisma.ChannelCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelIncludeCreateManyAndReturn | null } /** * Channel update */ export type ChannelUpdateArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null /** * The data needed to update a Channel. */ data: Prisma.XOR /** * Choose, which Channel to update. */ where: Prisma.ChannelWhereUniqueInput } /** * Channel updateMany */ export type ChannelUpdateManyArgs = { /** * The data used to update Channels. */ data: Prisma.XOR /** * Filter which Channels to update */ where?: Prisma.ChannelWhereInput /** * Limit how many Channels to update. */ limit?: number } /** * Channel updateManyAndReturn */ export type ChannelUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelectUpdateManyAndReturn | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * The data used to update Channels. */ data: Prisma.XOR /** * Filter which Channels to update */ where?: Prisma.ChannelWhereInput /** * Limit how many Channels to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelIncludeUpdateManyAndReturn | null } /** * Channel upsert */ export type ChannelUpsertArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null /** * The filter to search for the Channel to update in case it exists. */ where: Prisma.ChannelWhereUniqueInput /** * In case the Channel found by the `where` argument doesn't exist, create a new Channel with this data. */ create: Prisma.XOR /** * In case the Channel was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Channel delete */ export type ChannelDeleteArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null /** * Filter which Channel to delete. */ where: Prisma.ChannelWhereUniqueInput } /** * Channel deleteMany */ export type ChannelDeleteManyArgs = { /** * Filter which Channels to delete */ where?: Prisma.ChannelWhereInput /** * Limit how many Channels to delete. */ limit?: number } /** * Channel.owner */ export type Channel$ownerArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * Channel without action */ export type ChannelDefaultArgs = { /** * Select specific fields to fetch from the Channel */ select?: Prisma.ChannelSelect | null /** * Omit specific fields from the Channel */ omit?: Prisma.ChannelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ChannelInclude | null }