/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Role` 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 Role * */ export type RoleModel = runtime.Types.Result.DefaultSelection export type AggregateRole = { _count: RoleCountAggregateOutputType | null _min: RoleMinAggregateOutputType | null _max: RoleMaxAggregateOutputType | null } export type RoleMinAggregateOutputType = { id: string | null name: string | null } export type RoleMaxAggregateOutputType = { id: string | null name: string | null } export type RoleCountAggregateOutputType = { id: number name: number _all: number } export type RoleMinAggregateInputType = { id?: true name?: true } export type RoleMaxAggregateInputType = { id?: true name?: true } export type RoleCountAggregateInputType = { id?: true name?: true _all?: true } export type RoleAggregateArgs = { /** * Filter which Role to aggregate. */ where?: Prisma.RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Roles **/ _count?: true | RoleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RoleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RoleMaxAggregateInputType } export type GetRoleAggregateType = { [P in keyof T & keyof AggregateRole]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type RoleGroupByArgs = { where?: Prisma.RoleWhereInput orderBy?: Prisma.RoleOrderByWithAggregationInput | Prisma.RoleOrderByWithAggregationInput[] by: Prisma.RoleScalarFieldEnum[] | Prisma.RoleScalarFieldEnum having?: Prisma.RoleScalarWhereWithAggregatesInput take?: number skip?: number _count?: RoleCountAggregateInputType | true _min?: RoleMinAggregateInputType _max?: RoleMaxAggregateInputType } export type RoleGroupByOutputType = { id: string name: string _count: RoleCountAggregateOutputType | null _min: RoleMinAggregateOutputType | null _max: RoleMaxAggregateOutputType | null } type GetRoleGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof RoleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type RoleWhereInput = { AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[] OR?: Prisma.RoleWhereInput[] NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[] id?: Prisma.StringFilter<"Role"> | string name?: Prisma.StringFilter<"Role"> | string users?: Prisma.UserRoleListRelationFilter } export type RoleOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder users?: Prisma.UserRoleOrderByRelationAggregateInput } export type RoleWhereUniqueInput = Prisma.AtLeast<{ id?: string name?: string AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[] OR?: Prisma.RoleWhereInput[] NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[] users?: Prisma.UserRoleListRelationFilter }, "id" | "name"> export type RoleOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder _count?: Prisma.RoleCountOrderByAggregateInput _max?: Prisma.RoleMaxOrderByAggregateInput _min?: Prisma.RoleMinOrderByAggregateInput } export type RoleScalarWhereWithAggregatesInput = { AND?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[] OR?: Prisma.RoleScalarWhereWithAggregatesInput[] NOT?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Role"> | string name?: Prisma.StringWithAggregatesFilter<"Role"> | string } export type RoleCreateInput = { id?: string name: string users?: Prisma.UserRoleCreateNestedManyWithoutRoleInput } export type RoleUncheckedCreateInput = { id?: string name: string users?: Prisma.UserRoleUncheckedCreateNestedManyWithoutRoleInput } export type RoleUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string users?: Prisma.UserRoleUpdateManyWithoutRoleNestedInput } export type RoleUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string users?: Prisma.UserRoleUncheckedUpdateManyWithoutRoleNestedInput } export type RoleCreateManyInput = { id?: string name: string } export type RoleUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } export type RoleUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } export type RoleCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder } export type RoleMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder } export type RoleMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder } export type RoleScalarRelationFilter = { is?: Prisma.RoleWhereInput isNot?: Prisma.RoleWhereInput } export type RoleCreateNestedOneWithoutUsersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUsersInput connect?: Prisma.RoleWhereUniqueInput } export type RoleUpdateOneRequiredWithoutUsersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUsersInput upsert?: Prisma.RoleUpsertWithoutUsersInput connect?: Prisma.RoleWhereUniqueInput update?: Prisma.XOR, Prisma.RoleUncheckedUpdateWithoutUsersInput> } export type RoleCreateWithoutUsersInput = { id?: string name: string } export type RoleUncheckedCreateWithoutUsersInput = { id?: string name: string } export type RoleCreateOrConnectWithoutUsersInput = { where: Prisma.RoleWhereUniqueInput create: Prisma.XOR } export type RoleUpsertWithoutUsersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.RoleWhereInput } export type RoleUpdateToOneWithWhereWithoutUsersInput = { where?: Prisma.RoleWhereInput data: Prisma.XOR } export type RoleUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } export type RoleUncheckedUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } /** * Count Type RoleCountOutputType */ export type RoleCountOutputType = { users: number } export type RoleCountOutputTypeSelect = { users?: boolean | RoleCountOutputTypeCountUsersArgs } /** * RoleCountOutputType without action */ export type RoleCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the RoleCountOutputType */ select?: Prisma.RoleCountOutputTypeSelect | null } /** * RoleCountOutputType without action */ export type RoleCountOutputTypeCountUsersArgs = { where?: Prisma.UserRoleWhereInput } export type RoleSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean users?: boolean | Prisma.Role$usersArgs _count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs }, ExtArgs["result"]["role"]> export type RoleSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean }, ExtArgs["result"]["role"]> export type RoleSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean }, ExtArgs["result"]["role"]> export type RoleSelectScalar = { id?: boolean name?: boolean } export type RoleOmit = runtime.Types.Extensions.GetOmit<"id" | "name", ExtArgs["result"]["role"]> export type RoleInclude = { users?: boolean | Prisma.Role$usersArgs _count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs } export type RoleIncludeCreateManyAndReturn = {} export type RoleIncludeUpdateManyAndReturn = {} export type $RolePayload = { name: "Role" objects: { users: Prisma.$UserRolePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string }, ExtArgs["result"]["role"]> composites: {} } export type RoleGetPayload = runtime.Types.Result.GetResult export type RoleCountArgs = Omit & { select?: RoleCountAggregateInputType | true } export interface RoleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Role'], meta: { name: 'Role' } } /** * Find zero or one Role that matches the filter. * @param {RoleFindUniqueArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__RoleClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Role that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RoleFindUniqueOrThrowArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__RoleClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Role 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 {RoleFindFirstArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__RoleClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Role 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 {RoleFindFirstOrThrowArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__RoleClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Roles 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 {RoleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Roles * const roles = await prisma.role.findMany() * * // Get first 10 Roles * const roles = await prisma.role.findMany({ take: 10 }) * * // Only select the `id` * const roleWithIdOnly = await prisma.role.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Role. * @param {RoleCreateArgs} args - Arguments to create a Role. * @example * // Create one Role * const Role = await prisma.role.create({ * data: { * // ... data to create a Role * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__RoleClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Roles. * @param {RoleCreateManyArgs} args - Arguments to create many Roles. * @example * // Create many Roles * const role = await prisma.role.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Roles and returns the data saved in the database. * @param {RoleCreateManyAndReturnArgs} args - Arguments to create many Roles. * @example * // Create many Roles * const role = await prisma.role.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Roles and only return the `id` * const roleWithIdOnly = await prisma.role.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 Role. * @param {RoleDeleteArgs} args - Arguments to delete one Role. * @example * // Delete one Role * const Role = await prisma.role.delete({ * where: { * // ... filter to delete one Role * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__RoleClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Role. * @param {RoleUpdateArgs} args - Arguments to update one Role. * @example * // Update one Role * const role = await prisma.role.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__RoleClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Roles. * @param {RoleDeleteManyArgs} args - Arguments to filter Roles to delete. * @example * // Delete a few Roles * const { count } = await prisma.role.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Roles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Roles * const role = await prisma.role.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Roles and returns the data updated in the database. * @param {RoleUpdateManyAndReturnArgs} args - Arguments to update many Roles. * @example * // Update many Roles * const role = await prisma.role.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Roles and only return the `id` * const roleWithIdOnly = await prisma.role.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 Role. * @param {RoleUpsertArgs} args - Arguments to update or create a Role. * @example * // Update or create a Role * const role = await prisma.role.upsert({ * create: { * // ... data to create a Role * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Role we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__RoleClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Roles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleCountArgs} args - Arguments to filter Roles to count. * @example * // Count the number of Roles * const count = await prisma.role.count({ * where: { * // ... the filter for the Roles 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 Role. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleAggregateArgs} 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 Role. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleGroupByArgs} 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 RoleGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: RoleGroupByArgs['orderBy'] } : { orderBy?: RoleGroupByArgs['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 ? GetRoleGroupByPayload : Prisma.PrismaPromise /** * Fields of the Role model */ readonly fields: RoleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Role. * 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__RoleClient 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 Role model */ export interface RoleFieldRefs { readonly id: Prisma.FieldRef<"Role", 'String'> readonly name: Prisma.FieldRef<"Role", 'String'> } // Custom InputTypes /** * Role findUnique */ export type RoleFindUniqueArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null /** * Filter, which Role to fetch. */ where: Prisma.RoleWhereUniqueInput } /** * Role findUniqueOrThrow */ export type RoleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null /** * Filter, which Role to fetch. */ where: Prisma.RoleWhereUniqueInput } /** * Role findFirst */ export type RoleFindFirstArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null /** * Filter, which Role to fetch. */ where?: Prisma.RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Roles. */ cursor?: Prisma.RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Roles. */ distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[] } /** * Role findFirstOrThrow */ export type RoleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null /** * Filter, which Role to fetch. */ where?: Prisma.RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Roles. */ cursor?: Prisma.RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Roles. */ distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[] } /** * Role findMany */ export type RoleFindManyArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null /** * Filter, which Roles to fetch. */ where?: Prisma.RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Roles. */ cursor?: Prisma.RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[] } /** * Role create */ export type RoleCreateArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null /** * The data needed to create a Role. */ data: Prisma.XOR } /** * Role createMany */ export type RoleCreateManyArgs = { /** * The data used to create many Roles. */ data: Prisma.RoleCreateManyInput | Prisma.RoleCreateManyInput[] skipDuplicates?: boolean } /** * Role createManyAndReturn */ export type RoleCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelectCreateManyAndReturn | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * The data used to create many Roles. */ data: Prisma.RoleCreateManyInput | Prisma.RoleCreateManyInput[] skipDuplicates?: boolean } /** * Role update */ export type RoleUpdateArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null /** * The data needed to update a Role. */ data: Prisma.XOR /** * Choose, which Role to update. */ where: Prisma.RoleWhereUniqueInput } /** * Role updateMany */ export type RoleUpdateManyArgs = { /** * The data used to update Roles. */ data: Prisma.XOR /** * Filter which Roles to update */ where?: Prisma.RoleWhereInput /** * Limit how many Roles to update. */ limit?: number } /** * Role updateManyAndReturn */ export type RoleUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelectUpdateManyAndReturn | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * The data used to update Roles. */ data: Prisma.XOR /** * Filter which Roles to update */ where?: Prisma.RoleWhereInput /** * Limit how many Roles to update. */ limit?: number } /** * Role upsert */ export type RoleUpsertArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null /** * The filter to search for the Role to update in case it exists. */ where: Prisma.RoleWhereUniqueInput /** * In case the Role found by the `where` argument doesn't exist, create a new Role with this data. */ create: Prisma.XOR /** * In case the Role was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Role delete */ export type RoleDeleteArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null /** * Filter which Role to delete. */ where: Prisma.RoleWhereUniqueInput } /** * Role deleteMany */ export type RoleDeleteManyArgs = { /** * Filter which Roles to delete */ where?: Prisma.RoleWhereInput /** * Limit how many Roles to delete. */ limit?: number } /** * Role.users */ export type Role$usersArgs = { /** * Select specific fields to fetch from the UserRole */ select?: Prisma.UserRoleSelect | null /** * Omit specific fields from the UserRole */ omit?: Prisma.UserRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserRoleInclude | null where?: Prisma.UserRoleWhereInput orderBy?: Prisma.UserRoleOrderByWithRelationInput | Prisma.UserRoleOrderByWithRelationInput[] cursor?: Prisma.UserRoleWhereUniqueInput take?: number skip?: number distinct?: Prisma.UserRoleScalarFieldEnum | Prisma.UserRoleScalarFieldEnum[] } /** * Role without action */ export type RoleDefaultArgs = { /** * Select specific fields to fetch from the Role */ select?: Prisma.RoleSelect | null /** * Omit specific fields from the Role */ omit?: Prisma.RoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RoleInclude | null }