/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `activity_logs` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/library" import type * as $Enums from "../enums.js" import type * as Prisma from "../internal/prismaNamespace.js" /** * Model activity_logs * */ export type activity_logsModel = runtime.Types.Result.DefaultSelection export type AggregateActivity_logs = { _count: Activity_logsCountAggregateOutputType | null _avg: Activity_logsAvgAggregateOutputType | null _sum: Activity_logsSumAggregateOutputType | null _min: Activity_logsMinAggregateOutputType | null _max: Activity_logsMaxAggregateOutputType | null } export type Activity_logsAvgAggregateOutputType = { id: number | null } export type Activity_logsSumAggregateOutputType = { id: number | null } export type Activity_logsMinAggregateOutputType = { id: number | null timestamp: Date | null status: string | null confidence: string | null user_id: string | null } export type Activity_logsMaxAggregateOutputType = { id: number | null timestamp: Date | null status: string | null confidence: string | null user_id: string | null } export type Activity_logsCountAggregateOutputType = { id: number timestamp: number status: number confidence: number details: number user_id: number _all: number } export type Activity_logsAvgAggregateInputType = { id?: true } export type Activity_logsSumAggregateInputType = { id?: true } export type Activity_logsMinAggregateInputType = { id?: true timestamp?: true status?: true confidence?: true user_id?: true } export type Activity_logsMaxAggregateInputType = { id?: true timestamp?: true status?: true confidence?: true user_id?: true } export type Activity_logsCountAggregateInputType = { id?: true timestamp?: true status?: true confidence?: true details?: true user_id?: true _all?: true } export type Activity_logsAggregateArgs = { /** * Filter which activity_logs to aggregate. */ where?: Prisma.activity_logsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of activity_logs to fetch. */ orderBy?: Prisma.activity_logsOrderByWithRelationInput | Prisma.activity_logsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.activity_logsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` activity_logs 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` activity_logs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned activity_logs **/ _count?: true | Activity_logsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Activity_logsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Activity_logsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Activity_logsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Activity_logsMaxAggregateInputType } export type GetActivity_logsAggregateType = { [P in keyof T & keyof AggregateActivity_logs]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type activity_logsGroupByArgs = { where?: Prisma.activity_logsWhereInput orderBy?: Prisma.activity_logsOrderByWithAggregationInput | Prisma.activity_logsOrderByWithAggregationInput[] by: Prisma.Activity_logsScalarFieldEnum[] | Prisma.Activity_logsScalarFieldEnum having?: Prisma.activity_logsScalarWhereWithAggregatesInput take?: number skip?: number _count?: Activity_logsCountAggregateInputType | true _avg?: Activity_logsAvgAggregateInputType _sum?: Activity_logsSumAggregateInputType _min?: Activity_logsMinAggregateInputType _max?: Activity_logsMaxAggregateInputType } export type Activity_logsGroupByOutputType = { id: number timestamp: Date | null status: string | null confidence: string | null details: runtime.JsonValue | null user_id: string | null _count: Activity_logsCountAggregateOutputType | null _avg: Activity_logsAvgAggregateOutputType | null _sum: Activity_logsSumAggregateOutputType | null _min: Activity_logsMinAggregateOutputType | null _max: Activity_logsMaxAggregateOutputType | null } type GetActivity_logsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Activity_logsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type activity_logsWhereInput = { AND?: Prisma.activity_logsWhereInput | Prisma.activity_logsWhereInput[] OR?: Prisma.activity_logsWhereInput[] NOT?: Prisma.activity_logsWhereInput | Prisma.activity_logsWhereInput[] id?: Prisma.IntFilter<"activity_logs"> | number timestamp?: Prisma.DateTimeNullableFilter<"activity_logs"> | Date | string | null status?: Prisma.StringNullableFilter<"activity_logs"> | string | null confidence?: Prisma.StringNullableFilter<"activity_logs"> | string | null details?: Prisma.JsonNullableFilter<"activity_logs"> user_id?: Prisma.StringNullableFilter<"activity_logs"> | string | null user?: Prisma.XOR | null } export type activity_logsOrderByWithRelationInput = { id?: Prisma.SortOrder timestamp?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder confidence?: Prisma.SortOrderInput | Prisma.SortOrder details?: Prisma.SortOrderInput | Prisma.SortOrder user_id?: Prisma.SortOrderInput | Prisma.SortOrder user?: Prisma.usersOrderByWithRelationInput } export type activity_logsWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.activity_logsWhereInput | Prisma.activity_logsWhereInput[] OR?: Prisma.activity_logsWhereInput[] NOT?: Prisma.activity_logsWhereInput | Prisma.activity_logsWhereInput[] timestamp?: Prisma.DateTimeNullableFilter<"activity_logs"> | Date | string | null status?: Prisma.StringNullableFilter<"activity_logs"> | string | null confidence?: Prisma.StringNullableFilter<"activity_logs"> | string | null details?: Prisma.JsonNullableFilter<"activity_logs"> user_id?: Prisma.StringNullableFilter<"activity_logs"> | string | null user?: Prisma.XOR | null }, "id"> export type activity_logsOrderByWithAggregationInput = { id?: Prisma.SortOrder timestamp?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder confidence?: Prisma.SortOrderInput | Prisma.SortOrder details?: Prisma.SortOrderInput | Prisma.SortOrder user_id?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.activity_logsCountOrderByAggregateInput _avg?: Prisma.activity_logsAvgOrderByAggregateInput _max?: Prisma.activity_logsMaxOrderByAggregateInput _min?: Prisma.activity_logsMinOrderByAggregateInput _sum?: Prisma.activity_logsSumOrderByAggregateInput } export type activity_logsScalarWhereWithAggregatesInput = { AND?: Prisma.activity_logsScalarWhereWithAggregatesInput | Prisma.activity_logsScalarWhereWithAggregatesInput[] OR?: Prisma.activity_logsScalarWhereWithAggregatesInput[] NOT?: Prisma.activity_logsScalarWhereWithAggregatesInput | Prisma.activity_logsScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"activity_logs"> | number timestamp?: Prisma.DateTimeNullableWithAggregatesFilter<"activity_logs"> | Date | string | null status?: Prisma.StringNullableWithAggregatesFilter<"activity_logs"> | string | null confidence?: Prisma.StringNullableWithAggregatesFilter<"activity_logs"> | string | null details?: Prisma.JsonNullableWithAggregatesFilter<"activity_logs"> user_id?: Prisma.StringNullableWithAggregatesFilter<"activity_logs"> | string | null } export type activity_logsCreateInput = { timestamp?: Date | string | null status?: string | null confidence?: string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue user?: Prisma.usersCreateNestedOneWithoutActivity_logsInput } export type activity_logsUncheckedCreateInput = { id?: number timestamp?: Date | string | null status?: string | null confidence?: string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue user_id?: string | null } export type activity_logsUpdateInput = { timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null confidence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue user?: Prisma.usersUpdateOneWithoutActivity_logsNestedInput } export type activity_logsUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null confidence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type activity_logsCreateManyInput = { id?: number timestamp?: Date | string | null status?: string | null confidence?: string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue user_id?: string | null } export type activity_logsUpdateManyMutationInput = { timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null confidence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type activity_logsUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null confidence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type Activity_logsListRelationFilter = { every?: Prisma.activity_logsWhereInput some?: Prisma.activity_logsWhereInput none?: Prisma.activity_logsWhereInput } export type activity_logsOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type activity_logsCountOrderByAggregateInput = { id?: Prisma.SortOrder timestamp?: Prisma.SortOrder status?: Prisma.SortOrder confidence?: Prisma.SortOrder details?: Prisma.SortOrder user_id?: Prisma.SortOrder } export type activity_logsAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type activity_logsMaxOrderByAggregateInput = { id?: Prisma.SortOrder timestamp?: Prisma.SortOrder status?: Prisma.SortOrder confidence?: Prisma.SortOrder user_id?: Prisma.SortOrder } export type activity_logsMinOrderByAggregateInput = { id?: Prisma.SortOrder timestamp?: Prisma.SortOrder status?: Prisma.SortOrder confidence?: Prisma.SortOrder user_id?: Prisma.SortOrder } export type activity_logsSumOrderByAggregateInput = { id?: Prisma.SortOrder } export type activity_logsCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.activity_logsCreateWithoutUserInput[] | Prisma.activity_logsUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.activity_logsCreateOrConnectWithoutUserInput | Prisma.activity_logsCreateOrConnectWithoutUserInput[] createMany?: Prisma.activity_logsCreateManyUserInputEnvelope connect?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] } export type activity_logsUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.activity_logsCreateWithoutUserInput[] | Prisma.activity_logsUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.activity_logsCreateOrConnectWithoutUserInput | Prisma.activity_logsCreateOrConnectWithoutUserInput[] createMany?: Prisma.activity_logsCreateManyUserInputEnvelope connect?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] } export type activity_logsUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.activity_logsCreateWithoutUserInput[] | Prisma.activity_logsUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.activity_logsCreateOrConnectWithoutUserInput | Prisma.activity_logsCreateOrConnectWithoutUserInput[] upsert?: Prisma.activity_logsUpsertWithWhereUniqueWithoutUserInput | Prisma.activity_logsUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.activity_logsCreateManyUserInputEnvelope set?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] disconnect?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] delete?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] connect?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] update?: Prisma.activity_logsUpdateWithWhereUniqueWithoutUserInput | Prisma.activity_logsUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.activity_logsUpdateManyWithWhereWithoutUserInput | Prisma.activity_logsUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.activity_logsScalarWhereInput | Prisma.activity_logsScalarWhereInput[] } export type activity_logsUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.activity_logsCreateWithoutUserInput[] | Prisma.activity_logsUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.activity_logsCreateOrConnectWithoutUserInput | Prisma.activity_logsCreateOrConnectWithoutUserInput[] upsert?: Prisma.activity_logsUpsertWithWhereUniqueWithoutUserInput | Prisma.activity_logsUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.activity_logsCreateManyUserInputEnvelope set?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] disconnect?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] delete?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] connect?: Prisma.activity_logsWhereUniqueInput | Prisma.activity_logsWhereUniqueInput[] update?: Prisma.activity_logsUpdateWithWhereUniqueWithoutUserInput | Prisma.activity_logsUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.activity_logsUpdateManyWithWhereWithoutUserInput | Prisma.activity_logsUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.activity_logsScalarWhereInput | Prisma.activity_logsScalarWhereInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type activity_logsCreateWithoutUserInput = { timestamp?: Date | string | null status?: string | null confidence?: string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type activity_logsUncheckedCreateWithoutUserInput = { id?: number timestamp?: Date | string | null status?: string | null confidence?: string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type activity_logsCreateOrConnectWithoutUserInput = { where: Prisma.activity_logsWhereUniqueInput create: Prisma.XOR } export type activity_logsCreateManyUserInputEnvelope = { data: Prisma.activity_logsCreateManyUserInput | Prisma.activity_logsCreateManyUserInput[] skipDuplicates?: boolean } export type activity_logsUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.activity_logsWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type activity_logsUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.activity_logsWhereUniqueInput data: Prisma.XOR } export type activity_logsUpdateManyWithWhereWithoutUserInput = { where: Prisma.activity_logsScalarWhereInput data: Prisma.XOR } export type activity_logsScalarWhereInput = { AND?: Prisma.activity_logsScalarWhereInput | Prisma.activity_logsScalarWhereInput[] OR?: Prisma.activity_logsScalarWhereInput[] NOT?: Prisma.activity_logsScalarWhereInput | Prisma.activity_logsScalarWhereInput[] id?: Prisma.IntFilter<"activity_logs"> | number timestamp?: Prisma.DateTimeNullableFilter<"activity_logs"> | Date | string | null status?: Prisma.StringNullableFilter<"activity_logs"> | string | null confidence?: Prisma.StringNullableFilter<"activity_logs"> | string | null details?: Prisma.JsonNullableFilter<"activity_logs"> user_id?: Prisma.StringNullableFilter<"activity_logs"> | string | null } export type activity_logsCreateManyUserInput = { id?: number timestamp?: Date | string | null status?: string | null confidence?: string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type activity_logsUpdateWithoutUserInput = { timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null confidence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type activity_logsUncheckedUpdateWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null confidence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type activity_logsUncheckedUpdateManyWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null confidence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type activity_logsSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean timestamp?: boolean status?: boolean confidence?: boolean details?: boolean user_id?: boolean user?: boolean | Prisma.activity_logs$userArgs }, ExtArgs["result"]["activity_logs"]> export type activity_logsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean timestamp?: boolean status?: boolean confidence?: boolean details?: boolean user_id?: boolean user?: boolean | Prisma.activity_logs$userArgs }, ExtArgs["result"]["activity_logs"]> export type activity_logsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean timestamp?: boolean status?: boolean confidence?: boolean details?: boolean user_id?: boolean user?: boolean | Prisma.activity_logs$userArgs }, ExtArgs["result"]["activity_logs"]> export type activity_logsSelectScalar = { id?: boolean timestamp?: boolean status?: boolean confidence?: boolean details?: boolean user_id?: boolean } export type activity_logsOmit = runtime.Types.Extensions.GetOmit<"id" | "timestamp" | "status" | "confidence" | "details" | "user_id", ExtArgs["result"]["activity_logs"]> export type activity_logsInclude = { user?: boolean | Prisma.activity_logs$userArgs } export type activity_logsIncludeCreateManyAndReturn = { user?: boolean | Prisma.activity_logs$userArgs } export type activity_logsIncludeUpdateManyAndReturn = { user?: boolean | Prisma.activity_logs$userArgs } export type $activity_logsPayload = { name: "activity_logs" objects: { user: Prisma.$usersPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number timestamp: Date | null status: string | null confidence: string | null details: runtime.JsonValue | null user_id: string | null }, ExtArgs["result"]["activity_logs"]> composites: {} } export type activity_logsGetPayload = runtime.Types.Result.GetResult export type activity_logsCountArgs = Omit & { select?: Activity_logsCountAggregateInputType | true } export interface activity_logsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['activity_logs'], meta: { name: 'activity_logs' } } /** * Find zero or one Activity_logs that matches the filter. * @param {activity_logsFindUniqueArgs} args - Arguments to find a Activity_logs * @example * // Get one Activity_logs * const activity_logs = await prisma.activity_logs.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__activity_logsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Activity_logs that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {activity_logsFindUniqueOrThrowArgs} args - Arguments to find a Activity_logs * @example * // Get one Activity_logs * const activity_logs = await prisma.activity_logs.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__activity_logsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Activity_logs 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 {activity_logsFindFirstArgs} args - Arguments to find a Activity_logs * @example * // Get one Activity_logs * const activity_logs = await prisma.activity_logs.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__activity_logsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Activity_logs 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 {activity_logsFindFirstOrThrowArgs} args - Arguments to find a Activity_logs * @example * // Get one Activity_logs * const activity_logs = await prisma.activity_logs.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__activity_logsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Activity_logs 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 {activity_logsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Activity_logs * const activity_logs = await prisma.activity_logs.findMany() * * // Get first 10 Activity_logs * const activity_logs = await prisma.activity_logs.findMany({ take: 10 }) * * // Only select the `id` * const activity_logsWithIdOnly = await prisma.activity_logs.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Activity_logs. * @param {activity_logsCreateArgs} args - Arguments to create a Activity_logs. * @example * // Create one Activity_logs * const Activity_logs = await prisma.activity_logs.create({ * data: { * // ... data to create a Activity_logs * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__activity_logsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Activity_logs. * @param {activity_logsCreateManyArgs} args - Arguments to create many Activity_logs. * @example * // Create many Activity_logs * const activity_logs = await prisma.activity_logs.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Activity_logs and returns the data saved in the database. * @param {activity_logsCreateManyAndReturnArgs} args - Arguments to create many Activity_logs. * @example * // Create many Activity_logs * const activity_logs = await prisma.activity_logs.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Activity_logs and only return the `id` * const activity_logsWithIdOnly = await prisma.activity_logs.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 Activity_logs. * @param {activity_logsDeleteArgs} args - Arguments to delete one Activity_logs. * @example * // Delete one Activity_logs * const Activity_logs = await prisma.activity_logs.delete({ * where: { * // ... filter to delete one Activity_logs * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__activity_logsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Activity_logs. * @param {activity_logsUpdateArgs} args - Arguments to update one Activity_logs. * @example * // Update one Activity_logs * const activity_logs = await prisma.activity_logs.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__activity_logsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Activity_logs. * @param {activity_logsDeleteManyArgs} args - Arguments to filter Activity_logs to delete. * @example * // Delete a few Activity_logs * const { count } = await prisma.activity_logs.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Activity_logs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {activity_logsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Activity_logs * const activity_logs = await prisma.activity_logs.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Activity_logs and returns the data updated in the database. * @param {activity_logsUpdateManyAndReturnArgs} args - Arguments to update many Activity_logs. * @example * // Update many Activity_logs * const activity_logs = await prisma.activity_logs.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Activity_logs and only return the `id` * const activity_logsWithIdOnly = await prisma.activity_logs.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 Activity_logs. * @param {activity_logsUpsertArgs} args - Arguments to update or create a Activity_logs. * @example * // Update or create a Activity_logs * const activity_logs = await prisma.activity_logs.upsert({ * create: { * // ... data to create a Activity_logs * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Activity_logs we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__activity_logsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Activity_logs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {activity_logsCountArgs} args - Arguments to filter Activity_logs to count. * @example * // Count the number of Activity_logs * const count = await prisma.activity_logs.count({ * where: { * // ... the filter for the Activity_logs 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 Activity_logs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Activity_logsAggregateArgs} 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 Activity_logs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {activity_logsGroupByArgs} 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 activity_logsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: activity_logsGroupByArgs['orderBy'] } : { orderBy?: activity_logsGroupByArgs['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 ? GetActivity_logsGroupByPayload : Prisma.PrismaPromise /** * Fields of the activity_logs model */ readonly fields: activity_logsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for activity_logs. * 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__activity_logsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__usersClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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 activity_logs model */ export interface activity_logsFieldRefs { readonly id: Prisma.FieldRef<"activity_logs", 'Int'> readonly timestamp: Prisma.FieldRef<"activity_logs", 'DateTime'> readonly status: Prisma.FieldRef<"activity_logs", 'String'> readonly confidence: Prisma.FieldRef<"activity_logs", 'String'> readonly details: Prisma.FieldRef<"activity_logs", 'Json'> readonly user_id: Prisma.FieldRef<"activity_logs", 'String'> } // Custom InputTypes /** * activity_logs findUnique */ export type activity_logsFindUniqueArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null /** * Filter, which activity_logs to fetch. */ where: Prisma.activity_logsWhereUniqueInput } /** * activity_logs findUniqueOrThrow */ export type activity_logsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null /** * Filter, which activity_logs to fetch. */ where: Prisma.activity_logsWhereUniqueInput } /** * activity_logs findFirst */ export type activity_logsFindFirstArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null /** * Filter, which activity_logs to fetch. */ where?: Prisma.activity_logsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of activity_logs to fetch. */ orderBy?: Prisma.activity_logsOrderByWithRelationInput | Prisma.activity_logsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for activity_logs. */ cursor?: Prisma.activity_logsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` activity_logs 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` activity_logs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of activity_logs. */ distinct?: Prisma.Activity_logsScalarFieldEnum | Prisma.Activity_logsScalarFieldEnum[] } /** * activity_logs findFirstOrThrow */ export type activity_logsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null /** * Filter, which activity_logs to fetch. */ where?: Prisma.activity_logsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of activity_logs to fetch. */ orderBy?: Prisma.activity_logsOrderByWithRelationInput | Prisma.activity_logsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for activity_logs. */ cursor?: Prisma.activity_logsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` activity_logs 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` activity_logs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of activity_logs. */ distinct?: Prisma.Activity_logsScalarFieldEnum | Prisma.Activity_logsScalarFieldEnum[] } /** * activity_logs findMany */ export type activity_logsFindManyArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null /** * Filter, which activity_logs to fetch. */ where?: Prisma.activity_logsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of activity_logs to fetch. */ orderBy?: Prisma.activity_logsOrderByWithRelationInput | Prisma.activity_logsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing activity_logs. */ cursor?: Prisma.activity_logsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` activity_logs 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` activity_logs. */ skip?: number distinct?: Prisma.Activity_logsScalarFieldEnum | Prisma.Activity_logsScalarFieldEnum[] } /** * activity_logs create */ export type activity_logsCreateArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null /** * The data needed to create a activity_logs. */ data?: Prisma.XOR } /** * activity_logs createMany */ export type activity_logsCreateManyArgs = { /** * The data used to create many activity_logs. */ data: Prisma.activity_logsCreateManyInput | Prisma.activity_logsCreateManyInput[] skipDuplicates?: boolean } /** * activity_logs createManyAndReturn */ export type activity_logsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelectCreateManyAndReturn | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * The data used to create many activity_logs. */ data: Prisma.activity_logsCreateManyInput | Prisma.activity_logsCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsIncludeCreateManyAndReturn | null } /** * activity_logs update */ export type activity_logsUpdateArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null /** * The data needed to update a activity_logs. */ data: Prisma.XOR /** * Choose, which activity_logs to update. */ where: Prisma.activity_logsWhereUniqueInput } /** * activity_logs updateMany */ export type activity_logsUpdateManyArgs = { /** * The data used to update activity_logs. */ data: Prisma.XOR /** * Filter which activity_logs to update */ where?: Prisma.activity_logsWhereInput /** * Limit how many activity_logs to update. */ limit?: number } /** * activity_logs updateManyAndReturn */ export type activity_logsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelectUpdateManyAndReturn | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * The data used to update activity_logs. */ data: Prisma.XOR /** * Filter which activity_logs to update */ where?: Prisma.activity_logsWhereInput /** * Limit how many activity_logs to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsIncludeUpdateManyAndReturn | null } /** * activity_logs upsert */ export type activity_logsUpsertArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null /** * The filter to search for the activity_logs to update in case it exists. */ where: Prisma.activity_logsWhereUniqueInput /** * In case the activity_logs found by the `where` argument doesn't exist, create a new activity_logs with this data. */ create: Prisma.XOR /** * In case the activity_logs was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * activity_logs delete */ export type activity_logsDeleteArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null /** * Filter which activity_logs to delete. */ where: Prisma.activity_logsWhereUniqueInput } /** * activity_logs deleteMany */ export type activity_logsDeleteManyArgs = { /** * Filter which activity_logs to delete */ where?: Prisma.activity_logsWhereInput /** * Limit how many activity_logs to delete. */ limit?: number } /** * activity_logs.user */ export type activity_logs$userArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.usersInclude | null where?: Prisma.usersWhereInput } /** * activity_logs without action */ export type activity_logsDefaultArgs = { /** * Select specific fields to fetch from the activity_logs */ select?: Prisma.activity_logsSelect | null /** * Omit specific fields from the activity_logs */ omit?: Prisma.activity_logsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.activity_logsInclude | null }