1431 lines
58 KiB
TypeScript
1431 lines
58 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 `AdminUserRole` 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 AdminUserRole
|
|
*
|
|
*/
|
|
export type AdminUserRoleModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminUserRolePayload>
|
|
|
|
export type AggregateAdminUserRole = {
|
|
_count: AdminUserRoleCountAggregateOutputType | null
|
|
_min: AdminUserRoleMinAggregateOutputType | null
|
|
_max: AdminUserRoleMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AdminUserRoleMinAggregateOutputType = {
|
|
adminUserId: string | null
|
|
adminRoleId: string | null
|
|
createdAt: Date | null
|
|
grantedByAdminUserId: string | null
|
|
}
|
|
|
|
export type AdminUserRoleMaxAggregateOutputType = {
|
|
adminUserId: string | null
|
|
adminRoleId: string | null
|
|
createdAt: Date | null
|
|
grantedByAdminUserId: string | null
|
|
}
|
|
|
|
export type AdminUserRoleCountAggregateOutputType = {
|
|
adminUserId: number
|
|
adminRoleId: number
|
|
createdAt: number
|
|
grantedByAdminUserId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AdminUserRoleMinAggregateInputType = {
|
|
adminUserId?: true
|
|
adminRoleId?: true
|
|
createdAt?: true
|
|
grantedByAdminUserId?: true
|
|
}
|
|
|
|
export type AdminUserRoleMaxAggregateInputType = {
|
|
adminUserId?: true
|
|
adminRoleId?: true
|
|
createdAt?: true
|
|
grantedByAdminUserId?: true
|
|
}
|
|
|
|
export type AdminUserRoleCountAggregateInputType = {
|
|
adminUserId?: true
|
|
adminRoleId?: true
|
|
createdAt?: true
|
|
grantedByAdminUserId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AdminUserRoleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminUserRole to aggregate.
|
|
*/
|
|
where?: Prisma.AdminUserRoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminUserRoles to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminUserRoleOrderByWithRelationInput | Prisma.AdminUserRoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AdminUserRoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminUserRoles 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` AdminUserRoles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AdminUserRoles
|
|
**/
|
|
_count?: true | AdminUserRoleCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AdminUserRoleMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AdminUserRoleMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAdminUserRoleAggregateType<T extends AdminUserRoleAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdminUserRole]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAdminUserRole[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAdminUserRole[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdminUserRoleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminUserRoleWhereInput
|
|
orderBy?: Prisma.AdminUserRoleOrderByWithAggregationInput | Prisma.AdminUserRoleOrderByWithAggregationInput[]
|
|
by: Prisma.AdminUserRoleScalarFieldEnum[] | Prisma.AdminUserRoleScalarFieldEnum
|
|
having?: Prisma.AdminUserRoleScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AdminUserRoleCountAggregateInputType | true
|
|
_min?: AdminUserRoleMinAggregateInputType
|
|
_max?: AdminUserRoleMaxAggregateInputType
|
|
}
|
|
|
|
export type AdminUserRoleGroupByOutputType = {
|
|
adminUserId: string
|
|
adminRoleId: string
|
|
createdAt: Date
|
|
grantedByAdminUserId: string | null
|
|
_count: AdminUserRoleCountAggregateOutputType | null
|
|
_min: AdminUserRoleMinAggregateOutputType | null
|
|
_max: AdminUserRoleMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAdminUserRoleGroupByPayload<T extends AdminUserRoleGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AdminUserRoleGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdminUserRoleGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AdminUserRoleGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AdminUserRoleGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AdminUserRoleWhereInput = {
|
|
AND?: Prisma.AdminUserRoleWhereInput | Prisma.AdminUserRoleWhereInput[]
|
|
OR?: Prisma.AdminUserRoleWhereInput[]
|
|
NOT?: Prisma.AdminUserRoleWhereInput | Prisma.AdminUserRoleWhereInput[]
|
|
adminUserId?: Prisma.StringFilter<"AdminUserRole"> | string
|
|
adminRoleId?: Prisma.StringFilter<"AdminUserRole"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminUserRole"> | Date | string
|
|
grantedByAdminUserId?: Prisma.StringNullableFilter<"AdminUserRole"> | string | null
|
|
user?: Prisma.XOR<Prisma.AdminUserScalarRelationFilter, Prisma.AdminUserWhereInput>
|
|
role?: Prisma.XOR<Prisma.AdminRoleScalarRelationFilter, Prisma.AdminRoleWhereInput>
|
|
}
|
|
|
|
export type AdminUserRoleOrderByWithRelationInput = {
|
|
adminUserId?: Prisma.SortOrder
|
|
adminRoleId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
grantedByAdminUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
user?: Prisma.AdminUserOrderByWithRelationInput
|
|
role?: Prisma.AdminRoleOrderByWithRelationInput
|
|
}
|
|
|
|
export type AdminUserRoleWhereUniqueInput = Prisma.AtLeast<{
|
|
adminUserId_adminRoleId?: Prisma.AdminUserRoleAdminUserIdAdminRoleIdCompoundUniqueInput
|
|
AND?: Prisma.AdminUserRoleWhereInput | Prisma.AdminUserRoleWhereInput[]
|
|
OR?: Prisma.AdminUserRoleWhereInput[]
|
|
NOT?: Prisma.AdminUserRoleWhereInput | Prisma.AdminUserRoleWhereInput[]
|
|
adminUserId?: Prisma.StringFilter<"AdminUserRole"> | string
|
|
adminRoleId?: Prisma.StringFilter<"AdminUserRole"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminUserRole"> | Date | string
|
|
grantedByAdminUserId?: Prisma.StringNullableFilter<"AdminUserRole"> | string | null
|
|
user?: Prisma.XOR<Prisma.AdminUserScalarRelationFilter, Prisma.AdminUserWhereInput>
|
|
role?: Prisma.XOR<Prisma.AdminRoleScalarRelationFilter, Prisma.AdminRoleWhereInput>
|
|
}, "adminUserId_adminRoleId">
|
|
|
|
export type AdminUserRoleOrderByWithAggregationInput = {
|
|
adminUserId?: Prisma.SortOrder
|
|
adminRoleId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
grantedByAdminUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.AdminUserRoleCountOrderByAggregateInput
|
|
_max?: Prisma.AdminUserRoleMaxOrderByAggregateInput
|
|
_min?: Prisma.AdminUserRoleMinOrderByAggregateInput
|
|
}
|
|
|
|
export type AdminUserRoleScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AdminUserRoleScalarWhereWithAggregatesInput | Prisma.AdminUserRoleScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AdminUserRoleScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AdminUserRoleScalarWhereWithAggregatesInput | Prisma.AdminUserRoleScalarWhereWithAggregatesInput[]
|
|
adminUserId?: Prisma.StringWithAggregatesFilter<"AdminUserRole"> | string
|
|
adminRoleId?: Prisma.StringWithAggregatesFilter<"AdminUserRole"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminUserRole"> | Date | string
|
|
grantedByAdminUserId?: Prisma.StringNullableWithAggregatesFilter<"AdminUserRole"> | string | null
|
|
}
|
|
|
|
export type AdminUserRoleCreateInput = {
|
|
createdAt?: Date | string
|
|
grantedByAdminUserId?: string | null
|
|
user: Prisma.AdminUserCreateNestedOneWithoutRolesInput
|
|
role: Prisma.AdminRoleCreateNestedOneWithoutUsersInput
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedCreateInput = {
|
|
adminUserId: string
|
|
adminRoleId: string
|
|
createdAt?: Date | string
|
|
grantedByAdminUserId?: string | null
|
|
}
|
|
|
|
export type AdminUserRoleUpdateInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
user?: Prisma.AdminUserUpdateOneRequiredWithoutRolesNestedInput
|
|
role?: Prisma.AdminRoleUpdateOneRequiredWithoutUsersNestedInput
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedUpdateInput = {
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
adminRoleId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AdminUserRoleCreateManyInput = {
|
|
adminUserId: string
|
|
adminRoleId: string
|
|
createdAt?: Date | string
|
|
grantedByAdminUserId?: string | null
|
|
}
|
|
|
|
export type AdminUserRoleUpdateManyMutationInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedUpdateManyInput = {
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
adminRoleId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AdminUserRoleListRelationFilter = {
|
|
every?: Prisma.AdminUserRoleWhereInput
|
|
some?: Prisma.AdminUserRoleWhereInput
|
|
none?: Prisma.AdminUserRoleWhereInput
|
|
}
|
|
|
|
export type AdminUserRoleOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminUserRoleAdminUserIdAdminRoleIdCompoundUniqueInput = {
|
|
adminUserId: string
|
|
adminRoleId: string
|
|
}
|
|
|
|
export type AdminUserRoleCountOrderByAggregateInput = {
|
|
adminUserId?: Prisma.SortOrder
|
|
adminRoleId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
grantedByAdminUserId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminUserRoleMaxOrderByAggregateInput = {
|
|
adminUserId?: Prisma.SortOrder
|
|
adminRoleId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
grantedByAdminUserId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminUserRoleMinOrderByAggregateInput = {
|
|
adminUserId?: Prisma.SortOrder
|
|
adminRoleId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
grantedByAdminUserId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminUserRoleCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutUserInput, Prisma.AdminUserRoleUncheckedCreateWithoutUserInput> | Prisma.AdminUserRoleCreateWithoutUserInput[] | Prisma.AdminUserRoleUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.AdminUserRoleCreateOrConnectWithoutUserInput | Prisma.AdminUserRoleCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.AdminUserRoleCreateManyUserInputEnvelope
|
|
connect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutUserInput, Prisma.AdminUserRoleUncheckedCreateWithoutUserInput> | Prisma.AdminUserRoleCreateWithoutUserInput[] | Prisma.AdminUserRoleUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.AdminUserRoleCreateOrConnectWithoutUserInput | Prisma.AdminUserRoleCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.AdminUserRoleCreateManyUserInputEnvelope
|
|
connect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdminUserRoleUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutUserInput, Prisma.AdminUserRoleUncheckedCreateWithoutUserInput> | Prisma.AdminUserRoleCreateWithoutUserInput[] | Prisma.AdminUserRoleUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.AdminUserRoleCreateOrConnectWithoutUserInput | Prisma.AdminUserRoleCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.AdminUserRoleUpsertWithWhereUniqueWithoutUserInput | Prisma.AdminUserRoleUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.AdminUserRoleCreateManyUserInputEnvelope
|
|
set?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
disconnect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
delete?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
connect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
update?: Prisma.AdminUserRoleUpdateWithWhereUniqueWithoutUserInput | Prisma.AdminUserRoleUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.AdminUserRoleUpdateManyWithWhereWithoutUserInput | Prisma.AdminUserRoleUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.AdminUserRoleScalarWhereInput | Prisma.AdminUserRoleScalarWhereInput[]
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutUserInput, Prisma.AdminUserRoleUncheckedCreateWithoutUserInput> | Prisma.AdminUserRoleCreateWithoutUserInput[] | Prisma.AdminUserRoleUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.AdminUserRoleCreateOrConnectWithoutUserInput | Prisma.AdminUserRoleCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.AdminUserRoleUpsertWithWhereUniqueWithoutUserInput | Prisma.AdminUserRoleUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.AdminUserRoleCreateManyUserInputEnvelope
|
|
set?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
disconnect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
delete?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
connect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
update?: Prisma.AdminUserRoleUpdateWithWhereUniqueWithoutUserInput | Prisma.AdminUserRoleUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.AdminUserRoleUpdateManyWithWhereWithoutUserInput | Prisma.AdminUserRoleUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.AdminUserRoleScalarWhereInput | Prisma.AdminUserRoleScalarWhereInput[]
|
|
}
|
|
|
|
export type AdminUserRoleCreateNestedManyWithoutRoleInput = {
|
|
create?: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutRoleInput, Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput> | Prisma.AdminUserRoleCreateWithoutRoleInput[] | Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: Prisma.AdminUserRoleCreateOrConnectWithoutRoleInput | Prisma.AdminUserRoleCreateOrConnectWithoutRoleInput[]
|
|
createMany?: Prisma.AdminUserRoleCreateManyRoleInputEnvelope
|
|
connect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedCreateNestedManyWithoutRoleInput = {
|
|
create?: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutRoleInput, Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput> | Prisma.AdminUserRoleCreateWithoutRoleInput[] | Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: Prisma.AdminUserRoleCreateOrConnectWithoutRoleInput | Prisma.AdminUserRoleCreateOrConnectWithoutRoleInput[]
|
|
createMany?: Prisma.AdminUserRoleCreateManyRoleInputEnvelope
|
|
connect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdminUserRoleUpdateManyWithoutRoleNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutRoleInput, Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput> | Prisma.AdminUserRoleCreateWithoutRoleInput[] | Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: Prisma.AdminUserRoleCreateOrConnectWithoutRoleInput | Prisma.AdminUserRoleCreateOrConnectWithoutRoleInput[]
|
|
upsert?: Prisma.AdminUserRoleUpsertWithWhereUniqueWithoutRoleInput | Prisma.AdminUserRoleUpsertWithWhereUniqueWithoutRoleInput[]
|
|
createMany?: Prisma.AdminUserRoleCreateManyRoleInputEnvelope
|
|
set?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
disconnect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
delete?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
connect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
update?: Prisma.AdminUserRoleUpdateWithWhereUniqueWithoutRoleInput | Prisma.AdminUserRoleUpdateWithWhereUniqueWithoutRoleInput[]
|
|
updateMany?: Prisma.AdminUserRoleUpdateManyWithWhereWithoutRoleInput | Prisma.AdminUserRoleUpdateManyWithWhereWithoutRoleInput[]
|
|
deleteMany?: Prisma.AdminUserRoleScalarWhereInput | Prisma.AdminUserRoleScalarWhereInput[]
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedUpdateManyWithoutRoleNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutRoleInput, Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput> | Prisma.AdminUserRoleCreateWithoutRoleInput[] | Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: Prisma.AdminUserRoleCreateOrConnectWithoutRoleInput | Prisma.AdminUserRoleCreateOrConnectWithoutRoleInput[]
|
|
upsert?: Prisma.AdminUserRoleUpsertWithWhereUniqueWithoutRoleInput | Prisma.AdminUserRoleUpsertWithWhereUniqueWithoutRoleInput[]
|
|
createMany?: Prisma.AdminUserRoleCreateManyRoleInputEnvelope
|
|
set?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
disconnect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
delete?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
connect?: Prisma.AdminUserRoleWhereUniqueInput | Prisma.AdminUserRoleWhereUniqueInput[]
|
|
update?: Prisma.AdminUserRoleUpdateWithWhereUniqueWithoutRoleInput | Prisma.AdminUserRoleUpdateWithWhereUniqueWithoutRoleInput[]
|
|
updateMany?: Prisma.AdminUserRoleUpdateManyWithWhereWithoutRoleInput | Prisma.AdminUserRoleUpdateManyWithWhereWithoutRoleInput[]
|
|
deleteMany?: Prisma.AdminUserRoleScalarWhereInput | Prisma.AdminUserRoleScalarWhereInput[]
|
|
}
|
|
|
|
export type AdminUserRoleCreateWithoutUserInput = {
|
|
createdAt?: Date | string
|
|
grantedByAdminUserId?: string | null
|
|
role: Prisma.AdminRoleCreateNestedOneWithoutUsersInput
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedCreateWithoutUserInput = {
|
|
adminRoleId: string
|
|
createdAt?: Date | string
|
|
grantedByAdminUserId?: string | null
|
|
}
|
|
|
|
export type AdminUserRoleCreateOrConnectWithoutUserInput = {
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutUserInput, Prisma.AdminUserRoleUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type AdminUserRoleCreateManyUserInputEnvelope = {
|
|
data: Prisma.AdminUserRoleCreateManyUserInput | Prisma.AdminUserRoleCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type AdminUserRoleUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.AdminUserRoleUpdateWithoutUserInput, Prisma.AdminUserRoleUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutUserInput, Prisma.AdminUserRoleUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type AdminUserRoleUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.AdminUserRoleUpdateWithoutUserInput, Prisma.AdminUserRoleUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type AdminUserRoleUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.AdminUserRoleScalarWhereInput
|
|
data: Prisma.XOR<Prisma.AdminUserRoleUpdateManyMutationInput, Prisma.AdminUserRoleUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type AdminUserRoleScalarWhereInput = {
|
|
AND?: Prisma.AdminUserRoleScalarWhereInput | Prisma.AdminUserRoleScalarWhereInput[]
|
|
OR?: Prisma.AdminUserRoleScalarWhereInput[]
|
|
NOT?: Prisma.AdminUserRoleScalarWhereInput | Prisma.AdminUserRoleScalarWhereInput[]
|
|
adminUserId?: Prisma.StringFilter<"AdminUserRole"> | string
|
|
adminRoleId?: Prisma.StringFilter<"AdminUserRole"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminUserRole"> | Date | string
|
|
grantedByAdminUserId?: Prisma.StringNullableFilter<"AdminUserRole"> | string | null
|
|
}
|
|
|
|
export type AdminUserRoleCreateWithoutRoleInput = {
|
|
createdAt?: Date | string
|
|
grantedByAdminUserId?: string | null
|
|
user: Prisma.AdminUserCreateNestedOneWithoutRolesInput
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedCreateWithoutRoleInput = {
|
|
adminUserId: string
|
|
createdAt?: Date | string
|
|
grantedByAdminUserId?: string | null
|
|
}
|
|
|
|
export type AdminUserRoleCreateOrConnectWithoutRoleInput = {
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutRoleInput, Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput>
|
|
}
|
|
|
|
export type AdminUserRoleCreateManyRoleInputEnvelope = {
|
|
data: Prisma.AdminUserRoleCreateManyRoleInput | Prisma.AdminUserRoleCreateManyRoleInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type AdminUserRoleUpsertWithWhereUniqueWithoutRoleInput = {
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.AdminUserRoleUpdateWithoutRoleInput, Prisma.AdminUserRoleUncheckedUpdateWithoutRoleInput>
|
|
create: Prisma.XOR<Prisma.AdminUserRoleCreateWithoutRoleInput, Prisma.AdminUserRoleUncheckedCreateWithoutRoleInput>
|
|
}
|
|
|
|
export type AdminUserRoleUpdateWithWhereUniqueWithoutRoleInput = {
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.AdminUserRoleUpdateWithoutRoleInput, Prisma.AdminUserRoleUncheckedUpdateWithoutRoleInput>
|
|
}
|
|
|
|
export type AdminUserRoleUpdateManyWithWhereWithoutRoleInput = {
|
|
where: Prisma.AdminUserRoleScalarWhereInput
|
|
data: Prisma.XOR<Prisma.AdminUserRoleUpdateManyMutationInput, Prisma.AdminUserRoleUncheckedUpdateManyWithoutRoleInput>
|
|
}
|
|
|
|
export type AdminUserRoleCreateManyUserInput = {
|
|
adminRoleId: string
|
|
createdAt?: Date | string
|
|
grantedByAdminUserId?: string | null
|
|
}
|
|
|
|
export type AdminUserRoleUpdateWithoutUserInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.AdminRoleUpdateOneRequiredWithoutUsersNestedInput
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedUpdateWithoutUserInput = {
|
|
adminRoleId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedUpdateManyWithoutUserInput = {
|
|
adminRoleId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AdminUserRoleCreateManyRoleInput = {
|
|
adminUserId: string
|
|
createdAt?: Date | string
|
|
grantedByAdminUserId?: string | null
|
|
}
|
|
|
|
export type AdminUserRoleUpdateWithoutRoleInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
user?: Prisma.AdminUserUpdateOneRequiredWithoutRolesNestedInput
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedUpdateWithoutRoleInput = {
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AdminUserRoleUncheckedUpdateManyWithoutRoleInput = {
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
grantedByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
|
|
|
|
export type AdminUserRoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
adminUserId?: boolean
|
|
adminRoleId?: boolean
|
|
createdAt?: boolean
|
|
grantedByAdminUserId?: boolean
|
|
user?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
role?: boolean | Prisma.AdminRoleDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminUserRole"]>
|
|
|
|
export type AdminUserRoleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
adminUserId?: boolean
|
|
adminRoleId?: boolean
|
|
createdAt?: boolean
|
|
grantedByAdminUserId?: boolean
|
|
user?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
role?: boolean | Prisma.AdminRoleDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminUserRole"]>
|
|
|
|
export type AdminUserRoleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
adminUserId?: boolean
|
|
adminRoleId?: boolean
|
|
createdAt?: boolean
|
|
grantedByAdminUserId?: boolean
|
|
user?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
role?: boolean | Prisma.AdminRoleDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminUserRole"]>
|
|
|
|
export type AdminUserRoleSelectScalar = {
|
|
adminUserId?: boolean
|
|
adminRoleId?: boolean
|
|
createdAt?: boolean
|
|
grantedByAdminUserId?: boolean
|
|
}
|
|
|
|
export type AdminUserRoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"adminUserId" | "adminRoleId" | "createdAt" | "grantedByAdminUserId", ExtArgs["result"]["adminUserRole"]>
|
|
export type AdminUserRoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
role?: boolean | Prisma.AdminRoleDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminUserRoleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
role?: boolean | Prisma.AdminRoleDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminUserRoleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
role?: boolean | Prisma.AdminRoleDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AdminUserRolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AdminUserRole"
|
|
objects: {
|
|
user: Prisma.$AdminUserPayload<ExtArgs>
|
|
role: Prisma.$AdminRolePayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
adminUserId: string
|
|
adminRoleId: string
|
|
createdAt: Date
|
|
grantedByAdminUserId: string | null
|
|
}, ExtArgs["result"]["adminUserRole"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AdminUserRoleGetPayload<S extends boolean | null | undefined | AdminUserRoleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload, S>
|
|
|
|
export type AdminUserRoleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AdminUserRoleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdminUserRoleCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdminUserRoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminUserRole'], meta: { name: 'AdminUserRole' } }
|
|
/**
|
|
* Find zero or one AdminUserRole that matches the filter.
|
|
* @param {AdminUserRoleFindUniqueArgs} args - Arguments to find a AdminUserRole
|
|
* @example
|
|
* // Get one AdminUserRole
|
|
* const adminUserRole = await prisma.adminUserRole.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AdminUserRoleFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminUserRoleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminUserRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AdminUserRole that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AdminUserRoleFindUniqueOrThrowArgs} args - Arguments to find a AdminUserRole
|
|
* @example
|
|
* // Get one AdminUserRole
|
|
* const adminUserRole = await prisma.adminUserRole.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AdminUserRoleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminUserRoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminUserRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminUserRole 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 {AdminUserRoleFindFirstArgs} args - Arguments to find a AdminUserRole
|
|
* @example
|
|
* // Get one AdminUserRole
|
|
* const adminUserRole = await prisma.adminUserRole.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AdminUserRoleFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminUserRoleFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminUserRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminUserRole 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 {AdminUserRoleFindFirstOrThrowArgs} args - Arguments to find a AdminUserRole
|
|
* @example
|
|
* // Get one AdminUserRole
|
|
* const adminUserRole = await prisma.adminUserRole.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AdminUserRoleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminUserRoleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminUserRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AdminUserRoles 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 {AdminUserRoleFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AdminUserRoles
|
|
* const adminUserRoles = await prisma.adminUserRole.findMany()
|
|
*
|
|
* // Get first 10 AdminUserRoles
|
|
* const adminUserRoles = await prisma.adminUserRole.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `adminUserId`
|
|
* const adminUserRoleWithAdminUserIdOnly = await prisma.adminUserRole.findMany({ select: { adminUserId: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AdminUserRoleFindManyArgs>(args?: Prisma.SelectSubset<T, AdminUserRoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AdminUserRole.
|
|
* @param {AdminUserRoleCreateArgs} args - Arguments to create a AdminUserRole.
|
|
* @example
|
|
* // Create one AdminUserRole
|
|
* const AdminUserRole = await prisma.adminUserRole.create({
|
|
* data: {
|
|
* // ... data to create a AdminUserRole
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AdminUserRoleCreateArgs>(args: Prisma.SelectSubset<T, AdminUserRoleCreateArgs<ExtArgs>>): Prisma.Prisma__AdminUserRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AdminUserRoles.
|
|
* @param {AdminUserRoleCreateManyArgs} args - Arguments to create many AdminUserRoles.
|
|
* @example
|
|
* // Create many AdminUserRoles
|
|
* const adminUserRole = await prisma.adminUserRole.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AdminUserRoleCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminUserRoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many AdminUserRoles and returns the data saved in the database.
|
|
* @param {AdminUserRoleCreateManyAndReturnArgs} args - Arguments to create many AdminUserRoles.
|
|
* @example
|
|
* // Create many AdminUserRoles
|
|
* const adminUserRole = await prisma.adminUserRole.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AdminUserRoles and only return the `adminUserId`
|
|
* const adminUserRoleWithAdminUserIdOnly = await prisma.adminUserRole.createManyAndReturn({
|
|
* select: { adminUserId: 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 AdminUserRoleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminUserRoleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AdminUserRole.
|
|
* @param {AdminUserRoleDeleteArgs} args - Arguments to delete one AdminUserRole.
|
|
* @example
|
|
* // Delete one AdminUserRole
|
|
* const AdminUserRole = await prisma.adminUserRole.delete({
|
|
* where: {
|
|
* // ... filter to delete one AdminUserRole
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AdminUserRoleDeleteArgs>(args: Prisma.SelectSubset<T, AdminUserRoleDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminUserRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AdminUserRole.
|
|
* @param {AdminUserRoleUpdateArgs} args - Arguments to update one AdminUserRole.
|
|
* @example
|
|
* // Update one AdminUserRole
|
|
* const adminUserRole = await prisma.adminUserRole.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AdminUserRoleUpdateArgs>(args: Prisma.SelectSubset<T, AdminUserRoleUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminUserRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AdminUserRoles.
|
|
* @param {AdminUserRoleDeleteManyArgs} args - Arguments to filter AdminUserRoles to delete.
|
|
* @example
|
|
* // Delete a few AdminUserRoles
|
|
* const { count } = await prisma.adminUserRole.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AdminUserRoleDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminUserRoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminUserRoles.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminUserRoleUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AdminUserRoles
|
|
* const adminUserRole = await prisma.adminUserRole.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AdminUserRoleUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminUserRoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminUserRoles and returns the data updated in the database.
|
|
* @param {AdminUserRoleUpdateManyAndReturnArgs} args - Arguments to update many AdminUserRoles.
|
|
* @example
|
|
* // Update many AdminUserRoles
|
|
* const adminUserRole = await prisma.adminUserRole.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AdminUserRoles and only return the `adminUserId`
|
|
* const adminUserRoleWithAdminUserIdOnly = await prisma.adminUserRole.updateManyAndReturn({
|
|
* select: { adminUserId: 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 AdminUserRoleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminUserRoleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AdminUserRole.
|
|
* @param {AdminUserRoleUpsertArgs} args - Arguments to update or create a AdminUserRole.
|
|
* @example
|
|
* // Update or create a AdminUserRole
|
|
* const adminUserRole = await prisma.adminUserRole.upsert({
|
|
* create: {
|
|
* // ... data to create a AdminUserRole
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AdminUserRole we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AdminUserRoleUpsertArgs>(args: Prisma.SelectSubset<T, AdminUserRoleUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminUserRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminUserRolePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AdminUserRoles.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminUserRoleCountArgs} args - Arguments to filter AdminUserRoles to count.
|
|
* @example
|
|
* // Count the number of AdminUserRoles
|
|
* const count = await prisma.adminUserRole.count({
|
|
* where: {
|
|
* // ... the filter for the AdminUserRoles we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AdminUserRoleCountArgs>(
|
|
args?: Prisma.Subset<T, AdminUserRoleCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AdminUserRoleCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AdminUserRole.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminUserRoleAggregateArgs} 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 AdminUserRoleAggregateArgs>(args: Prisma.Subset<T, AdminUserRoleAggregateArgs>): Prisma.PrismaPromise<GetAdminUserRoleAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AdminUserRole.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminUserRoleGroupByArgs} 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 AdminUserRoleGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AdminUserRoleGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdminUserRoleGroupByArgs['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, AdminUserRoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminUserRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AdminUserRole model
|
|
*/
|
|
readonly fields: AdminUserRoleFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AdminUserRole.
|
|
* 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__AdminUserRoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.AdminUserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminUserDefaultArgs<ExtArgs>>): Prisma.Prisma__AdminUserClient<runtime.Types.Result.GetResult<Prisma.$AdminUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
role<T extends Prisma.AdminRoleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminRoleDefaultArgs<ExtArgs>>): Prisma.Prisma__AdminRoleClient<runtime.Types.Result.GetResult<Prisma.$AdminRolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* 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 AdminUserRole model
|
|
*/
|
|
export interface AdminUserRoleFieldRefs {
|
|
readonly adminUserId: Prisma.FieldRef<"AdminUserRole", 'String'>
|
|
readonly adminRoleId: Prisma.FieldRef<"AdminUserRole", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"AdminUserRole", 'DateTime'>
|
|
readonly grantedByAdminUserId: Prisma.FieldRef<"AdminUserRole", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AdminUserRole findUnique
|
|
*/
|
|
export type AdminUserRoleFindUniqueArgs<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
|
|
/**
|
|
* Filter, which AdminUserRole to fetch.
|
|
*/
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole findUniqueOrThrow
|
|
*/
|
|
export type AdminUserRoleFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which AdminUserRole to fetch.
|
|
*/
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole findFirst
|
|
*/
|
|
export type AdminUserRoleFindFirstArgs<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
|
|
/**
|
|
* Filter, which AdminUserRole to fetch.
|
|
*/
|
|
where?: Prisma.AdminUserRoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminUserRoles to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminUserRoleOrderByWithRelationInput | Prisma.AdminUserRoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminUserRoles.
|
|
*/
|
|
cursor?: Prisma.AdminUserRoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminUserRoles 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` AdminUserRoles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminUserRoles.
|
|
*/
|
|
distinct?: Prisma.AdminUserRoleScalarFieldEnum | Prisma.AdminUserRoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole findFirstOrThrow
|
|
*/
|
|
export type AdminUserRoleFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which AdminUserRole to fetch.
|
|
*/
|
|
where?: Prisma.AdminUserRoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminUserRoles to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminUserRoleOrderByWithRelationInput | Prisma.AdminUserRoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminUserRoles.
|
|
*/
|
|
cursor?: Prisma.AdminUserRoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminUserRoles 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` AdminUserRoles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminUserRoles.
|
|
*/
|
|
distinct?: Prisma.AdminUserRoleScalarFieldEnum | Prisma.AdminUserRoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole findMany
|
|
*/
|
|
export type AdminUserRoleFindManyArgs<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
|
|
/**
|
|
* Filter, which AdminUserRoles to fetch.
|
|
*/
|
|
where?: Prisma.AdminUserRoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminUserRoles to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminUserRoleOrderByWithRelationInput | Prisma.AdminUserRoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AdminUserRoles.
|
|
*/
|
|
cursor?: Prisma.AdminUserRoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminUserRoles 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` AdminUserRoles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminUserRoles.
|
|
*/
|
|
distinct?: Prisma.AdminUserRoleScalarFieldEnum | Prisma.AdminUserRoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole create
|
|
*/
|
|
export type AdminUserRoleCreateArgs<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
|
|
/**
|
|
* The data needed to create a AdminUserRole.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminUserRoleCreateInput, Prisma.AdminUserRoleUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole createMany
|
|
*/
|
|
export type AdminUserRoleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AdminUserRoles.
|
|
*/
|
|
data: Prisma.AdminUserRoleCreateManyInput | Prisma.AdminUserRoleCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole createManyAndReturn
|
|
*/
|
|
export type AdminUserRoleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminUserRole
|
|
*/
|
|
select?: Prisma.AdminUserRoleSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminUserRole
|
|
*/
|
|
omit?: Prisma.AdminUserRoleOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AdminUserRoles.
|
|
*/
|
|
data: Prisma.AdminUserRoleCreateManyInput | Prisma.AdminUserRoleCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminUserRoleIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole update
|
|
*/
|
|
export type AdminUserRoleUpdateArgs<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
|
|
/**
|
|
* The data needed to update a AdminUserRole.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminUserRoleUpdateInput, Prisma.AdminUserRoleUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AdminUserRole to update.
|
|
*/
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole updateMany
|
|
*/
|
|
export type AdminUserRoleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AdminUserRoles.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminUserRoleUpdateManyMutationInput, Prisma.AdminUserRoleUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminUserRoles to update
|
|
*/
|
|
where?: Prisma.AdminUserRoleWhereInput
|
|
/**
|
|
* Limit how many AdminUserRoles to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole updateManyAndReturn
|
|
*/
|
|
export type AdminUserRoleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminUserRole
|
|
*/
|
|
select?: Prisma.AdminUserRoleSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminUserRole
|
|
*/
|
|
omit?: Prisma.AdminUserRoleOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AdminUserRoles.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminUserRoleUpdateManyMutationInput, Prisma.AdminUserRoleUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminUserRoles to update
|
|
*/
|
|
where?: Prisma.AdminUserRoleWhereInput
|
|
/**
|
|
* Limit how many AdminUserRoles to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminUserRoleIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole upsert
|
|
*/
|
|
export type AdminUserRoleUpsertArgs<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
|
|
/**
|
|
* The filter to search for the AdminUserRole to update in case it exists.
|
|
*/
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
/**
|
|
* In case the AdminUserRole found by the `where` argument doesn't exist, create a new AdminUserRole with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AdminUserRoleCreateInput, Prisma.AdminUserRoleUncheckedCreateInput>
|
|
/**
|
|
* In case the AdminUserRole was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AdminUserRoleUpdateInput, Prisma.AdminUserRoleUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole delete
|
|
*/
|
|
export type AdminUserRoleDeleteArgs<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
|
|
/**
|
|
* Filter which AdminUserRole to delete.
|
|
*/
|
|
where: Prisma.AdminUserRoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole deleteMany
|
|
*/
|
|
export type AdminUserRoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminUserRoles to delete
|
|
*/
|
|
where?: Prisma.AdminUserRoleWhereInput
|
|
/**
|
|
* Limit how many AdminUserRoles to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminUserRole without action
|
|
*/
|
|
export type AdminUserRoleDefaultArgs<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
|
|
}
|