2026-03-16 00:33:40 +03:30
|
|
|
|
|
|
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
// biome-ignore-all lint: generated file
|
|
|
|
|
// @ts-nocheck
|
|
|
|
|
/*
|
|
|
|
|
* This file exports the `PermissionPos` 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.js"
|
|
|
|
|
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Model PermissionPos
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosModel = runtime.Types.Result.DefaultSelection<Prisma.$PermissionPosPayload>
|
|
|
|
|
|
|
|
|
|
export type AggregatePermissionPos = {
|
|
|
|
|
_count: PermissionPosCountAggregateOutputType | null
|
|
|
|
|
_min: PermissionPosMinAggregateOutputType | null
|
|
|
|
|
_max: PermissionPosMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosMinAggregateOutputType = {
|
|
|
|
|
id: string | null
|
|
|
|
|
role: $Enums.POSRole | null
|
|
|
|
|
pos_id: string | null
|
|
|
|
|
permission_id: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosMaxAggregateOutputType = {
|
|
|
|
|
id: string | null
|
|
|
|
|
role: $Enums.POSRole | null
|
|
|
|
|
pos_id: string | null
|
|
|
|
|
permission_id: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosCountAggregateOutputType = {
|
|
|
|
|
id: number
|
|
|
|
|
role: number
|
|
|
|
|
pos_id: number
|
|
|
|
|
permission_id: number
|
|
|
|
|
_all: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionPosMinAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
role?: true
|
|
|
|
|
pos_id?: true
|
|
|
|
|
permission_id?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosMaxAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
role?: true
|
|
|
|
|
pos_id?: true
|
|
|
|
|
permission_id?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosCountAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
role?: true
|
|
|
|
|
pos_id?: true
|
|
|
|
|
permission_id?: true
|
|
|
|
|
_all?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which PermissionPos to aggregate.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionPosWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of PermissionPos to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PermissionPosOrderByWithRelationInput | Prisma.PermissionPosOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the start position
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` PermissionPos 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` PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Count returned PermissionPos
|
|
|
|
|
**/
|
|
|
|
|
_count?: true | PermissionPosCountAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the minimum value
|
|
|
|
|
**/
|
|
|
|
|
_min?: PermissionPosMinAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the maximum value
|
|
|
|
|
**/
|
|
|
|
|
_max?: PermissionPosMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GetPermissionPosAggregateType<T extends PermissionPosAggregateArgs> = {
|
|
|
|
|
[P in keyof T & keyof AggregatePermissionPos]: P extends '_count' | 'count'
|
|
|
|
|
? T[P] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregatePermissionPos[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregatePermissionPos[P]>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionPosGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.PermissionPosWhereInput
|
|
|
|
|
orderBy?: Prisma.PermissionPosOrderByWithAggregationInput | Prisma.PermissionPosOrderByWithAggregationInput[]
|
|
|
|
|
by: Prisma.PermissionPosScalarFieldEnum[] | Prisma.PermissionPosScalarFieldEnum
|
|
|
|
|
having?: Prisma.PermissionPosScalarWhereWithAggregatesInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
_count?: PermissionPosCountAggregateInputType | true
|
|
|
|
|
_min?: PermissionPosMinAggregateInputType
|
|
|
|
|
_max?: PermissionPosMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosGroupByOutputType = {
|
|
|
|
|
id: string
|
|
|
|
|
role: $Enums.POSRole
|
|
|
|
|
pos_id: string
|
|
|
|
|
permission_id: string
|
|
|
|
|
_count: PermissionPosCountAggregateOutputType | null
|
|
|
|
|
_min: PermissionPosMinAggregateOutputType | null
|
|
|
|
|
_max: PermissionPosMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-22 21:55:40 +03:30
|
|
|
export type GetPermissionPosGroupByPayload<T extends PermissionPosGroupByArgs> = Prisma.PrismaPromise<
|
2026-03-16 00:33:40 +03:30
|
|
|
Array<
|
|
|
|
|
Prisma.PickEnumerable<PermissionPosGroupByOutputType, T['by']> &
|
|
|
|
|
{
|
|
|
|
|
[P in ((keyof T) & (keyof PermissionPosGroupByOutputType))]: P extends '_count'
|
|
|
|
|
? T[P] extends boolean
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], PermissionPosGroupByOutputType[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], PermissionPosGroupByOutputType[P]>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionPosWhereInput = {
|
|
|
|
|
AND?: Prisma.PermissionPosWhereInput | Prisma.PermissionPosWhereInput[]
|
|
|
|
|
OR?: Prisma.PermissionPosWhereInput[]
|
|
|
|
|
NOT?: Prisma.PermissionPosWhereInput | Prisma.PermissionPosWhereInput[]
|
|
|
|
|
id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFilter<"PermissionPos"> | $Enums.POSRole
|
|
|
|
|
pos_id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
|
|
|
permission_id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
|
|
|
pos?: Prisma.XOR<Prisma.PosScalarRelationFilter, Prisma.PosWhereInput>
|
|
|
|
|
permission?: Prisma.XOR<Prisma.PermissionConsumerScalarRelationFilter, Prisma.PermissionConsumerWhereInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosOrderByWithRelationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
pos_id?: Prisma.SortOrder
|
|
|
|
|
permission_id?: Prisma.SortOrder
|
|
|
|
|
pos?: Prisma.PosOrderByWithRelationInput
|
|
|
|
|
permission?: Prisma.PermissionConsumerOrderByWithRelationInput
|
|
|
|
|
_relevance?: Prisma.PermissionPosOrderByRelevanceInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosWhereUniqueInput = Prisma.AtLeast<{
|
|
|
|
|
id?: string
|
|
|
|
|
permission_id_pos_id?: Prisma.PermissionPosPermission_idPos_idCompoundUniqueInput
|
|
|
|
|
AND?: Prisma.PermissionPosWhereInput | Prisma.PermissionPosWhereInput[]
|
|
|
|
|
OR?: Prisma.PermissionPosWhereInput[]
|
|
|
|
|
NOT?: Prisma.PermissionPosWhereInput | Prisma.PermissionPosWhereInput[]
|
|
|
|
|
role?: Prisma.EnumPOSRoleFilter<"PermissionPos"> | $Enums.POSRole
|
|
|
|
|
pos_id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
|
|
|
permission_id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
|
|
|
pos?: Prisma.XOR<Prisma.PosScalarRelationFilter, Prisma.PosWhereInput>
|
|
|
|
|
permission?: Prisma.XOR<Prisma.PermissionConsumerScalarRelationFilter, Prisma.PermissionConsumerWhereInput>
|
|
|
|
|
}, "id" | "permission_id_pos_id">
|
|
|
|
|
|
|
|
|
|
export type PermissionPosOrderByWithAggregationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
pos_id?: Prisma.SortOrder
|
|
|
|
|
permission_id?: Prisma.SortOrder
|
|
|
|
|
_count?: Prisma.PermissionPosCountOrderByAggregateInput
|
|
|
|
|
_max?: Prisma.PermissionPosMaxOrderByAggregateInput
|
|
|
|
|
_min?: Prisma.PermissionPosMinOrderByAggregateInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosScalarWhereWithAggregatesInput = {
|
|
|
|
|
AND?: Prisma.PermissionPosScalarWhereWithAggregatesInput | Prisma.PermissionPosScalarWhereWithAggregatesInput[]
|
|
|
|
|
OR?: Prisma.PermissionPosScalarWhereWithAggregatesInput[]
|
|
|
|
|
NOT?: Prisma.PermissionPosScalarWhereWithAggregatesInput | Prisma.PermissionPosScalarWhereWithAggregatesInput[]
|
|
|
|
|
id?: Prisma.StringWithAggregatesFilter<"PermissionPos"> | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleWithAggregatesFilter<"PermissionPos"> | $Enums.POSRole
|
|
|
|
|
pos_id?: Prisma.StringWithAggregatesFilter<"PermissionPos"> | string
|
|
|
|
|
permission_id?: Prisma.StringWithAggregatesFilter<"PermissionPos"> | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosCreateInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.POSRole
|
2026-04-11 14:47:05 +03:30
|
|
|
pos: Prisma.PosCreateNestedOneWithoutPermission_posInput
|
|
|
|
|
permission: Prisma.PermissionConsumerCreateNestedOneWithoutPos_permissionsInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUncheckedCreateInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.POSRole
|
|
|
|
|
pos_id: string
|
|
|
|
|
permission_id: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
2026-04-11 14:47:05 +03:30
|
|
|
pos?: Prisma.PosUpdateOneRequiredWithoutPermission_posNestedInput
|
|
|
|
|
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutPos_permissionsNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUncheckedUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
|
|
|
|
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosCreateManyInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.POSRole
|
|
|
|
|
pos_id: string
|
|
|
|
|
permission_id: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUpdateManyMutationInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUncheckedUpdateManyInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
|
|
|
|
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosListRelationFilter = {
|
|
|
|
|
every?: Prisma.PermissionPosWhereInput
|
|
|
|
|
some?: Prisma.PermissionPosWhereInput
|
|
|
|
|
none?: Prisma.PermissionPosWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosOrderByRelationAggregateInput = {
|
|
|
|
|
_count?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosOrderByRelevanceInput = {
|
|
|
|
|
fields: Prisma.PermissionPosOrderByRelevanceFieldEnum | Prisma.PermissionPosOrderByRelevanceFieldEnum[]
|
|
|
|
|
sort: Prisma.SortOrder
|
|
|
|
|
search: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosPermission_idPos_idCompoundUniqueInput = {
|
|
|
|
|
permission_id: string
|
|
|
|
|
pos_id: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosCountOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
pos_id?: Prisma.SortOrder
|
|
|
|
|
permission_id?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosMaxOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
pos_id?: Prisma.SortOrder
|
|
|
|
|
permission_id?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosMinOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
pos_id?: Prisma.SortOrder
|
|
|
|
|
permission_id?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosCreateNestedManyWithoutPermissionInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPermissionInput, Prisma.PermissionPosUncheckedCreateWithoutPermissionInput> | Prisma.PermissionPosCreateWithoutPermissionInput[] | Prisma.PermissionPosUncheckedCreateWithoutPermissionInput[]
|
|
|
|
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPermissionInput | Prisma.PermissionPosCreateOrConnectWithoutPermissionInput[]
|
|
|
|
|
createMany?: Prisma.PermissionPosCreateManyPermissionInputEnvelope
|
|
|
|
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUncheckedCreateNestedManyWithoutPermissionInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPermissionInput, Prisma.PermissionPosUncheckedCreateWithoutPermissionInput> | Prisma.PermissionPosCreateWithoutPermissionInput[] | Prisma.PermissionPosUncheckedCreateWithoutPermissionInput[]
|
|
|
|
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPermissionInput | Prisma.PermissionPosCreateOrConnectWithoutPermissionInput[]
|
|
|
|
|
createMany?: Prisma.PermissionPosCreateManyPermissionInputEnvelope
|
|
|
|
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUpdateManyWithoutPermissionNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPermissionInput, Prisma.PermissionPosUncheckedCreateWithoutPermissionInput> | Prisma.PermissionPosCreateWithoutPermissionInput[] | Prisma.PermissionPosUncheckedCreateWithoutPermissionInput[]
|
|
|
|
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPermissionInput | Prisma.PermissionPosCreateOrConnectWithoutPermissionInput[]
|
|
|
|
|
upsert?: Prisma.PermissionPosUpsertWithWhereUniqueWithoutPermissionInput | Prisma.PermissionPosUpsertWithWhereUniqueWithoutPermissionInput[]
|
|
|
|
|
createMany?: Prisma.PermissionPosCreateManyPermissionInputEnvelope
|
|
|
|
|
set?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.PermissionPosUpdateWithWhereUniqueWithoutPermissionInput | Prisma.PermissionPosUpdateWithWhereUniqueWithoutPermissionInput[]
|
|
|
|
|
updateMany?: Prisma.PermissionPosUpdateManyWithWhereWithoutPermissionInput | Prisma.PermissionPosUpdateManyWithWhereWithoutPermissionInput[]
|
|
|
|
|
deleteMany?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUncheckedUpdateManyWithoutPermissionNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPermissionInput, Prisma.PermissionPosUncheckedCreateWithoutPermissionInput> | Prisma.PermissionPosCreateWithoutPermissionInput[] | Prisma.PermissionPosUncheckedCreateWithoutPermissionInput[]
|
|
|
|
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPermissionInput | Prisma.PermissionPosCreateOrConnectWithoutPermissionInput[]
|
|
|
|
|
upsert?: Prisma.PermissionPosUpsertWithWhereUniqueWithoutPermissionInput | Prisma.PermissionPosUpsertWithWhereUniqueWithoutPermissionInput[]
|
|
|
|
|
createMany?: Prisma.PermissionPosCreateManyPermissionInputEnvelope
|
|
|
|
|
set?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.PermissionPosUpdateWithWhereUniqueWithoutPermissionInput | Prisma.PermissionPosUpdateWithWhereUniqueWithoutPermissionInput[]
|
|
|
|
|
updateMany?: Prisma.PermissionPosUpdateManyWithWhereWithoutPermissionInput | Prisma.PermissionPosUpdateManyWithWhereWithoutPermissionInput[]
|
|
|
|
|
deleteMany?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EnumPOSRoleFieldUpdateOperationsInput = {
|
|
|
|
|
set?: $Enums.POSRole
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosCreateNestedManyWithoutPosInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
|
|
|
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
|
|
|
|
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
|
|
|
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUncheckedCreateNestedManyWithoutPosInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
|
|
|
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
|
|
|
|
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
|
|
|
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUpdateManyWithoutPosNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
|
|
|
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
|
|
|
|
upsert?: Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput[]
|
|
|
|
|
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
|
|
|
|
set?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput[]
|
|
|
|
|
updateMany?: Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput | Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput[]
|
|
|
|
|
deleteMany?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosUncheckedUpdateManyWithoutPosNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
|
|
|
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
|
|
|
|
upsert?: Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput[]
|
|
|
|
|
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
|
|
|
|
set?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput[]
|
|
|
|
|
updateMany?: Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput | Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput[]
|
|
|
|
|
deleteMany?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosCreateWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
pos: Prisma.PosCreateNestedOneWithoutPermission_posInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUncheckedCreateWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
pos_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosCreateOrConnectWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
2026-04-27 22:11:05 +03:30
|
|
|
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPermissionInput, Prisma.PermissionPosUncheckedCreateWithoutPermissionInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosCreateManyPermissionInputEnvelope = {
|
|
|
|
|
data: Prisma.PermissionPosCreateManyPermissionInput | Prisma.PermissionPosCreateManyPermissionInput[]
|
2026-03-16 00:33:40 +03:30
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUpsertWithWhereUniqueWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
2026-04-27 22:11:05 +03:30
|
|
|
update: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPermissionInput, Prisma.PermissionPosUncheckedUpdateWithoutPermissionInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPermissionInput, Prisma.PermissionPosUncheckedCreateWithoutPermissionInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUpdateWithWhereUniqueWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
2026-04-27 22:11:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPermissionInput, Prisma.PermissionPosUncheckedUpdateWithoutPermissionInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUpdateManyWithWhereWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionPosScalarWhereInput
|
2026-04-27 22:11:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.PermissionPosUpdateManyMutationInput, Prisma.PermissionPosUncheckedUpdateManyWithoutPermissionInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosScalarWhereInput = {
|
|
|
|
|
AND?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
|
|
|
OR?: Prisma.PermissionPosScalarWhereInput[]
|
|
|
|
|
NOT?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
|
|
|
id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFilter<"PermissionPos"> | $Enums.POSRole
|
|
|
|
|
pos_id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
|
|
|
permission_id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosCreateWithoutPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
permission: Prisma.PermissionConsumerCreateNestedOneWithoutPos_permissionsInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUncheckedCreateWithoutPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
permission_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosCreateOrConnectWithoutPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
2026-04-27 22:11:05 +03:30
|
|
|
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosCreateManyPosInputEnvelope = {
|
|
|
|
|
data: Prisma.PermissionPosCreateManyPosInput | Prisma.PermissionPosCreateManyPosInput[]
|
2026-03-16 00:33:40 +03:30
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUpsertWithWhereUniqueWithoutPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
2026-04-27 22:11:05 +03:30
|
|
|
update: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPosInput, Prisma.PermissionPosUncheckedUpdateWithoutPosInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUpdateWithWhereUniqueWithoutPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
2026-04-27 22:11:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPosInput, Prisma.PermissionPosUncheckedUpdateWithoutPosInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUpdateManyWithWhereWithoutPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionPosScalarWhereInput
|
2026-04-27 22:11:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.PermissionPosUpdateManyMutationInput, Prisma.PermissionPosUncheckedUpdateManyWithoutPosInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosCreateManyPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
pos_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUpdateWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
pos?: Prisma.PosUpdateOneRequiredWithoutPermission_posNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUncheckedUpdateWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUncheckedUpdateManyWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosCreateManyPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
permission_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUpdateWithoutPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutPos_permissionsNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUncheckedUpdateWithoutPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:11:05 +03:30
|
|
|
export type PermissionPosUncheckedUpdateManyWithoutPosInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
2026-04-27 22:11:05 +03:30
|
|
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionPosSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
|
|
|
id?: boolean
|
|
|
|
|
role?: boolean
|
|
|
|
|
pos_id?: boolean
|
|
|
|
|
permission_id?: boolean
|
|
|
|
|
pos?: boolean | Prisma.PosDefaultArgs<ExtArgs>
|
|
|
|
|
permission?: boolean | Prisma.PermissionConsumerDefaultArgs<ExtArgs>
|
|
|
|
|
}, ExtArgs["result"]["permissionPos"]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionPosSelectScalar = {
|
|
|
|
|
id?: boolean
|
|
|
|
|
role?: boolean
|
|
|
|
|
pos_id?: boolean
|
|
|
|
|
permission_id?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "role" | "pos_id" | "permission_id", ExtArgs["result"]["permissionPos"]>
|
|
|
|
|
export type PermissionPosInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
pos?: boolean | Prisma.PosDefaultArgs<ExtArgs>
|
|
|
|
|
permission?: boolean | Prisma.PermissionConsumerDefaultArgs<ExtArgs>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type $PermissionPosPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
name: "PermissionPos"
|
|
|
|
|
objects: {
|
|
|
|
|
pos: Prisma.$PosPayload<ExtArgs>
|
|
|
|
|
permission: Prisma.$PermissionConsumerPayload<ExtArgs>
|
|
|
|
|
}
|
|
|
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
|
|
|
id: string
|
|
|
|
|
role: $Enums.POSRole
|
|
|
|
|
pos_id: string
|
|
|
|
|
permission_id: string
|
|
|
|
|
}, ExtArgs["result"]["permissionPos"]>
|
|
|
|
|
composites: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionPosGetPayload<S extends boolean | null | undefined | PermissionPosDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload, S>
|
|
|
|
|
|
|
|
|
|
export type PermissionPosCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
|
|
|
Omit<PermissionPosFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
|
|
|
select?: PermissionPosCountAggregateInputType | true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PermissionPosDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
|
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PermissionPos'], meta: { name: 'PermissionPos' } }
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or one PermissionPos that matches the filter.
|
|
|
|
|
* @param {PermissionPosFindUniqueArgs} args - Arguments to find a PermissionPos
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.findUnique({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUnique<T extends PermissionPosFindUniqueArgs>(args: Prisma.SelectSubset<T, PermissionPosFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PermissionPosClient<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find one PermissionPos that matches the filter or throw an error with `error.code='P2025'`
|
|
|
|
|
* if no matches were found.
|
|
|
|
|
* @param {PermissionPosFindUniqueOrThrowArgs} args - Arguments to find a PermissionPos
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.findUniqueOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUniqueOrThrow<T extends PermissionPosFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PermissionPosFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PermissionPosClient<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first PermissionPos 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 {PermissionPosFindFirstArgs} args - Arguments to find a PermissionPos
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.findFirst({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirst<T extends PermissionPosFindFirstArgs>(args?: Prisma.SelectSubset<T, PermissionPosFindFirstArgs<ExtArgs>>): Prisma.Prisma__PermissionPosClient<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first PermissionPos 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 {PermissionPosFindFirstOrThrowArgs} args - Arguments to find a PermissionPos
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.findFirstOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirstOrThrow<T extends PermissionPosFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PermissionPosFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PermissionPosClient<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or more PermissionPos 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 {PermissionPosFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
|
|
|
* @example
|
|
|
|
|
* // Get all PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.findMany()
|
|
|
|
|
*
|
|
|
|
|
* // Get first 10 PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.findMany({ take: 10 })
|
|
|
|
|
*
|
|
|
|
|
* // Only select the `id`
|
|
|
|
|
* const permissionPosWithIdOnly = await prisma.permissionPos.findMany({ select: { id: true } })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
findMany<T extends PermissionPosFindManyArgs>(args?: Prisma.SelectSubset<T, PermissionPosFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a PermissionPos.
|
|
|
|
|
* @param {PermissionPosCreateArgs} args - Arguments to create a PermissionPos.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create one PermissionPos
|
|
|
|
|
* const PermissionPos = await prisma.permissionPos.create({
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... data to create a PermissionPos
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
create<T extends PermissionPosCreateArgs>(args: Prisma.SelectSubset<T, PermissionPosCreateArgs<ExtArgs>>): Prisma.Prisma__PermissionPosClient<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create many PermissionPos.
|
|
|
|
|
* @param {PermissionPosCreateManyArgs} args - Arguments to create many PermissionPos.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create many PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.createMany({
|
|
|
|
|
* data: [
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* ]
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
createMany<T extends PermissionPosCreateManyArgs>(args?: Prisma.SelectSubset<T, PermissionPosCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete a PermissionPos.
|
|
|
|
|
* @param {PermissionPosDeleteArgs} args - Arguments to delete one PermissionPos.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete one PermissionPos
|
|
|
|
|
* const PermissionPos = await prisma.permissionPos.delete({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... filter to delete one PermissionPos
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
delete<T extends PermissionPosDeleteArgs>(args: Prisma.SelectSubset<T, PermissionPosDeleteArgs<ExtArgs>>): Prisma.Prisma__PermissionPosClient<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update one PermissionPos.
|
|
|
|
|
* @param {PermissionPosUpdateArgs} args - Arguments to update one PermissionPos.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update one PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.update({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
update<T extends PermissionPosUpdateArgs>(args: Prisma.SelectSubset<T, PermissionPosUpdateArgs<ExtArgs>>): Prisma.Prisma__PermissionPosClient<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete zero or more PermissionPos.
|
|
|
|
|
* @param {PermissionPosDeleteManyArgs} args - Arguments to filter PermissionPos to delete.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete a few PermissionPos
|
|
|
|
|
* const { count } = await prisma.permissionPos.deleteMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
deleteMany<T extends PermissionPosDeleteManyArgs>(args?: Prisma.SelectSubset<T, PermissionPosDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update zero or more PermissionPos.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PermissionPosUpdateManyArgs} args - Arguments to update one or more rows.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update many PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.updateMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
updateMany<T extends PermissionPosUpdateManyArgs>(args: Prisma.SelectSubset<T, PermissionPosUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create or update one PermissionPos.
|
|
|
|
|
* @param {PermissionPosUpsertArgs} args - Arguments to update or create a PermissionPos.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update or create a PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.upsert({
|
|
|
|
|
* create: {
|
|
|
|
|
* // ... data to create a PermissionPos
|
|
|
|
|
* },
|
|
|
|
|
* update: {
|
|
|
|
|
* // ... in case it already exists, update
|
|
|
|
|
* },
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the PermissionPos we want to update
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
upsert<T extends PermissionPosUpsertArgs>(args: Prisma.SelectSubset<T, PermissionPosUpsertArgs<ExtArgs>>): Prisma.Prisma__PermissionPosClient<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count the number of PermissionPos.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PermissionPosCountArgs} args - Arguments to filter PermissionPos to count.
|
|
|
|
|
* @example
|
|
|
|
|
* // Count the number of PermissionPos
|
|
|
|
|
* const count = await prisma.permissionPos.count({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the PermissionPos we want to count
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
**/
|
|
|
|
|
count<T extends PermissionPosCountArgs>(
|
|
|
|
|
args?: Prisma.Subset<T, PermissionPosCountArgs>,
|
|
|
|
|
): Prisma.PrismaPromise<
|
|
|
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
|
|
|
? T['select'] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T['select'], PermissionPosCountAggregateOutputType>
|
|
|
|
|
: number
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Allows you to perform aggregations operations on a PermissionPos.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PermissionPosAggregateArgs} 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 PermissionPosAggregateArgs>(args: Prisma.Subset<T, PermissionPosAggregateArgs>): Prisma.PrismaPromise<GetPermissionPosAggregateType<T>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Group by PermissionPos.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PermissionPosGroupByArgs} 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 PermissionPosGroupByArgs,
|
|
|
|
|
HasSelectOrTake extends Prisma.Or<
|
|
|
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
|
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
|
|
|
>,
|
|
|
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
|
|
|
? { orderBy: PermissionPosGroupByArgs['orderBy'] }
|
|
|
|
|
: { orderBy?: PermissionPosGroupByArgs['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, PermissionPosGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPermissionPosGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the PermissionPos model
|
|
|
|
|
*/
|
|
|
|
|
readonly fields: PermissionPosFieldRefs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The delegate class that acts as a "Promise-like" for PermissionPos.
|
|
|
|
|
* 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__PermissionPosClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
|
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
|
|
|
pos<T extends Prisma.PosDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PosDefaultArgs<ExtArgs>>): Prisma.Prisma__PosClient<runtime.Types.Result.GetResult<Prisma.$PosPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
permission<T extends Prisma.PermissionConsumerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PermissionConsumerDefaultArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<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 PermissionPos model
|
|
|
|
|
*/
|
|
|
|
|
export interface PermissionPosFieldRefs {
|
|
|
|
|
readonly id: Prisma.FieldRef<"PermissionPos", 'String'>
|
|
|
|
|
readonly role: Prisma.FieldRef<"PermissionPos", 'POSRole'>
|
|
|
|
|
readonly pos_id: Prisma.FieldRef<"PermissionPos", 'String'>
|
|
|
|
|
readonly permission_id: Prisma.FieldRef<"PermissionPos", 'String'>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Custom InputTypes
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos findUnique
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionPos to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos findUniqueOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionPos to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos findFirst
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionPos to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionPosWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of PermissionPos to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PermissionPosOrderByWithRelationInput | Prisma.PermissionPosOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` PermissionPos 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` PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.PermissionPosScalarFieldEnum | Prisma.PermissionPosScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos findFirstOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionPos to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionPosWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of PermissionPos to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PermissionPosOrderByWithRelationInput | Prisma.PermissionPosOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` PermissionPos 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` PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.PermissionPosScalarFieldEnum | Prisma.PermissionPosScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos findMany
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionPos to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionPosWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of PermissionPos to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PermissionPosOrderByWithRelationInput | Prisma.PermissionPosOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for listing PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` PermissionPos 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` PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
2026-04-22 21:55:40 +03:30
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of PermissionPos.
|
|
|
|
|
*/
|
2026-03-16 00:33:40 +03:30
|
|
|
distinct?: Prisma.PermissionPosScalarFieldEnum | Prisma.PermissionPosScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos create
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to create a PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.PermissionPosCreateInput, Prisma.PermissionPosUncheckedCreateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos createMany
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to create many PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.PermissionPosCreateManyInput | Prisma.PermissionPosCreateManyInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos update
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to update a PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.PermissionPosUpdateInput, Prisma.PermissionPosUncheckedUpdateInput>
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which PermissionPos to update.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos updateMany
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to update PermissionPos.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.PermissionPosUpdateManyMutationInput, Prisma.PermissionPosUncheckedUpdateManyInput>
|
|
|
|
|
/**
|
|
|
|
|
* Filter which PermissionPos to update
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionPosWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many PermissionPos to update.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos upsert
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The filter to search for the PermissionPos to update in case it exists.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* In case the PermissionPos found by the `where` argument doesn't exist, create a new PermissionPos with this data.
|
|
|
|
|
*/
|
|
|
|
|
create: Prisma.XOR<Prisma.PermissionPosCreateInput, Prisma.PermissionPosUncheckedCreateInput>
|
|
|
|
|
/**
|
|
|
|
|
* In case the PermissionPos was found with the provided `where` argument, update it with this data.
|
|
|
|
|
*/
|
|
|
|
|
update: Prisma.XOR<Prisma.PermissionPosUpdateInput, Prisma.PermissionPosUncheckedUpdateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos delete
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter which PermissionPos to delete.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos deleteMany
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which PermissionPos to delete
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionPosWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many PermissionPos to delete.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionPos without action
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionPosDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
}
|