/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `UserGroup` 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 UserGroup * */ export type UserGroupModel = runtime.Types.Result.DefaultSelection export type AggregateUserGroup = { _count: UserGroupCountAggregateOutputType | null _min: UserGroupMinAggregateOutputType | null _max: UserGroupMaxAggregateOutputType | null } export type UserGroupMinAggregateOutputType = { id: string | null name: string | null canEditDevices: boolean | null } export type UserGroupMaxAggregateOutputType = { id: string | null name: string | null canEditDevices: boolean | null } export type UserGroupCountAggregateOutputType = { id: number name: number canEditDevices: number _all: number } export type UserGroupMinAggregateInputType = { id?: true name?: true canEditDevices?: true } export type UserGroupMaxAggregateInputType = { id?: true name?: true canEditDevices?: true } export type UserGroupCountAggregateInputType = { id?: true name?: true canEditDevices?: true _all?: true } export type UserGroupAggregateArgs = { /** * Filter which UserGroup to aggregate. */ where?: Prisma.UserGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserGroups to fetch. */ orderBy?: Prisma.UserGroupOrderByWithRelationInput | Prisma.UserGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.UserGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserGroups 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` UserGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UserGroups **/ _count?: true | UserGroupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserGroupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserGroupMaxAggregateInputType } export type GetUserGroupAggregateType = { [P in keyof T & keyof AggregateUserGroup]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type UserGroupGroupByArgs = { where?: Prisma.UserGroupWhereInput orderBy?: Prisma.UserGroupOrderByWithAggregationInput | Prisma.UserGroupOrderByWithAggregationInput[] by: Prisma.UserGroupScalarFieldEnum[] | Prisma.UserGroupScalarFieldEnum having?: Prisma.UserGroupScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserGroupCountAggregateInputType | true _min?: UserGroupMinAggregateInputType _max?: UserGroupMaxAggregateInputType } export type UserGroupGroupByOutputType = { id: string name: string canEditDevices: boolean _count: UserGroupCountAggregateOutputType | null _min: UserGroupMinAggregateOutputType | null _max: UserGroupMaxAggregateOutputType | null } type GetUserGroupGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof UserGroupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type UserGroupWhereInput = { AND?: Prisma.UserGroupWhereInput | Prisma.UserGroupWhereInput[] OR?: Prisma.UserGroupWhereInput[] NOT?: Prisma.UserGroupWhereInput | Prisma.UserGroupWhereInput[] id?: Prisma.StringFilter<"UserGroup"> | string name?: Prisma.StringFilter<"UserGroup"> | string canEditDevices?: Prisma.BoolFilter<"UserGroup"> | boolean users?: Prisma.UserListRelationFilter } export type UserGroupOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder canEditDevices?: Prisma.SortOrder users?: Prisma.UserOrderByRelationAggregateInput } export type UserGroupWhereUniqueInput = Prisma.AtLeast<{ id?: string name?: string AND?: Prisma.UserGroupWhereInput | Prisma.UserGroupWhereInput[] OR?: Prisma.UserGroupWhereInput[] NOT?: Prisma.UserGroupWhereInput | Prisma.UserGroupWhereInput[] canEditDevices?: Prisma.BoolFilter<"UserGroup"> | boolean users?: Prisma.UserListRelationFilter }, "id" | "name"> export type UserGroupOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder canEditDevices?: Prisma.SortOrder _count?: Prisma.UserGroupCountOrderByAggregateInput _max?: Prisma.UserGroupMaxOrderByAggregateInput _min?: Prisma.UserGroupMinOrderByAggregateInput } export type UserGroupScalarWhereWithAggregatesInput = { AND?: Prisma.UserGroupScalarWhereWithAggregatesInput | Prisma.UserGroupScalarWhereWithAggregatesInput[] OR?: Prisma.UserGroupScalarWhereWithAggregatesInput[] NOT?: Prisma.UserGroupScalarWhereWithAggregatesInput | Prisma.UserGroupScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"UserGroup"> | string name?: Prisma.StringWithAggregatesFilter<"UserGroup"> | string canEditDevices?: Prisma.BoolWithAggregatesFilter<"UserGroup"> | boolean } export type UserGroupCreateInput = { id?: string name: string canEditDevices?: boolean users?: Prisma.UserCreateNestedManyWithoutGroupInput } export type UserGroupUncheckedCreateInput = { id?: string name: string canEditDevices?: boolean users?: Prisma.UserUncheckedCreateNestedManyWithoutGroupInput } export type UserGroupUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean users?: Prisma.UserUpdateManyWithoutGroupNestedInput } export type UserGroupUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean users?: Prisma.UserUncheckedUpdateManyWithoutGroupNestedInput } export type UserGroupCreateManyInput = { id?: string name: string canEditDevices?: boolean } export type UserGroupUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type UserGroupUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type UserGroupNullableScalarRelationFilter = { is?: Prisma.UserGroupWhereInput | null isNot?: Prisma.UserGroupWhereInput | null } export type UserGroupCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder canEditDevices?: Prisma.SortOrder } export type UserGroupMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder canEditDevices?: Prisma.SortOrder } export type UserGroupMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder canEditDevices?: Prisma.SortOrder } export type UserGroupCreateNestedOneWithoutUsersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserGroupCreateOrConnectWithoutUsersInput connect?: Prisma.UserGroupWhereUniqueInput } export type UserGroupUpdateOneWithoutUsersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserGroupCreateOrConnectWithoutUsersInput upsert?: Prisma.UserGroupUpsertWithoutUsersInput disconnect?: Prisma.UserGroupWhereInput | boolean delete?: Prisma.UserGroupWhereInput | boolean connect?: Prisma.UserGroupWhereUniqueInput update?: Prisma.XOR, Prisma.UserGroupUncheckedUpdateWithoutUsersInput> } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type UserGroupCreateWithoutUsersInput = { id?: string name: string canEditDevices?: boolean } export type UserGroupUncheckedCreateWithoutUsersInput = { id?: string name: string canEditDevices?: boolean } export type UserGroupCreateOrConnectWithoutUsersInput = { where: Prisma.UserGroupWhereUniqueInput create: Prisma.XOR } export type UserGroupUpsertWithoutUsersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserGroupWhereInput } export type UserGroupUpdateToOneWithWhereWithoutUsersInput = { where?: Prisma.UserGroupWhereInput data: Prisma.XOR } export type UserGroupUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type UserGroupUncheckedUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean } /** * Count Type UserGroupCountOutputType */ export type UserGroupCountOutputType = { users: number } export type UserGroupCountOutputTypeSelect = { users?: boolean | UserGroupCountOutputTypeCountUsersArgs } /** * UserGroupCountOutputType without action */ export type UserGroupCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserGroupCountOutputType */ select?: Prisma.UserGroupCountOutputTypeSelect | null } /** * UserGroupCountOutputType without action */ export type UserGroupCountOutputTypeCountUsersArgs = { where?: Prisma.UserWhereInput } export type UserGroupSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean canEditDevices?: boolean users?: boolean | Prisma.UserGroup$usersArgs _count?: boolean | Prisma.UserGroupCountOutputTypeDefaultArgs }, ExtArgs["result"]["userGroup"]> export type UserGroupSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean canEditDevices?: boolean }, ExtArgs["result"]["userGroup"]> export type UserGroupSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean canEditDevices?: boolean }, ExtArgs["result"]["userGroup"]> export type UserGroupSelectScalar = { id?: boolean name?: boolean canEditDevices?: boolean } export type UserGroupOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "canEditDevices", ExtArgs["result"]["userGroup"]> export type UserGroupInclude = { users?: boolean | Prisma.UserGroup$usersArgs _count?: boolean | Prisma.UserGroupCountOutputTypeDefaultArgs } export type UserGroupIncludeCreateManyAndReturn = {} export type UserGroupIncludeUpdateManyAndReturn = {} export type $UserGroupPayload = { name: "UserGroup" objects: { users: Prisma.$UserPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string canEditDevices: boolean }, ExtArgs["result"]["userGroup"]> composites: {} } export type UserGroupGetPayload = runtime.Types.Result.GetResult export type UserGroupCountArgs = Omit & { select?: UserGroupCountAggregateInputType | true } export interface UserGroupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['UserGroup'], meta: { name: 'UserGroup' } } /** * Find zero or one UserGroup that matches the filter. * @param {UserGroupFindUniqueArgs} args - Arguments to find a UserGroup * @example * // Get one UserGroup * const userGroup = await prisma.userGroup.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserGroupClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one UserGroup that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserGroupFindUniqueOrThrowArgs} args - Arguments to find a UserGroup * @example * // Get one UserGroup * const userGroup = await prisma.userGroup.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserGroupClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first UserGroup 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 {UserGroupFindFirstArgs} args - Arguments to find a UserGroup * @example * // Get one UserGroup * const userGroup = await prisma.userGroup.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserGroupClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first UserGroup 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 {UserGroupFindFirstOrThrowArgs} args - Arguments to find a UserGroup * @example * // Get one UserGroup * const userGroup = await prisma.userGroup.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserGroupClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more UserGroups 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 {UserGroupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UserGroups * const userGroups = await prisma.userGroup.findMany() * * // Get first 10 UserGroups * const userGroups = await prisma.userGroup.findMany({ take: 10 }) * * // Only select the `id` * const userGroupWithIdOnly = await prisma.userGroup.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a UserGroup. * @param {UserGroupCreateArgs} args - Arguments to create a UserGroup. * @example * // Create one UserGroup * const UserGroup = await prisma.userGroup.create({ * data: { * // ... data to create a UserGroup * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__UserGroupClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many UserGroups. * @param {UserGroupCreateManyArgs} args - Arguments to create many UserGroups. * @example * // Create many UserGroups * const userGroup = await prisma.userGroup.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many UserGroups and returns the data saved in the database. * @param {UserGroupCreateManyAndReturnArgs} args - Arguments to create many UserGroups. * @example * // Create many UserGroups * const userGroup = await prisma.userGroup.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many UserGroups and only return the `id` * const userGroupWithIdOnly = await prisma.userGroup.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 UserGroup. * @param {UserGroupDeleteArgs} args - Arguments to delete one UserGroup. * @example * // Delete one UserGroup * const UserGroup = await prisma.userGroup.delete({ * where: { * // ... filter to delete one UserGroup * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserGroupClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one UserGroup. * @param {UserGroupUpdateArgs} args - Arguments to update one UserGroup. * @example * // Update one UserGroup * const userGroup = await prisma.userGroup.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__UserGroupClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more UserGroups. * @param {UserGroupDeleteManyArgs} args - Arguments to filter UserGroups to delete. * @example * // Delete a few UserGroups * const { count } = await prisma.userGroup.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UserGroups * const userGroup = await prisma.userGroup.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserGroups and returns the data updated in the database. * @param {UserGroupUpdateManyAndReturnArgs} args - Arguments to update many UserGroups. * @example * // Update many UserGroups * const userGroup = await prisma.userGroup.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more UserGroups and only return the `id` * const userGroupWithIdOnly = await prisma.userGroup.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 UserGroup. * @param {UserGroupUpsertArgs} args - Arguments to update or create a UserGroup. * @example * // Update or create a UserGroup * const userGroup = await prisma.userGroup.upsert({ * create: { * // ... data to create a UserGroup * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UserGroup we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserGroupClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of UserGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupCountArgs} args - Arguments to filter UserGroups to count. * @example * // Count the number of UserGroups * const count = await prisma.userGroup.count({ * where: { * // ... the filter for the UserGroups 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 UserGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupAggregateArgs} 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 UserGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupGroupByArgs} 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 UserGroupGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: UserGroupGroupByArgs['orderBy'] } : { orderBy?: UserGroupGroupByArgs['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 ? GetUserGroupGroupByPayload : Prisma.PrismaPromise /** * Fields of the UserGroup model */ readonly fields: UserGroupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UserGroup. * 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__UserGroupClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 UserGroup model */ export interface UserGroupFieldRefs { readonly id: Prisma.FieldRef<"UserGroup", 'String'> readonly name: Prisma.FieldRef<"UserGroup", 'String'> readonly canEditDevices: Prisma.FieldRef<"UserGroup", 'Boolean'> } // Custom InputTypes /** * UserGroup findUnique */ export type UserGroupFindUniqueArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null /** * Filter, which UserGroup to fetch. */ where: Prisma.UserGroupWhereUniqueInput } /** * UserGroup findUniqueOrThrow */ export type UserGroupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null /** * Filter, which UserGroup to fetch. */ where: Prisma.UserGroupWhereUniqueInput } /** * UserGroup findFirst */ export type UserGroupFindFirstArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null /** * Filter, which UserGroup to fetch. */ where?: Prisma.UserGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserGroups to fetch. */ orderBy?: Prisma.UserGroupOrderByWithRelationInput | Prisma.UserGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserGroups. */ cursor?: Prisma.UserGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserGroups 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` UserGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserGroups. */ distinct?: Prisma.UserGroupScalarFieldEnum | Prisma.UserGroupScalarFieldEnum[] } /** * UserGroup findFirstOrThrow */ export type UserGroupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null /** * Filter, which UserGroup to fetch. */ where?: Prisma.UserGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserGroups to fetch. */ orderBy?: Prisma.UserGroupOrderByWithRelationInput | Prisma.UserGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserGroups. */ cursor?: Prisma.UserGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserGroups 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` UserGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserGroups. */ distinct?: Prisma.UserGroupScalarFieldEnum | Prisma.UserGroupScalarFieldEnum[] } /** * UserGroup findMany */ export type UserGroupFindManyArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null /** * Filter, which UserGroups to fetch. */ where?: Prisma.UserGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserGroups to fetch. */ orderBy?: Prisma.UserGroupOrderByWithRelationInput | Prisma.UserGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UserGroups. */ cursor?: Prisma.UserGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserGroups 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` UserGroups. */ skip?: number distinct?: Prisma.UserGroupScalarFieldEnum | Prisma.UserGroupScalarFieldEnum[] } /** * UserGroup create */ export type UserGroupCreateArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null /** * The data needed to create a UserGroup. */ data: Prisma.XOR } /** * UserGroup createMany */ export type UserGroupCreateManyArgs = { /** * The data used to create many UserGroups. */ data: Prisma.UserGroupCreateManyInput | Prisma.UserGroupCreateManyInput[] skipDuplicates?: boolean } /** * UserGroup createManyAndReturn */ export type UserGroupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelectCreateManyAndReturn | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * The data used to create many UserGroups. */ data: Prisma.UserGroupCreateManyInput | Prisma.UserGroupCreateManyInput[] skipDuplicates?: boolean } /** * UserGroup update */ export type UserGroupUpdateArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null /** * The data needed to update a UserGroup. */ data: Prisma.XOR /** * Choose, which UserGroup to update. */ where: Prisma.UserGroupWhereUniqueInput } /** * UserGroup updateMany */ export type UserGroupUpdateManyArgs = { /** * The data used to update UserGroups. */ data: Prisma.XOR /** * Filter which UserGroups to update */ where?: Prisma.UserGroupWhereInput /** * Limit how many UserGroups to update. */ limit?: number } /** * UserGroup updateManyAndReturn */ export type UserGroupUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelectUpdateManyAndReturn | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * The data used to update UserGroups. */ data: Prisma.XOR /** * Filter which UserGroups to update */ where?: Prisma.UserGroupWhereInput /** * Limit how many UserGroups to update. */ limit?: number } /** * UserGroup upsert */ export type UserGroupUpsertArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null /** * The filter to search for the UserGroup to update in case it exists. */ where: Prisma.UserGroupWhereUniqueInput /** * In case the UserGroup found by the `where` argument doesn't exist, create a new UserGroup with this data. */ create: Prisma.XOR /** * In case the UserGroup was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * UserGroup delete */ export type UserGroupDeleteArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null /** * Filter which UserGroup to delete. */ where: Prisma.UserGroupWhereUniqueInput } /** * UserGroup deleteMany */ export type UserGroupDeleteManyArgs = { /** * Filter which UserGroups to delete */ where?: Prisma.UserGroupWhereInput /** * Limit how many UserGroups to delete. */ limit?: number } /** * UserGroup.users */ export type UserGroup$usersArgs = { /** * 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 orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] cursor?: Prisma.UserWhereUniqueInput take?: number skip?: number distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] } /** * UserGroup without action */ export type UserGroupDefaultArgs = { /** * Select specific fields to fetch from the UserGroup */ select?: Prisma.UserGroupSelect | null /** * Omit specific fields from the UserGroup */ omit?: Prisma.UserGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserGroupInclude | null }