/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AdminRole` 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 AdminRole * */ export type AdminRoleModel = runtime.Types.Result.DefaultSelection export type AggregateAdminRole = { _count: AdminRoleCountAggregateOutputType | null _min: AdminRoleMinAggregateOutputType | null _max: AdminRoleMaxAggregateOutputType | null } export type AdminRoleMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null name: string | null description: string | null systemKey: string | null isSystem: boolean | null active: boolean | null } export type AdminRoleMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null name: string | null description: string | null systemKey: string | null isSystem: boolean | null active: boolean | null } export type AdminRoleCountAggregateOutputType = { id: number createdAt: number updatedAt: number name: number description: number systemKey: number isSystem: number active: number _all: number } export type AdminRoleMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true description?: true systemKey?: true isSystem?: true active?: true } export type AdminRoleMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true description?: true systemKey?: true isSystem?: true active?: true } export type AdminRoleCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true description?: true systemKey?: true isSystem?: true active?: true _all?: true } export type AdminRoleAggregateArgs = { /** * Filter which AdminRole to aggregate. */ where?: Prisma.AdminRoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminRoles to fetch. */ orderBy?: Prisma.AdminRoleOrderByWithRelationInput | Prisma.AdminRoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AdminRoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminRoles 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` AdminRoles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AdminRoles **/ _count?: true | AdminRoleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AdminRoleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AdminRoleMaxAggregateInputType } export type GetAdminRoleAggregateType = { [P in keyof T & keyof AggregateAdminRole]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AdminRoleGroupByArgs = { where?: Prisma.AdminRoleWhereInput orderBy?: Prisma.AdminRoleOrderByWithAggregationInput | Prisma.AdminRoleOrderByWithAggregationInput[] by: Prisma.AdminRoleScalarFieldEnum[] | Prisma.AdminRoleScalarFieldEnum having?: Prisma.AdminRoleScalarWhereWithAggregatesInput take?: number skip?: number _count?: AdminRoleCountAggregateInputType | true _min?: AdminRoleMinAggregateInputType _max?: AdminRoleMaxAggregateInputType } export type AdminRoleGroupByOutputType = { id: string createdAt: Date updatedAt: Date name: string description: string systemKey: string | null isSystem: boolean active: boolean _count: AdminRoleCountAggregateOutputType | null _min: AdminRoleMinAggregateOutputType | null _max: AdminRoleMaxAggregateOutputType | null } export type GetAdminRoleGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AdminRoleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AdminRoleWhereInput = { AND?: Prisma.AdminRoleWhereInput | Prisma.AdminRoleWhereInput[] OR?: Prisma.AdminRoleWhereInput[] NOT?: Prisma.AdminRoleWhereInput | Prisma.AdminRoleWhereInput[] id?: Prisma.StringFilter<"AdminRole"> | string createdAt?: Prisma.DateTimeFilter<"AdminRole"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AdminRole"> | Date | string name?: Prisma.StringFilter<"AdminRole"> | string description?: Prisma.StringFilter<"AdminRole"> | string systemKey?: Prisma.StringNullableFilter<"AdminRole"> | string | null isSystem?: Prisma.BoolFilter<"AdminRole"> | boolean active?: Prisma.BoolFilter<"AdminRole"> | boolean permissions?: Prisma.AdminRolePermissionListRelationFilter users?: Prisma.AdminUserRoleListRelationFilter } export type AdminRoleOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder systemKey?: Prisma.SortOrderInput | Prisma.SortOrder isSystem?: Prisma.SortOrder active?: Prisma.SortOrder permissions?: Prisma.AdminRolePermissionOrderByRelationAggregateInput users?: Prisma.AdminUserRoleOrderByRelationAggregateInput } export type AdminRoleWhereUniqueInput = Prisma.AtLeast<{ id?: string name?: string systemKey?: string AND?: Prisma.AdminRoleWhereInput | Prisma.AdminRoleWhereInput[] OR?: Prisma.AdminRoleWhereInput[] NOT?: Prisma.AdminRoleWhereInput | Prisma.AdminRoleWhereInput[] createdAt?: Prisma.DateTimeFilter<"AdminRole"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AdminRole"> | Date | string description?: Prisma.StringFilter<"AdminRole"> | string isSystem?: Prisma.BoolFilter<"AdminRole"> | boolean active?: Prisma.BoolFilter<"AdminRole"> | boolean permissions?: Prisma.AdminRolePermissionListRelationFilter users?: Prisma.AdminUserRoleListRelationFilter }, "id" | "name" | "systemKey"> export type AdminRoleOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder systemKey?: Prisma.SortOrderInput | Prisma.SortOrder isSystem?: Prisma.SortOrder active?: Prisma.SortOrder _count?: Prisma.AdminRoleCountOrderByAggregateInput _max?: Prisma.AdminRoleMaxOrderByAggregateInput _min?: Prisma.AdminRoleMinOrderByAggregateInput } export type AdminRoleScalarWhereWithAggregatesInput = { AND?: Prisma.AdminRoleScalarWhereWithAggregatesInput | Prisma.AdminRoleScalarWhereWithAggregatesInput[] OR?: Prisma.AdminRoleScalarWhereWithAggregatesInput[] NOT?: Prisma.AdminRoleScalarWhereWithAggregatesInput | Prisma.AdminRoleScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AdminRole"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminRole"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AdminRole"> | Date | string name?: Prisma.StringWithAggregatesFilter<"AdminRole"> | string description?: Prisma.StringWithAggregatesFilter<"AdminRole"> | string systemKey?: Prisma.StringNullableWithAggregatesFilter<"AdminRole"> | string | null isSystem?: Prisma.BoolWithAggregatesFilter<"AdminRole"> | boolean active?: Prisma.BoolWithAggregatesFilter<"AdminRole"> | boolean } export type AdminRoleCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string systemKey?: string | null isSystem?: boolean active?: boolean permissions?: Prisma.AdminRolePermissionCreateNestedManyWithoutRoleInput users?: Prisma.AdminUserRoleCreateNestedManyWithoutRoleInput } export type AdminRoleUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string systemKey?: string | null isSystem?: boolean active?: boolean permissions?: Prisma.AdminRolePermissionUncheckedCreateNestedManyWithoutRoleInput users?: Prisma.AdminUserRoleUncheckedCreateNestedManyWithoutRoleInput } export type AdminRoleUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string systemKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean active?: Prisma.BoolFieldUpdateOperationsInput | boolean permissions?: Prisma.AdminRolePermissionUpdateManyWithoutRoleNestedInput users?: Prisma.AdminUserRoleUpdateManyWithoutRoleNestedInput } export type AdminRoleUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string systemKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean active?: Prisma.BoolFieldUpdateOperationsInput | boolean permissions?: Prisma.AdminRolePermissionUncheckedUpdateManyWithoutRoleNestedInput users?: Prisma.AdminUserRoleUncheckedUpdateManyWithoutRoleNestedInput } export type AdminRoleCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string systemKey?: string | null isSystem?: boolean active?: boolean } export type AdminRoleUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string systemKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean active?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AdminRoleUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string systemKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean active?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AdminRoleCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder systemKey?: Prisma.SortOrder isSystem?: Prisma.SortOrder active?: Prisma.SortOrder } export type AdminRoleMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder systemKey?: Prisma.SortOrder isSystem?: Prisma.SortOrder active?: Prisma.SortOrder } export type AdminRoleMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder systemKey?: Prisma.SortOrder isSystem?: Prisma.SortOrder active?: Prisma.SortOrder } export type AdminRoleScalarRelationFilter = { is?: Prisma.AdminRoleWhereInput isNot?: Prisma.AdminRoleWhereInput } export type AdminRoleCreateNestedOneWithoutPermissionsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminRoleCreateOrConnectWithoutPermissionsInput connect?: Prisma.AdminRoleWhereUniqueInput } export type AdminRoleUpdateOneRequiredWithoutPermissionsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminRoleCreateOrConnectWithoutPermissionsInput upsert?: Prisma.AdminRoleUpsertWithoutPermissionsInput connect?: Prisma.AdminRoleWhereUniqueInput update?: Prisma.XOR, Prisma.AdminRoleUncheckedUpdateWithoutPermissionsInput> } export type AdminRoleCreateNestedOneWithoutUsersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminRoleCreateOrConnectWithoutUsersInput connect?: Prisma.AdminRoleWhereUniqueInput } export type AdminRoleUpdateOneRequiredWithoutUsersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminRoleCreateOrConnectWithoutUsersInput upsert?: Prisma.AdminRoleUpsertWithoutUsersInput connect?: Prisma.AdminRoleWhereUniqueInput update?: Prisma.XOR, Prisma.AdminRoleUncheckedUpdateWithoutUsersInput> } export type AdminRoleCreateWithoutPermissionsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string systemKey?: string | null isSystem?: boolean active?: boolean users?: Prisma.AdminUserRoleCreateNestedManyWithoutRoleInput } export type AdminRoleUncheckedCreateWithoutPermissionsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string systemKey?: string | null isSystem?: boolean active?: boolean users?: Prisma.AdminUserRoleUncheckedCreateNestedManyWithoutRoleInput } export type AdminRoleCreateOrConnectWithoutPermissionsInput = { where: Prisma.AdminRoleWhereUniqueInput create: Prisma.XOR } export type AdminRoleUpsertWithoutPermissionsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AdminRoleWhereInput } export type AdminRoleUpdateToOneWithWhereWithoutPermissionsInput = { where?: Prisma.AdminRoleWhereInput data: Prisma.XOR } export type AdminRoleUpdateWithoutPermissionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string systemKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean active?: Prisma.BoolFieldUpdateOperationsInput | boolean users?: Prisma.AdminUserRoleUpdateManyWithoutRoleNestedInput } export type AdminRoleUncheckedUpdateWithoutPermissionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string systemKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean active?: Prisma.BoolFieldUpdateOperationsInput | boolean users?: Prisma.AdminUserRoleUncheckedUpdateManyWithoutRoleNestedInput } export type AdminRoleCreateWithoutUsersInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string systemKey?: string | null isSystem?: boolean active?: boolean permissions?: Prisma.AdminRolePermissionCreateNestedManyWithoutRoleInput } export type AdminRoleUncheckedCreateWithoutUsersInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string systemKey?: string | null isSystem?: boolean active?: boolean permissions?: Prisma.AdminRolePermissionUncheckedCreateNestedManyWithoutRoleInput } export type AdminRoleCreateOrConnectWithoutUsersInput = { where: Prisma.AdminRoleWhereUniqueInput create: Prisma.XOR } export type AdminRoleUpsertWithoutUsersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AdminRoleWhereInput } export type AdminRoleUpdateToOneWithWhereWithoutUsersInput = { where?: Prisma.AdminRoleWhereInput data: Prisma.XOR } export type AdminRoleUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string systemKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean active?: Prisma.BoolFieldUpdateOperationsInput | boolean permissions?: Prisma.AdminRolePermissionUpdateManyWithoutRoleNestedInput } export type AdminRoleUncheckedUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string systemKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean active?: Prisma.BoolFieldUpdateOperationsInput | boolean permissions?: Prisma.AdminRolePermissionUncheckedUpdateManyWithoutRoleNestedInput } /** * Count Type AdminRoleCountOutputType */ export type AdminRoleCountOutputType = { permissions: number users: number } export type AdminRoleCountOutputTypeSelect = { permissions?: boolean | AdminRoleCountOutputTypeCountPermissionsArgs users?: boolean | AdminRoleCountOutputTypeCountUsersArgs } /** * AdminRoleCountOutputType without action */ export type AdminRoleCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AdminRoleCountOutputType */ select?: Prisma.AdminRoleCountOutputTypeSelect | null } /** * AdminRoleCountOutputType without action */ export type AdminRoleCountOutputTypeCountPermissionsArgs = { where?: Prisma.AdminRolePermissionWhereInput } /** * AdminRoleCountOutputType without action */ export type AdminRoleCountOutputTypeCountUsersArgs = { where?: Prisma.AdminUserRoleWhereInput } export type AdminRoleSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean description?: boolean systemKey?: boolean isSystem?: boolean active?: boolean permissions?: boolean | Prisma.AdminRole$permissionsArgs users?: boolean | Prisma.AdminRole$usersArgs _count?: boolean | Prisma.AdminRoleCountOutputTypeDefaultArgs }, ExtArgs["result"]["adminRole"]> export type AdminRoleSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean description?: boolean systemKey?: boolean isSystem?: boolean active?: boolean }, ExtArgs["result"]["adminRole"]> export type AdminRoleSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean description?: boolean systemKey?: boolean isSystem?: boolean active?: boolean }, ExtArgs["result"]["adminRole"]> export type AdminRoleSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean description?: boolean systemKey?: boolean isSystem?: boolean active?: boolean } export type AdminRoleOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "name" | "description" | "systemKey" | "isSystem" | "active", ExtArgs["result"]["adminRole"]> export type AdminRoleInclude = { permissions?: boolean | Prisma.AdminRole$permissionsArgs users?: boolean | Prisma.AdminRole$usersArgs _count?: boolean | Prisma.AdminRoleCountOutputTypeDefaultArgs } export type AdminRoleIncludeCreateManyAndReturn = {} export type AdminRoleIncludeUpdateManyAndReturn = {} export type $AdminRolePayload = { name: "AdminRole" objects: { permissions: Prisma.$AdminRolePermissionPayload[] users: Prisma.$AdminUserRolePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date name: string description: string systemKey: string | null isSystem: boolean active: boolean }, ExtArgs["result"]["adminRole"]> composites: {} } export type AdminRoleGetPayload = runtime.Types.Result.GetResult export type AdminRoleCountArgs = Omit & { select?: AdminRoleCountAggregateInputType | true } export interface AdminRoleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AdminRole'], meta: { name: 'AdminRole' } } /** * Find zero or one AdminRole that matches the filter. * @param {AdminRoleFindUniqueArgs} args - Arguments to find a AdminRole * @example * // Get one AdminRole * const adminRole = await prisma.adminRole.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AdminRoleClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AdminRole that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AdminRoleFindUniqueOrThrowArgs} args - Arguments to find a AdminRole * @example * // Get one AdminRole * const adminRole = await prisma.adminRole.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AdminRoleClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AdminRole 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 {AdminRoleFindFirstArgs} args - Arguments to find a AdminRole * @example * // Get one AdminRole * const adminRole = await prisma.adminRole.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminRoleClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AdminRole 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 {AdminRoleFindFirstOrThrowArgs} args - Arguments to find a AdminRole * @example * // Get one AdminRole * const adminRole = await prisma.adminRole.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminRoleClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AdminRoles 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 {AdminRoleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AdminRoles * const adminRoles = await prisma.adminRole.findMany() * * // Get first 10 AdminRoles * const adminRoles = await prisma.adminRole.findMany({ take: 10 }) * * // Only select the `id` * const adminRoleWithIdOnly = await prisma.adminRole.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AdminRole. * @param {AdminRoleCreateArgs} args - Arguments to create a AdminRole. * @example * // Create one AdminRole * const AdminRole = await prisma.adminRole.create({ * data: { * // ... data to create a AdminRole * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AdminRoleClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AdminRoles. * @param {AdminRoleCreateManyArgs} args - Arguments to create many AdminRoles. * @example * // Create many AdminRoles * const adminRole = await prisma.adminRole.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AdminRoles and returns the data saved in the database. * @param {AdminRoleCreateManyAndReturnArgs} args - Arguments to create many AdminRoles. * @example * // Create many AdminRoles * const adminRole = await prisma.adminRole.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AdminRoles and only return the `id` * const adminRoleWithIdOnly = await prisma.adminRole.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 AdminRole. * @param {AdminRoleDeleteArgs} args - Arguments to delete one AdminRole. * @example * // Delete one AdminRole * const AdminRole = await prisma.adminRole.delete({ * where: { * // ... filter to delete one AdminRole * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AdminRoleClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AdminRole. * @param {AdminRoleUpdateArgs} args - Arguments to update one AdminRole. * @example * // Update one AdminRole * const adminRole = await prisma.adminRole.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AdminRoleClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AdminRoles. * @param {AdminRoleDeleteManyArgs} args - Arguments to filter AdminRoles to delete. * @example * // Delete a few AdminRoles * const { count } = await prisma.adminRole.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminRoles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminRoleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AdminRoles * const adminRole = await prisma.adminRole.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminRoles and returns the data updated in the database. * @param {AdminRoleUpdateManyAndReturnArgs} args - Arguments to update many AdminRoles. * @example * // Update many AdminRoles * const adminRole = await prisma.adminRole.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AdminRoles and only return the `id` * const adminRoleWithIdOnly = await prisma.adminRole.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 AdminRole. * @param {AdminRoleUpsertArgs} args - Arguments to update or create a AdminRole. * @example * // Update or create a AdminRole * const adminRole = await prisma.adminRole.upsert({ * create: { * // ... data to create a AdminRole * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AdminRole we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AdminRoleClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AdminRoles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminRoleCountArgs} args - Arguments to filter AdminRoles to count. * @example * // Count the number of AdminRoles * const count = await prisma.adminRole.count({ * where: { * // ... the filter for the AdminRoles 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 AdminRole. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminRoleAggregateArgs} 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 AdminRole. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminRoleGroupByArgs} 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 AdminRoleGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AdminRoleGroupByArgs['orderBy'] } : { orderBy?: AdminRoleGroupByArgs['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 ? GetAdminRoleGroupByPayload : Prisma.PrismaPromise /** * Fields of the AdminRole model */ readonly fields: AdminRoleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AdminRole. * 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__AdminRoleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" permissions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> 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 AdminRole model */ export interface AdminRoleFieldRefs { readonly id: Prisma.FieldRef<"AdminRole", 'String'> readonly createdAt: Prisma.FieldRef<"AdminRole", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"AdminRole", 'DateTime'> readonly name: Prisma.FieldRef<"AdminRole", 'String'> readonly description: Prisma.FieldRef<"AdminRole", 'String'> readonly systemKey: Prisma.FieldRef<"AdminRole", 'String'> readonly isSystem: Prisma.FieldRef<"AdminRole", 'Boolean'> readonly active: Prisma.FieldRef<"AdminRole", 'Boolean'> } // Custom InputTypes /** * AdminRole findUnique */ export type AdminRoleFindUniqueArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null /** * Filter, which AdminRole to fetch. */ where: Prisma.AdminRoleWhereUniqueInput } /** * AdminRole findUniqueOrThrow */ export type AdminRoleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null /** * Filter, which AdminRole to fetch. */ where: Prisma.AdminRoleWhereUniqueInput } /** * AdminRole findFirst */ export type AdminRoleFindFirstArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null /** * Filter, which AdminRole to fetch. */ where?: Prisma.AdminRoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminRoles to fetch. */ orderBy?: Prisma.AdminRoleOrderByWithRelationInput | Prisma.AdminRoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminRoles. */ cursor?: Prisma.AdminRoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminRoles 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` AdminRoles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminRoles. */ distinct?: Prisma.AdminRoleScalarFieldEnum | Prisma.AdminRoleScalarFieldEnum[] } /** * AdminRole findFirstOrThrow */ export type AdminRoleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null /** * Filter, which AdminRole to fetch. */ where?: Prisma.AdminRoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminRoles to fetch. */ orderBy?: Prisma.AdminRoleOrderByWithRelationInput | Prisma.AdminRoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminRoles. */ cursor?: Prisma.AdminRoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminRoles 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` AdminRoles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminRoles. */ distinct?: Prisma.AdminRoleScalarFieldEnum | Prisma.AdminRoleScalarFieldEnum[] } /** * AdminRole findMany */ export type AdminRoleFindManyArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null /** * Filter, which AdminRoles to fetch. */ where?: Prisma.AdminRoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminRoles to fetch. */ orderBy?: Prisma.AdminRoleOrderByWithRelationInput | Prisma.AdminRoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AdminRoles. */ cursor?: Prisma.AdminRoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminRoles 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` AdminRoles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminRoles. */ distinct?: Prisma.AdminRoleScalarFieldEnum | Prisma.AdminRoleScalarFieldEnum[] } /** * AdminRole create */ export type AdminRoleCreateArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null /** * The data needed to create a AdminRole. */ data: Prisma.XOR } /** * AdminRole createMany */ export type AdminRoleCreateManyArgs = { /** * The data used to create many AdminRoles. */ data: Prisma.AdminRoleCreateManyInput | Prisma.AdminRoleCreateManyInput[] skipDuplicates?: boolean } /** * AdminRole createManyAndReturn */ export type AdminRoleCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelectCreateManyAndReturn | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * The data used to create many AdminRoles. */ data: Prisma.AdminRoleCreateManyInput | Prisma.AdminRoleCreateManyInput[] skipDuplicates?: boolean } /** * AdminRole update */ export type AdminRoleUpdateArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null /** * The data needed to update a AdminRole. */ data: Prisma.XOR /** * Choose, which AdminRole to update. */ where: Prisma.AdminRoleWhereUniqueInput } /** * AdminRole updateMany */ export type AdminRoleUpdateManyArgs = { /** * The data used to update AdminRoles. */ data: Prisma.XOR /** * Filter which AdminRoles to update */ where?: Prisma.AdminRoleWhereInput /** * Limit how many AdminRoles to update. */ limit?: number } /** * AdminRole updateManyAndReturn */ export type AdminRoleUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelectUpdateManyAndReturn | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * The data used to update AdminRoles. */ data: Prisma.XOR /** * Filter which AdminRoles to update */ where?: Prisma.AdminRoleWhereInput /** * Limit how many AdminRoles to update. */ limit?: number } /** * AdminRole upsert */ export type AdminRoleUpsertArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null /** * The filter to search for the AdminRole to update in case it exists. */ where: Prisma.AdminRoleWhereUniqueInput /** * In case the AdminRole found by the `where` argument doesn't exist, create a new AdminRole with this data. */ create: Prisma.XOR /** * In case the AdminRole was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AdminRole delete */ export type AdminRoleDeleteArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null /** * Filter which AdminRole to delete. */ where: Prisma.AdminRoleWhereUniqueInput } /** * AdminRole deleteMany */ export type AdminRoleDeleteManyArgs = { /** * Filter which AdminRoles to delete */ where?: Prisma.AdminRoleWhereInput /** * Limit how many AdminRoles to delete. */ limit?: number } /** * AdminRole.permissions */ export type AdminRole$permissionsArgs = { /** * Select specific fields to fetch from the AdminRolePermission */ select?: Prisma.AdminRolePermissionSelect | null /** * Omit specific fields from the AdminRolePermission */ omit?: Prisma.AdminRolePermissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRolePermissionInclude | null where?: Prisma.AdminRolePermissionWhereInput orderBy?: Prisma.AdminRolePermissionOrderByWithRelationInput | Prisma.AdminRolePermissionOrderByWithRelationInput[] cursor?: Prisma.AdminRolePermissionWhereUniqueInput take?: number skip?: number distinct?: Prisma.AdminRolePermissionScalarFieldEnum | Prisma.AdminRolePermissionScalarFieldEnum[] } /** * AdminRole.users */ export type AdminRole$usersArgs = { /** * Select specific fields to fetch from the AdminUserRole */ select?: Prisma.AdminUserRoleSelect | null /** * Omit specific fields from the AdminUserRole */ omit?: Prisma.AdminUserRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminUserRoleInclude | null where?: Prisma.AdminUserRoleWhereInput orderBy?: Prisma.AdminUserRoleOrderByWithRelationInput | Prisma.AdminUserRoleOrderByWithRelationInput[] cursor?: Prisma.AdminUserRoleWhereUniqueInput take?: number skip?: number distinct?: Prisma.AdminUserRoleScalarFieldEnum | Prisma.AdminUserRoleScalarFieldEnum[] } /** * AdminRole without action */ export type AdminRoleDefaultArgs = { /** * Select specific fields to fetch from the AdminRole */ select?: Prisma.AdminRoleSelect | null /** * Omit specific fields from the AdminRole */ omit?: Prisma.AdminRoleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminRoleInclude | null }