Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/EntityTemplate.ts
T

1533 lines
61 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 `EntityTemplate` 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 EntityTemplate
*
*/
export type EntityTemplateModel = runtime.Types.Result.DefaultSelection<Prisma.$EntityTemplatePayload>
export type AggregateEntityTemplate = {
_count: EntityTemplateCountAggregateOutputType | null
_min: EntityTemplateMinAggregateOutputType | null
_max: EntityTemplateMaxAggregateOutputType | null
}
export type EntityTemplateMinAggregateOutputType = {
id: string | null
createdAt: Date | null
tenantId: string | null
entityId: string | null
title: string | null
config: string | null
}
export type EntityTemplateMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
tenantId: string | null
entityId: string | null
title: string | null
config: string | null
}
export type EntityTemplateCountAggregateOutputType = {
id: number
createdAt: number
tenantId: number
entityId: number
title: number
config: number
_all: number
}
export type EntityTemplateMinAggregateInputType = {
id?: true
createdAt?: true
tenantId?: true
entityId?: true
title?: true
config?: true
}
export type EntityTemplateMaxAggregateInputType = {
id?: true
createdAt?: true
tenantId?: true
entityId?: true
title?: true
config?: true
}
export type EntityTemplateCountAggregateInputType = {
id?: true
createdAt?: true
tenantId?: true
entityId?: true
title?: true
config?: true
_all?: true
}
export type EntityTemplateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which EntityTemplate to aggregate.
*/
where?: Prisma.EntityTemplateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EntityTemplates to fetch.
*/
orderBy?: Prisma.EntityTemplateOrderByWithRelationInput | Prisma.EntityTemplateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.EntityTemplateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EntityTemplates 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` EntityTemplates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned EntityTemplates
**/
_count?: true | EntityTemplateCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: EntityTemplateMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: EntityTemplateMaxAggregateInputType
}
export type GetEntityTemplateAggregateType<T extends EntityTemplateAggregateArgs> = {
[P in keyof T & keyof AggregateEntityTemplate]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateEntityTemplate[P]>
: Prisma.GetScalarType<T[P], AggregateEntityTemplate[P]>
}
export type EntityTemplateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.EntityTemplateWhereInput
orderBy?: Prisma.EntityTemplateOrderByWithAggregationInput | Prisma.EntityTemplateOrderByWithAggregationInput[]
by: Prisma.EntityTemplateScalarFieldEnum[] | Prisma.EntityTemplateScalarFieldEnum
having?: Prisma.EntityTemplateScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: EntityTemplateCountAggregateInputType | true
_min?: EntityTemplateMinAggregateInputType
_max?: EntityTemplateMaxAggregateInputType
}
export type EntityTemplateGroupByOutputType = {
id: string
createdAt: Date
tenantId: string | null
entityId: string
title: string
config: string
_count: EntityTemplateCountAggregateOutputType | null
_min: EntityTemplateMinAggregateOutputType | null
_max: EntityTemplateMaxAggregateOutputType | null
}
export type GetEntityTemplateGroupByPayload<T extends EntityTemplateGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<EntityTemplateGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof EntityTemplateGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], EntityTemplateGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], EntityTemplateGroupByOutputType[P]>
}
>
>
export type EntityTemplateWhereInput = {
AND?: Prisma.EntityTemplateWhereInput | Prisma.EntityTemplateWhereInput[]
OR?: Prisma.EntityTemplateWhereInput[]
NOT?: Prisma.EntityTemplateWhereInput | Prisma.EntityTemplateWhereInput[]
id?: Prisma.StringFilter<"EntityTemplate"> | string
createdAt?: Prisma.DateTimeFilter<"EntityTemplate"> | Date | string
tenantId?: Prisma.StringNullableFilter<"EntityTemplate"> | string | null
entityId?: Prisma.StringFilter<"EntityTemplate"> | string
title?: Prisma.StringFilter<"EntityTemplate"> | string
config?: Prisma.StringFilter<"EntityTemplate"> | string
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
entity?: Prisma.XOR<Prisma.EntityScalarRelationFilter, Prisma.EntityWhereInput>
}
export type EntityTemplateOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
entityId?: Prisma.SortOrder
title?: Prisma.SortOrder
config?: Prisma.SortOrder
tenant?: Prisma.TenantOrderByWithRelationInput
entity?: Prisma.EntityOrderByWithRelationInput
}
export type EntityTemplateWhereUniqueInput = Prisma.AtLeast<{
id?: string
tenantId_entityId_title?: Prisma.EntityTemplateTenantIdEntityIdTitleCompoundUniqueInput
AND?: Prisma.EntityTemplateWhereInput | Prisma.EntityTemplateWhereInput[]
OR?: Prisma.EntityTemplateWhereInput[]
NOT?: Prisma.EntityTemplateWhereInput | Prisma.EntityTemplateWhereInput[]
createdAt?: Prisma.DateTimeFilter<"EntityTemplate"> | Date | string
tenantId?: Prisma.StringNullableFilter<"EntityTemplate"> | string | null
entityId?: Prisma.StringFilter<"EntityTemplate"> | string
title?: Prisma.StringFilter<"EntityTemplate"> | string
config?: Prisma.StringFilter<"EntityTemplate"> | string
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
entity?: Prisma.XOR<Prisma.EntityScalarRelationFilter, Prisma.EntityWhereInput>
}, "id" | "tenantId_entityId_title">
export type EntityTemplateOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
entityId?: Prisma.SortOrder
title?: Prisma.SortOrder
config?: Prisma.SortOrder
_count?: Prisma.EntityTemplateCountOrderByAggregateInput
_max?: Prisma.EntityTemplateMaxOrderByAggregateInput
_min?: Prisma.EntityTemplateMinOrderByAggregateInput
}
export type EntityTemplateScalarWhereWithAggregatesInput = {
AND?: Prisma.EntityTemplateScalarWhereWithAggregatesInput | Prisma.EntityTemplateScalarWhereWithAggregatesInput[]
OR?: Prisma.EntityTemplateScalarWhereWithAggregatesInput[]
NOT?: Prisma.EntityTemplateScalarWhereWithAggregatesInput | Prisma.EntityTemplateScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"EntityTemplate"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"EntityTemplate"> | Date | string
tenantId?: Prisma.StringNullableWithAggregatesFilter<"EntityTemplate"> | string | null
entityId?: Prisma.StringWithAggregatesFilter<"EntityTemplate"> | string
title?: Prisma.StringWithAggregatesFilter<"EntityTemplate"> | string
config?: Prisma.StringWithAggregatesFilter<"EntityTemplate"> | string
}
export type EntityTemplateCreateInput = {
id?: string
createdAt?: Date | string
title: string
config: string
tenant?: Prisma.TenantCreateNestedOneWithoutEntityTemplatesInput
entity: Prisma.EntityCreateNestedOneWithoutTemplatesInput
}
export type EntityTemplateUncheckedCreateInput = {
id?: string
createdAt?: Date | string
tenantId?: string | null
entityId: string
title: string
config: string
}
export type EntityTemplateUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
tenant?: Prisma.TenantUpdateOneWithoutEntityTemplatesNestedInput
entity?: Prisma.EntityUpdateOneRequiredWithoutTemplatesNestedInput
}
export type EntityTemplateUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
entityId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
}
export type EntityTemplateCreateManyInput = {
id?: string
createdAt?: Date | string
tenantId?: string | null
entityId: string
title: string
config: string
}
export type EntityTemplateUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
}
export type EntityTemplateUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
entityId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
}
export type EntityTemplateListRelationFilter = {
every?: Prisma.EntityTemplateWhereInput
some?: Prisma.EntityTemplateWhereInput
none?: Prisma.EntityTemplateWhereInput
}
export type EntityTemplateOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type EntityTemplateTenantIdEntityIdTitleCompoundUniqueInput = {
tenantId: string
entityId: string
title: string
}
export type EntityTemplateCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
entityId?: Prisma.SortOrder
title?: Prisma.SortOrder
config?: Prisma.SortOrder
}
export type EntityTemplateMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
entityId?: Prisma.SortOrder
title?: Prisma.SortOrder
config?: Prisma.SortOrder
}
export type EntityTemplateMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
entityId?: Prisma.SortOrder
title?: Prisma.SortOrder
config?: Prisma.SortOrder
}
export type EntityTemplateCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.EntityTemplateCreateWithoutTenantInput, Prisma.EntityTemplateUncheckedCreateWithoutTenantInput> | Prisma.EntityTemplateCreateWithoutTenantInput[] | Prisma.EntityTemplateUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.EntityTemplateCreateOrConnectWithoutTenantInput | Prisma.EntityTemplateCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.EntityTemplateCreateManyTenantInputEnvelope
connect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
}
export type EntityTemplateUncheckedCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.EntityTemplateCreateWithoutTenantInput, Prisma.EntityTemplateUncheckedCreateWithoutTenantInput> | Prisma.EntityTemplateCreateWithoutTenantInput[] | Prisma.EntityTemplateUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.EntityTemplateCreateOrConnectWithoutTenantInput | Prisma.EntityTemplateCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.EntityTemplateCreateManyTenantInputEnvelope
connect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
}
export type EntityTemplateUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.EntityTemplateCreateWithoutTenantInput, Prisma.EntityTemplateUncheckedCreateWithoutTenantInput> | Prisma.EntityTemplateCreateWithoutTenantInput[] | Prisma.EntityTemplateUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.EntityTemplateCreateOrConnectWithoutTenantInput | Prisma.EntityTemplateCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.EntityTemplateUpsertWithWhereUniqueWithoutTenantInput | Prisma.EntityTemplateUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.EntityTemplateCreateManyTenantInputEnvelope
set?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
disconnect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
delete?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
connect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
update?: Prisma.EntityTemplateUpdateWithWhereUniqueWithoutTenantInput | Prisma.EntityTemplateUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.EntityTemplateUpdateManyWithWhereWithoutTenantInput | Prisma.EntityTemplateUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.EntityTemplateScalarWhereInput | Prisma.EntityTemplateScalarWhereInput[]
}
export type EntityTemplateUncheckedUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.EntityTemplateCreateWithoutTenantInput, Prisma.EntityTemplateUncheckedCreateWithoutTenantInput> | Prisma.EntityTemplateCreateWithoutTenantInput[] | Prisma.EntityTemplateUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.EntityTemplateCreateOrConnectWithoutTenantInput | Prisma.EntityTemplateCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.EntityTemplateUpsertWithWhereUniqueWithoutTenantInput | Prisma.EntityTemplateUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.EntityTemplateCreateManyTenantInputEnvelope
set?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
disconnect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
delete?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
connect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
update?: Prisma.EntityTemplateUpdateWithWhereUniqueWithoutTenantInput | Prisma.EntityTemplateUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.EntityTemplateUpdateManyWithWhereWithoutTenantInput | Prisma.EntityTemplateUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.EntityTemplateScalarWhereInput | Prisma.EntityTemplateScalarWhereInput[]
}
export type EntityTemplateCreateNestedManyWithoutEntityInput = {
create?: Prisma.XOR<Prisma.EntityTemplateCreateWithoutEntityInput, Prisma.EntityTemplateUncheckedCreateWithoutEntityInput> | Prisma.EntityTemplateCreateWithoutEntityInput[] | Prisma.EntityTemplateUncheckedCreateWithoutEntityInput[]
connectOrCreate?: Prisma.EntityTemplateCreateOrConnectWithoutEntityInput | Prisma.EntityTemplateCreateOrConnectWithoutEntityInput[]
createMany?: Prisma.EntityTemplateCreateManyEntityInputEnvelope
connect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
}
export type EntityTemplateUncheckedCreateNestedManyWithoutEntityInput = {
create?: Prisma.XOR<Prisma.EntityTemplateCreateWithoutEntityInput, Prisma.EntityTemplateUncheckedCreateWithoutEntityInput> | Prisma.EntityTemplateCreateWithoutEntityInput[] | Prisma.EntityTemplateUncheckedCreateWithoutEntityInput[]
connectOrCreate?: Prisma.EntityTemplateCreateOrConnectWithoutEntityInput | Prisma.EntityTemplateCreateOrConnectWithoutEntityInput[]
createMany?: Prisma.EntityTemplateCreateManyEntityInputEnvelope
connect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
}
export type EntityTemplateUpdateManyWithoutEntityNestedInput = {
create?: Prisma.XOR<Prisma.EntityTemplateCreateWithoutEntityInput, Prisma.EntityTemplateUncheckedCreateWithoutEntityInput> | Prisma.EntityTemplateCreateWithoutEntityInput[] | Prisma.EntityTemplateUncheckedCreateWithoutEntityInput[]
connectOrCreate?: Prisma.EntityTemplateCreateOrConnectWithoutEntityInput | Prisma.EntityTemplateCreateOrConnectWithoutEntityInput[]
upsert?: Prisma.EntityTemplateUpsertWithWhereUniqueWithoutEntityInput | Prisma.EntityTemplateUpsertWithWhereUniqueWithoutEntityInput[]
createMany?: Prisma.EntityTemplateCreateManyEntityInputEnvelope
set?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
disconnect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
delete?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
connect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
update?: Prisma.EntityTemplateUpdateWithWhereUniqueWithoutEntityInput | Prisma.EntityTemplateUpdateWithWhereUniqueWithoutEntityInput[]
updateMany?: Prisma.EntityTemplateUpdateManyWithWhereWithoutEntityInput | Prisma.EntityTemplateUpdateManyWithWhereWithoutEntityInput[]
deleteMany?: Prisma.EntityTemplateScalarWhereInput | Prisma.EntityTemplateScalarWhereInput[]
}
export type EntityTemplateUncheckedUpdateManyWithoutEntityNestedInput = {
create?: Prisma.XOR<Prisma.EntityTemplateCreateWithoutEntityInput, Prisma.EntityTemplateUncheckedCreateWithoutEntityInput> | Prisma.EntityTemplateCreateWithoutEntityInput[] | Prisma.EntityTemplateUncheckedCreateWithoutEntityInput[]
connectOrCreate?: Prisma.EntityTemplateCreateOrConnectWithoutEntityInput | Prisma.EntityTemplateCreateOrConnectWithoutEntityInput[]
upsert?: Prisma.EntityTemplateUpsertWithWhereUniqueWithoutEntityInput | Prisma.EntityTemplateUpsertWithWhereUniqueWithoutEntityInput[]
createMany?: Prisma.EntityTemplateCreateManyEntityInputEnvelope
set?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
disconnect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
delete?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
connect?: Prisma.EntityTemplateWhereUniqueInput | Prisma.EntityTemplateWhereUniqueInput[]
update?: Prisma.EntityTemplateUpdateWithWhereUniqueWithoutEntityInput | Prisma.EntityTemplateUpdateWithWhereUniqueWithoutEntityInput[]
updateMany?: Prisma.EntityTemplateUpdateManyWithWhereWithoutEntityInput | Prisma.EntityTemplateUpdateManyWithWhereWithoutEntityInput[]
deleteMany?: Prisma.EntityTemplateScalarWhereInput | Prisma.EntityTemplateScalarWhereInput[]
}
export type EntityTemplateCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
title: string
config: string
entity: Prisma.EntityCreateNestedOneWithoutTemplatesInput
}
export type EntityTemplateUncheckedCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
entityId: string
title: string
config: string
}
export type EntityTemplateCreateOrConnectWithoutTenantInput = {
where: Prisma.EntityTemplateWhereUniqueInput
create: Prisma.XOR<Prisma.EntityTemplateCreateWithoutTenantInput, Prisma.EntityTemplateUncheckedCreateWithoutTenantInput>
}
export type EntityTemplateCreateManyTenantInputEnvelope = {
data: Prisma.EntityTemplateCreateManyTenantInput | Prisma.EntityTemplateCreateManyTenantInput[]
skipDuplicates?: boolean
}
export type EntityTemplateUpsertWithWhereUniqueWithoutTenantInput = {
where: Prisma.EntityTemplateWhereUniqueInput
update: Prisma.XOR<Prisma.EntityTemplateUpdateWithoutTenantInput, Prisma.EntityTemplateUncheckedUpdateWithoutTenantInput>
create: Prisma.XOR<Prisma.EntityTemplateCreateWithoutTenantInput, Prisma.EntityTemplateUncheckedCreateWithoutTenantInput>
}
export type EntityTemplateUpdateWithWhereUniqueWithoutTenantInput = {
where: Prisma.EntityTemplateWhereUniqueInput
data: Prisma.XOR<Prisma.EntityTemplateUpdateWithoutTenantInput, Prisma.EntityTemplateUncheckedUpdateWithoutTenantInput>
}
export type EntityTemplateUpdateManyWithWhereWithoutTenantInput = {
where: Prisma.EntityTemplateScalarWhereInput
data: Prisma.XOR<Prisma.EntityTemplateUpdateManyMutationInput, Prisma.EntityTemplateUncheckedUpdateManyWithoutTenantInput>
}
export type EntityTemplateScalarWhereInput = {
AND?: Prisma.EntityTemplateScalarWhereInput | Prisma.EntityTemplateScalarWhereInput[]
OR?: Prisma.EntityTemplateScalarWhereInput[]
NOT?: Prisma.EntityTemplateScalarWhereInput | Prisma.EntityTemplateScalarWhereInput[]
id?: Prisma.StringFilter<"EntityTemplate"> | string
createdAt?: Prisma.DateTimeFilter<"EntityTemplate"> | Date | string
tenantId?: Prisma.StringNullableFilter<"EntityTemplate"> | string | null
entityId?: Prisma.StringFilter<"EntityTemplate"> | string
title?: Prisma.StringFilter<"EntityTemplate"> | string
config?: Prisma.StringFilter<"EntityTemplate"> | string
}
export type EntityTemplateCreateWithoutEntityInput = {
id?: string
createdAt?: Date | string
title: string
config: string
tenant?: Prisma.TenantCreateNestedOneWithoutEntityTemplatesInput
}
export type EntityTemplateUncheckedCreateWithoutEntityInput = {
id?: string
createdAt?: Date | string
tenantId?: string | null
title: string
config: string
}
export type EntityTemplateCreateOrConnectWithoutEntityInput = {
where: Prisma.EntityTemplateWhereUniqueInput
create: Prisma.XOR<Prisma.EntityTemplateCreateWithoutEntityInput, Prisma.EntityTemplateUncheckedCreateWithoutEntityInput>
}
export type EntityTemplateCreateManyEntityInputEnvelope = {
data: Prisma.EntityTemplateCreateManyEntityInput | Prisma.EntityTemplateCreateManyEntityInput[]
skipDuplicates?: boolean
}
export type EntityTemplateUpsertWithWhereUniqueWithoutEntityInput = {
where: Prisma.EntityTemplateWhereUniqueInput
update: Prisma.XOR<Prisma.EntityTemplateUpdateWithoutEntityInput, Prisma.EntityTemplateUncheckedUpdateWithoutEntityInput>
create: Prisma.XOR<Prisma.EntityTemplateCreateWithoutEntityInput, Prisma.EntityTemplateUncheckedCreateWithoutEntityInput>
}
export type EntityTemplateUpdateWithWhereUniqueWithoutEntityInput = {
where: Prisma.EntityTemplateWhereUniqueInput
data: Prisma.XOR<Prisma.EntityTemplateUpdateWithoutEntityInput, Prisma.EntityTemplateUncheckedUpdateWithoutEntityInput>
}
export type EntityTemplateUpdateManyWithWhereWithoutEntityInput = {
where: Prisma.EntityTemplateScalarWhereInput
data: Prisma.XOR<Prisma.EntityTemplateUpdateManyMutationInput, Prisma.EntityTemplateUncheckedUpdateManyWithoutEntityInput>
}
export type EntityTemplateCreateManyTenantInput = {
id?: string
createdAt?: Date | string
entityId: string
title: string
config: string
}
export type EntityTemplateUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
entity?: Prisma.EntityUpdateOneRequiredWithoutTemplatesNestedInput
}
export type EntityTemplateUncheckedUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
entityId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
}
export type EntityTemplateUncheckedUpdateManyWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
entityId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
}
export type EntityTemplateCreateManyEntityInput = {
id?: string
createdAt?: Date | string
tenantId?: string | null
title: string
config: string
}
export type EntityTemplateUpdateWithoutEntityInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
tenant?: Prisma.TenantUpdateOneWithoutEntityTemplatesNestedInput
}
export type EntityTemplateUncheckedUpdateWithoutEntityInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
}
export type EntityTemplateUncheckedUpdateManyWithoutEntityInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
title?: Prisma.StringFieldUpdateOperationsInput | string
config?: Prisma.StringFieldUpdateOperationsInput | string
}
export type EntityTemplateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
tenantId?: boolean
entityId?: boolean
title?: boolean
config?: boolean
tenant?: boolean | Prisma.EntityTemplate$tenantArgs<ExtArgs>
entity?: boolean | Prisma.EntityDefaultArgs<ExtArgs>
}, ExtArgs["result"]["entityTemplate"]>
export type EntityTemplateSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
tenantId?: boolean
entityId?: boolean
title?: boolean
config?: boolean
tenant?: boolean | Prisma.EntityTemplate$tenantArgs<ExtArgs>
entity?: boolean | Prisma.EntityDefaultArgs<ExtArgs>
}, ExtArgs["result"]["entityTemplate"]>
export type EntityTemplateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
tenantId?: boolean
entityId?: boolean
title?: boolean
config?: boolean
tenant?: boolean | Prisma.EntityTemplate$tenantArgs<ExtArgs>
entity?: boolean | Prisma.EntityDefaultArgs<ExtArgs>
}, ExtArgs["result"]["entityTemplate"]>
export type EntityTemplateSelectScalar = {
id?: boolean
createdAt?: boolean
tenantId?: boolean
entityId?: boolean
title?: boolean
config?: boolean
}
export type EntityTemplateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "entityId" | "title" | "config", ExtArgs["result"]["entityTemplate"]>
export type EntityTemplateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.EntityTemplate$tenantArgs<ExtArgs>
entity?: boolean | Prisma.EntityDefaultArgs<ExtArgs>
}
export type EntityTemplateIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.EntityTemplate$tenantArgs<ExtArgs>
entity?: boolean | Prisma.EntityDefaultArgs<ExtArgs>
}
export type EntityTemplateIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.EntityTemplate$tenantArgs<ExtArgs>
entity?: boolean | Prisma.EntityDefaultArgs<ExtArgs>
}
export type $EntityTemplatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "EntityTemplate"
objects: {
tenant: Prisma.$TenantPayload<ExtArgs> | null
entity: Prisma.$EntityPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
tenantId: string | null
entityId: string
title: string
config: string
}, ExtArgs["result"]["entityTemplate"]>
composites: {}
}
export type EntityTemplateGetPayload<S extends boolean | null | undefined | EntityTemplateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload, S>
export type EntityTemplateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<EntityTemplateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: EntityTemplateCountAggregateInputType | true
}
export interface EntityTemplateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EntityTemplate'], meta: { name: 'EntityTemplate' } }
/**
* Find zero or one EntityTemplate that matches the filter.
* @param {EntityTemplateFindUniqueArgs} args - Arguments to find a EntityTemplate
* @example
* // Get one EntityTemplate
* const entityTemplate = await prisma.entityTemplate.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends EntityTemplateFindUniqueArgs>(args: Prisma.SelectSubset<T, EntityTemplateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__EntityTemplateClient<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one EntityTemplate that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {EntityTemplateFindUniqueOrThrowArgs} args - Arguments to find a EntityTemplate
* @example
* // Get one EntityTemplate
* const entityTemplate = await prisma.entityTemplate.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends EntityTemplateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, EntityTemplateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__EntityTemplateClient<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first EntityTemplate 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 {EntityTemplateFindFirstArgs} args - Arguments to find a EntityTemplate
* @example
* // Get one EntityTemplate
* const entityTemplate = await prisma.entityTemplate.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends EntityTemplateFindFirstArgs>(args?: Prisma.SelectSubset<T, EntityTemplateFindFirstArgs<ExtArgs>>): Prisma.Prisma__EntityTemplateClient<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first EntityTemplate 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 {EntityTemplateFindFirstOrThrowArgs} args - Arguments to find a EntityTemplate
* @example
* // Get one EntityTemplate
* const entityTemplate = await prisma.entityTemplate.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends EntityTemplateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, EntityTemplateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__EntityTemplateClient<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more EntityTemplates 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 {EntityTemplateFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all EntityTemplates
* const entityTemplates = await prisma.entityTemplate.findMany()
*
* // Get first 10 EntityTemplates
* const entityTemplates = await prisma.entityTemplate.findMany({ take: 10 })
*
* // Only select the `id`
* const entityTemplateWithIdOnly = await prisma.entityTemplate.findMany({ select: { id: true } })
*
*/
findMany<T extends EntityTemplateFindManyArgs>(args?: Prisma.SelectSubset<T, EntityTemplateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a EntityTemplate.
* @param {EntityTemplateCreateArgs} args - Arguments to create a EntityTemplate.
* @example
* // Create one EntityTemplate
* const EntityTemplate = await prisma.entityTemplate.create({
* data: {
* // ... data to create a EntityTemplate
* }
* })
*
*/
create<T extends EntityTemplateCreateArgs>(args: Prisma.SelectSubset<T, EntityTemplateCreateArgs<ExtArgs>>): Prisma.Prisma__EntityTemplateClient<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many EntityTemplates.
* @param {EntityTemplateCreateManyArgs} args - Arguments to create many EntityTemplates.
* @example
* // Create many EntityTemplates
* const entityTemplate = await prisma.entityTemplate.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends EntityTemplateCreateManyArgs>(args?: Prisma.SelectSubset<T, EntityTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many EntityTemplates and returns the data saved in the database.
* @param {EntityTemplateCreateManyAndReturnArgs} args - Arguments to create many EntityTemplates.
* @example
* // Create many EntityTemplates
* const entityTemplate = await prisma.entityTemplate.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many EntityTemplates and only return the `id`
* const entityTemplateWithIdOnly = await prisma.entityTemplate.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 EntityTemplateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, EntityTemplateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a EntityTemplate.
* @param {EntityTemplateDeleteArgs} args - Arguments to delete one EntityTemplate.
* @example
* // Delete one EntityTemplate
* const EntityTemplate = await prisma.entityTemplate.delete({
* where: {
* // ... filter to delete one EntityTemplate
* }
* })
*
*/
delete<T extends EntityTemplateDeleteArgs>(args: Prisma.SelectSubset<T, EntityTemplateDeleteArgs<ExtArgs>>): Prisma.Prisma__EntityTemplateClient<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one EntityTemplate.
* @param {EntityTemplateUpdateArgs} args - Arguments to update one EntityTemplate.
* @example
* // Update one EntityTemplate
* const entityTemplate = await prisma.entityTemplate.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends EntityTemplateUpdateArgs>(args: Prisma.SelectSubset<T, EntityTemplateUpdateArgs<ExtArgs>>): Prisma.Prisma__EntityTemplateClient<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more EntityTemplates.
* @param {EntityTemplateDeleteManyArgs} args - Arguments to filter EntityTemplates to delete.
* @example
* // Delete a few EntityTemplates
* const { count } = await prisma.entityTemplate.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends EntityTemplateDeleteManyArgs>(args?: Prisma.SelectSubset<T, EntityTemplateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more EntityTemplates.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EntityTemplateUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many EntityTemplates
* const entityTemplate = await prisma.entityTemplate.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends EntityTemplateUpdateManyArgs>(args: Prisma.SelectSubset<T, EntityTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more EntityTemplates and returns the data updated in the database.
* @param {EntityTemplateUpdateManyAndReturnArgs} args - Arguments to update many EntityTemplates.
* @example
* // Update many EntityTemplates
* const entityTemplate = await prisma.entityTemplate.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more EntityTemplates and only return the `id`
* const entityTemplateWithIdOnly = await prisma.entityTemplate.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 EntityTemplateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, EntityTemplateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one EntityTemplate.
* @param {EntityTemplateUpsertArgs} args - Arguments to update or create a EntityTemplate.
* @example
* // Update or create a EntityTemplate
* const entityTemplate = await prisma.entityTemplate.upsert({
* create: {
* // ... data to create a EntityTemplate
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the EntityTemplate we want to update
* }
* })
*/
upsert<T extends EntityTemplateUpsertArgs>(args: Prisma.SelectSubset<T, EntityTemplateUpsertArgs<ExtArgs>>): Prisma.Prisma__EntityTemplateClient<runtime.Types.Result.GetResult<Prisma.$EntityTemplatePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of EntityTemplates.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EntityTemplateCountArgs} args - Arguments to filter EntityTemplates to count.
* @example
* // Count the number of EntityTemplates
* const count = await prisma.entityTemplate.count({
* where: {
* // ... the filter for the EntityTemplates we want to count
* }
* })
**/
count<T extends EntityTemplateCountArgs>(
args?: Prisma.Subset<T, EntityTemplateCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], EntityTemplateCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a EntityTemplate.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EntityTemplateAggregateArgs} 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 EntityTemplateAggregateArgs>(args: Prisma.Subset<T, EntityTemplateAggregateArgs>): Prisma.PrismaPromise<GetEntityTemplateAggregateType<T>>
/**
* Group by EntityTemplate.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EntityTemplateGroupByArgs} 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 EntityTemplateGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: EntityTemplateGroupByArgs['orderBy'] }
: { orderBy?: EntityTemplateGroupByArgs['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, EntityTemplateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEntityTemplateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the EntityTemplate model
*/
readonly fields: EntityTemplateFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for EntityTemplate.
* 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__EntityTemplateClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
tenant<T extends Prisma.EntityTemplate$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EntityTemplate$tenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
entity<T extends Prisma.EntityDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EntityDefaultArgs<ExtArgs>>): Prisma.Prisma__EntityClient<runtime.Types.Result.GetResult<Prisma.$EntityPayload<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 EntityTemplate model
*/
export interface EntityTemplateFieldRefs {
readonly id: Prisma.FieldRef<"EntityTemplate", 'String'>
readonly createdAt: Prisma.FieldRef<"EntityTemplate", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"EntityTemplate", 'String'>
readonly entityId: Prisma.FieldRef<"EntityTemplate", 'String'>
readonly title: Prisma.FieldRef<"EntityTemplate", 'String'>
readonly config: Prisma.FieldRef<"EntityTemplate", 'String'>
}
// Custom InputTypes
/**
* EntityTemplate findUnique
*/
export type EntityTemplateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
/**
* Filter, which EntityTemplate to fetch.
*/
where: Prisma.EntityTemplateWhereUniqueInput
}
/**
* EntityTemplate findUniqueOrThrow
*/
export type EntityTemplateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
/**
* Filter, which EntityTemplate to fetch.
*/
where: Prisma.EntityTemplateWhereUniqueInput
}
/**
* EntityTemplate findFirst
*/
export type EntityTemplateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
/**
* Filter, which EntityTemplate to fetch.
*/
where?: Prisma.EntityTemplateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EntityTemplates to fetch.
*/
orderBy?: Prisma.EntityTemplateOrderByWithRelationInput | Prisma.EntityTemplateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for EntityTemplates.
*/
cursor?: Prisma.EntityTemplateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EntityTemplates 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` EntityTemplates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of EntityTemplates.
*/
distinct?: Prisma.EntityTemplateScalarFieldEnum | Prisma.EntityTemplateScalarFieldEnum[]
}
/**
* EntityTemplate findFirstOrThrow
*/
export type EntityTemplateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
/**
* Filter, which EntityTemplate to fetch.
*/
where?: Prisma.EntityTemplateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EntityTemplates to fetch.
*/
orderBy?: Prisma.EntityTemplateOrderByWithRelationInput | Prisma.EntityTemplateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for EntityTemplates.
*/
cursor?: Prisma.EntityTemplateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EntityTemplates 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` EntityTemplates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of EntityTemplates.
*/
distinct?: Prisma.EntityTemplateScalarFieldEnum | Prisma.EntityTemplateScalarFieldEnum[]
}
/**
* EntityTemplate findMany
*/
export type EntityTemplateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
/**
* Filter, which EntityTemplates to fetch.
*/
where?: Prisma.EntityTemplateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EntityTemplates to fetch.
*/
orderBy?: Prisma.EntityTemplateOrderByWithRelationInput | Prisma.EntityTemplateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing EntityTemplates.
*/
cursor?: Prisma.EntityTemplateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EntityTemplates 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` EntityTemplates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of EntityTemplates.
*/
distinct?: Prisma.EntityTemplateScalarFieldEnum | Prisma.EntityTemplateScalarFieldEnum[]
}
/**
* EntityTemplate create
*/
export type EntityTemplateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
/**
* The data needed to create a EntityTemplate.
*/
data: Prisma.XOR<Prisma.EntityTemplateCreateInput, Prisma.EntityTemplateUncheckedCreateInput>
}
/**
* EntityTemplate createMany
*/
export type EntityTemplateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many EntityTemplates.
*/
data: Prisma.EntityTemplateCreateManyInput | Prisma.EntityTemplateCreateManyInput[]
skipDuplicates?: boolean
}
/**
* EntityTemplate createManyAndReturn
*/
export type EntityTemplateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* The data used to create many EntityTemplates.
*/
data: Prisma.EntityTemplateCreateManyInput | Prisma.EntityTemplateCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* EntityTemplate update
*/
export type EntityTemplateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
/**
* The data needed to update a EntityTemplate.
*/
data: Prisma.XOR<Prisma.EntityTemplateUpdateInput, Prisma.EntityTemplateUncheckedUpdateInput>
/**
* Choose, which EntityTemplate to update.
*/
where: Prisma.EntityTemplateWhereUniqueInput
}
/**
* EntityTemplate updateMany
*/
export type EntityTemplateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update EntityTemplates.
*/
data: Prisma.XOR<Prisma.EntityTemplateUpdateManyMutationInput, Prisma.EntityTemplateUncheckedUpdateManyInput>
/**
* Filter which EntityTemplates to update
*/
where?: Prisma.EntityTemplateWhereInput
/**
* Limit how many EntityTemplates to update.
*/
limit?: number
}
/**
* EntityTemplate updateManyAndReturn
*/
export type EntityTemplateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* The data used to update EntityTemplates.
*/
data: Prisma.XOR<Prisma.EntityTemplateUpdateManyMutationInput, Prisma.EntityTemplateUncheckedUpdateManyInput>
/**
* Filter which EntityTemplates to update
*/
where?: Prisma.EntityTemplateWhereInput
/**
* Limit how many EntityTemplates to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* EntityTemplate upsert
*/
export type EntityTemplateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
/**
* The filter to search for the EntityTemplate to update in case it exists.
*/
where: Prisma.EntityTemplateWhereUniqueInput
/**
* In case the EntityTemplate found by the `where` argument doesn't exist, create a new EntityTemplate with this data.
*/
create: Prisma.XOR<Prisma.EntityTemplateCreateInput, Prisma.EntityTemplateUncheckedCreateInput>
/**
* In case the EntityTemplate was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.EntityTemplateUpdateInput, Prisma.EntityTemplateUncheckedUpdateInput>
}
/**
* EntityTemplate delete
*/
export type EntityTemplateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
/**
* Filter which EntityTemplate to delete.
*/
where: Prisma.EntityTemplateWhereUniqueInput
}
/**
* EntityTemplate deleteMany
*/
export type EntityTemplateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which EntityTemplates to delete
*/
where?: Prisma.EntityTemplateWhereInput
/**
* Limit how many EntityTemplates to delete.
*/
limit?: number
}
/**
* EntityTemplate.tenant
*/
export type EntityTemplate$tenantArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Tenant
*/
select?: Prisma.TenantSelect<ExtArgs> | null
/**
* Omit specific fields from the Tenant
*/
omit?: Prisma.TenantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TenantInclude<ExtArgs> | null
where?: Prisma.TenantWhereInput
}
/**
* EntityTemplate without action
*/
export type EntityTemplateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EntityTemplate
*/
select?: Prisma.EntityTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the EntityTemplate
*/
omit?: Prisma.EntityTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EntityTemplateInclude<ExtArgs> | null
}