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

1603 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 `Registration` 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 Registration
*
*/
export type RegistrationModel = runtime.Types.Result.DefaultSelection<Prisma.$RegistrationPayload>
export type AggregateRegistration = {
_count: RegistrationCountAggregateOutputType | null
_min: RegistrationMinAggregateOutputType | null
_max: RegistrationMaxAggregateOutputType | null
}
export type RegistrationMinAggregateOutputType = {
id: string | null
createdAt: Date | null
email: string | null
firstName: string | null
lastName: string | null
slug: string | null
token: string | null
ipAddress: string | null
company: string | null
selectedSubscriptionPriceId: string | null
leadConversionLeadId: string | null
leadConversionToken: string | null
leadConversionPlanId: string | null
createdTenantId: string | null
}
export type RegistrationMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
email: string | null
firstName: string | null
lastName: string | null
slug: string | null
token: string | null
ipAddress: string | null
company: string | null
selectedSubscriptionPriceId: string | null
leadConversionLeadId: string | null
leadConversionToken: string | null
leadConversionPlanId: string | null
createdTenantId: string | null
}
export type RegistrationCountAggregateOutputType = {
id: number
createdAt: number
email: number
firstName: number
lastName: number
slug: number
token: number
ipAddress: number
company: number
selectedSubscriptionPriceId: number
leadConversionLeadId: number
leadConversionToken: number
leadConversionPlanId: number
createdTenantId: number
_all: number
}
export type RegistrationMinAggregateInputType = {
id?: true
createdAt?: true
email?: true
firstName?: true
lastName?: true
slug?: true
token?: true
ipAddress?: true
company?: true
selectedSubscriptionPriceId?: true
leadConversionLeadId?: true
leadConversionToken?: true
leadConversionPlanId?: true
createdTenantId?: true
}
export type RegistrationMaxAggregateInputType = {
id?: true
createdAt?: true
email?: true
firstName?: true
lastName?: true
slug?: true
token?: true
ipAddress?: true
company?: true
selectedSubscriptionPriceId?: true
leadConversionLeadId?: true
leadConversionToken?: true
leadConversionPlanId?: true
createdTenantId?: true
}
export type RegistrationCountAggregateInputType = {
id?: true
createdAt?: true
email?: true
firstName?: true
lastName?: true
slug?: true
token?: true
ipAddress?: true
company?: true
selectedSubscriptionPriceId?: true
leadConversionLeadId?: true
leadConversionToken?: true
leadConversionPlanId?: true
createdTenantId?: true
_all?: true
}
export type RegistrationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Registration to aggregate.
*/
where?: Prisma.RegistrationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Registrations to fetch.
*/
orderBy?: Prisma.RegistrationOrderByWithRelationInput | Prisma.RegistrationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.RegistrationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Registrations 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` Registrations.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Registrations
**/
_count?: true | RegistrationCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: RegistrationMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: RegistrationMaxAggregateInputType
}
export type GetRegistrationAggregateType<T extends RegistrationAggregateArgs> = {
[P in keyof T & keyof AggregateRegistration]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateRegistration[P]>
: Prisma.GetScalarType<T[P], AggregateRegistration[P]>
}
export type RegistrationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.RegistrationWhereInput
orderBy?: Prisma.RegistrationOrderByWithAggregationInput | Prisma.RegistrationOrderByWithAggregationInput[]
by: Prisma.RegistrationScalarFieldEnum[] | Prisma.RegistrationScalarFieldEnum
having?: Prisma.RegistrationScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: RegistrationCountAggregateInputType | true
_min?: RegistrationMinAggregateInputType
_max?: RegistrationMaxAggregateInputType
}
export type RegistrationGroupByOutputType = {
id: string
createdAt: Date
email: string
firstName: string
lastName: string
slug: string | null
token: string
ipAddress: string | null
company: string | null
selectedSubscriptionPriceId: string | null
leadConversionLeadId: string | null
leadConversionToken: string | null
leadConversionPlanId: string | null
createdTenantId: string | null
_count: RegistrationCountAggregateOutputType | null
_min: RegistrationMinAggregateOutputType | null
_max: RegistrationMaxAggregateOutputType | null
}
export type GetRegistrationGroupByPayload<T extends RegistrationGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<RegistrationGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof RegistrationGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], RegistrationGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], RegistrationGroupByOutputType[P]>
}
>
>
export type RegistrationWhereInput = {
AND?: Prisma.RegistrationWhereInput | Prisma.RegistrationWhereInput[]
OR?: Prisma.RegistrationWhereInput[]
NOT?: Prisma.RegistrationWhereInput | Prisma.RegistrationWhereInput[]
id?: Prisma.StringFilter<"Registration"> | string
createdAt?: Prisma.DateTimeFilter<"Registration"> | Date | string
email?: Prisma.StringFilter<"Registration"> | string
firstName?: Prisma.StringFilter<"Registration"> | string
lastName?: Prisma.StringFilter<"Registration"> | string
slug?: Prisma.StringNullableFilter<"Registration"> | string | null
token?: Prisma.StringFilter<"Registration"> | string
ipAddress?: Prisma.StringNullableFilter<"Registration"> | string | null
company?: Prisma.StringNullableFilter<"Registration"> | string | null
selectedSubscriptionPriceId?: Prisma.StringNullableFilter<"Registration"> | string | null
leadConversionLeadId?: Prisma.StringNullableFilter<"Registration"> | string | null
leadConversionToken?: Prisma.StringNullableFilter<"Registration"> | string | null
leadConversionPlanId?: Prisma.StringNullableFilter<"Registration"> | string | null
createdTenantId?: Prisma.StringNullableFilter<"Registration"> | string | null
createdTenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
}
export type RegistrationOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
email?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
slug?: Prisma.SortOrderInput | Prisma.SortOrder
token?: Prisma.SortOrder
ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder
company?: Prisma.SortOrderInput | Prisma.SortOrder
selectedSubscriptionPriceId?: Prisma.SortOrderInput | Prisma.SortOrder
leadConversionLeadId?: Prisma.SortOrderInput | Prisma.SortOrder
leadConversionToken?: Prisma.SortOrderInput | Prisma.SortOrder
leadConversionPlanId?: Prisma.SortOrderInput | Prisma.SortOrder
createdTenantId?: Prisma.SortOrderInput | Prisma.SortOrder
createdTenant?: Prisma.TenantOrderByWithRelationInput
}
export type RegistrationWhereUniqueInput = Prisma.AtLeast<{
id?: string
email?: string
token?: string
createdTenantId?: string
AND?: Prisma.RegistrationWhereInput | Prisma.RegistrationWhereInput[]
OR?: Prisma.RegistrationWhereInput[]
NOT?: Prisma.RegistrationWhereInput | Prisma.RegistrationWhereInput[]
createdAt?: Prisma.DateTimeFilter<"Registration"> | Date | string
firstName?: Prisma.StringFilter<"Registration"> | string
lastName?: Prisma.StringFilter<"Registration"> | string
slug?: Prisma.StringNullableFilter<"Registration"> | string | null
ipAddress?: Prisma.StringNullableFilter<"Registration"> | string | null
company?: Prisma.StringNullableFilter<"Registration"> | string | null
selectedSubscriptionPriceId?: Prisma.StringNullableFilter<"Registration"> | string | null
leadConversionLeadId?: Prisma.StringNullableFilter<"Registration"> | string | null
leadConversionToken?: Prisma.StringNullableFilter<"Registration"> | string | null
leadConversionPlanId?: Prisma.StringNullableFilter<"Registration"> | string | null
createdTenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
}, "id" | "email" | "token" | "createdTenantId">
export type RegistrationOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
email?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
slug?: Prisma.SortOrderInput | Prisma.SortOrder
token?: Prisma.SortOrder
ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder
company?: Prisma.SortOrderInput | Prisma.SortOrder
selectedSubscriptionPriceId?: Prisma.SortOrderInput | Prisma.SortOrder
leadConversionLeadId?: Prisma.SortOrderInput | Prisma.SortOrder
leadConversionToken?: Prisma.SortOrderInput | Prisma.SortOrder
leadConversionPlanId?: Prisma.SortOrderInput | Prisma.SortOrder
createdTenantId?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.RegistrationCountOrderByAggregateInput
_max?: Prisma.RegistrationMaxOrderByAggregateInput
_min?: Prisma.RegistrationMinOrderByAggregateInput
}
export type RegistrationScalarWhereWithAggregatesInput = {
AND?: Prisma.RegistrationScalarWhereWithAggregatesInput | Prisma.RegistrationScalarWhereWithAggregatesInput[]
OR?: Prisma.RegistrationScalarWhereWithAggregatesInput[]
NOT?: Prisma.RegistrationScalarWhereWithAggregatesInput | Prisma.RegistrationScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"Registration"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Registration"> | Date | string
email?: Prisma.StringWithAggregatesFilter<"Registration"> | string
firstName?: Prisma.StringWithAggregatesFilter<"Registration"> | string
lastName?: Prisma.StringWithAggregatesFilter<"Registration"> | string
slug?: Prisma.StringNullableWithAggregatesFilter<"Registration"> | string | null
token?: Prisma.StringWithAggregatesFilter<"Registration"> | string
ipAddress?: Prisma.StringNullableWithAggregatesFilter<"Registration"> | string | null
company?: Prisma.StringNullableWithAggregatesFilter<"Registration"> | string | null
selectedSubscriptionPriceId?: Prisma.StringNullableWithAggregatesFilter<"Registration"> | string | null
leadConversionLeadId?: Prisma.StringNullableWithAggregatesFilter<"Registration"> | string | null
leadConversionToken?: Prisma.StringNullableWithAggregatesFilter<"Registration"> | string | null
leadConversionPlanId?: Prisma.StringNullableWithAggregatesFilter<"Registration"> | string | null
createdTenantId?: Prisma.StringNullableWithAggregatesFilter<"Registration"> | string | null
}
export type RegistrationCreateInput = {
id?: string
createdAt?: Date | string
email: string
firstName: string
lastName: string
slug?: string | null
token: string
ipAddress?: string | null
company?: string | null
selectedSubscriptionPriceId?: string | null
leadConversionLeadId?: string | null
leadConversionToken?: string | null
leadConversionPlanId?: string | null
createdTenant?: Prisma.TenantCreateNestedOneWithoutFromRegistrationInput
}
export type RegistrationUncheckedCreateInput = {
id?: string
createdAt?: Date | string
email: string
firstName: string
lastName: string
slug?: string | null
token: string
ipAddress?: string | null
company?: string | null
selectedSubscriptionPriceId?: string | null
leadConversionLeadId?: string | null
leadConversionToken?: string | null
leadConversionPlanId?: string | null
createdTenantId?: string | null
}
export type RegistrationUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
email?: Prisma.StringFieldUpdateOperationsInput | string
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
token?: Prisma.StringFieldUpdateOperationsInput | string
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
selectedSubscriptionPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdTenant?: Prisma.TenantUpdateOneWithoutFromRegistrationNestedInput
}
export type RegistrationUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
email?: Prisma.StringFieldUpdateOperationsInput | string
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
token?: Prisma.StringFieldUpdateOperationsInput | string
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
selectedSubscriptionPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type RegistrationCreateManyInput = {
id?: string
createdAt?: Date | string
email: string
firstName: string
lastName: string
slug?: string | null
token: string
ipAddress?: string | null
company?: string | null
selectedSubscriptionPriceId?: string | null
leadConversionLeadId?: string | null
leadConversionToken?: string | null
leadConversionPlanId?: string | null
createdTenantId?: string | null
}
export type RegistrationUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
email?: Prisma.StringFieldUpdateOperationsInput | string
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
token?: Prisma.StringFieldUpdateOperationsInput | string
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
selectedSubscriptionPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type RegistrationUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
email?: Prisma.StringFieldUpdateOperationsInput | string
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
token?: Prisma.StringFieldUpdateOperationsInput | string
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
selectedSubscriptionPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type RegistrationNullableScalarRelationFilter = {
is?: Prisma.RegistrationWhereInput | null
isNot?: Prisma.RegistrationWhereInput | null
}
export type RegistrationCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
email?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
slug?: Prisma.SortOrder
token?: Prisma.SortOrder
ipAddress?: Prisma.SortOrder
company?: Prisma.SortOrder
selectedSubscriptionPriceId?: Prisma.SortOrder
leadConversionLeadId?: Prisma.SortOrder
leadConversionToken?: Prisma.SortOrder
leadConversionPlanId?: Prisma.SortOrder
createdTenantId?: Prisma.SortOrder
}
export type RegistrationMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
email?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
slug?: Prisma.SortOrder
token?: Prisma.SortOrder
ipAddress?: Prisma.SortOrder
company?: Prisma.SortOrder
selectedSubscriptionPriceId?: Prisma.SortOrder
leadConversionLeadId?: Prisma.SortOrder
leadConversionToken?: Prisma.SortOrder
leadConversionPlanId?: Prisma.SortOrder
createdTenantId?: Prisma.SortOrder
}
export type RegistrationMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
email?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
slug?: Prisma.SortOrder
token?: Prisma.SortOrder
ipAddress?: Prisma.SortOrder
company?: Prisma.SortOrder
selectedSubscriptionPriceId?: Prisma.SortOrder
leadConversionLeadId?: Prisma.SortOrder
leadConversionToken?: Prisma.SortOrder
leadConversionPlanId?: Prisma.SortOrder
createdTenantId?: Prisma.SortOrder
}
export type RegistrationCreateNestedOneWithoutCreatedTenantInput = {
create?: Prisma.XOR<Prisma.RegistrationCreateWithoutCreatedTenantInput, Prisma.RegistrationUncheckedCreateWithoutCreatedTenantInput>
connectOrCreate?: Prisma.RegistrationCreateOrConnectWithoutCreatedTenantInput
connect?: Prisma.RegistrationWhereUniqueInput
}
export type RegistrationUncheckedCreateNestedOneWithoutCreatedTenantInput = {
create?: Prisma.XOR<Prisma.RegistrationCreateWithoutCreatedTenantInput, Prisma.RegistrationUncheckedCreateWithoutCreatedTenantInput>
connectOrCreate?: Prisma.RegistrationCreateOrConnectWithoutCreatedTenantInput
connect?: Prisma.RegistrationWhereUniqueInput
}
export type RegistrationUpdateOneWithoutCreatedTenantNestedInput = {
create?: Prisma.XOR<Prisma.RegistrationCreateWithoutCreatedTenantInput, Prisma.RegistrationUncheckedCreateWithoutCreatedTenantInput>
connectOrCreate?: Prisma.RegistrationCreateOrConnectWithoutCreatedTenantInput
upsert?: Prisma.RegistrationUpsertWithoutCreatedTenantInput
disconnect?: Prisma.RegistrationWhereInput | boolean
delete?: Prisma.RegistrationWhereInput | boolean
connect?: Prisma.RegistrationWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.RegistrationUpdateToOneWithWhereWithoutCreatedTenantInput, Prisma.RegistrationUpdateWithoutCreatedTenantInput>, Prisma.RegistrationUncheckedUpdateWithoutCreatedTenantInput>
}
export type RegistrationUncheckedUpdateOneWithoutCreatedTenantNestedInput = {
create?: Prisma.XOR<Prisma.RegistrationCreateWithoutCreatedTenantInput, Prisma.RegistrationUncheckedCreateWithoutCreatedTenantInput>
connectOrCreate?: Prisma.RegistrationCreateOrConnectWithoutCreatedTenantInput
upsert?: Prisma.RegistrationUpsertWithoutCreatedTenantInput
disconnect?: Prisma.RegistrationWhereInput | boolean
delete?: Prisma.RegistrationWhereInput | boolean
connect?: Prisma.RegistrationWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.RegistrationUpdateToOneWithWhereWithoutCreatedTenantInput, Prisma.RegistrationUpdateWithoutCreatedTenantInput>, Prisma.RegistrationUncheckedUpdateWithoutCreatedTenantInput>
}
export type RegistrationCreateWithoutCreatedTenantInput = {
id?: string
createdAt?: Date | string
email: string
firstName: string
lastName: string
slug?: string | null
token: string
ipAddress?: string | null
company?: string | null
selectedSubscriptionPriceId?: string | null
leadConversionLeadId?: string | null
leadConversionToken?: string | null
leadConversionPlanId?: string | null
}
export type RegistrationUncheckedCreateWithoutCreatedTenantInput = {
id?: string
createdAt?: Date | string
email: string
firstName: string
lastName: string
slug?: string | null
token: string
ipAddress?: string | null
company?: string | null
selectedSubscriptionPriceId?: string | null
leadConversionLeadId?: string | null
leadConversionToken?: string | null
leadConversionPlanId?: string | null
}
export type RegistrationCreateOrConnectWithoutCreatedTenantInput = {
where: Prisma.RegistrationWhereUniqueInput
create: Prisma.XOR<Prisma.RegistrationCreateWithoutCreatedTenantInput, Prisma.RegistrationUncheckedCreateWithoutCreatedTenantInput>
}
export type RegistrationUpsertWithoutCreatedTenantInput = {
update: Prisma.XOR<Prisma.RegistrationUpdateWithoutCreatedTenantInput, Prisma.RegistrationUncheckedUpdateWithoutCreatedTenantInput>
create: Prisma.XOR<Prisma.RegistrationCreateWithoutCreatedTenantInput, Prisma.RegistrationUncheckedCreateWithoutCreatedTenantInput>
where?: Prisma.RegistrationWhereInput
}
export type RegistrationUpdateToOneWithWhereWithoutCreatedTenantInput = {
where?: Prisma.RegistrationWhereInput
data: Prisma.XOR<Prisma.RegistrationUpdateWithoutCreatedTenantInput, Prisma.RegistrationUncheckedUpdateWithoutCreatedTenantInput>
}
export type RegistrationUpdateWithoutCreatedTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
email?: Prisma.StringFieldUpdateOperationsInput | string
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
token?: Prisma.StringFieldUpdateOperationsInput | string
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
selectedSubscriptionPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type RegistrationUncheckedUpdateWithoutCreatedTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
email?: Prisma.StringFieldUpdateOperationsInput | string
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
token?: Prisma.StringFieldUpdateOperationsInput | string
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
selectedSubscriptionPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadConversionPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type RegistrationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
email?: boolean
firstName?: boolean
lastName?: boolean
slug?: boolean
token?: boolean
ipAddress?: boolean
company?: boolean
selectedSubscriptionPriceId?: boolean
leadConversionLeadId?: boolean
leadConversionToken?: boolean
leadConversionPlanId?: boolean
createdTenantId?: boolean
createdTenant?: boolean | Prisma.Registration$createdTenantArgs<ExtArgs>
}, ExtArgs["result"]["registration"]>
export type RegistrationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
email?: boolean
firstName?: boolean
lastName?: boolean
slug?: boolean
token?: boolean
ipAddress?: boolean
company?: boolean
selectedSubscriptionPriceId?: boolean
leadConversionLeadId?: boolean
leadConversionToken?: boolean
leadConversionPlanId?: boolean
createdTenantId?: boolean
createdTenant?: boolean | Prisma.Registration$createdTenantArgs<ExtArgs>
}, ExtArgs["result"]["registration"]>
export type RegistrationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
email?: boolean
firstName?: boolean
lastName?: boolean
slug?: boolean
token?: boolean
ipAddress?: boolean
company?: boolean
selectedSubscriptionPriceId?: boolean
leadConversionLeadId?: boolean
leadConversionToken?: boolean
leadConversionPlanId?: boolean
createdTenantId?: boolean
createdTenant?: boolean | Prisma.Registration$createdTenantArgs<ExtArgs>
}, ExtArgs["result"]["registration"]>
export type RegistrationSelectScalar = {
id?: boolean
createdAt?: boolean
email?: boolean
firstName?: boolean
lastName?: boolean
slug?: boolean
token?: boolean
ipAddress?: boolean
company?: boolean
selectedSubscriptionPriceId?: boolean
leadConversionLeadId?: boolean
leadConversionToken?: boolean
leadConversionPlanId?: boolean
createdTenantId?: boolean
}
export type RegistrationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "email" | "firstName" | "lastName" | "slug" | "token" | "ipAddress" | "company" | "selectedSubscriptionPriceId" | "leadConversionLeadId" | "leadConversionToken" | "leadConversionPlanId" | "createdTenantId", ExtArgs["result"]["registration"]>
export type RegistrationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
createdTenant?: boolean | Prisma.Registration$createdTenantArgs<ExtArgs>
}
export type RegistrationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
createdTenant?: boolean | Prisma.Registration$createdTenantArgs<ExtArgs>
}
export type RegistrationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
createdTenant?: boolean | Prisma.Registration$createdTenantArgs<ExtArgs>
}
export type $RegistrationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Registration"
objects: {
createdTenant: Prisma.$TenantPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
email: string
firstName: string
lastName: string
slug: string | null
token: string
ipAddress: string | null
company: string | null
selectedSubscriptionPriceId: string | null
leadConversionLeadId: string | null
leadConversionToken: string | null
leadConversionPlanId: string | null
createdTenantId: string | null
}, ExtArgs["result"]["registration"]>
composites: {}
}
export type RegistrationGetPayload<S extends boolean | null | undefined | RegistrationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RegistrationPayload, S>
export type RegistrationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<RegistrationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: RegistrationCountAggregateInputType | true
}
export interface RegistrationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Registration'], meta: { name: 'Registration' } }
/**
* Find zero or one Registration that matches the filter.
* @param {RegistrationFindUniqueArgs} args - Arguments to find a Registration
* @example
* // Get one Registration
* const registration = await prisma.registration.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends RegistrationFindUniqueArgs>(args: Prisma.SelectSubset<T, RegistrationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RegistrationClient<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Registration that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {RegistrationFindUniqueOrThrowArgs} args - Arguments to find a Registration
* @example
* // Get one Registration
* const registration = await prisma.registration.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends RegistrationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RegistrationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RegistrationClient<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Registration 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 {RegistrationFindFirstArgs} args - Arguments to find a Registration
* @example
* // Get one Registration
* const registration = await prisma.registration.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends RegistrationFindFirstArgs>(args?: Prisma.SelectSubset<T, RegistrationFindFirstArgs<ExtArgs>>): Prisma.Prisma__RegistrationClient<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Registration 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 {RegistrationFindFirstOrThrowArgs} args - Arguments to find a Registration
* @example
* // Get one Registration
* const registration = await prisma.registration.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends RegistrationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RegistrationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RegistrationClient<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Registrations 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 {RegistrationFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Registrations
* const registrations = await prisma.registration.findMany()
*
* // Get first 10 Registrations
* const registrations = await prisma.registration.findMany({ take: 10 })
*
* // Only select the `id`
* const registrationWithIdOnly = await prisma.registration.findMany({ select: { id: true } })
*
*/
findMany<T extends RegistrationFindManyArgs>(args?: Prisma.SelectSubset<T, RegistrationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Registration.
* @param {RegistrationCreateArgs} args - Arguments to create a Registration.
* @example
* // Create one Registration
* const Registration = await prisma.registration.create({
* data: {
* // ... data to create a Registration
* }
* })
*
*/
create<T extends RegistrationCreateArgs>(args: Prisma.SelectSubset<T, RegistrationCreateArgs<ExtArgs>>): Prisma.Prisma__RegistrationClient<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Registrations.
* @param {RegistrationCreateManyArgs} args - Arguments to create many Registrations.
* @example
* // Create many Registrations
* const registration = await prisma.registration.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends RegistrationCreateManyArgs>(args?: Prisma.SelectSubset<T, RegistrationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Registrations and returns the data saved in the database.
* @param {RegistrationCreateManyAndReturnArgs} args - Arguments to create many Registrations.
* @example
* // Create many Registrations
* const registration = await prisma.registration.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Registrations and only return the `id`
* const registrationWithIdOnly = await prisma.registration.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 RegistrationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RegistrationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Registration.
* @param {RegistrationDeleteArgs} args - Arguments to delete one Registration.
* @example
* // Delete one Registration
* const Registration = await prisma.registration.delete({
* where: {
* // ... filter to delete one Registration
* }
* })
*
*/
delete<T extends RegistrationDeleteArgs>(args: Prisma.SelectSubset<T, RegistrationDeleteArgs<ExtArgs>>): Prisma.Prisma__RegistrationClient<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Registration.
* @param {RegistrationUpdateArgs} args - Arguments to update one Registration.
* @example
* // Update one Registration
* const registration = await prisma.registration.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends RegistrationUpdateArgs>(args: Prisma.SelectSubset<T, RegistrationUpdateArgs<ExtArgs>>): Prisma.Prisma__RegistrationClient<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Registrations.
* @param {RegistrationDeleteManyArgs} args - Arguments to filter Registrations to delete.
* @example
* // Delete a few Registrations
* const { count } = await prisma.registration.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends RegistrationDeleteManyArgs>(args?: Prisma.SelectSubset<T, RegistrationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Registrations.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegistrationUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Registrations
* const registration = await prisma.registration.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends RegistrationUpdateManyArgs>(args: Prisma.SelectSubset<T, RegistrationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Registrations and returns the data updated in the database.
* @param {RegistrationUpdateManyAndReturnArgs} args - Arguments to update many Registrations.
* @example
* // Update many Registrations
* const registration = await prisma.registration.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Registrations and only return the `id`
* const registrationWithIdOnly = await prisma.registration.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 RegistrationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RegistrationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Registration.
* @param {RegistrationUpsertArgs} args - Arguments to update or create a Registration.
* @example
* // Update or create a Registration
* const registration = await prisma.registration.upsert({
* create: {
* // ... data to create a Registration
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Registration we want to update
* }
* })
*/
upsert<T extends RegistrationUpsertArgs>(args: Prisma.SelectSubset<T, RegistrationUpsertArgs<ExtArgs>>): Prisma.Prisma__RegistrationClient<runtime.Types.Result.GetResult<Prisma.$RegistrationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Registrations.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegistrationCountArgs} args - Arguments to filter Registrations to count.
* @example
* // Count the number of Registrations
* const count = await prisma.registration.count({
* where: {
* // ... the filter for the Registrations we want to count
* }
* })
**/
count<T extends RegistrationCountArgs>(
args?: Prisma.Subset<T, RegistrationCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], RegistrationCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Registration.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegistrationAggregateArgs} 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 RegistrationAggregateArgs>(args: Prisma.Subset<T, RegistrationAggregateArgs>): Prisma.PrismaPromise<GetRegistrationAggregateType<T>>
/**
* Group by Registration.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegistrationGroupByArgs} 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 RegistrationGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: RegistrationGroupByArgs['orderBy'] }
: { orderBy?: RegistrationGroupByArgs['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, RegistrationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRegistrationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Registration model
*/
readonly fields: RegistrationFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Registration.
* 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__RegistrationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
createdTenant<T extends Prisma.Registration$createdTenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Registration$createdTenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<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 Registration model
*/
export interface RegistrationFieldRefs {
readonly id: Prisma.FieldRef<"Registration", 'String'>
readonly createdAt: Prisma.FieldRef<"Registration", 'DateTime'>
readonly email: Prisma.FieldRef<"Registration", 'String'>
readonly firstName: Prisma.FieldRef<"Registration", 'String'>
readonly lastName: Prisma.FieldRef<"Registration", 'String'>
readonly slug: Prisma.FieldRef<"Registration", 'String'>
readonly token: Prisma.FieldRef<"Registration", 'String'>
readonly ipAddress: Prisma.FieldRef<"Registration", 'String'>
readonly company: Prisma.FieldRef<"Registration", 'String'>
readonly selectedSubscriptionPriceId: Prisma.FieldRef<"Registration", 'String'>
readonly leadConversionLeadId: Prisma.FieldRef<"Registration", 'String'>
readonly leadConversionToken: Prisma.FieldRef<"Registration", 'String'>
readonly leadConversionPlanId: Prisma.FieldRef<"Registration", 'String'>
readonly createdTenantId: Prisma.FieldRef<"Registration", 'String'>
}
// Custom InputTypes
/**
* Registration findUnique
*/
export type RegistrationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
/**
* Filter, which Registration to fetch.
*/
where: Prisma.RegistrationWhereUniqueInput
}
/**
* Registration findUniqueOrThrow
*/
export type RegistrationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
/**
* Filter, which Registration to fetch.
*/
where: Prisma.RegistrationWhereUniqueInput
}
/**
* Registration findFirst
*/
export type RegistrationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
/**
* Filter, which Registration to fetch.
*/
where?: Prisma.RegistrationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Registrations to fetch.
*/
orderBy?: Prisma.RegistrationOrderByWithRelationInput | Prisma.RegistrationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Registrations.
*/
cursor?: Prisma.RegistrationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Registrations 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` Registrations.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Registrations.
*/
distinct?: Prisma.RegistrationScalarFieldEnum | Prisma.RegistrationScalarFieldEnum[]
}
/**
* Registration findFirstOrThrow
*/
export type RegistrationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
/**
* Filter, which Registration to fetch.
*/
where?: Prisma.RegistrationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Registrations to fetch.
*/
orderBy?: Prisma.RegistrationOrderByWithRelationInput | Prisma.RegistrationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Registrations.
*/
cursor?: Prisma.RegistrationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Registrations 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` Registrations.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Registrations.
*/
distinct?: Prisma.RegistrationScalarFieldEnum | Prisma.RegistrationScalarFieldEnum[]
}
/**
* Registration findMany
*/
export type RegistrationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
/**
* Filter, which Registrations to fetch.
*/
where?: Prisma.RegistrationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Registrations to fetch.
*/
orderBy?: Prisma.RegistrationOrderByWithRelationInput | Prisma.RegistrationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Registrations.
*/
cursor?: Prisma.RegistrationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Registrations 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` Registrations.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Registrations.
*/
distinct?: Prisma.RegistrationScalarFieldEnum | Prisma.RegistrationScalarFieldEnum[]
}
/**
* Registration create
*/
export type RegistrationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
/**
* The data needed to create a Registration.
*/
data: Prisma.XOR<Prisma.RegistrationCreateInput, Prisma.RegistrationUncheckedCreateInput>
}
/**
* Registration createMany
*/
export type RegistrationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Registrations.
*/
data: Prisma.RegistrationCreateManyInput | Prisma.RegistrationCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Registration createManyAndReturn
*/
export type RegistrationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* The data used to create many Registrations.
*/
data: Prisma.RegistrationCreateManyInput | Prisma.RegistrationCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Registration update
*/
export type RegistrationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
/**
* The data needed to update a Registration.
*/
data: Prisma.XOR<Prisma.RegistrationUpdateInput, Prisma.RegistrationUncheckedUpdateInput>
/**
* Choose, which Registration to update.
*/
where: Prisma.RegistrationWhereUniqueInput
}
/**
* Registration updateMany
*/
export type RegistrationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Registrations.
*/
data: Prisma.XOR<Prisma.RegistrationUpdateManyMutationInput, Prisma.RegistrationUncheckedUpdateManyInput>
/**
* Filter which Registrations to update
*/
where?: Prisma.RegistrationWhereInput
/**
* Limit how many Registrations to update.
*/
limit?: number
}
/**
* Registration updateManyAndReturn
*/
export type RegistrationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* The data used to update Registrations.
*/
data: Prisma.XOR<Prisma.RegistrationUpdateManyMutationInput, Prisma.RegistrationUncheckedUpdateManyInput>
/**
* Filter which Registrations to update
*/
where?: Prisma.RegistrationWhereInput
/**
* Limit how many Registrations to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Registration upsert
*/
export type RegistrationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
/**
* The filter to search for the Registration to update in case it exists.
*/
where: Prisma.RegistrationWhereUniqueInput
/**
* In case the Registration found by the `where` argument doesn't exist, create a new Registration with this data.
*/
create: Prisma.XOR<Prisma.RegistrationCreateInput, Prisma.RegistrationUncheckedCreateInput>
/**
* In case the Registration was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.RegistrationUpdateInput, Prisma.RegistrationUncheckedUpdateInput>
}
/**
* Registration delete
*/
export type RegistrationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
/**
* Filter which Registration to delete.
*/
where: Prisma.RegistrationWhereUniqueInput
}
/**
* Registration deleteMany
*/
export type RegistrationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Registrations to delete
*/
where?: Prisma.RegistrationWhereInput
/**
* Limit how many Registrations to delete.
*/
limit?: number
}
/**
* Registration.createdTenant
*/
export type Registration$createdTenantArgs<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
}
/**
* Registration without action
*/
export type RegistrationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Registration
*/
select?: Prisma.RegistrationSelect<ExtArgs> | null
/**
* Omit specific fields from the Registration
*/
omit?: Prisma.RegistrationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RegistrationInclude<ExtArgs> | null
}