/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ProjektMitglied` 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 ProjektMitglied * */ export type ProjektMitgliedModel = runtime.Types.Result.DefaultSelection export type AggregateProjektMitglied = { _count: ProjektMitgliedCountAggregateOutputType | null _min: ProjektMitgliedMinAggregateOutputType | null _max: ProjektMitgliedMaxAggregateOutputType | null } export type ProjektMitgliedMinAggregateOutputType = { id: string | null tenantId: string | null projektId: string | null userId: string | null groupId: string | null rolle: $Enums.ProjektMitgliedRolle | null createdByUserId: string | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null } export type ProjektMitgliedMaxAggregateOutputType = { id: string | null tenantId: string | null projektId: string | null userId: string | null groupId: string | null rolle: $Enums.ProjektMitgliedRolle | null createdByUserId: string | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null } export type ProjektMitgliedCountAggregateOutputType = { id: number tenantId: number projektId: number userId: number groupId: number rolle: number createdByUserId: number createdAt: number updatedAt: number archivedAt: number _all: number } export type ProjektMitgliedMinAggregateInputType = { id?: true tenantId?: true projektId?: true userId?: true groupId?: true rolle?: true createdByUserId?: true createdAt?: true updatedAt?: true archivedAt?: true } export type ProjektMitgliedMaxAggregateInputType = { id?: true tenantId?: true projektId?: true userId?: true groupId?: true rolle?: true createdByUserId?: true createdAt?: true updatedAt?: true archivedAt?: true } export type ProjektMitgliedCountAggregateInputType = { id?: true tenantId?: true projektId?: true userId?: true groupId?: true rolle?: true createdByUserId?: true createdAt?: true updatedAt?: true archivedAt?: true _all?: true } export type ProjektMitgliedAggregateArgs = { /** * Filter which ProjektMitglied to aggregate. */ where?: Prisma.ProjektMitgliedWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjektMitglieds to fetch. */ orderBy?: Prisma.ProjektMitgliedOrderByWithRelationInput | Prisma.ProjektMitgliedOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ProjektMitgliedWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjektMitglieds 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` ProjektMitglieds. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ProjektMitglieds **/ _count?: true | ProjektMitgliedCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProjektMitgliedMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProjektMitgliedMaxAggregateInputType } export type GetProjektMitgliedAggregateType = { [P in keyof T & keyof AggregateProjektMitglied]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ProjektMitgliedGroupByArgs = { where?: Prisma.ProjektMitgliedWhereInput orderBy?: Prisma.ProjektMitgliedOrderByWithAggregationInput | Prisma.ProjektMitgliedOrderByWithAggregationInput[] by: Prisma.ProjektMitgliedScalarFieldEnum[] | Prisma.ProjektMitgliedScalarFieldEnum having?: Prisma.ProjektMitgliedScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProjektMitgliedCountAggregateInputType | true _min?: ProjektMitgliedMinAggregateInputType _max?: ProjektMitgliedMaxAggregateInputType } export type ProjektMitgliedGroupByOutputType = { id: string tenantId: string projektId: string userId: string | null groupId: string | null rolle: $Enums.ProjektMitgliedRolle createdByUserId: string | null createdAt: Date updatedAt: Date archivedAt: Date | null _count: ProjektMitgliedCountAggregateOutputType | null _min: ProjektMitgliedMinAggregateOutputType | null _max: ProjektMitgliedMaxAggregateOutputType | null } export type GetProjektMitgliedGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ProjektMitgliedGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ProjektMitgliedWhereInput = { AND?: Prisma.ProjektMitgliedWhereInput | Prisma.ProjektMitgliedWhereInput[] OR?: Prisma.ProjektMitgliedWhereInput[] NOT?: Prisma.ProjektMitgliedWhereInput | Prisma.ProjektMitgliedWhereInput[] id?: Prisma.StringFilter<"ProjektMitglied"> | string tenantId?: Prisma.StringFilter<"ProjektMitglied"> | string projektId?: Prisma.StringFilter<"ProjektMitglied"> | string userId?: Prisma.StringNullableFilter<"ProjektMitglied"> | string | null groupId?: Prisma.StringNullableFilter<"ProjektMitglied"> | string | null rolle?: Prisma.EnumProjektMitgliedRolleFilter<"ProjektMitglied"> | $Enums.ProjektMitgliedRolle createdByUserId?: Prisma.StringNullableFilter<"ProjektMitglied"> | string | null createdAt?: Prisma.DateTimeFilter<"ProjektMitglied"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProjektMitglied"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"ProjektMitglied"> | Date | string | null } export type ProjektMitgliedOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder groupId?: Prisma.SortOrderInput | Prisma.SortOrder rolle?: Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder } export type ProjektMitgliedWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.ProjektMitgliedWhereInput | Prisma.ProjektMitgliedWhereInput[] OR?: Prisma.ProjektMitgliedWhereInput[] NOT?: Prisma.ProjektMitgliedWhereInput | Prisma.ProjektMitgliedWhereInput[] tenantId?: Prisma.StringFilter<"ProjektMitglied"> | string projektId?: Prisma.StringFilter<"ProjektMitglied"> | string userId?: Prisma.StringNullableFilter<"ProjektMitglied"> | string | null groupId?: Prisma.StringNullableFilter<"ProjektMitglied"> | string | null rolle?: Prisma.EnumProjektMitgliedRolleFilter<"ProjektMitglied"> | $Enums.ProjektMitgliedRolle createdByUserId?: Prisma.StringNullableFilter<"ProjektMitglied"> | string | null createdAt?: Prisma.DateTimeFilter<"ProjektMitglied"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProjektMitglied"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"ProjektMitglied"> | Date | string | null }, "id"> export type ProjektMitgliedOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder groupId?: Prisma.SortOrderInput | Prisma.SortOrder rolle?: Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.ProjektMitgliedCountOrderByAggregateInput _max?: Prisma.ProjektMitgliedMaxOrderByAggregateInput _min?: Prisma.ProjektMitgliedMinOrderByAggregateInput } export type ProjektMitgliedScalarWhereWithAggregatesInput = { AND?: Prisma.ProjektMitgliedScalarWhereWithAggregatesInput | Prisma.ProjektMitgliedScalarWhereWithAggregatesInput[] OR?: Prisma.ProjektMitgliedScalarWhereWithAggregatesInput[] NOT?: Prisma.ProjektMitgliedScalarWhereWithAggregatesInput | Prisma.ProjektMitgliedScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"ProjektMitglied"> | string tenantId?: Prisma.StringWithAggregatesFilter<"ProjektMitglied"> | string projektId?: Prisma.StringWithAggregatesFilter<"ProjektMitglied"> | string userId?: Prisma.StringNullableWithAggregatesFilter<"ProjektMitglied"> | string | null groupId?: Prisma.StringNullableWithAggregatesFilter<"ProjektMitglied"> | string | null rolle?: Prisma.EnumProjektMitgliedRolleWithAggregatesFilter<"ProjektMitglied"> | $Enums.ProjektMitgliedRolle createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"ProjektMitglied"> | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProjektMitglied"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ProjektMitglied"> | Date | string archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProjektMitglied"> | Date | string | null } export type ProjektMitgliedCreateInput = { id?: string tenantId: string projektId: string userId?: string | null groupId?: string | null rolle: $Enums.ProjektMitgliedRolle createdByUserId?: string | null createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null } export type ProjektMitgliedUncheckedCreateInput = { id?: string tenantId: string projektId: string userId?: string | null groupId?: string | null rolle: $Enums.ProjektMitgliedRolle createdByUserId?: string | null createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null } export type ProjektMitgliedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string projektId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rolle?: Prisma.EnumProjektMitgliedRolleFieldUpdateOperationsInput | $Enums.ProjektMitgliedRolle createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ProjektMitgliedUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string projektId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rolle?: Prisma.EnumProjektMitgliedRolleFieldUpdateOperationsInput | $Enums.ProjektMitgliedRolle createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ProjektMitgliedCreateManyInput = { id?: string tenantId: string projektId: string userId?: string | null groupId?: string | null rolle: $Enums.ProjektMitgliedRolle createdByUserId?: string | null createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null } export type ProjektMitgliedUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string projektId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rolle?: Prisma.EnumProjektMitgliedRolleFieldUpdateOperationsInput | $Enums.ProjektMitgliedRolle createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ProjektMitgliedUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string projektId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rolle?: Prisma.EnumProjektMitgliedRolleFieldUpdateOperationsInput | $Enums.ProjektMitgliedRolle createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ProjektMitgliedCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder userId?: Prisma.SortOrder groupId?: Prisma.SortOrder rolle?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type ProjektMitgliedMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder userId?: Prisma.SortOrder groupId?: Prisma.SortOrder rolle?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type ProjektMitgliedMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder userId?: Prisma.SortOrder groupId?: Prisma.SortOrder rolle?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type EnumProjektMitgliedRolleFieldUpdateOperationsInput = { set?: $Enums.ProjektMitgliedRolle } export type ProjektMitgliedSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean projektId?: boolean userId?: boolean groupId?: boolean rolle?: boolean createdByUserId?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean }, ExtArgs["result"]["projektMitglied"]> export type ProjektMitgliedSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean projektId?: boolean userId?: boolean groupId?: boolean rolle?: boolean createdByUserId?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean }, ExtArgs["result"]["projektMitglied"]> export type ProjektMitgliedSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean projektId?: boolean userId?: boolean groupId?: boolean rolle?: boolean createdByUserId?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean }, ExtArgs["result"]["projektMitglied"]> export type ProjektMitgliedSelectScalar = { id?: boolean tenantId?: boolean projektId?: boolean userId?: boolean groupId?: boolean rolle?: boolean createdByUserId?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean } export type ProjektMitgliedOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "projektId" | "userId" | "groupId" | "rolle" | "createdByUserId" | "createdAt" | "updatedAt" | "archivedAt", ExtArgs["result"]["projektMitglied"]> export type $ProjektMitgliedPayload = { name: "ProjektMitglied" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string projektId: string userId: string | null groupId: string | null rolle: $Enums.ProjektMitgliedRolle createdByUserId: string | null createdAt: Date updatedAt: Date archivedAt: Date | null }, ExtArgs["result"]["projektMitglied"]> composites: {} } export type ProjektMitgliedGetPayload = runtime.Types.Result.GetResult export type ProjektMitgliedCountArgs = Omit & { select?: ProjektMitgliedCountAggregateInputType | true } export interface ProjektMitgliedDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ProjektMitglied'], meta: { name: 'ProjektMitglied' } } /** * Find zero or one ProjektMitglied that matches the filter. * @param {ProjektMitgliedFindUniqueArgs} args - Arguments to find a ProjektMitglied * @example * // Get one ProjektMitglied * const projektMitglied = await prisma.projektMitglied.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektMitgliedClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ProjektMitglied that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProjektMitgliedFindUniqueOrThrowArgs} args - Arguments to find a ProjektMitglied * @example * // Get one ProjektMitglied * const projektMitglied = await prisma.projektMitglied.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektMitgliedClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ProjektMitglied 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 {ProjektMitgliedFindFirstArgs} args - Arguments to find a ProjektMitglied * @example * // Get one ProjektMitglied * const projektMitglied = await prisma.projektMitglied.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjektMitgliedClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ProjektMitglied 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 {ProjektMitgliedFindFirstOrThrowArgs} args - Arguments to find a ProjektMitglied * @example * // Get one ProjektMitglied * const projektMitglied = await prisma.projektMitglied.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjektMitgliedClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ProjektMitglieds 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 {ProjektMitgliedFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ProjektMitglieds * const projektMitglieds = await prisma.projektMitglied.findMany() * * // Get first 10 ProjektMitglieds * const projektMitglieds = await prisma.projektMitglied.findMany({ take: 10 }) * * // Only select the `id` * const projektMitgliedWithIdOnly = await prisma.projektMitglied.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ProjektMitglied. * @param {ProjektMitgliedCreateArgs} args - Arguments to create a ProjektMitglied. * @example * // Create one ProjektMitglied * const ProjektMitglied = await prisma.projektMitglied.create({ * data: { * // ... data to create a ProjektMitglied * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektMitgliedClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ProjektMitglieds. * @param {ProjektMitgliedCreateManyArgs} args - Arguments to create many ProjektMitglieds. * @example * // Create many ProjektMitglieds * const projektMitglied = await prisma.projektMitglied.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many ProjektMitglieds and returns the data saved in the database. * @param {ProjektMitgliedCreateManyAndReturnArgs} args - Arguments to create many ProjektMitglieds. * @example * // Create many ProjektMitglieds * const projektMitglied = await prisma.projektMitglied.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ProjektMitglieds and only return the `id` * const projektMitgliedWithIdOnly = await prisma.projektMitglied.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 ProjektMitglied. * @param {ProjektMitgliedDeleteArgs} args - Arguments to delete one ProjektMitglied. * @example * // Delete one ProjektMitglied * const ProjektMitglied = await prisma.projektMitglied.delete({ * where: { * // ... filter to delete one ProjektMitglied * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektMitgliedClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ProjektMitglied. * @param {ProjektMitgliedUpdateArgs} args - Arguments to update one ProjektMitglied. * @example * // Update one ProjektMitglied * const projektMitglied = await prisma.projektMitglied.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektMitgliedClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ProjektMitglieds. * @param {ProjektMitgliedDeleteManyArgs} args - Arguments to filter ProjektMitglieds to delete. * @example * // Delete a few ProjektMitglieds * const { count } = await prisma.projektMitglied.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProjektMitglieds. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjektMitgliedUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ProjektMitglieds * const projektMitglied = await prisma.projektMitglied.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProjektMitglieds and returns the data updated in the database. * @param {ProjektMitgliedUpdateManyAndReturnArgs} args - Arguments to update many ProjektMitglieds. * @example * // Update many ProjektMitglieds * const projektMitglied = await prisma.projektMitglied.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ProjektMitglieds and only return the `id` * const projektMitgliedWithIdOnly = await prisma.projektMitglied.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 ProjektMitglied. * @param {ProjektMitgliedUpsertArgs} args - Arguments to update or create a ProjektMitglied. * @example * // Update or create a ProjektMitglied * const projektMitglied = await prisma.projektMitglied.upsert({ * create: { * // ... data to create a ProjektMitglied * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ProjektMitglied we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektMitgliedClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ProjektMitglieds. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjektMitgliedCountArgs} args - Arguments to filter ProjektMitglieds to count. * @example * // Count the number of ProjektMitglieds * const count = await prisma.projektMitglied.count({ * where: { * // ... the filter for the ProjektMitglieds 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 ProjektMitglied. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjektMitgliedAggregateArgs} 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 ProjektMitglied. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjektMitgliedGroupByArgs} 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 ProjektMitgliedGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ProjektMitgliedGroupByArgs['orderBy'] } : { orderBy?: ProjektMitgliedGroupByArgs['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 ? GetProjektMitgliedGroupByPayload : Prisma.PrismaPromise /** * Fields of the ProjektMitglied model */ readonly fields: ProjektMitgliedFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ProjektMitglied. * 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__ProjektMitgliedClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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 ProjektMitglied model */ export interface ProjektMitgliedFieldRefs { readonly id: Prisma.FieldRef<"ProjektMitglied", 'String'> readonly tenantId: Prisma.FieldRef<"ProjektMitglied", 'String'> readonly projektId: Prisma.FieldRef<"ProjektMitglied", 'String'> readonly userId: Prisma.FieldRef<"ProjektMitglied", 'String'> readonly groupId: Prisma.FieldRef<"ProjektMitglied", 'String'> readonly rolle: Prisma.FieldRef<"ProjektMitglied", 'ProjektMitgliedRolle'> readonly createdByUserId: Prisma.FieldRef<"ProjektMitglied", 'String'> readonly createdAt: Prisma.FieldRef<"ProjektMitglied", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"ProjektMitglied", 'DateTime'> readonly archivedAt: Prisma.FieldRef<"ProjektMitglied", 'DateTime'> } // Custom InputTypes /** * ProjektMitglied findUnique */ export type ProjektMitgliedFindUniqueArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * Filter, which ProjektMitglied to fetch. */ where: Prisma.ProjektMitgliedWhereUniqueInput } /** * ProjektMitglied findUniqueOrThrow */ export type ProjektMitgliedFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * Filter, which ProjektMitglied to fetch. */ where: Prisma.ProjektMitgliedWhereUniqueInput } /** * ProjektMitglied findFirst */ export type ProjektMitgliedFindFirstArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * Filter, which ProjektMitglied to fetch. */ where?: Prisma.ProjektMitgliedWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjektMitglieds to fetch. */ orderBy?: Prisma.ProjektMitgliedOrderByWithRelationInput | Prisma.ProjektMitgliedOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProjektMitglieds. */ cursor?: Prisma.ProjektMitgliedWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjektMitglieds 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` ProjektMitglieds. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProjektMitglieds. */ distinct?: Prisma.ProjektMitgliedScalarFieldEnum | Prisma.ProjektMitgliedScalarFieldEnum[] } /** * ProjektMitglied findFirstOrThrow */ export type ProjektMitgliedFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * Filter, which ProjektMitglied to fetch. */ where?: Prisma.ProjektMitgliedWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjektMitglieds to fetch. */ orderBy?: Prisma.ProjektMitgliedOrderByWithRelationInput | Prisma.ProjektMitgliedOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProjektMitglieds. */ cursor?: Prisma.ProjektMitgliedWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjektMitglieds 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` ProjektMitglieds. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProjektMitglieds. */ distinct?: Prisma.ProjektMitgliedScalarFieldEnum | Prisma.ProjektMitgliedScalarFieldEnum[] } /** * ProjektMitglied findMany */ export type ProjektMitgliedFindManyArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * Filter, which ProjektMitglieds to fetch. */ where?: Prisma.ProjektMitgliedWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjektMitglieds to fetch. */ orderBy?: Prisma.ProjektMitgliedOrderByWithRelationInput | Prisma.ProjektMitgliedOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ProjektMitglieds. */ cursor?: Prisma.ProjektMitgliedWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjektMitglieds 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` ProjektMitglieds. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProjektMitglieds. */ distinct?: Prisma.ProjektMitgliedScalarFieldEnum | Prisma.ProjektMitgliedScalarFieldEnum[] } /** * ProjektMitglied create */ export type ProjektMitgliedCreateArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * The data needed to create a ProjektMitglied. */ data: Prisma.XOR } /** * ProjektMitglied createMany */ export type ProjektMitgliedCreateManyArgs = { /** * The data used to create many ProjektMitglieds. */ data: Prisma.ProjektMitgliedCreateManyInput | Prisma.ProjektMitgliedCreateManyInput[] skipDuplicates?: boolean } /** * ProjektMitglied createManyAndReturn */ export type ProjektMitgliedCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelectCreateManyAndReturn | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * The data used to create many ProjektMitglieds. */ data: Prisma.ProjektMitgliedCreateManyInput | Prisma.ProjektMitgliedCreateManyInput[] skipDuplicates?: boolean } /** * ProjektMitglied update */ export type ProjektMitgliedUpdateArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * The data needed to update a ProjektMitglied. */ data: Prisma.XOR /** * Choose, which ProjektMitglied to update. */ where: Prisma.ProjektMitgliedWhereUniqueInput } /** * ProjektMitglied updateMany */ export type ProjektMitgliedUpdateManyArgs = { /** * The data used to update ProjektMitglieds. */ data: Prisma.XOR /** * Filter which ProjektMitglieds to update */ where?: Prisma.ProjektMitgliedWhereInput /** * Limit how many ProjektMitglieds to update. */ limit?: number } /** * ProjektMitglied updateManyAndReturn */ export type ProjektMitgliedUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelectUpdateManyAndReturn | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * The data used to update ProjektMitglieds. */ data: Prisma.XOR /** * Filter which ProjektMitglieds to update */ where?: Prisma.ProjektMitgliedWhereInput /** * Limit how many ProjektMitglieds to update. */ limit?: number } /** * ProjektMitglied upsert */ export type ProjektMitgliedUpsertArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * The filter to search for the ProjektMitglied to update in case it exists. */ where: Prisma.ProjektMitgliedWhereUniqueInput /** * In case the ProjektMitglied found by the `where` argument doesn't exist, create a new ProjektMitglied with this data. */ create: Prisma.XOR /** * In case the ProjektMitglied was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ProjektMitglied delete */ export type ProjektMitgliedDeleteArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null /** * Filter which ProjektMitglied to delete. */ where: Prisma.ProjektMitgliedWhereUniqueInput } /** * ProjektMitglied deleteMany */ export type ProjektMitgliedDeleteManyArgs = { /** * Filter which ProjektMitglieds to delete */ where?: Prisma.ProjektMitgliedWhereInput /** * Limit how many ProjektMitglieds to delete. */ limit?: number } /** * ProjektMitglied without action */ export type ProjektMitgliedDefaultArgs = { /** * Select specific fields to fetch from the ProjektMitglied */ select?: Prisma.ProjektMitgliedSelect | null /** * Omit specific fields from the ProjektMitglied */ omit?: Prisma.ProjektMitgliedOmit | null }