1328 lines
49 KiB
TypeScript
1328 lines
49 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 `AdminPermission` 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 AdminPermission
|
|
*
|
|
*/
|
|
export type AdminPermissionModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminPermissionPayload>
|
|
|
|
export type AggregateAdminPermission = {
|
|
_count: AdminPermissionCountAggregateOutputType | null
|
|
_min: AdminPermissionMinAggregateOutputType | null
|
|
_max: AdminPermissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AdminPermissionMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
name: string | null
|
|
description: string | null
|
|
}
|
|
|
|
export type AdminPermissionMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
name: string | null
|
|
description: string | null
|
|
}
|
|
|
|
export type AdminPermissionCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
name: number
|
|
description: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AdminPermissionMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
name?: true
|
|
description?: true
|
|
}
|
|
|
|
export type AdminPermissionMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
name?: true
|
|
description?: true
|
|
}
|
|
|
|
export type AdminPermissionCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
name?: true
|
|
description?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AdminPermissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminPermission to aggregate.
|
|
*/
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminPermissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminPermissionOrderByWithRelationInput | Prisma.AdminPermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AdminPermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminPermissions 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` AdminPermissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AdminPermissions
|
|
**/
|
|
_count?: true | AdminPermissionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AdminPermissionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AdminPermissionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAdminPermissionAggregateType<T extends AdminPermissionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdminPermission]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAdminPermission[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAdminPermission[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdminPermissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
orderBy?: Prisma.AdminPermissionOrderByWithAggregationInput | Prisma.AdminPermissionOrderByWithAggregationInput[]
|
|
by: Prisma.AdminPermissionScalarFieldEnum[] | Prisma.AdminPermissionScalarFieldEnum
|
|
having?: Prisma.AdminPermissionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AdminPermissionCountAggregateInputType | true
|
|
_min?: AdminPermissionMinAggregateInputType
|
|
_max?: AdminPermissionMaxAggregateInputType
|
|
}
|
|
|
|
export type AdminPermissionGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
name: string
|
|
description: string
|
|
_count: AdminPermissionCountAggregateOutputType | null
|
|
_min: AdminPermissionMinAggregateOutputType | null
|
|
_max: AdminPermissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAdminPermissionGroupByPayload<T extends AdminPermissionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AdminPermissionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdminPermissionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AdminPermissionGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AdminPermissionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AdminPermissionWhereInput = {
|
|
AND?: Prisma.AdminPermissionWhereInput | Prisma.AdminPermissionWhereInput[]
|
|
OR?: Prisma.AdminPermissionWhereInput[]
|
|
NOT?: Prisma.AdminPermissionWhereInput | Prisma.AdminPermissionWhereInput[]
|
|
id?: Prisma.StringFilter<"AdminPermission"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminPermission"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AdminPermission"> | Date | string
|
|
name?: Prisma.StringFilter<"AdminPermission"> | string
|
|
description?: Prisma.StringFilter<"AdminPermission"> | string
|
|
roles?: Prisma.AdminRolePermissionListRelationFilter
|
|
}
|
|
|
|
export type AdminPermissionOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
roles?: Prisma.AdminRolePermissionOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type AdminPermissionWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
name?: string
|
|
AND?: Prisma.AdminPermissionWhereInput | Prisma.AdminPermissionWhereInput[]
|
|
OR?: Prisma.AdminPermissionWhereInput[]
|
|
NOT?: Prisma.AdminPermissionWhereInput | Prisma.AdminPermissionWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"AdminPermission"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AdminPermission"> | Date | string
|
|
description?: Prisma.StringFilter<"AdminPermission"> | string
|
|
roles?: Prisma.AdminRolePermissionListRelationFilter
|
|
}, "id" | "name">
|
|
|
|
export type AdminPermissionOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
_count?: Prisma.AdminPermissionCountOrderByAggregateInput
|
|
_max?: Prisma.AdminPermissionMaxOrderByAggregateInput
|
|
_min?: Prisma.AdminPermissionMinOrderByAggregateInput
|
|
}
|
|
|
|
export type AdminPermissionScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AdminPermissionScalarWhereWithAggregatesInput | Prisma.AdminPermissionScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AdminPermissionScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AdminPermissionScalarWhereWithAggregatesInput | Prisma.AdminPermissionScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"AdminPermission"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminPermission"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AdminPermission"> | Date | string
|
|
name?: Prisma.StringWithAggregatesFilter<"AdminPermission"> | string
|
|
description?: Prisma.StringWithAggregatesFilter<"AdminPermission"> | string
|
|
}
|
|
|
|
export type AdminPermissionCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
description: string
|
|
roles?: Prisma.AdminRolePermissionCreateNestedManyWithoutPermissionInput
|
|
}
|
|
|
|
export type AdminPermissionUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
description: string
|
|
roles?: Prisma.AdminRolePermissionUncheckedCreateNestedManyWithoutPermissionInput
|
|
}
|
|
|
|
export type AdminPermissionUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
roles?: Prisma.AdminRolePermissionUpdateManyWithoutPermissionNestedInput
|
|
}
|
|
|
|
export type AdminPermissionUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
roles?: Prisma.AdminRolePermissionUncheckedUpdateManyWithoutPermissionNestedInput
|
|
}
|
|
|
|
export type AdminPermissionCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
description: string
|
|
}
|
|
|
|
export type AdminPermissionUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminPermissionUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminPermissionCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminPermissionMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminPermissionMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminPermissionScalarRelationFilter = {
|
|
is?: Prisma.AdminPermissionWhereInput
|
|
isNot?: Prisma.AdminPermissionWhereInput
|
|
}
|
|
|
|
export type AdminPermissionCreateNestedOneWithoutRolesInput = {
|
|
create?: Prisma.XOR<Prisma.AdminPermissionCreateWithoutRolesInput, Prisma.AdminPermissionUncheckedCreateWithoutRolesInput>
|
|
connectOrCreate?: Prisma.AdminPermissionCreateOrConnectWithoutRolesInput
|
|
connect?: Prisma.AdminPermissionWhereUniqueInput
|
|
}
|
|
|
|
export type AdminPermissionUpdateOneRequiredWithoutRolesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminPermissionCreateWithoutRolesInput, Prisma.AdminPermissionUncheckedCreateWithoutRolesInput>
|
|
connectOrCreate?: Prisma.AdminPermissionCreateOrConnectWithoutRolesInput
|
|
upsert?: Prisma.AdminPermissionUpsertWithoutRolesInput
|
|
connect?: Prisma.AdminPermissionWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminPermissionUpdateToOneWithWhereWithoutRolesInput, Prisma.AdminPermissionUpdateWithoutRolesInput>, Prisma.AdminPermissionUncheckedUpdateWithoutRolesInput>
|
|
}
|
|
|
|
export type AdminPermissionCreateWithoutRolesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
description: string
|
|
}
|
|
|
|
export type AdminPermissionUncheckedCreateWithoutRolesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
description: string
|
|
}
|
|
|
|
export type AdminPermissionCreateOrConnectWithoutRolesInput = {
|
|
where: Prisma.AdminPermissionWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminPermissionCreateWithoutRolesInput, Prisma.AdminPermissionUncheckedCreateWithoutRolesInput>
|
|
}
|
|
|
|
export type AdminPermissionUpsertWithoutRolesInput = {
|
|
update: Prisma.XOR<Prisma.AdminPermissionUpdateWithoutRolesInput, Prisma.AdminPermissionUncheckedUpdateWithoutRolesInput>
|
|
create: Prisma.XOR<Prisma.AdminPermissionCreateWithoutRolesInput, Prisma.AdminPermissionUncheckedCreateWithoutRolesInput>
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
}
|
|
|
|
export type AdminPermissionUpdateToOneWithWhereWithoutRolesInput = {
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
data: Prisma.XOR<Prisma.AdminPermissionUpdateWithoutRolesInput, Prisma.AdminPermissionUncheckedUpdateWithoutRolesInput>
|
|
}
|
|
|
|
export type AdminPermissionUpdateWithoutRolesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminPermissionUncheckedUpdateWithoutRolesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type AdminPermissionCountOutputType
|
|
*/
|
|
|
|
export type AdminPermissionCountOutputType = {
|
|
roles: number
|
|
}
|
|
|
|
export type AdminPermissionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
roles?: boolean | AdminPermissionCountOutputTypeCountRolesArgs
|
|
}
|
|
|
|
/**
|
|
* AdminPermissionCountOutputType without action
|
|
*/
|
|
export type AdminPermissionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermissionCountOutputType
|
|
*/
|
|
select?: Prisma.AdminPermissionCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminPermissionCountOutputType without action
|
|
*/
|
|
export type AdminPermissionCountOutputTypeCountRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminRolePermissionWhereInput
|
|
}
|
|
|
|
|
|
export type AdminPermissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
roles?: boolean | Prisma.AdminPermission$rolesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AdminPermissionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminPermission"]>
|
|
|
|
export type AdminPermissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
}, ExtArgs["result"]["adminPermission"]>
|
|
|
|
export type AdminPermissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
}, ExtArgs["result"]["adminPermission"]>
|
|
|
|
export type AdminPermissionSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
}
|
|
|
|
export type AdminPermissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "name" | "description", ExtArgs["result"]["adminPermission"]>
|
|
export type AdminPermissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
roles?: boolean | Prisma.AdminPermission$rolesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AdminPermissionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminPermissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type AdminPermissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $AdminPermissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AdminPermission"
|
|
objects: {
|
|
roles: Prisma.$AdminRolePermissionPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
name: string
|
|
description: string
|
|
}, ExtArgs["result"]["adminPermission"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AdminPermissionGetPayload<S extends boolean | null | undefined | AdminPermissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload, S>
|
|
|
|
export type AdminPermissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AdminPermissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdminPermissionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdminPermissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminPermission'], meta: { name: 'AdminPermission' } }
|
|
/**
|
|
* Find zero or one AdminPermission that matches the filter.
|
|
* @param {AdminPermissionFindUniqueArgs} args - Arguments to find a AdminPermission
|
|
* @example
|
|
* // Get one AdminPermission
|
|
* const adminPermission = await prisma.adminPermission.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AdminPermissionFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminPermissionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminPermissionClient<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AdminPermission that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AdminPermissionFindUniqueOrThrowArgs} args - Arguments to find a AdminPermission
|
|
* @example
|
|
* // Get one AdminPermission
|
|
* const adminPermission = await prisma.adminPermission.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AdminPermissionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminPermissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminPermissionClient<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminPermission 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 {AdminPermissionFindFirstArgs} args - Arguments to find a AdminPermission
|
|
* @example
|
|
* // Get one AdminPermission
|
|
* const adminPermission = await prisma.adminPermission.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AdminPermissionFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminPermissionFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminPermissionClient<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminPermission 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 {AdminPermissionFindFirstOrThrowArgs} args - Arguments to find a AdminPermission
|
|
* @example
|
|
* // Get one AdminPermission
|
|
* const adminPermission = await prisma.adminPermission.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AdminPermissionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminPermissionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminPermissionClient<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AdminPermissions 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 {AdminPermissionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AdminPermissions
|
|
* const adminPermissions = await prisma.adminPermission.findMany()
|
|
*
|
|
* // Get first 10 AdminPermissions
|
|
* const adminPermissions = await prisma.adminPermission.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const adminPermissionWithIdOnly = await prisma.adminPermission.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AdminPermissionFindManyArgs>(args?: Prisma.SelectSubset<T, AdminPermissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AdminPermission.
|
|
* @param {AdminPermissionCreateArgs} args - Arguments to create a AdminPermission.
|
|
* @example
|
|
* // Create one AdminPermission
|
|
* const AdminPermission = await prisma.adminPermission.create({
|
|
* data: {
|
|
* // ... data to create a AdminPermission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AdminPermissionCreateArgs>(args: Prisma.SelectSubset<T, AdminPermissionCreateArgs<ExtArgs>>): Prisma.Prisma__AdminPermissionClient<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AdminPermissions.
|
|
* @param {AdminPermissionCreateManyArgs} args - Arguments to create many AdminPermissions.
|
|
* @example
|
|
* // Create many AdminPermissions
|
|
* const adminPermission = await prisma.adminPermission.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AdminPermissionCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminPermissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many AdminPermissions and returns the data saved in the database.
|
|
* @param {AdminPermissionCreateManyAndReturnArgs} args - Arguments to create many AdminPermissions.
|
|
* @example
|
|
* // Create many AdminPermissions
|
|
* const adminPermission = await prisma.adminPermission.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AdminPermissions and only return the `id`
|
|
* const adminPermissionWithIdOnly = await prisma.adminPermission.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 AdminPermissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminPermissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AdminPermission.
|
|
* @param {AdminPermissionDeleteArgs} args - Arguments to delete one AdminPermission.
|
|
* @example
|
|
* // Delete one AdminPermission
|
|
* const AdminPermission = await prisma.adminPermission.delete({
|
|
* where: {
|
|
* // ... filter to delete one AdminPermission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AdminPermissionDeleteArgs>(args: Prisma.SelectSubset<T, AdminPermissionDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminPermissionClient<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AdminPermission.
|
|
* @param {AdminPermissionUpdateArgs} args - Arguments to update one AdminPermission.
|
|
* @example
|
|
* // Update one AdminPermission
|
|
* const adminPermission = await prisma.adminPermission.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AdminPermissionUpdateArgs>(args: Prisma.SelectSubset<T, AdminPermissionUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminPermissionClient<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AdminPermissions.
|
|
* @param {AdminPermissionDeleteManyArgs} args - Arguments to filter AdminPermissions to delete.
|
|
* @example
|
|
* // Delete a few AdminPermissions
|
|
* const { count } = await prisma.adminPermission.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AdminPermissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminPermissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminPermissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminPermissionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AdminPermissions
|
|
* const adminPermission = await prisma.adminPermission.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AdminPermissionUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminPermissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminPermissions and returns the data updated in the database.
|
|
* @param {AdminPermissionUpdateManyAndReturnArgs} args - Arguments to update many AdminPermissions.
|
|
* @example
|
|
* // Update many AdminPermissions
|
|
* const adminPermission = await prisma.adminPermission.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AdminPermissions and only return the `id`
|
|
* const adminPermissionWithIdOnly = await prisma.adminPermission.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 AdminPermissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminPermissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AdminPermission.
|
|
* @param {AdminPermissionUpsertArgs} args - Arguments to update or create a AdminPermission.
|
|
* @example
|
|
* // Update or create a AdminPermission
|
|
* const adminPermission = await prisma.adminPermission.upsert({
|
|
* create: {
|
|
* // ... data to create a AdminPermission
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AdminPermission we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AdminPermissionUpsertArgs>(args: Prisma.SelectSubset<T, AdminPermissionUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminPermissionClient<runtime.Types.Result.GetResult<Prisma.$AdminPermissionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AdminPermissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminPermissionCountArgs} args - Arguments to filter AdminPermissions to count.
|
|
* @example
|
|
* // Count the number of AdminPermissions
|
|
* const count = await prisma.adminPermission.count({
|
|
* where: {
|
|
* // ... the filter for the AdminPermissions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AdminPermissionCountArgs>(
|
|
args?: Prisma.Subset<T, AdminPermissionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AdminPermissionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AdminPermission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminPermissionAggregateArgs} 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 AdminPermissionAggregateArgs>(args: Prisma.Subset<T, AdminPermissionAggregateArgs>): Prisma.PrismaPromise<GetAdminPermissionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AdminPermission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminPermissionGroupByArgs} 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 AdminPermissionGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AdminPermissionGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdminPermissionGroupByArgs['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, AdminPermissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminPermissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AdminPermission model
|
|
*/
|
|
readonly fields: AdminPermissionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AdminPermission.
|
|
* 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__AdminPermissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
roles<T extends Prisma.AdminPermission$rolesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminPermission$rolesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminRolePermissionPayload<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 AdminPermission model
|
|
*/
|
|
export interface AdminPermissionFieldRefs {
|
|
readonly id: Prisma.FieldRef<"AdminPermission", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"AdminPermission", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"AdminPermission", 'DateTime'>
|
|
readonly name: Prisma.FieldRef<"AdminPermission", 'String'>
|
|
readonly description: Prisma.FieldRef<"AdminPermission", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AdminPermission findUnique
|
|
*/
|
|
export type AdminPermissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminPermission to fetch.
|
|
*/
|
|
where: Prisma.AdminPermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminPermission findUniqueOrThrow
|
|
*/
|
|
export type AdminPermissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminPermission to fetch.
|
|
*/
|
|
where: Prisma.AdminPermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminPermission findFirst
|
|
*/
|
|
export type AdminPermissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminPermission to fetch.
|
|
*/
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminPermissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminPermissionOrderByWithRelationInput | Prisma.AdminPermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminPermissions.
|
|
*/
|
|
cursor?: Prisma.AdminPermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminPermissions 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` AdminPermissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminPermissions.
|
|
*/
|
|
distinct?: Prisma.AdminPermissionScalarFieldEnum | Prisma.AdminPermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminPermission findFirstOrThrow
|
|
*/
|
|
export type AdminPermissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminPermission to fetch.
|
|
*/
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminPermissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminPermissionOrderByWithRelationInput | Prisma.AdminPermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminPermissions.
|
|
*/
|
|
cursor?: Prisma.AdminPermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminPermissions 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` AdminPermissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminPermissions.
|
|
*/
|
|
distinct?: Prisma.AdminPermissionScalarFieldEnum | Prisma.AdminPermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminPermission findMany
|
|
*/
|
|
export type AdminPermissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminPermissions to fetch.
|
|
*/
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminPermissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminPermissionOrderByWithRelationInput | Prisma.AdminPermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AdminPermissions.
|
|
*/
|
|
cursor?: Prisma.AdminPermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminPermissions 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` AdminPermissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminPermissions.
|
|
*/
|
|
distinct?: Prisma.AdminPermissionScalarFieldEnum | Prisma.AdminPermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminPermission create
|
|
*/
|
|
export type AdminPermissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AdminPermission.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminPermissionCreateInput, Prisma.AdminPermissionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminPermission createMany
|
|
*/
|
|
export type AdminPermissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AdminPermissions.
|
|
*/
|
|
data: Prisma.AdminPermissionCreateManyInput | Prisma.AdminPermissionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminPermission createManyAndReturn
|
|
*/
|
|
export type AdminPermissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AdminPermissions.
|
|
*/
|
|
data: Prisma.AdminPermissionCreateManyInput | Prisma.AdminPermissionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminPermission update
|
|
*/
|
|
export type AdminPermissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AdminPermission.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminPermissionUpdateInput, Prisma.AdminPermissionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AdminPermission to update.
|
|
*/
|
|
where: Prisma.AdminPermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminPermission updateMany
|
|
*/
|
|
export type AdminPermissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AdminPermissions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminPermissionUpdateManyMutationInput, Prisma.AdminPermissionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminPermissions to update
|
|
*/
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
/**
|
|
* Limit how many AdminPermissions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminPermission updateManyAndReturn
|
|
*/
|
|
export type AdminPermissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AdminPermissions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminPermissionUpdateManyMutationInput, Prisma.AdminPermissionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminPermissions to update
|
|
*/
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
/**
|
|
* Limit how many AdminPermissions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminPermission upsert
|
|
*/
|
|
export type AdminPermissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AdminPermission to update in case it exists.
|
|
*/
|
|
where: Prisma.AdminPermissionWhereUniqueInput
|
|
/**
|
|
* In case the AdminPermission found by the `where` argument doesn't exist, create a new AdminPermission with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AdminPermissionCreateInput, Prisma.AdminPermissionUncheckedCreateInput>
|
|
/**
|
|
* In case the AdminPermission was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AdminPermissionUpdateInput, Prisma.AdminPermissionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminPermission delete
|
|
*/
|
|
export type AdminPermissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which AdminPermission to delete.
|
|
*/
|
|
where: Prisma.AdminPermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminPermission deleteMany
|
|
*/
|
|
export type AdminPermissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminPermissions to delete
|
|
*/
|
|
where?: Prisma.AdminPermissionWhereInput
|
|
/**
|
|
* Limit how many AdminPermissions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminPermission.roles
|
|
*/
|
|
export type AdminPermission$rolesArgs<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[]
|
|
}
|
|
|
|
/**
|
|
* AdminPermission without action
|
|
*/
|
|
export type AdminPermissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminPermission
|
|
*/
|
|
select?: Prisma.AdminPermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminPermission
|
|
*/
|
|
omit?: Prisma.AdminPermissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminPermissionInclude<ExtArgs> | null
|
|
}
|