1436 lines
54 KiB
TypeScript
1436 lines
54 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `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<Prisma.$activity_logsPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends Activity_logsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateActivity_logs]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateActivity_logs[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateActivity_logs[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type activity_logsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends activity_logsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Activity_logsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Activity_logsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Activity_logsGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Activity_logsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.UsersNullableScalarRelationFilter, Prisma.usersWhereInput> | 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<Prisma.UsersNullableScalarRelationFilter, Prisma.usersWhereInput> | 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> | 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> | 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> | 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> | 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<Prisma.activity_logsCreateWithoutUserInput, Prisma.activity_logsUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type activity_logsCreateManyUserInputEnvelope = {
|
|
data: Prisma.activity_logsCreateManyUserInput | Prisma.activity_logsCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type activity_logsUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.activity_logsWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.activity_logsUpdateWithoutUserInput, Prisma.activity_logsUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.activity_logsCreateWithoutUserInput, Prisma.activity_logsUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type activity_logsUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.activity_logsWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.activity_logsUpdateWithoutUserInput, Prisma.activity_logsUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type activity_logsUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.activity_logsScalarWhereInput
|
|
data: Prisma.XOR<Prisma.activity_logsUpdateManyMutationInput, Prisma.activity_logsUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
timestamp?: boolean
|
|
status?: boolean
|
|
confidence?: boolean
|
|
details?: boolean
|
|
user_id?: boolean
|
|
user?: boolean | Prisma.activity_logs$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["activity_logs"]>
|
|
|
|
export type activity_logsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
timestamp?: boolean
|
|
status?: boolean
|
|
confidence?: boolean
|
|
details?: boolean
|
|
user_id?: boolean
|
|
user?: boolean | Prisma.activity_logs$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["activity_logs"]>
|
|
|
|
export type activity_logsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
timestamp?: boolean
|
|
status?: boolean
|
|
confidence?: boolean
|
|
details?: boolean
|
|
user_id?: boolean
|
|
user?: boolean | Prisma.activity_logs$userArgs<ExtArgs>
|
|
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "timestamp" | "status" | "confidence" | "details" | "user_id", ExtArgs["result"]["activity_logs"]>
|
|
export type activity_logsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.activity_logs$userArgs<ExtArgs>
|
|
}
|
|
export type activity_logsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.activity_logs$userArgs<ExtArgs>
|
|
}
|
|
export type activity_logsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.activity_logs$userArgs<ExtArgs>
|
|
}
|
|
|
|
export type $activity_logsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "activity_logs"
|
|
objects: {
|
|
user: Prisma.$usersPayload<ExtArgs> | 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<S extends boolean | null | undefined | activity_logsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$activity_logsPayload, S>
|
|
|
|
export type activity_logsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<activity_logsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Activity_logsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface activity_logsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends activity_logsFindUniqueArgs>(args: Prisma.SelectSubset<T, activity_logsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__activity_logsClient<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, activity_logsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__activity_logsClient<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsFindFirstArgs>(args?: Prisma.SelectSubset<T, activity_logsFindFirstArgs<ExtArgs>>): Prisma.Prisma__activity_logsClient<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, activity_logsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__activity_logsClient<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsFindManyArgs>(args?: Prisma.SelectSubset<T, activity_logsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsCreateArgs>(args: Prisma.SelectSubset<T, activity_logsCreateArgs<ExtArgs>>): Prisma.Prisma__activity_logsClient<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsCreateManyArgs>(args?: Prisma.SelectSubset<T, activity_logsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends activity_logsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, activity_logsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsDeleteArgs>(args: Prisma.SelectSubset<T, activity_logsDeleteArgs<ExtArgs>>): Prisma.Prisma__activity_logsClient<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsUpdateArgs>(args: Prisma.SelectSubset<T, activity_logsUpdateArgs<ExtArgs>>): Prisma.Prisma__activity_logsClient<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsDeleteManyArgs>(args?: Prisma.SelectSubset<T, activity_logsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends activity_logsUpdateManyArgs>(args: Prisma.SelectSubset<T, activity_logsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends activity_logsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, activity_logsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsUpsertArgs>(args: Prisma.SelectSubset<T, activity_logsUpsertArgs<ExtArgs>>): Prisma.Prisma__activity_logsClient<runtime.Types.Result.GetResult<Prisma.$activity_logsPayload<ExtArgs>, 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<T extends activity_logsCountArgs>(
|
|
args?: Prisma.Subset<T, activity_logsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Activity_logsCountAggregateOutputType>
|
|
: 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<T extends Activity_logsAggregateArgs>(args: Prisma.Subset<T, Activity_logsAggregateArgs>): Prisma.PrismaPromise<GetActivity_logsAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: activity_logsGroupByArgs['orderBy'] }
|
|
: { orderBy?: activity_logsGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, activity_logsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetActivity_logsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.activity_logs$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.activity_logs$userArgs<ExtArgs>>): Prisma.Prisma__usersClient<runtime.Types.Result.GetResult<Prisma.$usersPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which activity_logs to fetch.
|
|
*/
|
|
where: Prisma.activity_logsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* activity_logs findUniqueOrThrow
|
|
*/
|
|
export type activity_logsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which activity_logs to fetch.
|
|
*/
|
|
where: Prisma.activity_logsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* activity_logs findFirst
|
|
*/
|
|
export type activity_logsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a activity_logs.
|
|
*/
|
|
data?: Prisma.XOR<Prisma.activity_logsCreateInput, Prisma.activity_logsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* activity_logs createMany
|
|
*/
|
|
export type activity_logsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many activity_logs.
|
|
*/
|
|
data: Prisma.activity_logsCreateManyInput | Prisma.activity_logsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* activity_logs createManyAndReturn
|
|
*/
|
|
export type activity_logsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* activity_logs update
|
|
*/
|
|
export type activity_logsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a activity_logs.
|
|
*/
|
|
data: Prisma.XOR<Prisma.activity_logsUpdateInput, Prisma.activity_logsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which activity_logs to update.
|
|
*/
|
|
where: Prisma.activity_logsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* activity_logs updateMany
|
|
*/
|
|
export type activity_logsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update activity_logs.
|
|
*/
|
|
data: Prisma.XOR<Prisma.activity_logsUpdateManyMutationInput, Prisma.activity_logsUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update activity_logs.
|
|
*/
|
|
data: Prisma.XOR<Prisma.activity_logsUpdateManyMutationInput, Prisma.activity_logsUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* activity_logs upsert
|
|
*/
|
|
export type activity_logsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | 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<Prisma.activity_logsCreateInput, Prisma.activity_logsUncheckedCreateInput>
|
|
/**
|
|
* In case the activity_logs was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.activity_logsUpdateInput, Prisma.activity_logsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* activity_logs delete
|
|
*/
|
|
export type activity_logsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which activity_logs to delete.
|
|
*/
|
|
where: Prisma.activity_logsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* activity_logs deleteMany
|
|
*/
|
|
export type activity_logsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the users
|
|
*/
|
|
select?: Prisma.usersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the users
|
|
*/
|
|
omit?: Prisma.usersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.usersInclude<ExtArgs> | null
|
|
where?: Prisma.usersWhereInput
|
|
}
|
|
|
|
/**
|
|
* activity_logs without action
|
|
*/
|
|
export type activity_logsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the activity_logs
|
|
*/
|
|
select?: Prisma.activity_logsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the activity_logs
|
|
*/
|
|
omit?: Prisma.activity_logsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.activity_logsInclude<ExtArgs> | null
|
|
}
|