1265 lines
44 KiB
TypeScript
1265 lines
44 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 `UserGroup` 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 UserGroup
|
|
*
|
|
*/
|
|
export type UserGroupModel = runtime.Types.Result.DefaultSelection<Prisma.$UserGroupPayload>
|
|
|
|
export type AggregateUserGroup = {
|
|
_count: UserGroupCountAggregateOutputType | null
|
|
_min: UserGroupMinAggregateOutputType | null
|
|
_max: UserGroupMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type UserGroupMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
canEditDevices: boolean | null
|
|
}
|
|
|
|
export type UserGroupMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
canEditDevices: boolean | null
|
|
}
|
|
|
|
export type UserGroupCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
canEditDevices: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type UserGroupMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
canEditDevices?: true
|
|
}
|
|
|
|
export type UserGroupMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
canEditDevices?: true
|
|
}
|
|
|
|
export type UserGroupCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
canEditDevices?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type UserGroupAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which UserGroup to aggregate.
|
|
*/
|
|
where?: Prisma.UserGroupWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserGroups to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserGroupOrderByWithRelationInput | Prisma.UserGroupOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.UserGroupWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserGroups 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` UserGroups.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned UserGroups
|
|
**/
|
|
_count?: true | UserGroupCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: UserGroupMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: UserGroupMaxAggregateInputType
|
|
}
|
|
|
|
export type GetUserGroupAggregateType<T extends UserGroupAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUserGroup]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateUserGroup[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateUserGroup[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UserGroupGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.UserGroupWhereInput
|
|
orderBy?: Prisma.UserGroupOrderByWithAggregationInput | Prisma.UserGroupOrderByWithAggregationInput[]
|
|
by: Prisma.UserGroupScalarFieldEnum[] | Prisma.UserGroupScalarFieldEnum
|
|
having?: Prisma.UserGroupScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UserGroupCountAggregateInputType | true
|
|
_min?: UserGroupMinAggregateInputType
|
|
_max?: UserGroupMaxAggregateInputType
|
|
}
|
|
|
|
export type UserGroupGroupByOutputType = {
|
|
id: string
|
|
name: string
|
|
canEditDevices: boolean
|
|
_count: UserGroupCountAggregateOutputType | null
|
|
_min: UserGroupMinAggregateOutputType | null
|
|
_max: UserGroupMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetUserGroupGroupByPayload<T extends UserGroupGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<UserGroupGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserGroupGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], UserGroupGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], UserGroupGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type UserGroupWhereInput = {
|
|
AND?: Prisma.UserGroupWhereInput | Prisma.UserGroupWhereInput[]
|
|
OR?: Prisma.UserGroupWhereInput[]
|
|
NOT?: Prisma.UserGroupWhereInput | Prisma.UserGroupWhereInput[]
|
|
id?: Prisma.StringFilter<"UserGroup"> | string
|
|
name?: Prisma.StringFilter<"UserGroup"> | string
|
|
canEditDevices?: Prisma.BoolFilter<"UserGroup"> | boolean
|
|
users?: Prisma.UserListRelationFilter
|
|
}
|
|
|
|
export type UserGroupOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
canEditDevices?: Prisma.SortOrder
|
|
users?: Prisma.UserOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type UserGroupWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
name?: string
|
|
AND?: Prisma.UserGroupWhereInput | Prisma.UserGroupWhereInput[]
|
|
OR?: Prisma.UserGroupWhereInput[]
|
|
NOT?: Prisma.UserGroupWhereInput | Prisma.UserGroupWhereInput[]
|
|
canEditDevices?: Prisma.BoolFilter<"UserGroup"> | boolean
|
|
users?: Prisma.UserListRelationFilter
|
|
}, "id" | "name">
|
|
|
|
export type UserGroupOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
canEditDevices?: Prisma.SortOrder
|
|
_count?: Prisma.UserGroupCountOrderByAggregateInput
|
|
_max?: Prisma.UserGroupMaxOrderByAggregateInput
|
|
_min?: Prisma.UserGroupMinOrderByAggregateInput
|
|
}
|
|
|
|
export type UserGroupScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.UserGroupScalarWhereWithAggregatesInput | Prisma.UserGroupScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.UserGroupScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.UserGroupScalarWhereWithAggregatesInput | Prisma.UserGroupScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"UserGroup"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"UserGroup"> | string
|
|
canEditDevices?: Prisma.BoolWithAggregatesFilter<"UserGroup"> | boolean
|
|
}
|
|
|
|
export type UserGroupCreateInput = {
|
|
id?: string
|
|
name: string
|
|
canEditDevices?: boolean
|
|
users?: Prisma.UserCreateNestedManyWithoutGroupInput
|
|
}
|
|
|
|
export type UserGroupUncheckedCreateInput = {
|
|
id?: string
|
|
name: string
|
|
canEditDevices?: boolean
|
|
users?: Prisma.UserUncheckedCreateNestedManyWithoutGroupInput
|
|
}
|
|
|
|
export type UserGroupUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
users?: Prisma.UserUpdateManyWithoutGroupNestedInput
|
|
}
|
|
|
|
export type UserGroupUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
users?: Prisma.UserUncheckedUpdateManyWithoutGroupNestedInput
|
|
}
|
|
|
|
export type UserGroupCreateManyInput = {
|
|
id?: string
|
|
name: string
|
|
canEditDevices?: boolean
|
|
}
|
|
|
|
export type UserGroupUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type UserGroupUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type UserGroupNullableScalarRelationFilter = {
|
|
is?: Prisma.UserGroupWhereInput | null
|
|
isNot?: Prisma.UserGroupWhereInput | null
|
|
}
|
|
|
|
export type UserGroupCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
canEditDevices?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserGroupMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
canEditDevices?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserGroupMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
canEditDevices?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserGroupCreateNestedOneWithoutUsersInput = {
|
|
create?: Prisma.XOR<Prisma.UserGroupCreateWithoutUsersInput, Prisma.UserGroupUncheckedCreateWithoutUsersInput>
|
|
connectOrCreate?: Prisma.UserGroupCreateOrConnectWithoutUsersInput
|
|
connect?: Prisma.UserGroupWhereUniqueInput
|
|
}
|
|
|
|
export type UserGroupUpdateOneWithoutUsersNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserGroupCreateWithoutUsersInput, Prisma.UserGroupUncheckedCreateWithoutUsersInput>
|
|
connectOrCreate?: Prisma.UserGroupCreateOrConnectWithoutUsersInput
|
|
upsert?: Prisma.UserGroupUpsertWithoutUsersInput
|
|
disconnect?: Prisma.UserGroupWhereInput | boolean
|
|
delete?: Prisma.UserGroupWhereInput | boolean
|
|
connect?: Prisma.UserGroupWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserGroupUpdateToOneWithWhereWithoutUsersInput, Prisma.UserGroupUpdateWithoutUsersInput>, Prisma.UserGroupUncheckedUpdateWithoutUsersInput>
|
|
}
|
|
|
|
export type BoolFieldUpdateOperationsInput = {
|
|
set?: boolean
|
|
}
|
|
|
|
export type UserGroupCreateWithoutUsersInput = {
|
|
id?: string
|
|
name: string
|
|
canEditDevices?: boolean
|
|
}
|
|
|
|
export type UserGroupUncheckedCreateWithoutUsersInput = {
|
|
id?: string
|
|
name: string
|
|
canEditDevices?: boolean
|
|
}
|
|
|
|
export type UserGroupCreateOrConnectWithoutUsersInput = {
|
|
where: Prisma.UserGroupWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserGroupCreateWithoutUsersInput, Prisma.UserGroupUncheckedCreateWithoutUsersInput>
|
|
}
|
|
|
|
export type UserGroupUpsertWithoutUsersInput = {
|
|
update: Prisma.XOR<Prisma.UserGroupUpdateWithoutUsersInput, Prisma.UserGroupUncheckedUpdateWithoutUsersInput>
|
|
create: Prisma.XOR<Prisma.UserGroupCreateWithoutUsersInput, Prisma.UserGroupUncheckedCreateWithoutUsersInput>
|
|
where?: Prisma.UserGroupWhereInput
|
|
}
|
|
|
|
export type UserGroupUpdateToOneWithWhereWithoutUsersInput = {
|
|
where?: Prisma.UserGroupWhereInput
|
|
data: Prisma.XOR<Prisma.UserGroupUpdateWithoutUsersInput, Prisma.UserGroupUncheckedUpdateWithoutUsersInput>
|
|
}
|
|
|
|
export type UserGroupUpdateWithoutUsersInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type UserGroupUncheckedUpdateWithoutUsersInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
canEditDevices?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type UserGroupCountOutputType
|
|
*/
|
|
|
|
export type UserGroupCountOutputType = {
|
|
users: number
|
|
}
|
|
|
|
export type UserGroupCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
users?: boolean | UserGroupCountOutputTypeCountUsersArgs
|
|
}
|
|
|
|
/**
|
|
* UserGroupCountOutputType without action
|
|
*/
|
|
export type UserGroupCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroupCountOutputType
|
|
*/
|
|
select?: Prisma.UserGroupCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* UserGroupCountOutputType without action
|
|
*/
|
|
export type UserGroupCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
|
|
export type UserGroupSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
canEditDevices?: boolean
|
|
users?: boolean | Prisma.UserGroup$usersArgs<ExtArgs>
|
|
_count?: boolean | Prisma.UserGroupCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["userGroup"]>
|
|
|
|
export type UserGroupSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
canEditDevices?: boolean
|
|
}, ExtArgs["result"]["userGroup"]>
|
|
|
|
export type UserGroupSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
canEditDevices?: boolean
|
|
}, ExtArgs["result"]["userGroup"]>
|
|
|
|
export type UserGroupSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
canEditDevices?: boolean
|
|
}
|
|
|
|
export type UserGroupOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "canEditDevices", ExtArgs["result"]["userGroup"]>
|
|
export type UserGroupInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
users?: boolean | Prisma.UserGroup$usersArgs<ExtArgs>
|
|
_count?: boolean | Prisma.UserGroupCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type UserGroupIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type UserGroupIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $UserGroupPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "UserGroup"
|
|
objects: {
|
|
users: Prisma.$UserPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string
|
|
canEditDevices: boolean
|
|
}, ExtArgs["result"]["userGroup"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type UserGroupGetPayload<S extends boolean | null | undefined | UserGroupDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserGroupPayload, S>
|
|
|
|
export type UserGroupCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<UserGroupFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: UserGroupCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UserGroupDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserGroup'], meta: { name: 'UserGroup' } }
|
|
/**
|
|
* Find zero or one UserGroup that matches the filter.
|
|
* @param {UserGroupFindUniqueArgs} args - Arguments to find a UserGroup
|
|
* @example
|
|
* // Get one UserGroup
|
|
* const userGroup = await prisma.userGroup.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UserGroupFindUniqueArgs>(args: Prisma.SelectSubset<T, UserGroupFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserGroupClient<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one UserGroup that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UserGroupFindUniqueOrThrowArgs} args - Arguments to find a UserGroup
|
|
* @example
|
|
* // Get one UserGroup
|
|
* const userGroup = await prisma.userGroup.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UserGroupFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserGroupFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserGroupClient<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first UserGroup 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 {UserGroupFindFirstArgs} args - Arguments to find a UserGroup
|
|
* @example
|
|
* // Get one UserGroup
|
|
* const userGroup = await prisma.userGroup.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UserGroupFindFirstArgs>(args?: Prisma.SelectSubset<T, UserGroupFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserGroupClient<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first UserGroup 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 {UserGroupFindFirstOrThrowArgs} args - Arguments to find a UserGroup
|
|
* @example
|
|
* // Get one UserGroup
|
|
* const userGroup = await prisma.userGroup.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UserGroupFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserGroupFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserGroupClient<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more UserGroups 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 {UserGroupFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all UserGroups
|
|
* const userGroups = await prisma.userGroup.findMany()
|
|
*
|
|
* // Get first 10 UserGroups
|
|
* const userGroups = await prisma.userGroup.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const userGroupWithIdOnly = await prisma.userGroup.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UserGroupFindManyArgs>(args?: Prisma.SelectSubset<T, UserGroupFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a UserGroup.
|
|
* @param {UserGroupCreateArgs} args - Arguments to create a UserGroup.
|
|
* @example
|
|
* // Create one UserGroup
|
|
* const UserGroup = await prisma.userGroup.create({
|
|
* data: {
|
|
* // ... data to create a UserGroup
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UserGroupCreateArgs>(args: Prisma.SelectSubset<T, UserGroupCreateArgs<ExtArgs>>): Prisma.Prisma__UserGroupClient<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many UserGroups.
|
|
* @param {UserGroupCreateManyArgs} args - Arguments to create many UserGroups.
|
|
* @example
|
|
* // Create many UserGroups
|
|
* const userGroup = await prisma.userGroup.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends UserGroupCreateManyArgs>(args?: Prisma.SelectSubset<T, UserGroupCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many UserGroups and returns the data saved in the database.
|
|
* @param {UserGroupCreateManyAndReturnArgs} args - Arguments to create many UserGroups.
|
|
* @example
|
|
* // Create many UserGroups
|
|
* const userGroup = await prisma.userGroup.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many UserGroups and only return the `id`
|
|
* const userGroupWithIdOnly = await prisma.userGroup.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends UserGroupCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserGroupCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a UserGroup.
|
|
* @param {UserGroupDeleteArgs} args - Arguments to delete one UserGroup.
|
|
* @example
|
|
* // Delete one UserGroup
|
|
* const UserGroup = await prisma.userGroup.delete({
|
|
* where: {
|
|
* // ... filter to delete one UserGroup
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UserGroupDeleteArgs>(args: Prisma.SelectSubset<T, UserGroupDeleteArgs<ExtArgs>>): Prisma.Prisma__UserGroupClient<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one UserGroup.
|
|
* @param {UserGroupUpdateArgs} args - Arguments to update one UserGroup.
|
|
* @example
|
|
* // Update one UserGroup
|
|
* const userGroup = await prisma.userGroup.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UserGroupUpdateArgs>(args: Prisma.SelectSubset<T, UserGroupUpdateArgs<ExtArgs>>): Prisma.Prisma__UserGroupClient<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more UserGroups.
|
|
* @param {UserGroupDeleteManyArgs} args - Arguments to filter UserGroups to delete.
|
|
* @example
|
|
* // Delete a few UserGroups
|
|
* const { count } = await prisma.userGroup.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UserGroupDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserGroupDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more UserGroups.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many UserGroups
|
|
* const userGroup = await prisma.userGroup.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends UserGroupUpdateManyArgs>(args: Prisma.SelectSubset<T, UserGroupUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more UserGroups and returns the data updated in the database.
|
|
* @param {UserGroupUpdateManyAndReturnArgs} args - Arguments to update many UserGroups.
|
|
* @example
|
|
* // Update many UserGroups
|
|
* const userGroup = await prisma.userGroup.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more UserGroups and only return the `id`
|
|
* const userGroupWithIdOnly = await prisma.userGroup.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends UserGroupUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserGroupUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one UserGroup.
|
|
* @param {UserGroupUpsertArgs} args - Arguments to update or create a UserGroup.
|
|
* @example
|
|
* // Update or create a UserGroup
|
|
* const userGroup = await prisma.userGroup.upsert({
|
|
* create: {
|
|
* // ... data to create a UserGroup
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the UserGroup we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UserGroupUpsertArgs>(args: Prisma.SelectSubset<T, UserGroupUpsertArgs<ExtArgs>>): Prisma.Prisma__UserGroupClient<runtime.Types.Result.GetResult<Prisma.$UserGroupPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of UserGroups.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupCountArgs} args - Arguments to filter UserGroups to count.
|
|
* @example
|
|
* // Count the number of UserGroups
|
|
* const count = await prisma.userGroup.count({
|
|
* where: {
|
|
* // ... the filter for the UserGroups we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UserGroupCountArgs>(
|
|
args?: Prisma.Subset<T, UserGroupCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], UserGroupCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a UserGroup.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupAggregateArgs} 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 UserGroupAggregateArgs>(args: Prisma.Subset<T, UserGroupAggregateArgs>): Prisma.PrismaPromise<GetUserGroupAggregateType<T>>
|
|
|
|
/**
|
|
* Group by UserGroup.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupGroupByArgs} 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 UserGroupGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: UserGroupGroupByArgs['orderBy'] }
|
|
: { orderBy?: UserGroupGroupByArgs['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, UserGroupGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the UserGroup model
|
|
*/
|
|
readonly fields: UserGroupFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for UserGroup.
|
|
* 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__UserGroupClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
users<T extends Prisma.UserGroup$usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserGroup$usersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the UserGroup model
|
|
*/
|
|
export interface UserGroupFieldRefs {
|
|
readonly id: Prisma.FieldRef<"UserGroup", 'String'>
|
|
readonly name: Prisma.FieldRef<"UserGroup", 'String'>
|
|
readonly canEditDevices: Prisma.FieldRef<"UserGroup", 'Boolean'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* UserGroup findUnique
|
|
*/
|
|
export type UserGroupFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserGroup to fetch.
|
|
*/
|
|
where: Prisma.UserGroupWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserGroup findUniqueOrThrow
|
|
*/
|
|
export type UserGroupFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserGroup to fetch.
|
|
*/
|
|
where: Prisma.UserGroupWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserGroup findFirst
|
|
*/
|
|
export type UserGroupFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserGroup to fetch.
|
|
*/
|
|
where?: Prisma.UserGroupWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserGroups to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserGroupOrderByWithRelationInput | Prisma.UserGroupOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for UserGroups.
|
|
*/
|
|
cursor?: Prisma.UserGroupWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserGroups 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` UserGroups.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of UserGroups.
|
|
*/
|
|
distinct?: Prisma.UserGroupScalarFieldEnum | Prisma.UserGroupScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserGroup findFirstOrThrow
|
|
*/
|
|
export type UserGroupFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserGroup to fetch.
|
|
*/
|
|
where?: Prisma.UserGroupWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserGroups to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserGroupOrderByWithRelationInput | Prisma.UserGroupOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for UserGroups.
|
|
*/
|
|
cursor?: Prisma.UserGroupWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserGroups 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` UserGroups.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of UserGroups.
|
|
*/
|
|
distinct?: Prisma.UserGroupScalarFieldEnum | Prisma.UserGroupScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserGroup findMany
|
|
*/
|
|
export type UserGroupFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserGroups to fetch.
|
|
*/
|
|
where?: Prisma.UserGroupWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserGroups to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserGroupOrderByWithRelationInput | Prisma.UserGroupOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing UserGroups.
|
|
*/
|
|
cursor?: Prisma.UserGroupWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserGroups 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` UserGroups.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.UserGroupScalarFieldEnum | Prisma.UserGroupScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserGroup create
|
|
*/
|
|
export type UserGroupCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a UserGroup.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserGroupCreateInput, Prisma.UserGroupUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* UserGroup createMany
|
|
*/
|
|
export type UserGroupCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many UserGroups.
|
|
*/
|
|
data: Prisma.UserGroupCreateManyInput | Prisma.UserGroupCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* UserGroup createManyAndReturn
|
|
*/
|
|
export type UserGroupCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many UserGroups.
|
|
*/
|
|
data: Prisma.UserGroupCreateManyInput | Prisma.UserGroupCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* UserGroup update
|
|
*/
|
|
export type UserGroupUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a UserGroup.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserGroupUpdateInput, Prisma.UserGroupUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which UserGroup to update.
|
|
*/
|
|
where: Prisma.UserGroupWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserGroup updateMany
|
|
*/
|
|
export type UserGroupUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update UserGroups.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserGroupUpdateManyMutationInput, Prisma.UserGroupUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which UserGroups to update
|
|
*/
|
|
where?: Prisma.UserGroupWhereInput
|
|
/**
|
|
* Limit how many UserGroups to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* UserGroup updateManyAndReturn
|
|
*/
|
|
export type UserGroupUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update UserGroups.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserGroupUpdateManyMutationInput, Prisma.UserGroupUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which UserGroups to update
|
|
*/
|
|
where?: Prisma.UserGroupWhereInput
|
|
/**
|
|
* Limit how many UserGroups to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* UserGroup upsert
|
|
*/
|
|
export type UserGroupUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the UserGroup to update in case it exists.
|
|
*/
|
|
where: Prisma.UserGroupWhereUniqueInput
|
|
/**
|
|
* In case the UserGroup found by the `where` argument doesn't exist, create a new UserGroup with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.UserGroupCreateInput, Prisma.UserGroupUncheckedCreateInput>
|
|
/**
|
|
* In case the UserGroup was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.UserGroupUpdateInput, Prisma.UserGroupUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* UserGroup delete
|
|
*/
|
|
export type UserGroupDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which UserGroup to delete.
|
|
*/
|
|
where: Prisma.UserGroupWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserGroup deleteMany
|
|
*/
|
|
export type UserGroupDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which UserGroups to delete
|
|
*/
|
|
where?: Prisma.UserGroupWhereInput
|
|
/**
|
|
* Limit how many UserGroups to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* UserGroup.users
|
|
*/
|
|
export type UserGroup$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
where?: Prisma.UserWhereInput
|
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
cursor?: Prisma.UserWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserGroup without action
|
|
*/
|
|
export type UserGroupDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserGroup
|
|
*/
|
|
select?: Prisma.UserGroupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserGroup
|
|
*/
|
|
omit?: Prisma.UserGroupOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserGroupInclude<ExtArgs> | null
|
|
}
|