Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/Group.ts
T

1897 lines
71 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 `Group` 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 Group
*
*/
export type GroupModel = runtime.Types.Result.DefaultSelection<Prisma.$GroupPayload>
export type AggregateGroup = {
_count: GroupCountAggregateOutputType | null
_avg: GroupAvgAggregateOutputType | null
_sum: GroupSumAggregateOutputType | null
_min: GroupMinAggregateOutputType | null
_max: GroupMaxAggregateOutputType | null
}
export type GroupAvgAggregateOutputType = {
color: number | null
}
export type GroupSumAggregateOutputType = {
color: number | null
}
export type GroupMinAggregateOutputType = {
id: string | null
createdAt: Date | null
createdByUserId: string | null
tenantId: string | null
name: string | null
description: string | null
color: number | null
}
export type GroupMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
createdByUserId: string | null
tenantId: string | null
name: string | null
description: string | null
color: number | null
}
export type GroupCountAggregateOutputType = {
id: number
createdAt: number
createdByUserId: number
tenantId: number
name: number
description: number
color: number
_all: number
}
export type GroupAvgAggregateInputType = {
color?: true
}
export type GroupSumAggregateInputType = {
color?: true
}
export type GroupMinAggregateInputType = {
id?: true
createdAt?: true
createdByUserId?: true
tenantId?: true
name?: true
description?: true
color?: true
}
export type GroupMaxAggregateInputType = {
id?: true
createdAt?: true
createdByUserId?: true
tenantId?: true
name?: true
description?: true
color?: true
}
export type GroupCountAggregateInputType = {
id?: true
createdAt?: true
createdByUserId?: true
tenantId?: true
name?: true
description?: true
color?: true
_all?: true
}
export type GroupAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Group to aggregate.
*/
where?: Prisma.GroupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Groups to fetch.
*/
orderBy?: Prisma.GroupOrderByWithRelationInput | Prisma.GroupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.GroupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Groups 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` Groups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Groups
**/
_count?: true | GroupCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: GroupAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: GroupSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: GroupMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: GroupMaxAggregateInputType
}
export type GetGroupAggregateType<T extends GroupAggregateArgs> = {
[P in keyof T & keyof AggregateGroup]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateGroup[P]>
: Prisma.GetScalarType<T[P], AggregateGroup[P]>
}
export type GroupGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.GroupWhereInput
orderBy?: Prisma.GroupOrderByWithAggregationInput | Prisma.GroupOrderByWithAggregationInput[]
by: Prisma.GroupScalarFieldEnum[] | Prisma.GroupScalarFieldEnum
having?: Prisma.GroupScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: GroupCountAggregateInputType | true
_avg?: GroupAvgAggregateInputType
_sum?: GroupSumAggregateInputType
_min?: GroupMinAggregateInputType
_max?: GroupMaxAggregateInputType
}
export type GroupGroupByOutputType = {
id: string
createdAt: Date
createdByUserId: string
tenantId: string | null
name: string
description: string
color: number
_count: GroupCountAggregateOutputType | null
_avg: GroupAvgAggregateOutputType | null
_sum: GroupSumAggregateOutputType | null
_min: GroupMinAggregateOutputType | null
_max: GroupMaxAggregateOutputType | null
}
export type GetGroupGroupByPayload<T extends GroupGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<GroupGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof GroupGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], GroupGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], GroupGroupByOutputType[P]>
}
>
>
export type GroupWhereInput = {
AND?: Prisma.GroupWhereInput | Prisma.GroupWhereInput[]
OR?: Prisma.GroupWhereInput[]
NOT?: Prisma.GroupWhereInput | Prisma.GroupWhereInput[]
id?: Prisma.StringFilter<"Group"> | string
createdAt?: Prisma.DateTimeFilter<"Group"> | Date | string
createdByUserId?: Prisma.StringFilter<"Group"> | string
tenantId?: Prisma.StringNullableFilter<"Group"> | string | null
name?: Prisma.StringFilter<"Group"> | string
description?: Prisma.StringFilter<"Group"> | string
color?: Prisma.IntFilter<"Group"> | number
createdByUser?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
users?: Prisma.GroupUserListRelationFilter
rowPermissions?: Prisma.RowPermissionListRelationFilter
}
export type GroupOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
color?: Prisma.SortOrder
createdByUser?: Prisma.UserOrderByWithRelationInput
tenant?: Prisma.TenantOrderByWithRelationInput
users?: Prisma.GroupUserOrderByRelationAggregateInput
rowPermissions?: Prisma.RowPermissionOrderByRelationAggregateInput
}
export type GroupWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.GroupWhereInput | Prisma.GroupWhereInput[]
OR?: Prisma.GroupWhereInput[]
NOT?: Prisma.GroupWhereInput | Prisma.GroupWhereInput[]
createdAt?: Prisma.DateTimeFilter<"Group"> | Date | string
createdByUserId?: Prisma.StringFilter<"Group"> | string
tenantId?: Prisma.StringNullableFilter<"Group"> | string | null
name?: Prisma.StringFilter<"Group"> | string
description?: Prisma.StringFilter<"Group"> | string
color?: Prisma.IntFilter<"Group"> | number
createdByUser?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
users?: Prisma.GroupUserListRelationFilter
rowPermissions?: Prisma.RowPermissionListRelationFilter
}, "id">
export type GroupOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
color?: Prisma.SortOrder
_count?: Prisma.GroupCountOrderByAggregateInput
_avg?: Prisma.GroupAvgOrderByAggregateInput
_max?: Prisma.GroupMaxOrderByAggregateInput
_min?: Prisma.GroupMinOrderByAggregateInput
_sum?: Prisma.GroupSumOrderByAggregateInput
}
export type GroupScalarWhereWithAggregatesInput = {
AND?: Prisma.GroupScalarWhereWithAggregatesInput | Prisma.GroupScalarWhereWithAggregatesInput[]
OR?: Prisma.GroupScalarWhereWithAggregatesInput[]
NOT?: Prisma.GroupScalarWhereWithAggregatesInput | Prisma.GroupScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"Group"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Group"> | Date | string
createdByUserId?: Prisma.StringWithAggregatesFilter<"Group"> | string
tenantId?: Prisma.StringNullableWithAggregatesFilter<"Group"> | string | null
name?: Prisma.StringWithAggregatesFilter<"Group"> | string
description?: Prisma.StringWithAggregatesFilter<"Group"> | string
color?: Prisma.IntWithAggregatesFilter<"Group"> | number
}
export type GroupCreateInput = {
id?: string
createdAt?: Date | string
name: string
description: string
color: number
createdByUser: Prisma.UserCreateNestedOneWithoutCreatedGroupsInput
tenant?: Prisma.TenantCreateNestedOneWithoutGroupsInput
users?: Prisma.GroupUserCreateNestedManyWithoutGroupInput
rowPermissions?: Prisma.RowPermissionCreateNestedManyWithoutGroupInput
}
export type GroupUncheckedCreateInput = {
id?: string
createdAt?: Date | string
createdByUserId: string
tenantId?: string | null
name: string
description: string
color: number
users?: Prisma.GroupUserUncheckedCreateNestedManyWithoutGroupInput
rowPermissions?: Prisma.RowPermissionUncheckedCreateNestedManyWithoutGroupInput
}
export type GroupUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedGroupsNestedInput
tenant?: Prisma.TenantUpdateOneWithoutGroupsNestedInput
users?: Prisma.GroupUserUpdateManyWithoutGroupNestedInput
rowPermissions?: Prisma.RowPermissionUpdateManyWithoutGroupNestedInput
}
export type GroupUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
users?: Prisma.GroupUserUncheckedUpdateManyWithoutGroupNestedInput
rowPermissions?: Prisma.RowPermissionUncheckedUpdateManyWithoutGroupNestedInput
}
export type GroupCreateManyInput = {
id?: string
createdAt?: Date | string
createdByUserId: string
tenantId?: string | null
name: string
description: string
color: number
}
export type GroupUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
}
export type GroupUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
}
export type GroupListRelationFilter = {
every?: Prisma.GroupWhereInput
some?: Prisma.GroupWhereInput
none?: Prisma.GroupWhereInput
}
export type GroupOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type GroupNullableScalarRelationFilter = {
is?: Prisma.GroupWhereInput | null
isNot?: Prisma.GroupWhereInput | null
}
export type GroupCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
color?: Prisma.SortOrder
}
export type GroupAvgOrderByAggregateInput = {
color?: Prisma.SortOrder
}
export type GroupMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
color?: Prisma.SortOrder
}
export type GroupMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
color?: Prisma.SortOrder
}
export type GroupSumOrderByAggregateInput = {
color?: Prisma.SortOrder
}
export type GroupScalarRelationFilter = {
is?: Prisma.GroupWhereInput
isNot?: Prisma.GroupWhereInput
}
export type GroupCreateNestedManyWithoutCreatedByUserInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutCreatedByUserInput, Prisma.GroupUncheckedCreateWithoutCreatedByUserInput> | Prisma.GroupCreateWithoutCreatedByUserInput[] | Prisma.GroupUncheckedCreateWithoutCreatedByUserInput[]
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutCreatedByUserInput | Prisma.GroupCreateOrConnectWithoutCreatedByUserInput[]
createMany?: Prisma.GroupCreateManyCreatedByUserInputEnvelope
connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
}
export type GroupUncheckedCreateNestedManyWithoutCreatedByUserInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutCreatedByUserInput, Prisma.GroupUncheckedCreateWithoutCreatedByUserInput> | Prisma.GroupCreateWithoutCreatedByUserInput[] | Prisma.GroupUncheckedCreateWithoutCreatedByUserInput[]
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutCreatedByUserInput | Prisma.GroupCreateOrConnectWithoutCreatedByUserInput[]
createMany?: Prisma.GroupCreateManyCreatedByUserInputEnvelope
connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
}
export type GroupUpdateManyWithoutCreatedByUserNestedInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutCreatedByUserInput, Prisma.GroupUncheckedCreateWithoutCreatedByUserInput> | Prisma.GroupCreateWithoutCreatedByUserInput[] | Prisma.GroupUncheckedCreateWithoutCreatedByUserInput[]
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutCreatedByUserInput | Prisma.GroupCreateOrConnectWithoutCreatedByUserInput[]
upsert?: Prisma.GroupUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.GroupUpsertWithWhereUniqueWithoutCreatedByUserInput[]
createMany?: Prisma.GroupCreateManyCreatedByUserInputEnvelope
set?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
disconnect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
delete?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
update?: Prisma.GroupUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.GroupUpdateWithWhereUniqueWithoutCreatedByUserInput[]
updateMany?: Prisma.GroupUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.GroupUpdateManyWithWhereWithoutCreatedByUserInput[]
deleteMany?: Prisma.GroupScalarWhereInput | Prisma.GroupScalarWhereInput[]
}
export type GroupUncheckedUpdateManyWithoutCreatedByUserNestedInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutCreatedByUserInput, Prisma.GroupUncheckedCreateWithoutCreatedByUserInput> | Prisma.GroupCreateWithoutCreatedByUserInput[] | Prisma.GroupUncheckedCreateWithoutCreatedByUserInput[]
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutCreatedByUserInput | Prisma.GroupCreateOrConnectWithoutCreatedByUserInput[]
upsert?: Prisma.GroupUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.GroupUpsertWithWhereUniqueWithoutCreatedByUserInput[]
createMany?: Prisma.GroupCreateManyCreatedByUserInputEnvelope
set?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
disconnect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
delete?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
update?: Prisma.GroupUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.GroupUpdateWithWhereUniqueWithoutCreatedByUserInput[]
updateMany?: Prisma.GroupUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.GroupUpdateManyWithWhereWithoutCreatedByUserInput[]
deleteMany?: Prisma.GroupScalarWhereInput | Prisma.GroupScalarWhereInput[]
}
export type GroupCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutTenantInput, Prisma.GroupUncheckedCreateWithoutTenantInput> | Prisma.GroupCreateWithoutTenantInput[] | Prisma.GroupUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutTenantInput | Prisma.GroupCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.GroupCreateManyTenantInputEnvelope
connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
}
export type GroupUncheckedCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutTenantInput, Prisma.GroupUncheckedCreateWithoutTenantInput> | Prisma.GroupCreateWithoutTenantInput[] | Prisma.GroupUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutTenantInput | Prisma.GroupCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.GroupCreateManyTenantInputEnvelope
connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
}
export type GroupUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutTenantInput, Prisma.GroupUncheckedCreateWithoutTenantInput> | Prisma.GroupCreateWithoutTenantInput[] | Prisma.GroupUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutTenantInput | Prisma.GroupCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.GroupUpsertWithWhereUniqueWithoutTenantInput | Prisma.GroupUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.GroupCreateManyTenantInputEnvelope
set?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
disconnect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
delete?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
update?: Prisma.GroupUpdateWithWhereUniqueWithoutTenantInput | Prisma.GroupUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.GroupUpdateManyWithWhereWithoutTenantInput | Prisma.GroupUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.GroupScalarWhereInput | Prisma.GroupScalarWhereInput[]
}
export type GroupUncheckedUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutTenantInput, Prisma.GroupUncheckedCreateWithoutTenantInput> | Prisma.GroupCreateWithoutTenantInput[] | Prisma.GroupUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutTenantInput | Prisma.GroupCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.GroupUpsertWithWhereUniqueWithoutTenantInput | Prisma.GroupUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.GroupCreateManyTenantInputEnvelope
set?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
disconnect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
delete?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[]
update?: Prisma.GroupUpdateWithWhereUniqueWithoutTenantInput | Prisma.GroupUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.GroupUpdateManyWithWhereWithoutTenantInput | Prisma.GroupUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.GroupScalarWhereInput | Prisma.GroupScalarWhereInput[]
}
export type GroupCreateNestedOneWithoutRowPermissionsInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutRowPermissionsInput, Prisma.GroupUncheckedCreateWithoutRowPermissionsInput>
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutRowPermissionsInput
connect?: Prisma.GroupWhereUniqueInput
}
export type GroupUpdateOneWithoutRowPermissionsNestedInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutRowPermissionsInput, Prisma.GroupUncheckedCreateWithoutRowPermissionsInput>
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutRowPermissionsInput
upsert?: Prisma.GroupUpsertWithoutRowPermissionsInput
disconnect?: Prisma.GroupWhereInput | boolean
delete?: Prisma.GroupWhereInput | boolean
connect?: Prisma.GroupWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.GroupUpdateToOneWithWhereWithoutRowPermissionsInput, Prisma.GroupUpdateWithoutRowPermissionsInput>, Prisma.GroupUncheckedUpdateWithoutRowPermissionsInput>
}
export type GroupCreateNestedOneWithoutUsersInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutUsersInput, Prisma.GroupUncheckedCreateWithoutUsersInput>
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutUsersInput
connect?: Prisma.GroupWhereUniqueInput
}
export type GroupUpdateOneRequiredWithoutUsersNestedInput = {
create?: Prisma.XOR<Prisma.GroupCreateWithoutUsersInput, Prisma.GroupUncheckedCreateWithoutUsersInput>
connectOrCreate?: Prisma.GroupCreateOrConnectWithoutUsersInput
upsert?: Prisma.GroupUpsertWithoutUsersInput
connect?: Prisma.GroupWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.GroupUpdateToOneWithWhereWithoutUsersInput, Prisma.GroupUpdateWithoutUsersInput>, Prisma.GroupUncheckedUpdateWithoutUsersInput>
}
export type GroupCreateWithoutCreatedByUserInput = {
id?: string
createdAt?: Date | string
name: string
description: string
color: number
tenant?: Prisma.TenantCreateNestedOneWithoutGroupsInput
users?: Prisma.GroupUserCreateNestedManyWithoutGroupInput
rowPermissions?: Prisma.RowPermissionCreateNestedManyWithoutGroupInput
}
export type GroupUncheckedCreateWithoutCreatedByUserInput = {
id?: string
createdAt?: Date | string
tenantId?: string | null
name: string
description: string
color: number
users?: Prisma.GroupUserUncheckedCreateNestedManyWithoutGroupInput
rowPermissions?: Prisma.RowPermissionUncheckedCreateNestedManyWithoutGroupInput
}
export type GroupCreateOrConnectWithoutCreatedByUserInput = {
where: Prisma.GroupWhereUniqueInput
create: Prisma.XOR<Prisma.GroupCreateWithoutCreatedByUserInput, Prisma.GroupUncheckedCreateWithoutCreatedByUserInput>
}
export type GroupCreateManyCreatedByUserInputEnvelope = {
data: Prisma.GroupCreateManyCreatedByUserInput | Prisma.GroupCreateManyCreatedByUserInput[]
skipDuplicates?: boolean
}
export type GroupUpsertWithWhereUniqueWithoutCreatedByUserInput = {
where: Prisma.GroupWhereUniqueInput
update: Prisma.XOR<Prisma.GroupUpdateWithoutCreatedByUserInput, Prisma.GroupUncheckedUpdateWithoutCreatedByUserInput>
create: Prisma.XOR<Prisma.GroupCreateWithoutCreatedByUserInput, Prisma.GroupUncheckedCreateWithoutCreatedByUserInput>
}
export type GroupUpdateWithWhereUniqueWithoutCreatedByUserInput = {
where: Prisma.GroupWhereUniqueInput
data: Prisma.XOR<Prisma.GroupUpdateWithoutCreatedByUserInput, Prisma.GroupUncheckedUpdateWithoutCreatedByUserInput>
}
export type GroupUpdateManyWithWhereWithoutCreatedByUserInput = {
where: Prisma.GroupScalarWhereInput
data: Prisma.XOR<Prisma.GroupUpdateManyMutationInput, Prisma.GroupUncheckedUpdateManyWithoutCreatedByUserInput>
}
export type GroupScalarWhereInput = {
AND?: Prisma.GroupScalarWhereInput | Prisma.GroupScalarWhereInput[]
OR?: Prisma.GroupScalarWhereInput[]
NOT?: Prisma.GroupScalarWhereInput | Prisma.GroupScalarWhereInput[]
id?: Prisma.StringFilter<"Group"> | string
createdAt?: Prisma.DateTimeFilter<"Group"> | Date | string
createdByUserId?: Prisma.StringFilter<"Group"> | string
tenantId?: Prisma.StringNullableFilter<"Group"> | string | null
name?: Prisma.StringFilter<"Group"> | string
description?: Prisma.StringFilter<"Group"> | string
color?: Prisma.IntFilter<"Group"> | number
}
export type GroupCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
name: string
description: string
color: number
createdByUser: Prisma.UserCreateNestedOneWithoutCreatedGroupsInput
users?: Prisma.GroupUserCreateNestedManyWithoutGroupInput
rowPermissions?: Prisma.RowPermissionCreateNestedManyWithoutGroupInput
}
export type GroupUncheckedCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
createdByUserId: string
name: string
description: string
color: number
users?: Prisma.GroupUserUncheckedCreateNestedManyWithoutGroupInput
rowPermissions?: Prisma.RowPermissionUncheckedCreateNestedManyWithoutGroupInput
}
export type GroupCreateOrConnectWithoutTenantInput = {
where: Prisma.GroupWhereUniqueInput
create: Prisma.XOR<Prisma.GroupCreateWithoutTenantInput, Prisma.GroupUncheckedCreateWithoutTenantInput>
}
export type GroupCreateManyTenantInputEnvelope = {
data: Prisma.GroupCreateManyTenantInput | Prisma.GroupCreateManyTenantInput[]
skipDuplicates?: boolean
}
export type GroupUpsertWithWhereUniqueWithoutTenantInput = {
where: Prisma.GroupWhereUniqueInput
update: Prisma.XOR<Prisma.GroupUpdateWithoutTenantInput, Prisma.GroupUncheckedUpdateWithoutTenantInput>
create: Prisma.XOR<Prisma.GroupCreateWithoutTenantInput, Prisma.GroupUncheckedCreateWithoutTenantInput>
}
export type GroupUpdateWithWhereUniqueWithoutTenantInput = {
where: Prisma.GroupWhereUniqueInput
data: Prisma.XOR<Prisma.GroupUpdateWithoutTenantInput, Prisma.GroupUncheckedUpdateWithoutTenantInput>
}
export type GroupUpdateManyWithWhereWithoutTenantInput = {
where: Prisma.GroupScalarWhereInput
data: Prisma.XOR<Prisma.GroupUpdateManyMutationInput, Prisma.GroupUncheckedUpdateManyWithoutTenantInput>
}
export type GroupCreateWithoutRowPermissionsInput = {
id?: string
createdAt?: Date | string
name: string
description: string
color: number
createdByUser: Prisma.UserCreateNestedOneWithoutCreatedGroupsInput
tenant?: Prisma.TenantCreateNestedOneWithoutGroupsInput
users?: Prisma.GroupUserCreateNestedManyWithoutGroupInput
}
export type GroupUncheckedCreateWithoutRowPermissionsInput = {
id?: string
createdAt?: Date | string
createdByUserId: string
tenantId?: string | null
name: string
description: string
color: number
users?: Prisma.GroupUserUncheckedCreateNestedManyWithoutGroupInput
}
export type GroupCreateOrConnectWithoutRowPermissionsInput = {
where: Prisma.GroupWhereUniqueInput
create: Prisma.XOR<Prisma.GroupCreateWithoutRowPermissionsInput, Prisma.GroupUncheckedCreateWithoutRowPermissionsInput>
}
export type GroupUpsertWithoutRowPermissionsInput = {
update: Prisma.XOR<Prisma.GroupUpdateWithoutRowPermissionsInput, Prisma.GroupUncheckedUpdateWithoutRowPermissionsInput>
create: Prisma.XOR<Prisma.GroupCreateWithoutRowPermissionsInput, Prisma.GroupUncheckedCreateWithoutRowPermissionsInput>
where?: Prisma.GroupWhereInput
}
export type GroupUpdateToOneWithWhereWithoutRowPermissionsInput = {
where?: Prisma.GroupWhereInput
data: Prisma.XOR<Prisma.GroupUpdateWithoutRowPermissionsInput, Prisma.GroupUncheckedUpdateWithoutRowPermissionsInput>
}
export type GroupUpdateWithoutRowPermissionsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedGroupsNestedInput
tenant?: Prisma.TenantUpdateOneWithoutGroupsNestedInput
users?: Prisma.GroupUserUpdateManyWithoutGroupNestedInput
}
export type GroupUncheckedUpdateWithoutRowPermissionsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
users?: Prisma.GroupUserUncheckedUpdateManyWithoutGroupNestedInput
}
export type GroupCreateWithoutUsersInput = {
id?: string
createdAt?: Date | string
name: string
description: string
color: number
createdByUser: Prisma.UserCreateNestedOneWithoutCreatedGroupsInput
tenant?: Prisma.TenantCreateNestedOneWithoutGroupsInput
rowPermissions?: Prisma.RowPermissionCreateNestedManyWithoutGroupInput
}
export type GroupUncheckedCreateWithoutUsersInput = {
id?: string
createdAt?: Date | string
createdByUserId: string
tenantId?: string | null
name: string
description: string
color: number
rowPermissions?: Prisma.RowPermissionUncheckedCreateNestedManyWithoutGroupInput
}
export type GroupCreateOrConnectWithoutUsersInput = {
where: Prisma.GroupWhereUniqueInput
create: Prisma.XOR<Prisma.GroupCreateWithoutUsersInput, Prisma.GroupUncheckedCreateWithoutUsersInput>
}
export type GroupUpsertWithoutUsersInput = {
update: Prisma.XOR<Prisma.GroupUpdateWithoutUsersInput, Prisma.GroupUncheckedUpdateWithoutUsersInput>
create: Prisma.XOR<Prisma.GroupCreateWithoutUsersInput, Prisma.GroupUncheckedCreateWithoutUsersInput>
where?: Prisma.GroupWhereInput
}
export type GroupUpdateToOneWithWhereWithoutUsersInput = {
where?: Prisma.GroupWhereInput
data: Prisma.XOR<Prisma.GroupUpdateWithoutUsersInput, Prisma.GroupUncheckedUpdateWithoutUsersInput>
}
export type GroupUpdateWithoutUsersInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedGroupsNestedInput
tenant?: Prisma.TenantUpdateOneWithoutGroupsNestedInput
rowPermissions?: Prisma.RowPermissionUpdateManyWithoutGroupNestedInput
}
export type GroupUncheckedUpdateWithoutUsersInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
rowPermissions?: Prisma.RowPermissionUncheckedUpdateManyWithoutGroupNestedInput
}
export type GroupCreateManyCreatedByUserInput = {
id?: string
createdAt?: Date | string
tenantId?: string | null
name: string
description: string
color: number
}
export type GroupUpdateWithoutCreatedByUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
tenant?: Prisma.TenantUpdateOneWithoutGroupsNestedInput
users?: Prisma.GroupUserUpdateManyWithoutGroupNestedInput
rowPermissions?: Prisma.RowPermissionUpdateManyWithoutGroupNestedInput
}
export type GroupUncheckedUpdateWithoutCreatedByUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
users?: Prisma.GroupUserUncheckedUpdateManyWithoutGroupNestedInput
rowPermissions?: Prisma.RowPermissionUncheckedUpdateManyWithoutGroupNestedInput
}
export type GroupUncheckedUpdateManyWithoutCreatedByUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
}
export type GroupCreateManyTenantInput = {
id?: string
createdAt?: Date | string
createdByUserId: string
name: string
description: string
color: number
}
export type GroupUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedGroupsNestedInput
users?: Prisma.GroupUserUpdateManyWithoutGroupNestedInput
rowPermissions?: Prisma.RowPermissionUpdateManyWithoutGroupNestedInput
}
export type GroupUncheckedUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
users?: Prisma.GroupUserUncheckedUpdateManyWithoutGroupNestedInput
rowPermissions?: Prisma.RowPermissionUncheckedUpdateManyWithoutGroupNestedInput
}
export type GroupUncheckedUpdateManyWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
}
/**
* Count Type GroupCountOutputType
*/
export type GroupCountOutputType = {
users: number
rowPermissions: number
}
export type GroupCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
users?: boolean | GroupCountOutputTypeCountUsersArgs
rowPermissions?: boolean | GroupCountOutputTypeCountRowPermissionsArgs
}
/**
* GroupCountOutputType without action
*/
export type GroupCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GroupCountOutputType
*/
select?: Prisma.GroupCountOutputTypeSelect<ExtArgs> | null
}
/**
* GroupCountOutputType without action
*/
export type GroupCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.GroupUserWhereInput
}
/**
* GroupCountOutputType without action
*/
export type GroupCountOutputTypeCountRowPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.RowPermissionWhereInput
}
export type GroupSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
createdByUserId?: boolean
tenantId?: boolean
name?: boolean
description?: boolean
color?: boolean
createdByUser?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.Group$tenantArgs<ExtArgs>
users?: boolean | Prisma.Group$usersArgs<ExtArgs>
rowPermissions?: boolean | Prisma.Group$rowPermissionsArgs<ExtArgs>
_count?: boolean | Prisma.GroupCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["group"]>
export type GroupSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
createdByUserId?: boolean
tenantId?: boolean
name?: boolean
description?: boolean
color?: boolean
createdByUser?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.Group$tenantArgs<ExtArgs>
}, ExtArgs["result"]["group"]>
export type GroupSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
createdByUserId?: boolean
tenantId?: boolean
name?: boolean
description?: boolean
color?: boolean
createdByUser?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.Group$tenantArgs<ExtArgs>
}, ExtArgs["result"]["group"]>
export type GroupSelectScalar = {
id?: boolean
createdAt?: boolean
createdByUserId?: boolean
tenantId?: boolean
name?: boolean
description?: boolean
color?: boolean
}
export type GroupOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "createdByUserId" | "tenantId" | "name" | "description" | "color", ExtArgs["result"]["group"]>
export type GroupInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
createdByUser?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.Group$tenantArgs<ExtArgs>
users?: boolean | Prisma.Group$usersArgs<ExtArgs>
rowPermissions?: boolean | Prisma.Group$rowPermissionsArgs<ExtArgs>
_count?: boolean | Prisma.GroupCountOutputTypeDefaultArgs<ExtArgs>
}
export type GroupIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
createdByUser?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.Group$tenantArgs<ExtArgs>
}
export type GroupIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
createdByUser?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.Group$tenantArgs<ExtArgs>
}
export type $GroupPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Group"
objects: {
createdByUser: Prisma.$UserPayload<ExtArgs>
tenant: Prisma.$TenantPayload<ExtArgs> | null
users: Prisma.$GroupUserPayload<ExtArgs>[]
rowPermissions: Prisma.$RowPermissionPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
createdByUserId: string
tenantId: string | null
name: string
description: string
color: number
}, ExtArgs["result"]["group"]>
composites: {}
}
export type GroupGetPayload<S extends boolean | null | undefined | GroupDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$GroupPayload, S>
export type GroupCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<GroupFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: GroupCountAggregateInputType | true
}
export interface GroupDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Group'], meta: { name: 'Group' } }
/**
* Find zero or one Group that matches the filter.
* @param {GroupFindUniqueArgs} args - Arguments to find a Group
* @example
* // Get one Group
* const group = await prisma.group.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends GroupFindUniqueArgs>(args: Prisma.SelectSubset<T, GroupFindUniqueArgs<ExtArgs>>): Prisma.Prisma__GroupClient<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Group that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {GroupFindUniqueOrThrowArgs} args - Arguments to find a Group
* @example
* // Get one Group
* const group = await prisma.group.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends GroupFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, GroupFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__GroupClient<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Group 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 {GroupFindFirstArgs} args - Arguments to find a Group
* @example
* // Get one Group
* const group = await prisma.group.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends GroupFindFirstArgs>(args?: Prisma.SelectSubset<T, GroupFindFirstArgs<ExtArgs>>): Prisma.Prisma__GroupClient<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Group 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 {GroupFindFirstOrThrowArgs} args - Arguments to find a Group
* @example
* // Get one Group
* const group = await prisma.group.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends GroupFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, GroupFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__GroupClient<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Groups 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 {GroupFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Groups
* const groups = await prisma.group.findMany()
*
* // Get first 10 Groups
* const groups = await prisma.group.findMany({ take: 10 })
*
* // Only select the `id`
* const groupWithIdOnly = await prisma.group.findMany({ select: { id: true } })
*
*/
findMany<T extends GroupFindManyArgs>(args?: Prisma.SelectSubset<T, GroupFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Group.
* @param {GroupCreateArgs} args - Arguments to create a Group.
* @example
* // Create one Group
* const Group = await prisma.group.create({
* data: {
* // ... data to create a Group
* }
* })
*
*/
create<T extends GroupCreateArgs>(args: Prisma.SelectSubset<T, GroupCreateArgs<ExtArgs>>): Prisma.Prisma__GroupClient<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Groups.
* @param {GroupCreateManyArgs} args - Arguments to create many Groups.
* @example
* // Create many Groups
* const group = await prisma.group.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends GroupCreateManyArgs>(args?: Prisma.SelectSubset<T, GroupCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Groups and returns the data saved in the database.
* @param {GroupCreateManyAndReturnArgs} args - Arguments to create many Groups.
* @example
* // Create many Groups
* const group = await prisma.group.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Groups and only return the `id`
* const groupWithIdOnly = await prisma.group.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 GroupCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, GroupCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Group.
* @param {GroupDeleteArgs} args - Arguments to delete one Group.
* @example
* // Delete one Group
* const Group = await prisma.group.delete({
* where: {
* // ... filter to delete one Group
* }
* })
*
*/
delete<T extends GroupDeleteArgs>(args: Prisma.SelectSubset<T, GroupDeleteArgs<ExtArgs>>): Prisma.Prisma__GroupClient<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Group.
* @param {GroupUpdateArgs} args - Arguments to update one Group.
* @example
* // Update one Group
* const group = await prisma.group.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends GroupUpdateArgs>(args: Prisma.SelectSubset<T, GroupUpdateArgs<ExtArgs>>): Prisma.Prisma__GroupClient<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Groups.
* @param {GroupDeleteManyArgs} args - Arguments to filter Groups to delete.
* @example
* // Delete a few Groups
* const { count } = await prisma.group.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends GroupDeleteManyArgs>(args?: Prisma.SelectSubset<T, GroupDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Groups.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GroupUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Groups
* const group = await prisma.group.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends GroupUpdateManyArgs>(args: Prisma.SelectSubset<T, GroupUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Groups and returns the data updated in the database.
* @param {GroupUpdateManyAndReturnArgs} args - Arguments to update many Groups.
* @example
* // Update many Groups
* const group = await prisma.group.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Groups and only return the `id`
* const groupWithIdOnly = await prisma.group.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 GroupUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, GroupUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Group.
* @param {GroupUpsertArgs} args - Arguments to update or create a Group.
* @example
* // Update or create a Group
* const group = await prisma.group.upsert({
* create: {
* // ... data to create a Group
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Group we want to update
* }
* })
*/
upsert<T extends GroupUpsertArgs>(args: Prisma.SelectSubset<T, GroupUpsertArgs<ExtArgs>>): Prisma.Prisma__GroupClient<runtime.Types.Result.GetResult<Prisma.$GroupPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Groups.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GroupCountArgs} args - Arguments to filter Groups to count.
* @example
* // Count the number of Groups
* const count = await prisma.group.count({
* where: {
* // ... the filter for the Groups we want to count
* }
* })
**/
count<T extends GroupCountArgs>(
args?: Prisma.Subset<T, GroupCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], GroupCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Group.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GroupAggregateArgs} 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 GroupAggregateArgs>(args: Prisma.Subset<T, GroupAggregateArgs>): Prisma.PrismaPromise<GetGroupAggregateType<T>>
/**
* Group by Group.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GroupGroupByArgs} 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 GroupGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: GroupGroupByArgs['orderBy'] }
: { orderBy?: GroupGroupByArgs['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, GroupGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGroupGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Group model
*/
readonly fields: GroupFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Group.
* 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__GroupClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
createdByUser<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
tenant<T extends Prisma.Group$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Group$tenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
users<T extends Prisma.Group$usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Group$usersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GroupUserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
rowPermissions<T extends Prisma.Group$rowPermissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Group$rowPermissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RowPermissionPayload<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 Group model
*/
export interface GroupFieldRefs {
readonly id: Prisma.FieldRef<"Group", 'String'>
readonly createdAt: Prisma.FieldRef<"Group", 'DateTime'>
readonly createdByUserId: Prisma.FieldRef<"Group", 'String'>
readonly tenantId: Prisma.FieldRef<"Group", 'String'>
readonly name: Prisma.FieldRef<"Group", 'String'>
readonly description: Prisma.FieldRef<"Group", 'String'>
readonly color: Prisma.FieldRef<"Group", 'Int'>
}
// Custom InputTypes
/**
* Group findUnique
*/
export type GroupFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
/**
* Filter, which Group to fetch.
*/
where: Prisma.GroupWhereUniqueInput
}
/**
* Group findUniqueOrThrow
*/
export type GroupFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
/**
* Filter, which Group to fetch.
*/
where: Prisma.GroupWhereUniqueInput
}
/**
* Group findFirst
*/
export type GroupFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
/**
* Filter, which Group to fetch.
*/
where?: Prisma.GroupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Groups to fetch.
*/
orderBy?: Prisma.GroupOrderByWithRelationInput | Prisma.GroupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Groups.
*/
cursor?: Prisma.GroupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Groups 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` Groups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Groups.
*/
distinct?: Prisma.GroupScalarFieldEnum | Prisma.GroupScalarFieldEnum[]
}
/**
* Group findFirstOrThrow
*/
export type GroupFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
/**
* Filter, which Group to fetch.
*/
where?: Prisma.GroupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Groups to fetch.
*/
orderBy?: Prisma.GroupOrderByWithRelationInput | Prisma.GroupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Groups.
*/
cursor?: Prisma.GroupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Groups 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` Groups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Groups.
*/
distinct?: Prisma.GroupScalarFieldEnum | Prisma.GroupScalarFieldEnum[]
}
/**
* Group findMany
*/
export type GroupFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
/**
* Filter, which Groups to fetch.
*/
where?: Prisma.GroupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Groups to fetch.
*/
orderBy?: Prisma.GroupOrderByWithRelationInput | Prisma.GroupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Groups.
*/
cursor?: Prisma.GroupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Groups 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` Groups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Groups.
*/
distinct?: Prisma.GroupScalarFieldEnum | Prisma.GroupScalarFieldEnum[]
}
/**
* Group create
*/
export type GroupCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
/**
* The data needed to create a Group.
*/
data: Prisma.XOR<Prisma.GroupCreateInput, Prisma.GroupUncheckedCreateInput>
}
/**
* Group createMany
*/
export type GroupCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Groups.
*/
data: Prisma.GroupCreateManyInput | Prisma.GroupCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Group createManyAndReturn
*/
export type GroupCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* The data used to create many Groups.
*/
data: Prisma.GroupCreateManyInput | Prisma.GroupCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Group update
*/
export type GroupUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
/**
* The data needed to update a Group.
*/
data: Prisma.XOR<Prisma.GroupUpdateInput, Prisma.GroupUncheckedUpdateInput>
/**
* Choose, which Group to update.
*/
where: Prisma.GroupWhereUniqueInput
}
/**
* Group updateMany
*/
export type GroupUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Groups.
*/
data: Prisma.XOR<Prisma.GroupUpdateManyMutationInput, Prisma.GroupUncheckedUpdateManyInput>
/**
* Filter which Groups to update
*/
where?: Prisma.GroupWhereInput
/**
* Limit how many Groups to update.
*/
limit?: number
}
/**
* Group updateManyAndReturn
*/
export type GroupUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* The data used to update Groups.
*/
data: Prisma.XOR<Prisma.GroupUpdateManyMutationInput, Prisma.GroupUncheckedUpdateManyInput>
/**
* Filter which Groups to update
*/
where?: Prisma.GroupWhereInput
/**
* Limit how many Groups to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Group upsert
*/
export type GroupUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
/**
* The filter to search for the Group to update in case it exists.
*/
where: Prisma.GroupWhereUniqueInput
/**
* In case the Group found by the `where` argument doesn't exist, create a new Group with this data.
*/
create: Prisma.XOR<Prisma.GroupCreateInput, Prisma.GroupUncheckedCreateInput>
/**
* In case the Group was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.GroupUpdateInput, Prisma.GroupUncheckedUpdateInput>
}
/**
* Group delete
*/
export type GroupDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
/**
* Filter which Group to delete.
*/
where: Prisma.GroupWhereUniqueInput
}
/**
* Group deleteMany
*/
export type GroupDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Groups to delete
*/
where?: Prisma.GroupWhereInput
/**
* Limit how many Groups to delete.
*/
limit?: number
}
/**
* Group.tenant
*/
export type Group$tenantArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Tenant
*/
select?: Prisma.TenantSelect<ExtArgs> | null
/**
* Omit specific fields from the Tenant
*/
omit?: Prisma.TenantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TenantInclude<ExtArgs> | null
where?: Prisma.TenantWhereInput
}
/**
* Group.users
*/
export type Group$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GroupUser
*/
select?: Prisma.GroupUserSelect<ExtArgs> | null
/**
* Omit specific fields from the GroupUser
*/
omit?: Prisma.GroupUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupUserInclude<ExtArgs> | null
where?: Prisma.GroupUserWhereInput
orderBy?: Prisma.GroupUserOrderByWithRelationInput | Prisma.GroupUserOrderByWithRelationInput[]
cursor?: Prisma.GroupUserWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.GroupUserScalarFieldEnum | Prisma.GroupUserScalarFieldEnum[]
}
/**
* Group.rowPermissions
*/
export type Group$rowPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RowPermission
*/
select?: Prisma.RowPermissionSelect<ExtArgs> | null
/**
* Omit specific fields from the RowPermission
*/
omit?: Prisma.RowPermissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RowPermissionInclude<ExtArgs> | null
where?: Prisma.RowPermissionWhereInput
orderBy?: Prisma.RowPermissionOrderByWithRelationInput | Prisma.RowPermissionOrderByWithRelationInput[]
cursor?: Prisma.RowPermissionWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.RowPermissionScalarFieldEnum | Prisma.RowPermissionScalarFieldEnum[]
}
/**
* Group without action
*/
export type GroupDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Group
*/
select?: Prisma.GroupSelect<ExtArgs> | null
/**
* Omit specific fields from the Group
*/
omit?: Prisma.GroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GroupInclude<ExtArgs> | null
}