import type * as runtime from "@prisma/client/runtime/client"; import type * as Prisma from "../internal/prismaNamespace"; /** * Model EntityRelationship * */ export type EntityRelationshipModel = runtime.Types.Result.DefaultSelection; export type AggregateEntityRelationship = { _count: EntityRelationshipCountAggregateOutputType | null; _avg: EntityRelationshipAvgAggregateOutputType | null; _sum: EntityRelationshipSumAggregateOutputType | null; _min: EntityRelationshipMinAggregateOutputType | null; _max: EntityRelationshipMaxAggregateOutputType | null; }; export type EntityRelationshipAvgAggregateOutputType = { id: number | null; }; export type EntityRelationshipSumAggregateOutputType = { id: number | null; }; export type EntityRelationshipMinAggregateOutputType = { id: number | null; fromType: string | null; fromId: string | null; relationshipType: string | null; toType: string | null; toId: string | null; createdBy: string | null; createdAt: Date | null; }; export type EntityRelationshipMaxAggregateOutputType = { id: number | null; fromType: string | null; fromId: string | null; relationshipType: string | null; toType: string | null; toId: string | null; createdBy: string | null; createdAt: Date | null; }; export type EntityRelationshipCountAggregateOutputType = { id: number; fromType: number; fromId: number; relationshipType: number; toType: number; toId: number; properties: number; createdBy: number; createdAt: number; _all: number; }; export type EntityRelationshipAvgAggregateInputType = { id?: true; }; export type EntityRelationshipSumAggregateInputType = { id?: true; }; export type EntityRelationshipMinAggregateInputType = { id?: true; fromType?: true; fromId?: true; relationshipType?: true; toType?: true; toId?: true; createdBy?: true; createdAt?: true; }; export type EntityRelationshipMaxAggregateInputType = { id?: true; fromType?: true; fromId?: true; relationshipType?: true; toType?: true; toId?: true; createdBy?: true; createdAt?: true; }; export type EntityRelationshipCountAggregateInputType = { id?: true; fromType?: true; fromId?: true; relationshipType?: true; toType?: true; toId?: true; properties?: true; createdBy?: true; createdAt?: true; _all?: true; }; export type EntityRelationshipAggregateArgs = { /** * Filter which EntityRelationship to aggregate. */ where?: Prisma.EntityRelationshipWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EntityRelationships to fetch. */ orderBy?: Prisma.EntityRelationshipOrderByWithRelationInput | Prisma.EntityRelationshipOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EntityRelationshipWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EntityRelationships 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` EntityRelationships. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EntityRelationships **/ _count?: true | EntityRelationshipCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EntityRelationshipAvgAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EntityRelationshipSumAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EntityRelationshipMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EntityRelationshipMaxAggregateInputType; }; export type GetEntityRelationshipAggregateType = { [P in keyof T & keyof AggregateEntityRelationship]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType; }; export type EntityRelationshipGroupByArgs = { where?: Prisma.EntityRelationshipWhereInput; orderBy?: Prisma.EntityRelationshipOrderByWithAggregationInput | Prisma.EntityRelationshipOrderByWithAggregationInput[]; by: Prisma.EntityRelationshipScalarFieldEnum[] | Prisma.EntityRelationshipScalarFieldEnum; having?: Prisma.EntityRelationshipScalarWhereWithAggregatesInput; take?: number; skip?: number; _count?: EntityRelationshipCountAggregateInputType | true; _avg?: EntityRelationshipAvgAggregateInputType; _sum?: EntityRelationshipSumAggregateInputType; _min?: EntityRelationshipMinAggregateInputType; _max?: EntityRelationshipMaxAggregateInputType; }; export type EntityRelationshipGroupByOutputType = { id: number; fromType: string; fromId: string; relationshipType: string; toType: string; toId: string; properties: runtime.JsonValue; createdBy: string; createdAt: Date; _count: EntityRelationshipCountAggregateOutputType | null; _avg: EntityRelationshipAvgAggregateOutputType | null; _sum: EntityRelationshipSumAggregateOutputType | null; _min: EntityRelationshipMinAggregateOutputType | null; _max: EntityRelationshipMaxAggregateOutputType | null; }; type GetEntityRelationshipGroupByPayload = Prisma.PrismaPromise & { [P in ((keyof T) & (keyof EntityRelationshipGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType; }>>; export type EntityRelationshipWhereInput = { AND?: Prisma.EntityRelationshipWhereInput | Prisma.EntityRelationshipWhereInput[]; OR?: Prisma.EntityRelationshipWhereInput[]; NOT?: Prisma.EntityRelationshipWhereInput | Prisma.EntityRelationshipWhereInput[]; id?: Prisma.IntFilter<"EntityRelationship"> | number; fromType?: Prisma.StringFilter<"EntityRelationship"> | string; fromId?: Prisma.StringFilter<"EntityRelationship"> | string; relationshipType?: Prisma.StringFilter<"EntityRelationship"> | string; toType?: Prisma.StringFilter<"EntityRelationship"> | string; toId?: Prisma.StringFilter<"EntityRelationship"> | string; properties?: Prisma.JsonFilter<"EntityRelationship">; createdBy?: Prisma.StringFilter<"EntityRelationship"> | string; createdAt?: Prisma.DateTimeFilter<"EntityRelationship"> | Date | string; }; export type EntityRelationshipOrderByWithRelationInput = { id?: Prisma.SortOrder; fromType?: Prisma.SortOrder; fromId?: Prisma.SortOrder; relationshipType?: Prisma.SortOrder; toType?: Prisma.SortOrder; toId?: Prisma.SortOrder; properties?: Prisma.SortOrder; createdBy?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type EntityRelationshipWhereUniqueInput = Prisma.AtLeast<{ id?: number; fromType_fromId_relationshipType_toType_toId?: Prisma.EntityRelationshipFromTypeFromIdRelationshipTypeToTypeToIdCompoundUniqueInput; AND?: Prisma.EntityRelationshipWhereInput | Prisma.EntityRelationshipWhereInput[]; OR?: Prisma.EntityRelationshipWhereInput[]; NOT?: Prisma.EntityRelationshipWhereInput | Prisma.EntityRelationshipWhereInput[]; fromType?: Prisma.StringFilter<"EntityRelationship"> | string; fromId?: Prisma.StringFilter<"EntityRelationship"> | string; relationshipType?: Prisma.StringFilter<"EntityRelationship"> | string; toType?: Prisma.StringFilter<"EntityRelationship"> | string; toId?: Prisma.StringFilter<"EntityRelationship"> | string; properties?: Prisma.JsonFilter<"EntityRelationship">; createdBy?: Prisma.StringFilter<"EntityRelationship"> | string; createdAt?: Prisma.DateTimeFilter<"EntityRelationship"> | Date | string; }, "id" | "fromType_fromId_relationshipType_toType_toId">; export type EntityRelationshipOrderByWithAggregationInput = { id?: Prisma.SortOrder; fromType?: Prisma.SortOrder; fromId?: Prisma.SortOrder; relationshipType?: Prisma.SortOrder; toType?: Prisma.SortOrder; toId?: Prisma.SortOrder; properties?: Prisma.SortOrder; createdBy?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; _count?: Prisma.EntityRelationshipCountOrderByAggregateInput; _avg?: Prisma.EntityRelationshipAvgOrderByAggregateInput; _max?: Prisma.EntityRelationshipMaxOrderByAggregateInput; _min?: Prisma.EntityRelationshipMinOrderByAggregateInput; _sum?: Prisma.EntityRelationshipSumOrderByAggregateInput; }; export type EntityRelationshipScalarWhereWithAggregatesInput = { AND?: Prisma.EntityRelationshipScalarWhereWithAggregatesInput | Prisma.EntityRelationshipScalarWhereWithAggregatesInput[]; OR?: Prisma.EntityRelationshipScalarWhereWithAggregatesInput[]; NOT?: Prisma.EntityRelationshipScalarWhereWithAggregatesInput | Prisma.EntityRelationshipScalarWhereWithAggregatesInput[]; id?: Prisma.IntWithAggregatesFilter<"EntityRelationship"> | number; fromType?: Prisma.StringWithAggregatesFilter<"EntityRelationship"> | string; fromId?: Prisma.StringWithAggregatesFilter<"EntityRelationship"> | string; relationshipType?: Prisma.StringWithAggregatesFilter<"EntityRelationship"> | string; toType?: Prisma.StringWithAggregatesFilter<"EntityRelationship"> | string; toId?: Prisma.StringWithAggregatesFilter<"EntityRelationship"> | string; properties?: Prisma.JsonWithAggregatesFilter<"EntityRelationship">; createdBy?: Prisma.StringWithAggregatesFilter<"EntityRelationship"> | string; createdAt?: Prisma.DateTimeWithAggregatesFilter<"EntityRelationship"> | Date | string; }; export type EntityRelationshipCreateInput = { fromType: string; fromId: string; relationshipType: string; toType: string; toId: string; properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue; createdBy: string; createdAt?: Date | string; }; export type EntityRelationshipUncheckedCreateInput = { id?: number; fromType: string; fromId: string; relationshipType: string; toType: string; toId: string; properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue; createdBy: string; createdAt?: Date | string; }; export type EntityRelationshipUpdateInput = { fromType?: Prisma.StringFieldUpdateOperationsInput | string; fromId?: Prisma.StringFieldUpdateOperationsInput | string; relationshipType?: Prisma.StringFieldUpdateOperationsInput | string; toType?: Prisma.StringFieldUpdateOperationsInput | string; toId?: Prisma.StringFieldUpdateOperationsInput | string; properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue; createdBy?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type EntityRelationshipUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number; fromType?: Prisma.StringFieldUpdateOperationsInput | string; fromId?: Prisma.StringFieldUpdateOperationsInput | string; relationshipType?: Prisma.StringFieldUpdateOperationsInput | string; toType?: Prisma.StringFieldUpdateOperationsInput | string; toId?: Prisma.StringFieldUpdateOperationsInput | string; properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue; createdBy?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type EntityRelationshipCreateManyInput = { id?: number; fromType: string; fromId: string; relationshipType: string; toType: string; toId: string; properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue; createdBy: string; createdAt?: Date | string; }; export type EntityRelationshipUpdateManyMutationInput = { fromType?: Prisma.StringFieldUpdateOperationsInput | string; fromId?: Prisma.StringFieldUpdateOperationsInput | string; relationshipType?: Prisma.StringFieldUpdateOperationsInput | string; toType?: Prisma.StringFieldUpdateOperationsInput | string; toId?: Prisma.StringFieldUpdateOperationsInput | string; properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue; createdBy?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type EntityRelationshipUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number; fromType?: Prisma.StringFieldUpdateOperationsInput | string; fromId?: Prisma.StringFieldUpdateOperationsInput | string; relationshipType?: Prisma.StringFieldUpdateOperationsInput | string; toType?: Prisma.StringFieldUpdateOperationsInput | string; toId?: Prisma.StringFieldUpdateOperationsInput | string; properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue; createdBy?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type EntityRelationshipFromTypeFromIdRelationshipTypeToTypeToIdCompoundUniqueInput = { fromType: string; fromId: string; relationshipType: string; toType: string; toId: string; }; export type EntityRelationshipCountOrderByAggregateInput = { id?: Prisma.SortOrder; fromType?: Prisma.SortOrder; fromId?: Prisma.SortOrder; relationshipType?: Prisma.SortOrder; toType?: Prisma.SortOrder; toId?: Prisma.SortOrder; properties?: Prisma.SortOrder; createdBy?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type EntityRelationshipAvgOrderByAggregateInput = { id?: Prisma.SortOrder; }; export type EntityRelationshipMaxOrderByAggregateInput = { id?: Prisma.SortOrder; fromType?: Prisma.SortOrder; fromId?: Prisma.SortOrder; relationshipType?: Prisma.SortOrder; toType?: Prisma.SortOrder; toId?: Prisma.SortOrder; createdBy?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type EntityRelationshipMinOrderByAggregateInput = { id?: Prisma.SortOrder; fromType?: Prisma.SortOrder; fromId?: Prisma.SortOrder; relationshipType?: Prisma.SortOrder; toType?: Prisma.SortOrder; toId?: Prisma.SortOrder; createdBy?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type EntityRelationshipSumOrderByAggregateInput = { id?: Prisma.SortOrder; }; export type EntityRelationshipSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean; fromType?: boolean; fromId?: boolean; relationshipType?: boolean; toType?: boolean; toId?: boolean; properties?: boolean; createdBy?: boolean; createdAt?: boolean; }, ExtArgs["result"]["entityRelationship"]>; export type EntityRelationshipSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean; fromType?: boolean; fromId?: boolean; relationshipType?: boolean; toType?: boolean; toId?: boolean; properties?: boolean; createdBy?: boolean; createdAt?: boolean; }, ExtArgs["result"]["entityRelationship"]>; export type EntityRelationshipSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean; fromType?: boolean; fromId?: boolean; relationshipType?: boolean; toType?: boolean; toId?: boolean; properties?: boolean; createdBy?: boolean; createdAt?: boolean; }, ExtArgs["result"]["entityRelationship"]>; export type EntityRelationshipSelectScalar = { id?: boolean; fromType?: boolean; fromId?: boolean; relationshipType?: boolean; toType?: boolean; toId?: boolean; properties?: boolean; createdBy?: boolean; createdAt?: boolean; }; export type EntityRelationshipOmit = runtime.Types.Extensions.GetOmit<"id" | "fromType" | "fromId" | "relationshipType" | "toType" | "toId" | "properties" | "createdBy" | "createdAt", ExtArgs["result"]["entityRelationship"]>; export type $EntityRelationshipPayload = { name: "EntityRelationship"; objects: {}; scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number; fromType: string; fromId: string; relationshipType: string; toType: string; toId: string; properties: runtime.JsonValue; createdBy: string; createdAt: Date; }, ExtArgs["result"]["entityRelationship"]>; composites: {}; }; export type EntityRelationshipGetPayload = runtime.Types.Result.GetResult; export type EntityRelationshipCountArgs = Omit & { select?: EntityRelationshipCountAggregateInputType | true; }; export interface EntityRelationshipDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EntityRelationship']; meta: { name: 'EntityRelationship'; }; }; /** * Find zero or one EntityRelationship that matches the filter. * @param {EntityRelationshipFindUniqueArgs} args - Arguments to find a EntityRelationship * @example * // Get one EntityRelationship * const entityRelationship = await prisma.entityRelationship.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EntityRelationshipClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find one EntityRelationship that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EntityRelationshipFindUniqueOrThrowArgs} args - Arguments to find a EntityRelationship * @example * // Get one EntityRelationship * const entityRelationship = await prisma.entityRelationship.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EntityRelationshipClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find the first EntityRelationship 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 {EntityRelationshipFindFirstArgs} args - Arguments to find a EntityRelationship * @example * // Get one EntityRelationship * const entityRelationship = await prisma.entityRelationship.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EntityRelationshipClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find the first EntityRelationship 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 {EntityRelationshipFindFirstOrThrowArgs} args - Arguments to find a EntityRelationship * @example * // Get one EntityRelationship * const entityRelationship = await prisma.entityRelationship.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EntityRelationshipClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find zero or more EntityRelationships 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 {EntityRelationshipFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EntityRelationships * const entityRelationships = await prisma.entityRelationship.findMany() * * // Get first 10 EntityRelationships * const entityRelationships = await prisma.entityRelationship.findMany({ take: 10 }) * * // Only select the `id` * const entityRelationshipWithIdOnly = await prisma.entityRelationship.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>>; /** * Create a EntityRelationship. * @param {EntityRelationshipCreateArgs} args - Arguments to create a EntityRelationship. * @example * // Create one EntityRelationship * const EntityRelationship = await prisma.entityRelationship.create({ * data: { * // ... data to create a EntityRelationship * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EntityRelationshipClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Create many EntityRelationships. * @param {EntityRelationshipCreateManyArgs} args - Arguments to create many EntityRelationships. * @example * // Create many EntityRelationships * const entityRelationship = await prisma.entityRelationship.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Create many EntityRelationships and returns the data saved in the database. * @param {EntityRelationshipCreateManyAndReturnArgs} args - Arguments to create many EntityRelationships. * @example * // Create many EntityRelationships * const entityRelationship = await prisma.entityRelationship.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EntityRelationships and only return the `id` * const entityRelationshipWithIdOnly = await prisma.entityRelationship.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 EntityRelationship. * @param {EntityRelationshipDeleteArgs} args - Arguments to delete one EntityRelationship. * @example * // Delete one EntityRelationship * const EntityRelationship = await prisma.entityRelationship.delete({ * where: { * // ... filter to delete one EntityRelationship * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EntityRelationshipClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Update one EntityRelationship. * @param {EntityRelationshipUpdateArgs} args - Arguments to update one EntityRelationship. * @example * // Update one EntityRelationship * const entityRelationship = await prisma.entityRelationship.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EntityRelationshipClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Delete zero or more EntityRelationships. * @param {EntityRelationshipDeleteManyArgs} args - Arguments to filter EntityRelationships to delete. * @example * // Delete a few EntityRelationships * const { count } = await prisma.entityRelationship.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more EntityRelationships. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityRelationshipUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EntityRelationships * const entityRelationship = await prisma.entityRelationship.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more EntityRelationships and returns the data updated in the database. * @param {EntityRelationshipUpdateManyAndReturnArgs} args - Arguments to update many EntityRelationships. * @example * // Update many EntityRelationships * const entityRelationship = await prisma.entityRelationship.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more EntityRelationships and only return the `id` * const entityRelationshipWithIdOnly = await prisma.entityRelationship.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 EntityRelationship. * @param {EntityRelationshipUpsertArgs} args - Arguments to update or create a EntityRelationship. * @example * // Update or create a EntityRelationship * const entityRelationship = await prisma.entityRelationship.upsert({ * create: { * // ... data to create a EntityRelationship * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EntityRelationship we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EntityRelationshipClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Count the number of EntityRelationships. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityRelationshipCountArgs} args - Arguments to filter EntityRelationships to count. * @example * // Count the number of EntityRelationships * const count = await prisma.entityRelationship.count({ * where: { * // ... the filter for the EntityRelationships we want to count * } * }) **/ count(args?: Prisma.Subset): Prisma.PrismaPromise ? T['select'] extends true ? number : Prisma.GetScalarType : number>; /** * Allows you to perform aggregations operations on a EntityRelationship. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityRelationshipAggregateArgs} 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 EntityRelationship. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityRelationshipGroupByArgs} 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>, Prisma.Extends<'take', Prisma.Keys>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EntityRelationshipGroupByArgs['orderBy']; } : { orderBy?: EntityRelationshipGroupByArgs['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 ? GetEntityRelationshipGroupByPayload : Prisma.PrismaPromise; /** * Fields of the EntityRelationship model */ readonly fields: EntityRelationshipFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EntityRelationship. * 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__EntityRelationshipClient 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 EntityRelationship model */ export interface EntityRelationshipFieldRefs { readonly id: Prisma.FieldRef<"EntityRelationship", 'Int'>; readonly fromType: Prisma.FieldRef<"EntityRelationship", 'String'>; readonly fromId: Prisma.FieldRef<"EntityRelationship", 'String'>; readonly relationshipType: Prisma.FieldRef<"EntityRelationship", 'String'>; readonly toType: Prisma.FieldRef<"EntityRelationship", 'String'>; readonly toId: Prisma.FieldRef<"EntityRelationship", 'String'>; readonly properties: Prisma.FieldRef<"EntityRelationship", 'Json'>; readonly createdBy: Prisma.FieldRef<"EntityRelationship", 'String'>; readonly createdAt: Prisma.FieldRef<"EntityRelationship", 'DateTime'>; } /** * EntityRelationship findUnique */ export type EntityRelationshipFindUniqueArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * Filter, which EntityRelationship to fetch. */ where: Prisma.EntityRelationshipWhereUniqueInput; }; /** * EntityRelationship findUniqueOrThrow */ export type EntityRelationshipFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * Filter, which EntityRelationship to fetch. */ where: Prisma.EntityRelationshipWhereUniqueInput; }; /** * EntityRelationship findFirst */ export type EntityRelationshipFindFirstArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * Filter, which EntityRelationship to fetch. */ where?: Prisma.EntityRelationshipWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EntityRelationships to fetch. */ orderBy?: Prisma.EntityRelationshipOrderByWithRelationInput | Prisma.EntityRelationshipOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EntityRelationships. */ cursor?: Prisma.EntityRelationshipWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EntityRelationships 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` EntityRelationships. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EntityRelationships. */ distinct?: Prisma.EntityRelationshipScalarFieldEnum | Prisma.EntityRelationshipScalarFieldEnum[]; }; /** * EntityRelationship findFirstOrThrow */ export type EntityRelationshipFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * Filter, which EntityRelationship to fetch. */ where?: Prisma.EntityRelationshipWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EntityRelationships to fetch. */ orderBy?: Prisma.EntityRelationshipOrderByWithRelationInput | Prisma.EntityRelationshipOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EntityRelationships. */ cursor?: Prisma.EntityRelationshipWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EntityRelationships 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` EntityRelationships. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EntityRelationships. */ distinct?: Prisma.EntityRelationshipScalarFieldEnum | Prisma.EntityRelationshipScalarFieldEnum[]; }; /** * EntityRelationship findMany */ export type EntityRelationshipFindManyArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * Filter, which EntityRelationships to fetch. */ where?: Prisma.EntityRelationshipWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EntityRelationships to fetch. */ orderBy?: Prisma.EntityRelationshipOrderByWithRelationInput | Prisma.EntityRelationshipOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EntityRelationships. */ cursor?: Prisma.EntityRelationshipWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EntityRelationships 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` EntityRelationships. */ skip?: number; distinct?: Prisma.EntityRelationshipScalarFieldEnum | Prisma.EntityRelationshipScalarFieldEnum[]; }; /** * EntityRelationship create */ export type EntityRelationshipCreateArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * The data needed to create a EntityRelationship. */ data: Prisma.XOR; }; /** * EntityRelationship createMany */ export type EntityRelationshipCreateManyArgs = { /** * The data used to create many EntityRelationships. */ data: Prisma.EntityRelationshipCreateManyInput | Prisma.EntityRelationshipCreateManyInput[]; skipDuplicates?: boolean; }; /** * EntityRelationship createManyAndReturn */ export type EntityRelationshipCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelectCreateManyAndReturn | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * The data used to create many EntityRelationships. */ data: Prisma.EntityRelationshipCreateManyInput | Prisma.EntityRelationshipCreateManyInput[]; skipDuplicates?: boolean; }; /** * EntityRelationship update */ export type EntityRelationshipUpdateArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * The data needed to update a EntityRelationship. */ data: Prisma.XOR; /** * Choose, which EntityRelationship to update. */ where: Prisma.EntityRelationshipWhereUniqueInput; }; /** * EntityRelationship updateMany */ export type EntityRelationshipUpdateManyArgs = { /** * The data used to update EntityRelationships. */ data: Prisma.XOR; /** * Filter which EntityRelationships to update */ where?: Prisma.EntityRelationshipWhereInput; /** * Limit how many EntityRelationships to update. */ limit?: number; }; /** * EntityRelationship updateManyAndReturn */ export type EntityRelationshipUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelectUpdateManyAndReturn | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * The data used to update EntityRelationships. */ data: Prisma.XOR; /** * Filter which EntityRelationships to update */ where?: Prisma.EntityRelationshipWhereInput; /** * Limit how many EntityRelationships to update. */ limit?: number; }; /** * EntityRelationship upsert */ export type EntityRelationshipUpsertArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * The filter to search for the EntityRelationship to update in case it exists. */ where: Prisma.EntityRelationshipWhereUniqueInput; /** * In case the EntityRelationship found by the `where` argument doesn't exist, create a new EntityRelationship with this data. */ create: Prisma.XOR; /** * In case the EntityRelationship was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR; }; /** * EntityRelationship delete */ export type EntityRelationshipDeleteArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; /** * Filter which EntityRelationship to delete. */ where: Prisma.EntityRelationshipWhereUniqueInput; }; /** * EntityRelationship deleteMany */ export type EntityRelationshipDeleteManyArgs = { /** * Filter which EntityRelationships to delete */ where?: Prisma.EntityRelationshipWhereInput; /** * Limit how many EntityRelationships to delete. */ limit?: number; }; /** * EntityRelationship without action */ export type EntityRelationshipDefaultArgs = { /** * Select specific fields to fetch from the EntityRelationship */ select?: Prisma.EntityRelationshipSelect | null; /** * Omit specific fields from the EntityRelationship */ omit?: Prisma.EntityRelationshipOmit | null; }; export {}; //# sourceMappingURL=EntityRelationship.d.ts.map