/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `GroupUser` 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 GroupUser * */ export type GroupUserModel = runtime.Types.Result.DefaultSelection export type AggregateGroupUser = { _count: GroupUserCountAggregateOutputType | null _min: GroupUserMinAggregateOutputType | null _max: GroupUserMaxAggregateOutputType | null } export type GroupUserMinAggregateOutputType = { id: string | null groupId: string | null userId: string | null } export type GroupUserMaxAggregateOutputType = { id: string | null groupId: string | null userId: string | null } export type GroupUserCountAggregateOutputType = { id: number groupId: number userId: number _all: number } export type GroupUserMinAggregateInputType = { id?: true groupId?: true userId?: true } export type GroupUserMaxAggregateInputType = { id?: true groupId?: true userId?: true } export type GroupUserCountAggregateInputType = { id?: true groupId?: true userId?: true _all?: true } export type GroupUserAggregateArgs = { /** * Filter which GroupUser to aggregate. */ where?: Prisma.GroupUserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GroupUsers to fetch. */ orderBy?: Prisma.GroupUserOrderByWithRelationInput | Prisma.GroupUserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.GroupUserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GroupUsers 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` GroupUsers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned GroupUsers **/ _count?: true | GroupUserCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GroupUserMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GroupUserMaxAggregateInputType } export type GetGroupUserAggregateType = { [P in keyof T & keyof AggregateGroupUser]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type GroupUserGroupByArgs = { where?: Prisma.GroupUserWhereInput orderBy?: Prisma.GroupUserOrderByWithAggregationInput | Prisma.GroupUserOrderByWithAggregationInput[] by: Prisma.GroupUserScalarFieldEnum[] | Prisma.GroupUserScalarFieldEnum having?: Prisma.GroupUserScalarWhereWithAggregatesInput take?: number skip?: number _count?: GroupUserCountAggregateInputType | true _min?: GroupUserMinAggregateInputType _max?: GroupUserMaxAggregateInputType } export type GroupUserGroupByOutputType = { id: string groupId: string userId: string _count: GroupUserCountAggregateOutputType | null _min: GroupUserMinAggregateOutputType | null _max: GroupUserMaxAggregateOutputType | null } export type GetGroupUserGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof GroupUserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type GroupUserWhereInput = { AND?: Prisma.GroupUserWhereInput | Prisma.GroupUserWhereInput[] OR?: Prisma.GroupUserWhereInput[] NOT?: Prisma.GroupUserWhereInput | Prisma.GroupUserWhereInput[] id?: Prisma.StringFilter<"GroupUser"> | string groupId?: Prisma.StringFilter<"GroupUser"> | string userId?: Prisma.StringFilter<"GroupUser"> | string group?: Prisma.XOR user?: Prisma.XOR } export type GroupUserOrderByWithRelationInput = { id?: Prisma.SortOrder groupId?: Prisma.SortOrder userId?: Prisma.SortOrder group?: Prisma.GroupOrderByWithRelationInput user?: Prisma.UserOrderByWithRelationInput } export type GroupUserWhereUniqueInput = Prisma.AtLeast<{ id?: string group_user_membership_key?: Prisma.GroupUserGroup_user_membership_keyCompoundUniqueInput AND?: Prisma.GroupUserWhereInput | Prisma.GroupUserWhereInput[] OR?: Prisma.GroupUserWhereInput[] NOT?: Prisma.GroupUserWhereInput | Prisma.GroupUserWhereInput[] groupId?: Prisma.StringFilter<"GroupUser"> | string userId?: Prisma.StringFilter<"GroupUser"> | string group?: Prisma.XOR user?: Prisma.XOR }, "id" | "group_user_membership_key"> export type GroupUserOrderByWithAggregationInput = { id?: Prisma.SortOrder groupId?: Prisma.SortOrder userId?: Prisma.SortOrder _count?: Prisma.GroupUserCountOrderByAggregateInput _max?: Prisma.GroupUserMaxOrderByAggregateInput _min?: Prisma.GroupUserMinOrderByAggregateInput } export type GroupUserScalarWhereWithAggregatesInput = { AND?: Prisma.GroupUserScalarWhereWithAggregatesInput | Prisma.GroupUserScalarWhereWithAggregatesInput[] OR?: Prisma.GroupUserScalarWhereWithAggregatesInput[] NOT?: Prisma.GroupUserScalarWhereWithAggregatesInput | Prisma.GroupUserScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"GroupUser"> | string groupId?: Prisma.StringWithAggregatesFilter<"GroupUser"> | string userId?: Prisma.StringWithAggregatesFilter<"GroupUser"> | string } export type GroupUserCreateInput = { id?: string group: Prisma.GroupCreateNestedOneWithoutUsersInput user: Prisma.UserCreateNestedOneWithoutGroupsInput } export type GroupUserUncheckedCreateInput = { id?: string groupId: string userId: string } export type GroupUserUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string group?: Prisma.GroupUpdateOneRequiredWithoutUsersNestedInput user?: Prisma.UserUpdateOneRequiredWithoutGroupsNestedInput } export type GroupUserUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string groupId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type GroupUserCreateManyInput = { id?: string groupId: string userId: string } export type GroupUserUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string } export type GroupUserUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string groupId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type GroupUserListRelationFilter = { every?: Prisma.GroupUserWhereInput some?: Prisma.GroupUserWhereInput none?: Prisma.GroupUserWhereInput } export type GroupUserOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type GroupUserGroup_user_membership_keyCompoundUniqueInput = { groupId: string userId: string } export type GroupUserCountOrderByAggregateInput = { id?: Prisma.SortOrder groupId?: Prisma.SortOrder userId?: Prisma.SortOrder } export type GroupUserMaxOrderByAggregateInput = { id?: Prisma.SortOrder groupId?: Prisma.SortOrder userId?: Prisma.SortOrder } export type GroupUserMinOrderByAggregateInput = { id?: Prisma.SortOrder groupId?: Prisma.SortOrder userId?: Prisma.SortOrder } export type GroupUserCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.GroupUserCreateWithoutUserInput[] | Prisma.GroupUserUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.GroupUserCreateOrConnectWithoutUserInput | Prisma.GroupUserCreateOrConnectWithoutUserInput[] createMany?: Prisma.GroupUserCreateManyUserInputEnvelope connect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] } export type GroupUserUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.GroupUserCreateWithoutUserInput[] | Prisma.GroupUserUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.GroupUserCreateOrConnectWithoutUserInput | Prisma.GroupUserCreateOrConnectWithoutUserInput[] createMany?: Prisma.GroupUserCreateManyUserInputEnvelope connect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] } export type GroupUserUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.GroupUserCreateWithoutUserInput[] | Prisma.GroupUserUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.GroupUserCreateOrConnectWithoutUserInput | Prisma.GroupUserCreateOrConnectWithoutUserInput[] upsert?: Prisma.GroupUserUpsertWithWhereUniqueWithoutUserInput | Prisma.GroupUserUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.GroupUserCreateManyUserInputEnvelope set?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] disconnect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] delete?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] connect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] update?: Prisma.GroupUserUpdateWithWhereUniqueWithoutUserInput | Prisma.GroupUserUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.GroupUserUpdateManyWithWhereWithoutUserInput | Prisma.GroupUserUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.GroupUserScalarWhereInput | Prisma.GroupUserScalarWhereInput[] } export type GroupUserUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.GroupUserCreateWithoutUserInput[] | Prisma.GroupUserUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.GroupUserCreateOrConnectWithoutUserInput | Prisma.GroupUserCreateOrConnectWithoutUserInput[] upsert?: Prisma.GroupUserUpsertWithWhereUniqueWithoutUserInput | Prisma.GroupUserUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.GroupUserCreateManyUserInputEnvelope set?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] disconnect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] delete?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] connect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] update?: Prisma.GroupUserUpdateWithWhereUniqueWithoutUserInput | Prisma.GroupUserUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.GroupUserUpdateManyWithWhereWithoutUserInput | Prisma.GroupUserUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.GroupUserScalarWhereInput | Prisma.GroupUserScalarWhereInput[] } export type GroupUserCreateNestedManyWithoutGroupInput = { create?: Prisma.XOR | Prisma.GroupUserCreateWithoutGroupInput[] | Prisma.GroupUserUncheckedCreateWithoutGroupInput[] connectOrCreate?: Prisma.GroupUserCreateOrConnectWithoutGroupInput | Prisma.GroupUserCreateOrConnectWithoutGroupInput[] createMany?: Prisma.GroupUserCreateManyGroupInputEnvelope connect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] } export type GroupUserUncheckedCreateNestedManyWithoutGroupInput = { create?: Prisma.XOR | Prisma.GroupUserCreateWithoutGroupInput[] | Prisma.GroupUserUncheckedCreateWithoutGroupInput[] connectOrCreate?: Prisma.GroupUserCreateOrConnectWithoutGroupInput | Prisma.GroupUserCreateOrConnectWithoutGroupInput[] createMany?: Prisma.GroupUserCreateManyGroupInputEnvelope connect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] } export type GroupUserUpdateManyWithoutGroupNestedInput = { create?: Prisma.XOR | Prisma.GroupUserCreateWithoutGroupInput[] | Prisma.GroupUserUncheckedCreateWithoutGroupInput[] connectOrCreate?: Prisma.GroupUserCreateOrConnectWithoutGroupInput | Prisma.GroupUserCreateOrConnectWithoutGroupInput[] upsert?: Prisma.GroupUserUpsertWithWhereUniqueWithoutGroupInput | Prisma.GroupUserUpsertWithWhereUniqueWithoutGroupInput[] createMany?: Prisma.GroupUserCreateManyGroupInputEnvelope set?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] disconnect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] delete?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] connect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] update?: Prisma.GroupUserUpdateWithWhereUniqueWithoutGroupInput | Prisma.GroupUserUpdateWithWhereUniqueWithoutGroupInput[] updateMany?: Prisma.GroupUserUpdateManyWithWhereWithoutGroupInput | Prisma.GroupUserUpdateManyWithWhereWithoutGroupInput[] deleteMany?: Prisma.GroupUserScalarWhereInput | Prisma.GroupUserScalarWhereInput[] } export type GroupUserUncheckedUpdateManyWithoutGroupNestedInput = { create?: Prisma.XOR | Prisma.GroupUserCreateWithoutGroupInput[] | Prisma.GroupUserUncheckedCreateWithoutGroupInput[] connectOrCreate?: Prisma.GroupUserCreateOrConnectWithoutGroupInput | Prisma.GroupUserCreateOrConnectWithoutGroupInput[] upsert?: Prisma.GroupUserUpsertWithWhereUniqueWithoutGroupInput | Prisma.GroupUserUpsertWithWhereUniqueWithoutGroupInput[] createMany?: Prisma.GroupUserCreateManyGroupInputEnvelope set?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] disconnect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] delete?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] connect?: Prisma.GroupUserWhereUniqueInput | Prisma.GroupUserWhereUniqueInput[] update?: Prisma.GroupUserUpdateWithWhereUniqueWithoutGroupInput | Prisma.GroupUserUpdateWithWhereUniqueWithoutGroupInput[] updateMany?: Prisma.GroupUserUpdateManyWithWhereWithoutGroupInput | Prisma.GroupUserUpdateManyWithWhereWithoutGroupInput[] deleteMany?: Prisma.GroupUserScalarWhereInput | Prisma.GroupUserScalarWhereInput[] } export type GroupUserCreateWithoutUserInput = { id?: string group: Prisma.GroupCreateNestedOneWithoutUsersInput } export type GroupUserUncheckedCreateWithoutUserInput = { id?: string groupId: string } export type GroupUserCreateOrConnectWithoutUserInput = { where: Prisma.GroupUserWhereUniqueInput create: Prisma.XOR } export type GroupUserCreateManyUserInputEnvelope = { data: Prisma.GroupUserCreateManyUserInput | Prisma.GroupUserCreateManyUserInput[] skipDuplicates?: boolean } export type GroupUserUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.GroupUserWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type GroupUserUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.GroupUserWhereUniqueInput data: Prisma.XOR } export type GroupUserUpdateManyWithWhereWithoutUserInput = { where: Prisma.GroupUserScalarWhereInput data: Prisma.XOR } export type GroupUserScalarWhereInput = { AND?: Prisma.GroupUserScalarWhereInput | Prisma.GroupUserScalarWhereInput[] OR?: Prisma.GroupUserScalarWhereInput[] NOT?: Prisma.GroupUserScalarWhereInput | Prisma.GroupUserScalarWhereInput[] id?: Prisma.StringFilter<"GroupUser"> | string groupId?: Prisma.StringFilter<"GroupUser"> | string userId?: Prisma.StringFilter<"GroupUser"> | string } export type GroupUserCreateWithoutGroupInput = { id?: string user: Prisma.UserCreateNestedOneWithoutGroupsInput } export type GroupUserUncheckedCreateWithoutGroupInput = { id?: string userId: string } export type GroupUserCreateOrConnectWithoutGroupInput = { where: Prisma.GroupUserWhereUniqueInput create: Prisma.XOR } export type GroupUserCreateManyGroupInputEnvelope = { data: Prisma.GroupUserCreateManyGroupInput | Prisma.GroupUserCreateManyGroupInput[] skipDuplicates?: boolean } export type GroupUserUpsertWithWhereUniqueWithoutGroupInput = { where: Prisma.GroupUserWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type GroupUserUpdateWithWhereUniqueWithoutGroupInput = { where: Prisma.GroupUserWhereUniqueInput data: Prisma.XOR } export type GroupUserUpdateManyWithWhereWithoutGroupInput = { where: Prisma.GroupUserScalarWhereInput data: Prisma.XOR } export type GroupUserCreateManyUserInput = { id?: string groupId: string } export type GroupUserUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string group?: Prisma.GroupUpdateOneRequiredWithoutUsersNestedInput } export type GroupUserUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string groupId?: Prisma.StringFieldUpdateOperationsInput | string } export type GroupUserUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string groupId?: Prisma.StringFieldUpdateOperationsInput | string } export type GroupUserCreateManyGroupInput = { id?: string userId: string } export type GroupUserUpdateWithoutGroupInput = { id?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.UserUpdateOneRequiredWithoutGroupsNestedInput } export type GroupUserUncheckedUpdateWithoutGroupInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type GroupUserUncheckedUpdateManyWithoutGroupInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type GroupUserSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean groupId?: boolean userId?: boolean group?: boolean | Prisma.GroupDefaultArgs user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["groupUser"]> export type GroupUserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean groupId?: boolean userId?: boolean group?: boolean | Prisma.GroupDefaultArgs user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["groupUser"]> export type GroupUserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean groupId?: boolean userId?: boolean group?: boolean | Prisma.GroupDefaultArgs user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["groupUser"]> export type GroupUserSelectScalar = { id?: boolean groupId?: boolean userId?: boolean } export type GroupUserOmit = runtime.Types.Extensions.GetOmit<"id" | "groupId" | "userId", ExtArgs["result"]["groupUser"]> export type GroupUserInclude = { group?: boolean | Prisma.GroupDefaultArgs user?: boolean | Prisma.UserDefaultArgs } export type GroupUserIncludeCreateManyAndReturn = { group?: boolean | Prisma.GroupDefaultArgs user?: boolean | Prisma.UserDefaultArgs } export type GroupUserIncludeUpdateManyAndReturn = { group?: boolean | Prisma.GroupDefaultArgs user?: boolean | Prisma.UserDefaultArgs } export type $GroupUserPayload = { name: "GroupUser" objects: { group: Prisma.$GroupPayload user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string groupId: string userId: string }, ExtArgs["result"]["groupUser"]> composites: {} } export type GroupUserGetPayload = runtime.Types.Result.GetResult export type GroupUserCountArgs = Omit & { select?: GroupUserCountAggregateInputType | true } export interface GroupUserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['GroupUser'], meta: { name: 'GroupUser' } } /** * Find zero or one GroupUser that matches the filter. * @param {GroupUserFindUniqueArgs} args - Arguments to find a GroupUser * @example * // Get one GroupUser * const groupUser = await prisma.groupUser.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__GroupUserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one GroupUser that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GroupUserFindUniqueOrThrowArgs} args - Arguments to find a GroupUser * @example * // Get one GroupUser * const groupUser = await prisma.groupUser.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__GroupUserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first GroupUser 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 {GroupUserFindFirstArgs} args - Arguments to find a GroupUser * @example * // Get one GroupUser * const groupUser = await prisma.groupUser.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__GroupUserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first GroupUser 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 {GroupUserFindFirstOrThrowArgs} args - Arguments to find a GroupUser * @example * // Get one GroupUser * const groupUser = await prisma.groupUser.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__GroupUserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more GroupUsers 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 {GroupUserFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all GroupUsers * const groupUsers = await prisma.groupUser.findMany() * * // Get first 10 GroupUsers * const groupUsers = await prisma.groupUser.findMany({ take: 10 }) * * // Only select the `id` * const groupUserWithIdOnly = await prisma.groupUser.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a GroupUser. * @param {GroupUserCreateArgs} args - Arguments to create a GroupUser. * @example * // Create one GroupUser * const GroupUser = await prisma.groupUser.create({ * data: { * // ... data to create a GroupUser * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__GroupUserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many GroupUsers. * @param {GroupUserCreateManyArgs} args - Arguments to create many GroupUsers. * @example * // Create many GroupUsers * const groupUser = await prisma.groupUser.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many GroupUsers and returns the data saved in the database. * @param {GroupUserCreateManyAndReturnArgs} args - Arguments to create many GroupUsers. * @example * // Create many GroupUsers * const groupUser = await prisma.groupUser.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many GroupUsers and only return the `id` * const groupUserWithIdOnly = await prisma.groupUser.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 GroupUser. * @param {GroupUserDeleteArgs} args - Arguments to delete one GroupUser. * @example * // Delete one GroupUser * const GroupUser = await prisma.groupUser.delete({ * where: { * // ... filter to delete one GroupUser * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__GroupUserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one GroupUser. * @param {GroupUserUpdateArgs} args - Arguments to update one GroupUser. * @example * // Update one GroupUser * const groupUser = await prisma.groupUser.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__GroupUserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more GroupUsers. * @param {GroupUserDeleteManyArgs} args - Arguments to filter GroupUsers to delete. * @example * // Delete a few GroupUsers * const { count } = await prisma.groupUser.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GroupUsers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupUserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many GroupUsers * const groupUser = await prisma.groupUser.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GroupUsers and returns the data updated in the database. * @param {GroupUserUpdateManyAndReturnArgs} args - Arguments to update many GroupUsers. * @example * // Update many GroupUsers * const groupUser = await prisma.groupUser.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more GroupUsers and only return the `id` * const groupUserWithIdOnly = await prisma.groupUser.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 GroupUser. * @param {GroupUserUpsertArgs} args - Arguments to update or create a GroupUser. * @example * // Update or create a GroupUser * const groupUser = await prisma.groupUser.upsert({ * create: { * // ... data to create a GroupUser * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the GroupUser we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__GroupUserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of GroupUsers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupUserCountArgs} args - Arguments to filter GroupUsers to count. * @example * // Count the number of GroupUsers * const count = await prisma.groupUser.count({ * where: { * // ... the filter for the GroupUsers 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 GroupUser. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupUserAggregateArgs} 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 GroupUser. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupUserGroupByArgs} 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 GroupUserGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: GroupUserGroupByArgs['orderBy'] } : { orderBy?: GroupUserGroupByArgs['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 ? GetGroupUserGroupByPayload : Prisma.PrismaPromise /** * Fields of the GroupUser model */ readonly fields: GroupUserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for GroupUser. * 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__GroupUserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" group = {}>(args?: Prisma.Subset>): Prisma.Prisma__GroupClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> 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 GroupUser model */ export interface GroupUserFieldRefs { readonly id: Prisma.FieldRef<"GroupUser", 'String'> readonly groupId: Prisma.FieldRef<"GroupUser", 'String'> readonly userId: Prisma.FieldRef<"GroupUser", 'String'> } // Custom InputTypes /** * GroupUser findUnique */ export type GroupUserFindUniqueArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null /** * Filter, which GroupUser to fetch. */ where: Prisma.GroupUserWhereUniqueInput } /** * GroupUser findUniqueOrThrow */ export type GroupUserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null /** * Filter, which GroupUser to fetch. */ where: Prisma.GroupUserWhereUniqueInput } /** * GroupUser findFirst */ export type GroupUserFindFirstArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null /** * Filter, which GroupUser to fetch. */ where?: Prisma.GroupUserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GroupUsers to fetch. */ orderBy?: Prisma.GroupUserOrderByWithRelationInput | Prisma.GroupUserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GroupUsers. */ cursor?: Prisma.GroupUserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GroupUsers 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` GroupUsers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GroupUsers. */ distinct?: Prisma.GroupUserScalarFieldEnum | Prisma.GroupUserScalarFieldEnum[] } /** * GroupUser findFirstOrThrow */ export type GroupUserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null /** * Filter, which GroupUser to fetch. */ where?: Prisma.GroupUserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GroupUsers to fetch. */ orderBy?: Prisma.GroupUserOrderByWithRelationInput | Prisma.GroupUserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GroupUsers. */ cursor?: Prisma.GroupUserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GroupUsers 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` GroupUsers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GroupUsers. */ distinct?: Prisma.GroupUserScalarFieldEnum | Prisma.GroupUserScalarFieldEnum[] } /** * GroupUser findMany */ export type GroupUserFindManyArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null /** * Filter, which GroupUsers to fetch. */ where?: Prisma.GroupUserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GroupUsers to fetch. */ orderBy?: Prisma.GroupUserOrderByWithRelationInput | Prisma.GroupUserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing GroupUsers. */ cursor?: Prisma.GroupUserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GroupUsers 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` GroupUsers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GroupUsers. */ distinct?: Prisma.GroupUserScalarFieldEnum | Prisma.GroupUserScalarFieldEnum[] } /** * GroupUser create */ export type GroupUserCreateArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null /** * The data needed to create a GroupUser. */ data: Prisma.XOR } /** * GroupUser createMany */ export type GroupUserCreateManyArgs = { /** * The data used to create many GroupUsers. */ data: Prisma.GroupUserCreateManyInput | Prisma.GroupUserCreateManyInput[] skipDuplicates?: boolean } /** * GroupUser createManyAndReturn */ export type GroupUserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelectCreateManyAndReturn | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * The data used to create many GroupUsers. */ data: Prisma.GroupUserCreateManyInput | Prisma.GroupUserCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserIncludeCreateManyAndReturn | null } /** * GroupUser update */ export type GroupUserUpdateArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null /** * The data needed to update a GroupUser. */ data: Prisma.XOR /** * Choose, which GroupUser to update. */ where: Prisma.GroupUserWhereUniqueInput } /** * GroupUser updateMany */ export type GroupUserUpdateManyArgs = { /** * The data used to update GroupUsers. */ data: Prisma.XOR /** * Filter which GroupUsers to update */ where?: Prisma.GroupUserWhereInput /** * Limit how many GroupUsers to update. */ limit?: number } /** * GroupUser updateManyAndReturn */ export type GroupUserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelectUpdateManyAndReturn | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * The data used to update GroupUsers. */ data: Prisma.XOR /** * Filter which GroupUsers to update */ where?: Prisma.GroupUserWhereInput /** * Limit how many GroupUsers to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserIncludeUpdateManyAndReturn | null } /** * GroupUser upsert */ export type GroupUserUpsertArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null /** * The filter to search for the GroupUser to update in case it exists. */ where: Prisma.GroupUserWhereUniqueInput /** * In case the GroupUser found by the `where` argument doesn't exist, create a new GroupUser with this data. */ create: Prisma.XOR /** * In case the GroupUser was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * GroupUser delete */ export type GroupUserDeleteArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null /** * Filter which GroupUser to delete. */ where: Prisma.GroupUserWhereUniqueInput } /** * GroupUser deleteMany */ export type GroupUserDeleteManyArgs = { /** * Filter which GroupUsers to delete */ where?: Prisma.GroupUserWhereInput /** * Limit how many GroupUsers to delete. */ limit?: number } /** * GroupUser without action */ export type GroupUserDefaultArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | null }