Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/db/generated/prisma/client/models/AdminRole.ts
T

1550 lines
56 KiB
TypeScript

/* !!! 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<Prisma.$AdminRolePayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends AdminRoleAggregateArgs> = {
[P in keyof T & keyof AggregateAdminRole]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAdminRole[P]>
: Prisma.GetScalarType<T[P], AggregateAdminRole[P]>
}
export type AdminRoleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends AdminRoleGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AdminRoleGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AdminRoleGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AdminRoleGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AdminRoleGroupByOutputType[P]>
}
>
>
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<Prisma.AdminRoleCreateWithoutPermissionsInput, Prisma.AdminRoleUncheckedCreateWithoutPermissionsInput>
connectOrCreate?: Prisma.AdminRoleCreateOrConnectWithoutPermissionsInput
connect?: Prisma.AdminRoleWhereUniqueInput
}
export type AdminRoleUpdateOneRequiredWithoutPermissionsNestedInput = {
create?: Prisma.XOR<Prisma.AdminRoleCreateWithoutPermissionsInput, Prisma.AdminRoleUncheckedCreateWithoutPermissionsInput>
connectOrCreate?: Prisma.AdminRoleCreateOrConnectWithoutPermissionsInput
upsert?: Prisma.AdminRoleUpsertWithoutPermissionsInput
connect?: Prisma.AdminRoleWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminRoleUpdateToOneWithWhereWithoutPermissionsInput, Prisma.AdminRoleUpdateWithoutPermissionsInput>, Prisma.AdminRoleUncheckedUpdateWithoutPermissionsInput>
}
export type AdminRoleCreateNestedOneWithoutUsersInput = {
create?: Prisma.XOR<Prisma.AdminRoleCreateWithoutUsersInput, Prisma.AdminRoleUncheckedCreateWithoutUsersInput>
connectOrCreate?: Prisma.AdminRoleCreateOrConnectWithoutUsersInput
connect?: Prisma.AdminRoleWhereUniqueInput
}
export type AdminRoleUpdateOneRequiredWithoutUsersNestedInput = {
create?: Prisma.XOR<Prisma.AdminRoleCreateWithoutUsersInput, Prisma.AdminRoleUncheckedCreateWithoutUsersInput>
connectOrCreate?: Prisma.AdminRoleCreateOrConnectWithoutUsersInput
upsert?: Prisma.AdminRoleUpsertWithoutUsersInput
connect?: Prisma.AdminRoleWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminRoleUpdateToOneWithWhereWithoutUsersInput, Prisma.AdminRoleUpdateWithoutUsersInput>, 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<Prisma.AdminRoleCreateWithoutPermissionsInput, Prisma.AdminRoleUncheckedCreateWithoutPermissionsInput>
}
export type AdminRoleUpsertWithoutPermissionsInput = {
update: Prisma.XOR<Prisma.AdminRoleUpdateWithoutPermissionsInput, Prisma.AdminRoleUncheckedUpdateWithoutPermissionsInput>
create: Prisma.XOR<Prisma.AdminRoleCreateWithoutPermissionsInput, Prisma.AdminRoleUncheckedCreateWithoutPermissionsInput>
where?: Prisma.AdminRoleWhereInput
}
export type AdminRoleUpdateToOneWithWhereWithoutPermissionsInput = {
where?: Prisma.AdminRoleWhereInput
data: Prisma.XOR<Prisma.AdminRoleUpdateWithoutPermissionsInput, Prisma.AdminRoleUncheckedUpdateWithoutPermissionsInput>
}
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<Prisma.AdminRoleCreateWithoutUsersInput, Prisma.AdminRoleUncheckedCreateWithoutUsersInput>
}
export type AdminRoleUpsertWithoutUsersInput = {
update: Prisma.XOR<Prisma.AdminRoleUpdateWithoutUsersInput, Prisma.AdminRoleUncheckedUpdateWithoutUsersInput>
create: Prisma.XOR<Prisma.AdminRoleCreateWithoutUsersInput, Prisma.AdminRoleUncheckedCreateWithoutUsersInput>
where?: Prisma.AdminRoleWhereInput
}
export type AdminRoleUpdateToOneWithWhereWithoutUsersInput = {
where?: Prisma.AdminRoleWhereInput
data: Prisma.XOR<Prisma.AdminRoleUpdateWithoutUsersInput, Prisma.AdminRoleUncheckedUpdateWithoutUsersInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
permissions?: boolean | AdminRoleCountOutputTypeCountPermissionsArgs
users?: boolean | AdminRoleCountOutputTypeCountUsersArgs
}
/**
* AdminRoleCountOutputType without action
*/
export type AdminRoleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRoleCountOutputType
*/
select?: Prisma.AdminRoleCountOutputTypeSelect<ExtArgs> | null
}
/**
* AdminRoleCountOutputType without action
*/
export type AdminRoleCountOutputTypeCountPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AdminRolePermissionWhereInput
}
/**
* AdminRoleCountOutputType without action
*/
export type AdminRoleCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AdminUserRoleWhereInput
}
export type AdminRoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
users?: boolean | Prisma.AdminRole$usersArgs<ExtArgs>
_count?: boolean | Prisma.AdminRoleCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminRole"]>
export type AdminRoleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "name" | "description" | "systemKey" | "isSystem" | "active", ExtArgs["result"]["adminRole"]>
export type AdminRoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
permissions?: boolean | Prisma.AdminRole$permissionsArgs<ExtArgs>
users?: boolean | Prisma.AdminRole$usersArgs<ExtArgs>
_count?: boolean | Prisma.AdminRoleCountOutputTypeDefaultArgs<ExtArgs>
}
export type AdminRoleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type AdminRoleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $AdminRolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AdminRole"
objects: {
permissions: Prisma.$AdminRolePermissionPayload<ExtArgs>[]
users: Prisma.$AdminUserRolePayload<ExtArgs>[]
}
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<S extends boolean | null | undefined | AdminRoleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminRolePayload, S>
export type AdminRoleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AdminRoleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AdminRoleCountAggregateInputType | true
}
export interface AdminRoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends AdminRoleFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminRoleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminRoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminRoleFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminRoleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleFindManyArgs>(args?: Prisma.SelectSubset<T, AdminRoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleCreateArgs>(args: Prisma.SelectSubset<T, AdminRoleCreateArgs<ExtArgs>>): Prisma.Prisma__AdminRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminRoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends AdminRoleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminRoleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleDeleteArgs>(args: Prisma.SelectSubset<T, AdminRoleDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleUpdateArgs>(args: Prisma.SelectSubset<T, AdminRoleUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminRoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends AdminRoleUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminRoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends AdminRoleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminRoleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleUpsertArgs>(args: Prisma.SelectSubset<T, AdminRoleUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, 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<T extends AdminRoleCountArgs>(
args?: Prisma.Subset<T, AdminRoleCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AdminRoleCountAggregateOutputType>
: 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<T extends AdminRoleAggregateArgs>(args: Prisma.Subset<T, AdminRoleAggregateArgs>): Prisma.PrismaPromise<GetAdminRoleAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AdminRoleGroupByArgs['orderBy'] }
: { orderBy?: AdminRoleGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, AdminRoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
permissions<T extends Prisma.AdminRole$permissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminRole$permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminRolePermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
users<T extends Prisma.AdminRole$usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminRole$usersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | null
/**
* Filter, which AdminRole to fetch.
*/
where: Prisma.AdminRoleWhereUniqueInput
}
/**
* AdminRole findUniqueOrThrow
*/
export type AdminRoleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | null
/**
* Filter, which AdminRole to fetch.
*/
where: Prisma.AdminRoleWhereUniqueInput
}
/**
* AdminRole findFirst
*/
export type AdminRoleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | null
/**
* The data needed to create a AdminRole.
*/
data: Prisma.XOR<Prisma.AdminRoleCreateInput, Prisma.AdminRoleUncheckedCreateInput>
}
/**
* AdminRole createMany
*/
export type AdminRoleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AdminRoles.
*/
data: Prisma.AdminRoleCreateManyInput | Prisma.AdminRoleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AdminRole createManyAndReturn
*/
export type AdminRoleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* The data used to create many AdminRoles.
*/
data: Prisma.AdminRoleCreateManyInput | Prisma.AdminRoleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AdminRole update
*/
export type AdminRoleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | null
/**
* The data needed to update a AdminRole.
*/
data: Prisma.XOR<Prisma.AdminRoleUpdateInput, Prisma.AdminRoleUncheckedUpdateInput>
/**
* Choose, which AdminRole to update.
*/
where: Prisma.AdminRoleWhereUniqueInput
}
/**
* AdminRole updateMany
*/
export type AdminRoleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AdminRoles.
*/
data: Prisma.XOR<Prisma.AdminRoleUpdateManyMutationInput, Prisma.AdminRoleUncheckedUpdateManyInput>
/**
* Filter which AdminRoles to update
*/
where?: Prisma.AdminRoleWhereInput
/**
* Limit how many AdminRoles to update.
*/
limit?: number
}
/**
* AdminRole updateManyAndReturn
*/
export type AdminRoleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* The data used to update AdminRoles.
*/
data: Prisma.XOR<Prisma.AdminRoleUpdateManyMutationInput, Prisma.AdminRoleUncheckedUpdateManyInput>
/**
* Filter which AdminRoles to update
*/
where?: Prisma.AdminRoleWhereInput
/**
* Limit how many AdminRoles to update.
*/
limit?: number
}
/**
* AdminRole upsert
*/
export type AdminRoleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | 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<Prisma.AdminRoleCreateInput, Prisma.AdminRoleUncheckedCreateInput>
/**
* In case the AdminRole was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AdminRoleUpdateInput, Prisma.AdminRoleUncheckedUpdateInput>
}
/**
* AdminRole delete
*/
export type AdminRoleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | null
/**
* Filter which AdminRole to delete.
*/
where: Prisma.AdminRoleWhereUniqueInput
}
/**
* AdminRole deleteMany
*/
export type AdminRoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminRoles to delete
*/
where?: Prisma.AdminRoleWhereInput
/**
* Limit how many AdminRoles to delete.
*/
limit?: number
}
/**
* AdminRole.permissions
*/
export type AdminRole$permissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRolePermission
*/
select?: Prisma.AdminRolePermissionSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRolePermission
*/
omit?: Prisma.AdminRolePermissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRolePermissionInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminUserRole
*/
select?: Prisma.AdminUserRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminUserRole
*/
omit?: Prisma.AdminUserRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminUserRoleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminRole
*/
select?: Prisma.AdminRoleSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminRole
*/
omit?: Prisma.AdminRoleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminRoleInclude<ExtArgs> | null
}