1651 lines
60 KiB
TypeScript
1651 lines
60 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 `Formula` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model Formula
|
|
*
|
|
*/
|
|
export type FormulaModel = runtime.Types.Result.DefaultSelection<Prisma.$FormulaPayload>
|
|
|
|
export type AggregateFormula = {
|
|
_count: FormulaCountAggregateOutputType | null
|
|
_min: FormulaMinAggregateOutputType | null
|
|
_max: FormulaMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type FormulaMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
name: string | null
|
|
description: string | null
|
|
resultAs: string | null
|
|
calculationTrigger: string | null
|
|
withLogs: boolean | null
|
|
}
|
|
|
|
export type FormulaMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
name: string | null
|
|
description: string | null
|
|
resultAs: string | null
|
|
calculationTrigger: string | null
|
|
withLogs: boolean | null
|
|
}
|
|
|
|
export type FormulaCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
name: number
|
|
description: number
|
|
resultAs: number
|
|
calculationTrigger: number
|
|
withLogs: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type FormulaMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
name?: true
|
|
description?: true
|
|
resultAs?: true
|
|
calculationTrigger?: true
|
|
withLogs?: true
|
|
}
|
|
|
|
export type FormulaMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
name?: true
|
|
description?: true
|
|
resultAs?: true
|
|
calculationTrigger?: true
|
|
withLogs?: true
|
|
}
|
|
|
|
export type FormulaCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
name?: true
|
|
description?: true
|
|
resultAs?: true
|
|
calculationTrigger?: true
|
|
withLogs?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type FormulaAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Formula to aggregate.
|
|
*/
|
|
where?: Prisma.FormulaWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Formulas to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormulaOrderByWithRelationInput | Prisma.FormulaOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.FormulaWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Formulas 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` Formulas.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Formulas
|
|
**/
|
|
_count?: true | FormulaCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: FormulaMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: FormulaMaxAggregateInputType
|
|
}
|
|
|
|
export type GetFormulaAggregateType<T extends FormulaAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateFormula]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateFormula[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateFormula[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormulaGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FormulaWhereInput
|
|
orderBy?: Prisma.FormulaOrderByWithAggregationInput | Prisma.FormulaOrderByWithAggregationInput[]
|
|
by: Prisma.FormulaScalarFieldEnum[] | Prisma.FormulaScalarFieldEnum
|
|
having?: Prisma.FormulaScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: FormulaCountAggregateInputType | true
|
|
_min?: FormulaMinAggregateInputType
|
|
_max?: FormulaMaxAggregateInputType
|
|
}
|
|
|
|
export type FormulaGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
name: string
|
|
description: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs: boolean
|
|
_count: FormulaCountAggregateOutputType | null
|
|
_min: FormulaMinAggregateOutputType | null
|
|
_max: FormulaMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetFormulaGroupByPayload<T extends FormulaGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<FormulaGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof FormulaGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], FormulaGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], FormulaGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type FormulaWhereInput = {
|
|
AND?: Prisma.FormulaWhereInput | Prisma.FormulaWhereInput[]
|
|
OR?: Prisma.FormulaWhereInput[]
|
|
NOT?: Prisma.FormulaWhereInput | Prisma.FormulaWhereInput[]
|
|
id?: Prisma.StringFilter<"Formula"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"Formula"> | Date | string
|
|
name?: Prisma.StringFilter<"Formula"> | string
|
|
description?: Prisma.StringNullableFilter<"Formula"> | string | null
|
|
resultAs?: Prisma.StringFilter<"Formula"> | string
|
|
calculationTrigger?: Prisma.StringFilter<"Formula"> | string
|
|
withLogs?: Prisma.BoolFilter<"Formula"> | boolean
|
|
components?: Prisma.FormulaComponentListRelationFilter
|
|
inProperties?: Prisma.PropertyListRelationFilter
|
|
logs?: Prisma.FormulaLogListRelationFilter
|
|
}
|
|
|
|
export type FormulaOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
resultAs?: Prisma.SortOrder
|
|
calculationTrigger?: Prisma.SortOrder
|
|
withLogs?: Prisma.SortOrder
|
|
components?: Prisma.FormulaComponentOrderByRelationAggregateInput
|
|
inProperties?: Prisma.PropertyOrderByRelationAggregateInput
|
|
logs?: Prisma.FormulaLogOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type FormulaWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.FormulaWhereInput | Prisma.FormulaWhereInput[]
|
|
OR?: Prisma.FormulaWhereInput[]
|
|
NOT?: Prisma.FormulaWhereInput | Prisma.FormulaWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"Formula"> | Date | string
|
|
name?: Prisma.StringFilter<"Formula"> | string
|
|
description?: Prisma.StringNullableFilter<"Formula"> | string | null
|
|
resultAs?: Prisma.StringFilter<"Formula"> | string
|
|
calculationTrigger?: Prisma.StringFilter<"Formula"> | string
|
|
withLogs?: Prisma.BoolFilter<"Formula"> | boolean
|
|
components?: Prisma.FormulaComponentListRelationFilter
|
|
inProperties?: Prisma.PropertyListRelationFilter
|
|
logs?: Prisma.FormulaLogListRelationFilter
|
|
}, "id">
|
|
|
|
export type FormulaOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
resultAs?: Prisma.SortOrder
|
|
calculationTrigger?: Prisma.SortOrder
|
|
withLogs?: Prisma.SortOrder
|
|
_count?: Prisma.FormulaCountOrderByAggregateInput
|
|
_max?: Prisma.FormulaMaxOrderByAggregateInput
|
|
_min?: Prisma.FormulaMinOrderByAggregateInput
|
|
}
|
|
|
|
export type FormulaScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.FormulaScalarWhereWithAggregatesInput | Prisma.FormulaScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.FormulaScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.FormulaScalarWhereWithAggregatesInput | Prisma.FormulaScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"Formula"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Formula"> | Date | string
|
|
name?: Prisma.StringWithAggregatesFilter<"Formula"> | string
|
|
description?: Prisma.StringNullableWithAggregatesFilter<"Formula"> | string | null
|
|
resultAs?: Prisma.StringWithAggregatesFilter<"Formula"> | string
|
|
calculationTrigger?: Prisma.StringWithAggregatesFilter<"Formula"> | string
|
|
withLogs?: Prisma.BoolWithAggregatesFilter<"Formula"> | boolean
|
|
}
|
|
|
|
export type FormulaCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
name: string
|
|
description?: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs?: boolean
|
|
components?: Prisma.FormulaComponentCreateNestedManyWithoutFormulaInput
|
|
inProperties?: Prisma.PropertyCreateNestedManyWithoutFormulaInput
|
|
logs?: Prisma.FormulaLogCreateNestedManyWithoutFormulaInput
|
|
}
|
|
|
|
export type FormulaUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
name: string
|
|
description?: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs?: boolean
|
|
components?: Prisma.FormulaComponentUncheckedCreateNestedManyWithoutFormulaInput
|
|
inProperties?: Prisma.PropertyUncheckedCreateNestedManyWithoutFormulaInput
|
|
logs?: Prisma.FormulaLogUncheckedCreateNestedManyWithoutFormulaInput
|
|
}
|
|
|
|
export type FormulaUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
components?: Prisma.FormulaComponentUpdateManyWithoutFormulaNestedInput
|
|
inProperties?: Prisma.PropertyUpdateManyWithoutFormulaNestedInput
|
|
logs?: Prisma.FormulaLogUpdateManyWithoutFormulaNestedInput
|
|
}
|
|
|
|
export type FormulaUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
components?: Prisma.FormulaComponentUncheckedUpdateManyWithoutFormulaNestedInput
|
|
inProperties?: Prisma.PropertyUncheckedUpdateManyWithoutFormulaNestedInput
|
|
logs?: Prisma.FormulaLogUncheckedUpdateManyWithoutFormulaNestedInput
|
|
}
|
|
|
|
export type FormulaCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
name: string
|
|
description?: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs?: boolean
|
|
}
|
|
|
|
export type FormulaUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type FormulaUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type FormulaNullableScalarRelationFilter = {
|
|
is?: Prisma.FormulaWhereInput | null
|
|
isNot?: Prisma.FormulaWhereInput | null
|
|
}
|
|
|
|
export type FormulaCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
resultAs?: Prisma.SortOrder
|
|
calculationTrigger?: Prisma.SortOrder
|
|
withLogs?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormulaMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
resultAs?: Prisma.SortOrder
|
|
calculationTrigger?: Prisma.SortOrder
|
|
withLogs?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormulaMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
resultAs?: Prisma.SortOrder
|
|
calculationTrigger?: Prisma.SortOrder
|
|
withLogs?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormulaScalarRelationFilter = {
|
|
is?: Prisma.FormulaWhereInput
|
|
isNot?: Prisma.FormulaWhereInput
|
|
}
|
|
|
|
export type FormulaCreateNestedOneWithoutInPropertiesInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaCreateWithoutInPropertiesInput, Prisma.FormulaUncheckedCreateWithoutInPropertiesInput>
|
|
connectOrCreate?: Prisma.FormulaCreateOrConnectWithoutInPropertiesInput
|
|
connect?: Prisma.FormulaWhereUniqueInput
|
|
}
|
|
|
|
export type FormulaUpdateOneWithoutInPropertiesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaCreateWithoutInPropertiesInput, Prisma.FormulaUncheckedCreateWithoutInPropertiesInput>
|
|
connectOrCreate?: Prisma.FormulaCreateOrConnectWithoutInPropertiesInput
|
|
upsert?: Prisma.FormulaUpsertWithoutInPropertiesInput
|
|
disconnect?: Prisma.FormulaWhereInput | boolean
|
|
delete?: Prisma.FormulaWhereInput | boolean
|
|
connect?: Prisma.FormulaWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.FormulaUpdateToOneWithWhereWithoutInPropertiesInput, Prisma.FormulaUpdateWithoutInPropertiesInput>, Prisma.FormulaUncheckedUpdateWithoutInPropertiesInput>
|
|
}
|
|
|
|
export type FormulaCreateNestedOneWithoutComponentsInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaCreateWithoutComponentsInput, Prisma.FormulaUncheckedCreateWithoutComponentsInput>
|
|
connectOrCreate?: Prisma.FormulaCreateOrConnectWithoutComponentsInput
|
|
connect?: Prisma.FormulaWhereUniqueInput
|
|
}
|
|
|
|
export type FormulaUpdateOneRequiredWithoutComponentsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaCreateWithoutComponentsInput, Prisma.FormulaUncheckedCreateWithoutComponentsInput>
|
|
connectOrCreate?: Prisma.FormulaCreateOrConnectWithoutComponentsInput
|
|
upsert?: Prisma.FormulaUpsertWithoutComponentsInput
|
|
connect?: Prisma.FormulaWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.FormulaUpdateToOneWithWhereWithoutComponentsInput, Prisma.FormulaUpdateWithoutComponentsInput>, Prisma.FormulaUncheckedUpdateWithoutComponentsInput>
|
|
}
|
|
|
|
export type FormulaCreateNestedOneWithoutLogsInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaCreateWithoutLogsInput, Prisma.FormulaUncheckedCreateWithoutLogsInput>
|
|
connectOrCreate?: Prisma.FormulaCreateOrConnectWithoutLogsInput
|
|
connect?: Prisma.FormulaWhereUniqueInput
|
|
}
|
|
|
|
export type FormulaUpdateOneRequiredWithoutLogsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaCreateWithoutLogsInput, Prisma.FormulaUncheckedCreateWithoutLogsInput>
|
|
connectOrCreate?: Prisma.FormulaCreateOrConnectWithoutLogsInput
|
|
upsert?: Prisma.FormulaUpsertWithoutLogsInput
|
|
connect?: Prisma.FormulaWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.FormulaUpdateToOneWithWhereWithoutLogsInput, Prisma.FormulaUpdateWithoutLogsInput>, Prisma.FormulaUncheckedUpdateWithoutLogsInput>
|
|
}
|
|
|
|
export type FormulaCreateWithoutInPropertiesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
name: string
|
|
description?: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs?: boolean
|
|
components?: Prisma.FormulaComponentCreateNestedManyWithoutFormulaInput
|
|
logs?: Prisma.FormulaLogCreateNestedManyWithoutFormulaInput
|
|
}
|
|
|
|
export type FormulaUncheckedCreateWithoutInPropertiesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
name: string
|
|
description?: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs?: boolean
|
|
components?: Prisma.FormulaComponentUncheckedCreateNestedManyWithoutFormulaInput
|
|
logs?: Prisma.FormulaLogUncheckedCreateNestedManyWithoutFormulaInput
|
|
}
|
|
|
|
export type FormulaCreateOrConnectWithoutInPropertiesInput = {
|
|
where: Prisma.FormulaWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.FormulaCreateWithoutInPropertiesInput, Prisma.FormulaUncheckedCreateWithoutInPropertiesInput>
|
|
}
|
|
|
|
export type FormulaUpsertWithoutInPropertiesInput = {
|
|
update: Prisma.XOR<Prisma.FormulaUpdateWithoutInPropertiesInput, Prisma.FormulaUncheckedUpdateWithoutInPropertiesInput>
|
|
create: Prisma.XOR<Prisma.FormulaCreateWithoutInPropertiesInput, Prisma.FormulaUncheckedCreateWithoutInPropertiesInput>
|
|
where?: Prisma.FormulaWhereInput
|
|
}
|
|
|
|
export type FormulaUpdateToOneWithWhereWithoutInPropertiesInput = {
|
|
where?: Prisma.FormulaWhereInput
|
|
data: Prisma.XOR<Prisma.FormulaUpdateWithoutInPropertiesInput, Prisma.FormulaUncheckedUpdateWithoutInPropertiesInput>
|
|
}
|
|
|
|
export type FormulaUpdateWithoutInPropertiesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
components?: Prisma.FormulaComponentUpdateManyWithoutFormulaNestedInput
|
|
logs?: Prisma.FormulaLogUpdateManyWithoutFormulaNestedInput
|
|
}
|
|
|
|
export type FormulaUncheckedUpdateWithoutInPropertiesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
components?: Prisma.FormulaComponentUncheckedUpdateManyWithoutFormulaNestedInput
|
|
logs?: Prisma.FormulaLogUncheckedUpdateManyWithoutFormulaNestedInput
|
|
}
|
|
|
|
export type FormulaCreateWithoutComponentsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
name: string
|
|
description?: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs?: boolean
|
|
inProperties?: Prisma.PropertyCreateNestedManyWithoutFormulaInput
|
|
logs?: Prisma.FormulaLogCreateNestedManyWithoutFormulaInput
|
|
}
|
|
|
|
export type FormulaUncheckedCreateWithoutComponentsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
name: string
|
|
description?: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs?: boolean
|
|
inProperties?: Prisma.PropertyUncheckedCreateNestedManyWithoutFormulaInput
|
|
logs?: Prisma.FormulaLogUncheckedCreateNestedManyWithoutFormulaInput
|
|
}
|
|
|
|
export type FormulaCreateOrConnectWithoutComponentsInput = {
|
|
where: Prisma.FormulaWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.FormulaCreateWithoutComponentsInput, Prisma.FormulaUncheckedCreateWithoutComponentsInput>
|
|
}
|
|
|
|
export type FormulaUpsertWithoutComponentsInput = {
|
|
update: Prisma.XOR<Prisma.FormulaUpdateWithoutComponentsInput, Prisma.FormulaUncheckedUpdateWithoutComponentsInput>
|
|
create: Prisma.XOR<Prisma.FormulaCreateWithoutComponentsInput, Prisma.FormulaUncheckedCreateWithoutComponentsInput>
|
|
where?: Prisma.FormulaWhereInput
|
|
}
|
|
|
|
export type FormulaUpdateToOneWithWhereWithoutComponentsInput = {
|
|
where?: Prisma.FormulaWhereInput
|
|
data: Prisma.XOR<Prisma.FormulaUpdateWithoutComponentsInput, Prisma.FormulaUncheckedUpdateWithoutComponentsInput>
|
|
}
|
|
|
|
export type FormulaUpdateWithoutComponentsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
inProperties?: Prisma.PropertyUpdateManyWithoutFormulaNestedInput
|
|
logs?: Prisma.FormulaLogUpdateManyWithoutFormulaNestedInput
|
|
}
|
|
|
|
export type FormulaUncheckedUpdateWithoutComponentsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
inProperties?: Prisma.PropertyUncheckedUpdateManyWithoutFormulaNestedInput
|
|
logs?: Prisma.FormulaLogUncheckedUpdateManyWithoutFormulaNestedInput
|
|
}
|
|
|
|
export type FormulaCreateWithoutLogsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
name: string
|
|
description?: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs?: boolean
|
|
components?: Prisma.FormulaComponentCreateNestedManyWithoutFormulaInput
|
|
inProperties?: Prisma.PropertyCreateNestedManyWithoutFormulaInput
|
|
}
|
|
|
|
export type FormulaUncheckedCreateWithoutLogsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
name: string
|
|
description?: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs?: boolean
|
|
components?: Prisma.FormulaComponentUncheckedCreateNestedManyWithoutFormulaInput
|
|
inProperties?: Prisma.PropertyUncheckedCreateNestedManyWithoutFormulaInput
|
|
}
|
|
|
|
export type FormulaCreateOrConnectWithoutLogsInput = {
|
|
where: Prisma.FormulaWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.FormulaCreateWithoutLogsInput, Prisma.FormulaUncheckedCreateWithoutLogsInput>
|
|
}
|
|
|
|
export type FormulaUpsertWithoutLogsInput = {
|
|
update: Prisma.XOR<Prisma.FormulaUpdateWithoutLogsInput, Prisma.FormulaUncheckedUpdateWithoutLogsInput>
|
|
create: Prisma.XOR<Prisma.FormulaCreateWithoutLogsInput, Prisma.FormulaUncheckedCreateWithoutLogsInput>
|
|
where?: Prisma.FormulaWhereInput
|
|
}
|
|
|
|
export type FormulaUpdateToOneWithWhereWithoutLogsInput = {
|
|
where?: Prisma.FormulaWhereInput
|
|
data: Prisma.XOR<Prisma.FormulaUpdateWithoutLogsInput, Prisma.FormulaUncheckedUpdateWithoutLogsInput>
|
|
}
|
|
|
|
export type FormulaUpdateWithoutLogsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
components?: Prisma.FormulaComponentUpdateManyWithoutFormulaNestedInput
|
|
inProperties?: Prisma.PropertyUpdateManyWithoutFormulaNestedInput
|
|
}
|
|
|
|
export type FormulaUncheckedUpdateWithoutLogsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultAs?: Prisma.StringFieldUpdateOperationsInput | string
|
|
calculationTrigger?: Prisma.StringFieldUpdateOperationsInput | string
|
|
withLogs?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
components?: Prisma.FormulaComponentUncheckedUpdateManyWithoutFormulaNestedInput
|
|
inProperties?: Prisma.PropertyUncheckedUpdateManyWithoutFormulaNestedInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type FormulaCountOutputType
|
|
*/
|
|
|
|
export type FormulaCountOutputType = {
|
|
components: number
|
|
inProperties: number
|
|
logs: number
|
|
}
|
|
|
|
export type FormulaCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
components?: boolean | FormulaCountOutputTypeCountComponentsArgs
|
|
inProperties?: boolean | FormulaCountOutputTypeCountInPropertiesArgs
|
|
logs?: boolean | FormulaCountOutputTypeCountLogsArgs
|
|
}
|
|
|
|
/**
|
|
* FormulaCountOutputType without action
|
|
*/
|
|
export type FormulaCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaCountOutputType
|
|
*/
|
|
select?: Prisma.FormulaCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* FormulaCountOutputType without action
|
|
*/
|
|
export type FormulaCountOutputTypeCountComponentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
}
|
|
|
|
/**
|
|
* FormulaCountOutputType without action
|
|
*/
|
|
export type FormulaCountOutputTypeCountInPropertiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.PropertyWhereInput
|
|
}
|
|
|
|
/**
|
|
* FormulaCountOutputType without action
|
|
*/
|
|
export type FormulaCountOutputTypeCountLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FormulaLogWhereInput
|
|
}
|
|
|
|
|
|
export type FormulaSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
resultAs?: boolean
|
|
calculationTrigger?: boolean
|
|
withLogs?: boolean
|
|
components?: boolean | Prisma.Formula$componentsArgs<ExtArgs>
|
|
inProperties?: boolean | Prisma.Formula$inPropertiesArgs<ExtArgs>
|
|
logs?: boolean | Prisma.Formula$logsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.FormulaCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["formula"]>
|
|
|
|
export type FormulaSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
resultAs?: boolean
|
|
calculationTrigger?: boolean
|
|
withLogs?: boolean
|
|
}, ExtArgs["result"]["formula"]>
|
|
|
|
export type FormulaSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
resultAs?: boolean
|
|
calculationTrigger?: boolean
|
|
withLogs?: boolean
|
|
}, ExtArgs["result"]["formula"]>
|
|
|
|
export type FormulaSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
resultAs?: boolean
|
|
calculationTrigger?: boolean
|
|
withLogs?: boolean
|
|
}
|
|
|
|
export type FormulaOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "name" | "description" | "resultAs" | "calculationTrigger" | "withLogs", ExtArgs["result"]["formula"]>
|
|
export type FormulaInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
components?: boolean | Prisma.Formula$componentsArgs<ExtArgs>
|
|
inProperties?: boolean | Prisma.Formula$inPropertiesArgs<ExtArgs>
|
|
logs?: boolean | Prisma.Formula$logsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.FormulaCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type FormulaIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type FormulaIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $FormulaPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Formula"
|
|
objects: {
|
|
components: Prisma.$FormulaComponentPayload<ExtArgs>[]
|
|
inProperties: Prisma.$PropertyPayload<ExtArgs>[]
|
|
logs: Prisma.$FormulaLogPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
name: string
|
|
description: string | null
|
|
resultAs: string
|
|
calculationTrigger: string
|
|
withLogs: boolean
|
|
}, ExtArgs["result"]["formula"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type FormulaGetPayload<S extends boolean | null | undefined | FormulaDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FormulaPayload, S>
|
|
|
|
export type FormulaCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<FormulaFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: FormulaCountAggregateInputType | true
|
|
}
|
|
|
|
export interface FormulaDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Formula'], meta: { name: 'Formula' } }
|
|
/**
|
|
* Find zero or one Formula that matches the filter.
|
|
* @param {FormulaFindUniqueArgs} args - Arguments to find a Formula
|
|
* @example
|
|
* // Get one Formula
|
|
* const formula = await prisma.formula.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends FormulaFindUniqueArgs>(args: Prisma.SelectSubset<T, FormulaFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FormulaClient<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Formula that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {FormulaFindUniqueOrThrowArgs} args - Arguments to find a Formula
|
|
* @example
|
|
* // Get one Formula
|
|
* const formula = await prisma.formula.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends FormulaFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FormulaFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FormulaClient<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Formula 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 {FormulaFindFirstArgs} args - Arguments to find a Formula
|
|
* @example
|
|
* // Get one Formula
|
|
* const formula = await prisma.formula.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends FormulaFindFirstArgs>(args?: Prisma.SelectSubset<T, FormulaFindFirstArgs<ExtArgs>>): Prisma.Prisma__FormulaClient<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Formula 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 {FormulaFindFirstOrThrowArgs} args - Arguments to find a Formula
|
|
* @example
|
|
* // Get one Formula
|
|
* const formula = await prisma.formula.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends FormulaFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FormulaFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FormulaClient<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Formulas 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 {FormulaFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Formulas
|
|
* const formulas = await prisma.formula.findMany()
|
|
*
|
|
* // Get first 10 Formulas
|
|
* const formulas = await prisma.formula.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const formulaWithIdOnly = await prisma.formula.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends FormulaFindManyArgs>(args?: Prisma.SelectSubset<T, FormulaFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Formula.
|
|
* @param {FormulaCreateArgs} args - Arguments to create a Formula.
|
|
* @example
|
|
* // Create one Formula
|
|
* const Formula = await prisma.formula.create({
|
|
* data: {
|
|
* // ... data to create a Formula
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends FormulaCreateArgs>(args: Prisma.SelectSubset<T, FormulaCreateArgs<ExtArgs>>): Prisma.Prisma__FormulaClient<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Formulas.
|
|
* @param {FormulaCreateManyArgs} args - Arguments to create many Formulas.
|
|
* @example
|
|
* // Create many Formulas
|
|
* const formula = await prisma.formula.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends FormulaCreateManyArgs>(args?: Prisma.SelectSubset<T, FormulaCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Formulas and returns the data saved in the database.
|
|
* @param {FormulaCreateManyAndReturnArgs} args - Arguments to create many Formulas.
|
|
* @example
|
|
* // Create many Formulas
|
|
* const formula = await prisma.formula.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Formulas and only return the `id`
|
|
* const formulaWithIdOnly = await prisma.formula.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 FormulaCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FormulaCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Formula.
|
|
* @param {FormulaDeleteArgs} args - Arguments to delete one Formula.
|
|
* @example
|
|
* // Delete one Formula
|
|
* const Formula = await prisma.formula.delete({
|
|
* where: {
|
|
* // ... filter to delete one Formula
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends FormulaDeleteArgs>(args: Prisma.SelectSubset<T, FormulaDeleteArgs<ExtArgs>>): Prisma.Prisma__FormulaClient<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Formula.
|
|
* @param {FormulaUpdateArgs} args - Arguments to update one Formula.
|
|
* @example
|
|
* // Update one Formula
|
|
* const formula = await prisma.formula.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends FormulaUpdateArgs>(args: Prisma.SelectSubset<T, FormulaUpdateArgs<ExtArgs>>): Prisma.Prisma__FormulaClient<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Formulas.
|
|
* @param {FormulaDeleteManyArgs} args - Arguments to filter Formulas to delete.
|
|
* @example
|
|
* // Delete a few Formulas
|
|
* const { count } = await prisma.formula.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends FormulaDeleteManyArgs>(args?: Prisma.SelectSubset<T, FormulaDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Formulas.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormulaUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Formulas
|
|
* const formula = await prisma.formula.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends FormulaUpdateManyArgs>(args: Prisma.SelectSubset<T, FormulaUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Formulas and returns the data updated in the database.
|
|
* @param {FormulaUpdateManyAndReturnArgs} args - Arguments to update many Formulas.
|
|
* @example
|
|
* // Update many Formulas
|
|
* const formula = await prisma.formula.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Formulas and only return the `id`
|
|
* const formulaWithIdOnly = await prisma.formula.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 FormulaUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FormulaUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Formula.
|
|
* @param {FormulaUpsertArgs} args - Arguments to update or create a Formula.
|
|
* @example
|
|
* // Update or create a Formula
|
|
* const formula = await prisma.formula.upsert({
|
|
* create: {
|
|
* // ... data to create a Formula
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Formula we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends FormulaUpsertArgs>(args: Prisma.SelectSubset<T, FormulaUpsertArgs<ExtArgs>>): Prisma.Prisma__FormulaClient<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Formulas.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormulaCountArgs} args - Arguments to filter Formulas to count.
|
|
* @example
|
|
* // Count the number of Formulas
|
|
* const count = await prisma.formula.count({
|
|
* where: {
|
|
* // ... the filter for the Formulas we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends FormulaCountArgs>(
|
|
args?: Prisma.Subset<T, FormulaCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], FormulaCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Formula.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormulaAggregateArgs} 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 FormulaAggregateArgs>(args: Prisma.Subset<T, FormulaAggregateArgs>): Prisma.PrismaPromise<GetFormulaAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Formula.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormulaGroupByArgs} 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 FormulaGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: FormulaGroupByArgs['orderBy'] }
|
|
: { orderBy?: FormulaGroupByArgs['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, FormulaGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFormulaGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Formula model
|
|
*/
|
|
readonly fields: FormulaFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Formula.
|
|
* 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__FormulaClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
components<T extends Prisma.Formula$componentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Formula$componentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
inProperties<T extends Prisma.Formula$inPropertiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Formula$inPropertiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
logs<T extends Prisma.Formula$logsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Formula$logsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormulaLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<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 Formula model
|
|
*/
|
|
export interface FormulaFieldRefs {
|
|
readonly id: Prisma.FieldRef<"Formula", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"Formula", 'DateTime'>
|
|
readonly name: Prisma.FieldRef<"Formula", 'String'>
|
|
readonly description: Prisma.FieldRef<"Formula", 'String'>
|
|
readonly resultAs: Prisma.FieldRef<"Formula", 'String'>
|
|
readonly calculationTrigger: Prisma.FieldRef<"Formula", 'String'>
|
|
readonly withLogs: Prisma.FieldRef<"Formula", 'Boolean'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Formula findUnique
|
|
*/
|
|
export type FormulaFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Formula to fetch.
|
|
*/
|
|
where: Prisma.FormulaWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Formula findUniqueOrThrow
|
|
*/
|
|
export type FormulaFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Formula to fetch.
|
|
*/
|
|
where: Prisma.FormulaWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Formula findFirst
|
|
*/
|
|
export type FormulaFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Formula to fetch.
|
|
*/
|
|
where?: Prisma.FormulaWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Formulas to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormulaOrderByWithRelationInput | Prisma.FormulaOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Formulas.
|
|
*/
|
|
cursor?: Prisma.FormulaWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Formulas 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` Formulas.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Formulas.
|
|
*/
|
|
distinct?: Prisma.FormulaScalarFieldEnum | Prisma.FormulaScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Formula findFirstOrThrow
|
|
*/
|
|
export type FormulaFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Formula to fetch.
|
|
*/
|
|
where?: Prisma.FormulaWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Formulas to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormulaOrderByWithRelationInput | Prisma.FormulaOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Formulas.
|
|
*/
|
|
cursor?: Prisma.FormulaWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Formulas 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` Formulas.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Formulas.
|
|
*/
|
|
distinct?: Prisma.FormulaScalarFieldEnum | Prisma.FormulaScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Formula findMany
|
|
*/
|
|
export type FormulaFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Formulas to fetch.
|
|
*/
|
|
where?: Prisma.FormulaWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Formulas to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormulaOrderByWithRelationInput | Prisma.FormulaOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Formulas.
|
|
*/
|
|
cursor?: Prisma.FormulaWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Formulas 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` Formulas.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Formulas.
|
|
*/
|
|
distinct?: Prisma.FormulaScalarFieldEnum | Prisma.FormulaScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Formula create
|
|
*/
|
|
export type FormulaCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Formula.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormulaCreateInput, Prisma.FormulaUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Formula createMany
|
|
*/
|
|
export type FormulaCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Formulas.
|
|
*/
|
|
data: Prisma.FormulaCreateManyInput | Prisma.FormulaCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Formula createManyAndReturn
|
|
*/
|
|
export type FormulaCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Formulas.
|
|
*/
|
|
data: Prisma.FormulaCreateManyInput | Prisma.FormulaCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Formula update
|
|
*/
|
|
export type FormulaUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Formula.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormulaUpdateInput, Prisma.FormulaUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Formula to update.
|
|
*/
|
|
where: Prisma.FormulaWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Formula updateMany
|
|
*/
|
|
export type FormulaUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Formulas.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormulaUpdateManyMutationInput, Prisma.FormulaUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Formulas to update
|
|
*/
|
|
where?: Prisma.FormulaWhereInput
|
|
/**
|
|
* Limit how many Formulas to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Formula updateManyAndReturn
|
|
*/
|
|
export type FormulaUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Formulas.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormulaUpdateManyMutationInput, Prisma.FormulaUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Formulas to update
|
|
*/
|
|
where?: Prisma.FormulaWhereInput
|
|
/**
|
|
* Limit how many Formulas to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Formula upsert
|
|
*/
|
|
export type FormulaUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Formula to update in case it exists.
|
|
*/
|
|
where: Prisma.FormulaWhereUniqueInput
|
|
/**
|
|
* In case the Formula found by the `where` argument doesn't exist, create a new Formula with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.FormulaCreateInput, Prisma.FormulaUncheckedCreateInput>
|
|
/**
|
|
* In case the Formula was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.FormulaUpdateInput, Prisma.FormulaUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Formula delete
|
|
*/
|
|
export type FormulaDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Formula to delete.
|
|
*/
|
|
where: Prisma.FormulaWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Formula deleteMany
|
|
*/
|
|
export type FormulaDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Formulas to delete
|
|
*/
|
|
where?: Prisma.FormulaWhereInput
|
|
/**
|
|
* Limit how many Formulas to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Formula.components
|
|
*/
|
|
export type Formula$componentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
orderBy?: Prisma.FormulaComponentOrderByWithRelationInput | Prisma.FormulaComponentOrderByWithRelationInput[]
|
|
cursor?: Prisma.FormulaComponentWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.FormulaComponentScalarFieldEnum | Prisma.FormulaComponentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Formula.inProperties
|
|
*/
|
|
export type Formula$inPropertiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Property
|
|
*/
|
|
select?: Prisma.PropertySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Property
|
|
*/
|
|
omit?: Prisma.PropertyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyInclude<ExtArgs> | null
|
|
where?: Prisma.PropertyWhereInput
|
|
orderBy?: Prisma.PropertyOrderByWithRelationInput | Prisma.PropertyOrderByWithRelationInput[]
|
|
cursor?: Prisma.PropertyWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.PropertyScalarFieldEnum | Prisma.PropertyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Formula.logs
|
|
*/
|
|
export type Formula$logsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaLog
|
|
*/
|
|
select?: Prisma.FormulaLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaLog
|
|
*/
|
|
omit?: Prisma.FormulaLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaLogInclude<ExtArgs> | null
|
|
where?: Prisma.FormulaLogWhereInput
|
|
orderBy?: Prisma.FormulaLogOrderByWithRelationInput | Prisma.FormulaLogOrderByWithRelationInput[]
|
|
cursor?: Prisma.FormulaLogWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.FormulaLogScalarFieldEnum | Prisma.FormulaLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Formula without action
|
|
*/
|
|
export type FormulaDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Formula
|
|
*/
|
|
select?: Prisma.FormulaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Formula
|
|
*/
|
|
omit?: Prisma.FormulaOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaInclude<ExtArgs> | null
|
|
}
|