/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateGroup]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type GroupGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof GroupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 tenant?: Prisma.XOR | 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 tenant?: Prisma.XOR | 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[] connectOrCreate?: Prisma.GroupCreateOrConnectWithoutCreatedByUserInput | Prisma.GroupCreateOrConnectWithoutCreatedByUserInput[] createMany?: Prisma.GroupCreateManyCreatedByUserInputEnvelope connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[] } export type GroupUncheckedCreateNestedManyWithoutCreatedByUserInput = { create?: Prisma.XOR | 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[] 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[] 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[] connectOrCreate?: Prisma.GroupCreateOrConnectWithoutTenantInput | Prisma.GroupCreateOrConnectWithoutTenantInput[] createMany?: Prisma.GroupCreateManyTenantInputEnvelope connect?: Prisma.GroupWhereUniqueInput | Prisma.GroupWhereUniqueInput[] } export type GroupUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | 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[] 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[] 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 connectOrCreate?: Prisma.GroupCreateOrConnectWithoutRowPermissionsInput connect?: Prisma.GroupWhereUniqueInput } export type GroupUpdateOneWithoutRowPermissionsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GroupCreateOrConnectWithoutRowPermissionsInput upsert?: Prisma.GroupUpsertWithoutRowPermissionsInput disconnect?: Prisma.GroupWhereInput | boolean delete?: Prisma.GroupWhereInput | boolean connect?: Prisma.GroupWhereUniqueInput update?: Prisma.XOR, Prisma.GroupUncheckedUpdateWithoutRowPermissionsInput> } export type GroupCreateNestedOneWithoutUsersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GroupCreateOrConnectWithoutUsersInput connect?: Prisma.GroupWhereUniqueInput } export type GroupUpdateOneRequiredWithoutUsersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GroupCreateOrConnectWithoutUsersInput upsert?: Prisma.GroupUpsertWithoutUsersInput connect?: Prisma.GroupWhereUniqueInput update?: Prisma.XOR, 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 } export type GroupCreateManyCreatedByUserInputEnvelope = { data: Prisma.GroupCreateManyCreatedByUserInput | Prisma.GroupCreateManyCreatedByUserInput[] skipDuplicates?: boolean } export type GroupUpsertWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.GroupWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type GroupUpdateWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.GroupWhereUniqueInput data: Prisma.XOR } export type GroupUpdateManyWithWhereWithoutCreatedByUserInput = { where: Prisma.GroupScalarWhereInput data: Prisma.XOR } 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 } export type GroupCreateManyTenantInputEnvelope = { data: Prisma.GroupCreateManyTenantInput | Prisma.GroupCreateManyTenantInput[] skipDuplicates?: boolean } export type GroupUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.GroupWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type GroupUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.GroupWhereUniqueInput data: Prisma.XOR } export type GroupUpdateManyWithWhereWithoutTenantInput = { where: Prisma.GroupScalarWhereInput data: Prisma.XOR } 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 } export type GroupUpsertWithoutRowPermissionsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.GroupWhereInput } export type GroupUpdateToOneWithWhereWithoutRowPermissionsInput = { where?: Prisma.GroupWhereInput data: Prisma.XOR } 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 } export type GroupUpsertWithoutUsersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.GroupWhereInput } export type GroupUpdateToOneWithWhereWithoutUsersInput = { where?: Prisma.GroupWhereInput data: Prisma.XOR } 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 = { users?: boolean | GroupCountOutputTypeCountUsersArgs rowPermissions?: boolean | GroupCountOutputTypeCountRowPermissionsArgs } /** * GroupCountOutputType without action */ export type GroupCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the GroupCountOutputType */ select?: Prisma.GroupCountOutputTypeSelect | null } /** * GroupCountOutputType without action */ export type GroupCountOutputTypeCountUsersArgs = { where?: Prisma.GroupUserWhereInput } /** * GroupCountOutputType without action */ export type GroupCountOutputTypeCountRowPermissionsArgs = { where?: Prisma.RowPermissionWhereInput } export type GroupSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean createdByUserId?: boolean tenantId?: boolean name?: boolean description?: boolean color?: boolean createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.Group$tenantArgs users?: boolean | Prisma.Group$usersArgs rowPermissions?: boolean | Prisma.Group$rowPermissionsArgs _count?: boolean | Prisma.GroupCountOutputTypeDefaultArgs }, ExtArgs["result"]["group"]> export type GroupSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean createdByUserId?: boolean tenantId?: boolean name?: boolean description?: boolean color?: boolean createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.Group$tenantArgs }, ExtArgs["result"]["group"]> export type GroupSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean createdByUserId?: boolean tenantId?: boolean name?: boolean description?: boolean color?: boolean createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.Group$tenantArgs }, ExtArgs["result"]["group"]> export type GroupSelectScalar = { id?: boolean createdAt?: boolean createdByUserId?: boolean tenantId?: boolean name?: boolean description?: boolean color?: boolean } export type GroupOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "createdByUserId" | "tenantId" | "name" | "description" | "color", ExtArgs["result"]["group"]> export type GroupInclude = { createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.Group$tenantArgs users?: boolean | Prisma.Group$usersArgs rowPermissions?: boolean | Prisma.Group$rowPermissionsArgs _count?: boolean | Prisma.GroupCountOutputTypeDefaultArgs } export type GroupIncludeCreateManyAndReturn = { createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.Group$tenantArgs } export type GroupIncludeUpdateManyAndReturn = { createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.Group$tenantArgs } export type $GroupPayload = { name: "Group" objects: { createdByUser: Prisma.$UserPayload tenant: Prisma.$TenantPayload | null users: Prisma.$GroupUserPayload[] rowPermissions: Prisma.$RowPermissionPayload[] } 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 = runtime.Types.Result.GetResult export type GroupCountArgs = Omit & { select?: GroupCountAggregateInputType | true } export interface GroupDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__GroupClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__GroupClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__GroupClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__GroupClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__GroupClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__GroupClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__GroupClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__GroupClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: GroupGroupByArgs['orderBy'] } : { orderBy?: GroupGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetGroupGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" createdByUser = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> rowPermissions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | null /** * Filter, which Group to fetch. */ where: Prisma.GroupWhereUniqueInput } /** * Group findUniqueOrThrow */ export type GroupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | null /** * Filter, which Group to fetch. */ where: Prisma.GroupWhereUniqueInput } /** * Group findFirst */ export type GroupFindFirstArgs = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | 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 = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | 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 = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | 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 = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | null /** * The data needed to create a Group. */ data: Prisma.XOR } /** * Group createMany */ export type GroupCreateManyArgs = { /** * The data used to create many Groups. */ data: Prisma.GroupCreateManyInput | Prisma.GroupCreateManyInput[] skipDuplicates?: boolean } /** * Group createManyAndReturn */ export type GroupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelectCreateManyAndReturn | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | 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 | null } /** * Group update */ export type GroupUpdateArgs = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | null /** * The data needed to update a Group. */ data: Prisma.XOR /** * Choose, which Group to update. */ where: Prisma.GroupWhereUniqueInput } /** * Group updateMany */ export type GroupUpdateManyArgs = { /** * The data used to update Groups. */ data: Prisma.XOR /** * Filter which Groups to update */ where?: Prisma.GroupWhereInput /** * Limit how many Groups to update. */ limit?: number } /** * Group updateManyAndReturn */ export type GroupUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelectUpdateManyAndReturn | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * The data used to update Groups. */ data: Prisma.XOR /** * 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 | null } /** * Group upsert */ export type GroupUpsertArgs = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | 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 /** * In case the Group was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Group delete */ export type GroupDeleteArgs = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | null /** * Filter which Group to delete. */ where: Prisma.GroupWhereUniqueInput } /** * Group deleteMany */ export type GroupDeleteManyArgs = { /** * Filter which Groups to delete */ where?: Prisma.GroupWhereInput /** * Limit how many Groups to delete. */ limit?: number } /** * Group.tenant */ export type Group$tenantArgs = { /** * Select specific fields to fetch from the Tenant */ select?: Prisma.TenantSelect | null /** * Omit specific fields from the Tenant */ omit?: Prisma.TenantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInclude | null where?: Prisma.TenantWhereInput } /** * Group.users */ export type Group$usersArgs = { /** * Select specific fields to fetch from the GroupUser */ select?: Prisma.GroupUserSelect | null /** * Omit specific fields from the GroupUser */ omit?: Prisma.GroupUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupUserInclude | 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 = { /** * Select specific fields to fetch from the RowPermission */ select?: Prisma.RowPermissionSelect | null /** * Omit specific fields from the RowPermission */ omit?: Prisma.RowPermissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RowPermissionInclude | 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 = { /** * Select specific fields to fetch from the Group */ select?: Prisma.GroupSelect | null /** * Omit specific fields from the Group */ omit?: Prisma.GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GroupInclude | null }