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

1832 lines
73 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 `SupportTicket` 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 SupportTicket
*
*/
export type SupportTicketModel = runtime.Types.Result.DefaultSelection<Prisma.$SupportTicketPayload>
export type AggregateSupportTicket = {
_count: SupportTicketCountAggregateOutputType | null
_min: SupportTicketMinAggregateOutputType | null
_max: SupportTicketMaxAggregateOutputType | null
}
export type SupportTicketMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
userId: string | null
source: string | null
status: string | null
priority: string | null
subject: string | null
message: string | null
fromEmail: string | null
fromUrl: string | null
inboundMessageId: string | null
}
export type SupportTicketMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
userId: string | null
source: string | null
status: string | null
priority: string | null
subject: string | null
message: string | null
fromEmail: string | null
fromUrl: string | null
inboundMessageId: string | null
}
export type SupportTicketCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
userId: number
source: number
status: number
priority: number
subject: number
message: number
fromEmail: number
fromUrl: number
inboundMessageId: number
_all: number
}
export type SupportTicketMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
userId?: true
source?: true
status?: true
priority?: true
subject?: true
message?: true
fromEmail?: true
fromUrl?: true
inboundMessageId?: true
}
export type SupportTicketMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
userId?: true
source?: true
status?: true
priority?: true
subject?: true
message?: true
fromEmail?: true
fromUrl?: true
inboundMessageId?: true
}
export type SupportTicketCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
userId?: true
source?: true
status?: true
priority?: true
subject?: true
message?: true
fromEmail?: true
fromUrl?: true
inboundMessageId?: true
_all?: true
}
export type SupportTicketAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SupportTicket to aggregate.
*/
where?: Prisma.SupportTicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SupportTickets to fetch.
*/
orderBy?: Prisma.SupportTicketOrderByWithRelationInput | Prisma.SupportTicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.SupportTicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SupportTickets 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` SupportTickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned SupportTickets
**/
_count?: true | SupportTicketCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SupportTicketMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SupportTicketMaxAggregateInputType
}
export type GetSupportTicketAggregateType<T extends SupportTicketAggregateArgs> = {
[P in keyof T & keyof AggregateSupportTicket]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateSupportTicket[P]>
: Prisma.GetScalarType<T[P], AggregateSupportTicket[P]>
}
export type SupportTicketGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SupportTicketWhereInput
orderBy?: Prisma.SupportTicketOrderByWithAggregationInput | Prisma.SupportTicketOrderByWithAggregationInput[]
by: Prisma.SupportTicketScalarFieldEnum[] | Prisma.SupportTicketScalarFieldEnum
having?: Prisma.SupportTicketScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SupportTicketCountAggregateInputType | true
_min?: SupportTicketMinAggregateInputType
_max?: SupportTicketMaxAggregateInputType
}
export type SupportTicketGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string | null
userId: string | null
source: string
status: string
priority: string
subject: string
message: string
fromEmail: string | null
fromUrl: string | null
inboundMessageId: string | null
_count: SupportTicketCountAggregateOutputType | null
_min: SupportTicketMinAggregateOutputType | null
_max: SupportTicketMaxAggregateOutputType | null
}
export type GetSupportTicketGroupByPayload<T extends SupportTicketGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<SupportTicketGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SupportTicketGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], SupportTicketGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], SupportTicketGroupByOutputType[P]>
}
>
>
export type SupportTicketWhereInput = {
AND?: Prisma.SupportTicketWhereInput | Prisma.SupportTicketWhereInput[]
OR?: Prisma.SupportTicketWhereInput[]
NOT?: Prisma.SupportTicketWhereInput | Prisma.SupportTicketWhereInput[]
id?: Prisma.StringFilter<"SupportTicket"> | string
createdAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string
tenantId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
userId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
source?: Prisma.StringFilter<"SupportTicket"> | string
status?: Prisma.StringFilter<"SupportTicket"> | string
priority?: Prisma.StringFilter<"SupportTicket"> | string
subject?: Prisma.StringFilter<"SupportTicket"> | string
message?: Prisma.StringFilter<"SupportTicket"> | string
fromEmail?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
fromUrl?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
inboundMessageId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}
export type SupportTicketOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
userId?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.SortOrder
status?: Prisma.SortOrder
priority?: Prisma.SortOrder
subject?: Prisma.SortOrder
message?: Prisma.SortOrder
fromEmail?: Prisma.SortOrderInput | Prisma.SortOrder
fromUrl?: Prisma.SortOrderInput | Prisma.SortOrder
inboundMessageId?: Prisma.SortOrderInput | Prisma.SortOrder
tenant?: Prisma.TenantOrderByWithRelationInput
user?: Prisma.UserOrderByWithRelationInput
}
export type SupportTicketWhereUniqueInput = Prisma.AtLeast<{
id?: string
inboundMessageId?: string
AND?: Prisma.SupportTicketWhereInput | Prisma.SupportTicketWhereInput[]
OR?: Prisma.SupportTicketWhereInput[]
NOT?: Prisma.SupportTicketWhereInput | Prisma.SupportTicketWhereInput[]
createdAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string
tenantId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
userId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
source?: Prisma.StringFilter<"SupportTicket"> | string
status?: Prisma.StringFilter<"SupportTicket"> | string
priority?: Prisma.StringFilter<"SupportTicket"> | string
subject?: Prisma.StringFilter<"SupportTicket"> | string
message?: Prisma.StringFilter<"SupportTicket"> | string
fromEmail?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
fromUrl?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}, "id" | "inboundMessageId">
export type SupportTicketOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
userId?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.SortOrder
status?: Prisma.SortOrder
priority?: Prisma.SortOrder
subject?: Prisma.SortOrder
message?: Prisma.SortOrder
fromEmail?: Prisma.SortOrderInput | Prisma.SortOrder
fromUrl?: Prisma.SortOrderInput | Prisma.SortOrder
inboundMessageId?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.SupportTicketCountOrderByAggregateInput
_max?: Prisma.SupportTicketMaxOrderByAggregateInput
_min?: Prisma.SupportTicketMinOrderByAggregateInput
}
export type SupportTicketScalarWhereWithAggregatesInput = {
AND?: Prisma.SupportTicketScalarWhereWithAggregatesInput | Prisma.SupportTicketScalarWhereWithAggregatesInput[]
OR?: Prisma.SupportTicketScalarWhereWithAggregatesInput[]
NOT?: Prisma.SupportTicketScalarWhereWithAggregatesInput | Prisma.SupportTicketScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SupportTicket"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SupportTicket"> | Date | string
tenantId?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null
userId?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null
source?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string
status?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string
priority?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string
subject?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string
message?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string
fromEmail?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null
fromUrl?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null
inboundMessageId?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null
}
export type SupportTicketCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
source: string
status?: string
priority?: string
subject: string
message: string
fromEmail?: string | null
fromUrl?: string | null
inboundMessageId?: string | null
tenant?: Prisma.TenantCreateNestedOneWithoutSupportTicketsInput
user?: Prisma.UserCreateNestedOneWithoutSupportTicketsInput
}
export type SupportTicketUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId?: string | null
userId?: string | null
source: string
status?: string
priority?: string
subject: string
message: string
fromEmail?: string | null
fromUrl?: string | null
inboundMessageId?: string | null
}
export type SupportTicketUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tenant?: Prisma.TenantUpdateOneWithoutSupportTicketsNestedInput
user?: Prisma.UserUpdateOneWithoutSupportTicketsNestedInput
}
export type SupportTicketUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type SupportTicketCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId?: string | null
userId?: string | null
source: string
status?: string
priority?: string
subject: string
message: string
fromEmail?: string | null
fromUrl?: string | null
inboundMessageId?: string | null
}
export type SupportTicketUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type SupportTicketUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type SupportTicketListRelationFilter = {
every?: Prisma.SupportTicketWhereInput
some?: Prisma.SupportTicketWhereInput
none?: Prisma.SupportTicketWhereInput
}
export type SupportTicketOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type SupportTicketCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
userId?: Prisma.SortOrder
source?: Prisma.SortOrder
status?: Prisma.SortOrder
priority?: Prisma.SortOrder
subject?: Prisma.SortOrder
message?: Prisma.SortOrder
fromEmail?: Prisma.SortOrder
fromUrl?: Prisma.SortOrder
inboundMessageId?: Prisma.SortOrder
}
export type SupportTicketMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
userId?: Prisma.SortOrder
source?: Prisma.SortOrder
status?: Prisma.SortOrder
priority?: Prisma.SortOrder
subject?: Prisma.SortOrder
message?: Prisma.SortOrder
fromEmail?: Prisma.SortOrder
fromUrl?: Prisma.SortOrder
inboundMessageId?: Prisma.SortOrder
}
export type SupportTicketMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
userId?: Prisma.SortOrder
source?: Prisma.SortOrder
status?: Prisma.SortOrder
priority?: Prisma.SortOrder
subject?: Prisma.SortOrder
message?: Prisma.SortOrder
fromEmail?: Prisma.SortOrder
fromUrl?: Prisma.SortOrder
inboundMessageId?: Prisma.SortOrder
}
export type SupportTicketCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.SupportTicketCreateWithoutUserInput, Prisma.SupportTicketUncheckedCreateWithoutUserInput> | Prisma.SupportTicketCreateWithoutUserInput[] | Prisma.SupportTicketUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutUserInput | Prisma.SupportTicketCreateOrConnectWithoutUserInput[]
createMany?: Prisma.SupportTicketCreateManyUserInputEnvelope
connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
}
export type SupportTicketUncheckedCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.SupportTicketCreateWithoutUserInput, Prisma.SupportTicketUncheckedCreateWithoutUserInput> | Prisma.SupportTicketCreateWithoutUserInput[] | Prisma.SupportTicketUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutUserInput | Prisma.SupportTicketCreateOrConnectWithoutUserInput[]
createMany?: Prisma.SupportTicketCreateManyUserInputEnvelope
connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
}
export type SupportTicketUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.SupportTicketCreateWithoutUserInput, Prisma.SupportTicketUncheckedCreateWithoutUserInput> | Prisma.SupportTicketCreateWithoutUserInput[] | Prisma.SupportTicketUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutUserInput | Prisma.SupportTicketCreateOrConnectWithoutUserInput[]
upsert?: Prisma.SupportTicketUpsertWithWhereUniqueWithoutUserInput | Prisma.SupportTicketUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.SupportTicketCreateManyUserInputEnvelope
set?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
disconnect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
delete?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
update?: Prisma.SupportTicketUpdateWithWhereUniqueWithoutUserInput | Prisma.SupportTicketUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.SupportTicketUpdateManyWithWhereWithoutUserInput | Prisma.SupportTicketUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[]
}
export type SupportTicketUncheckedUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.SupportTicketCreateWithoutUserInput, Prisma.SupportTicketUncheckedCreateWithoutUserInput> | Prisma.SupportTicketCreateWithoutUserInput[] | Prisma.SupportTicketUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutUserInput | Prisma.SupportTicketCreateOrConnectWithoutUserInput[]
upsert?: Prisma.SupportTicketUpsertWithWhereUniqueWithoutUserInput | Prisma.SupportTicketUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.SupportTicketCreateManyUserInputEnvelope
set?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
disconnect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
delete?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
update?: Prisma.SupportTicketUpdateWithWhereUniqueWithoutUserInput | Prisma.SupportTicketUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.SupportTicketUpdateManyWithWhereWithoutUserInput | Prisma.SupportTicketUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[]
}
export type SupportTicketCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.SupportTicketCreateWithoutTenantInput, Prisma.SupportTicketUncheckedCreateWithoutTenantInput> | Prisma.SupportTicketCreateWithoutTenantInput[] | Prisma.SupportTicketUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutTenantInput | Prisma.SupportTicketCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.SupportTicketCreateManyTenantInputEnvelope
connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
}
export type SupportTicketUncheckedCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.SupportTicketCreateWithoutTenantInput, Prisma.SupportTicketUncheckedCreateWithoutTenantInput> | Prisma.SupportTicketCreateWithoutTenantInput[] | Prisma.SupportTicketUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutTenantInput | Prisma.SupportTicketCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.SupportTicketCreateManyTenantInputEnvelope
connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
}
export type SupportTicketUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.SupportTicketCreateWithoutTenantInput, Prisma.SupportTicketUncheckedCreateWithoutTenantInput> | Prisma.SupportTicketCreateWithoutTenantInput[] | Prisma.SupportTicketUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutTenantInput | Prisma.SupportTicketCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.SupportTicketUpsertWithWhereUniqueWithoutTenantInput | Prisma.SupportTicketUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.SupportTicketCreateManyTenantInputEnvelope
set?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
disconnect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
delete?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
update?: Prisma.SupportTicketUpdateWithWhereUniqueWithoutTenantInput | Prisma.SupportTicketUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.SupportTicketUpdateManyWithWhereWithoutTenantInput | Prisma.SupportTicketUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[]
}
export type SupportTicketUncheckedUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.SupportTicketCreateWithoutTenantInput, Prisma.SupportTicketUncheckedCreateWithoutTenantInput> | Prisma.SupportTicketCreateWithoutTenantInput[] | Prisma.SupportTicketUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutTenantInput | Prisma.SupportTicketCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.SupportTicketUpsertWithWhereUniqueWithoutTenantInput | Prisma.SupportTicketUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.SupportTicketCreateManyTenantInputEnvelope
set?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
disconnect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
delete?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[]
update?: Prisma.SupportTicketUpdateWithWhereUniqueWithoutTenantInput | Prisma.SupportTicketUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.SupportTicketUpdateManyWithWhereWithoutTenantInput | Prisma.SupportTicketUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[]
}
export type SupportTicketCreateWithoutUserInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
source: string
status?: string
priority?: string
subject: string
message: string
fromEmail?: string | null
fromUrl?: string | null
inboundMessageId?: string | null
tenant?: Prisma.TenantCreateNestedOneWithoutSupportTicketsInput
}
export type SupportTicketUncheckedCreateWithoutUserInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId?: string | null
source: string
status?: string
priority?: string
subject: string
message: string
fromEmail?: string | null
fromUrl?: string | null
inboundMessageId?: string | null
}
export type SupportTicketCreateOrConnectWithoutUserInput = {
where: Prisma.SupportTicketWhereUniqueInput
create: Prisma.XOR<Prisma.SupportTicketCreateWithoutUserInput, Prisma.SupportTicketUncheckedCreateWithoutUserInput>
}
export type SupportTicketCreateManyUserInputEnvelope = {
data: Prisma.SupportTicketCreateManyUserInput | Prisma.SupportTicketCreateManyUserInput[]
skipDuplicates?: boolean
}
export type SupportTicketUpsertWithWhereUniqueWithoutUserInput = {
where: Prisma.SupportTicketWhereUniqueInput
update: Prisma.XOR<Prisma.SupportTicketUpdateWithoutUserInput, Prisma.SupportTicketUncheckedUpdateWithoutUserInput>
create: Prisma.XOR<Prisma.SupportTicketCreateWithoutUserInput, Prisma.SupportTicketUncheckedCreateWithoutUserInput>
}
export type SupportTicketUpdateWithWhereUniqueWithoutUserInput = {
where: Prisma.SupportTicketWhereUniqueInput
data: Prisma.XOR<Prisma.SupportTicketUpdateWithoutUserInput, Prisma.SupportTicketUncheckedUpdateWithoutUserInput>
}
export type SupportTicketUpdateManyWithWhereWithoutUserInput = {
where: Prisma.SupportTicketScalarWhereInput
data: Prisma.XOR<Prisma.SupportTicketUpdateManyMutationInput, Prisma.SupportTicketUncheckedUpdateManyWithoutUserInput>
}
export type SupportTicketScalarWhereInput = {
AND?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[]
OR?: Prisma.SupportTicketScalarWhereInput[]
NOT?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[]
id?: Prisma.StringFilter<"SupportTicket"> | string
createdAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string
tenantId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
userId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
source?: Prisma.StringFilter<"SupportTicket"> | string
status?: Prisma.StringFilter<"SupportTicket"> | string
priority?: Prisma.StringFilter<"SupportTicket"> | string
subject?: Prisma.StringFilter<"SupportTicket"> | string
message?: Prisma.StringFilter<"SupportTicket"> | string
fromEmail?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
fromUrl?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
inboundMessageId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null
}
export type SupportTicketCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
source: string
status?: string
priority?: string
subject: string
message: string
fromEmail?: string | null
fromUrl?: string | null
inboundMessageId?: string | null
user?: Prisma.UserCreateNestedOneWithoutSupportTicketsInput
}
export type SupportTicketUncheckedCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
userId?: string | null
source: string
status?: string
priority?: string
subject: string
message: string
fromEmail?: string | null
fromUrl?: string | null
inboundMessageId?: string | null
}
export type SupportTicketCreateOrConnectWithoutTenantInput = {
where: Prisma.SupportTicketWhereUniqueInput
create: Prisma.XOR<Prisma.SupportTicketCreateWithoutTenantInput, Prisma.SupportTicketUncheckedCreateWithoutTenantInput>
}
export type SupportTicketCreateManyTenantInputEnvelope = {
data: Prisma.SupportTicketCreateManyTenantInput | Prisma.SupportTicketCreateManyTenantInput[]
skipDuplicates?: boolean
}
export type SupportTicketUpsertWithWhereUniqueWithoutTenantInput = {
where: Prisma.SupportTicketWhereUniqueInput
update: Prisma.XOR<Prisma.SupportTicketUpdateWithoutTenantInput, Prisma.SupportTicketUncheckedUpdateWithoutTenantInput>
create: Prisma.XOR<Prisma.SupportTicketCreateWithoutTenantInput, Prisma.SupportTicketUncheckedCreateWithoutTenantInput>
}
export type SupportTicketUpdateWithWhereUniqueWithoutTenantInput = {
where: Prisma.SupportTicketWhereUniqueInput
data: Prisma.XOR<Prisma.SupportTicketUpdateWithoutTenantInput, Prisma.SupportTicketUncheckedUpdateWithoutTenantInput>
}
export type SupportTicketUpdateManyWithWhereWithoutTenantInput = {
where: Prisma.SupportTicketScalarWhereInput
data: Prisma.XOR<Prisma.SupportTicketUpdateManyMutationInput, Prisma.SupportTicketUncheckedUpdateManyWithoutTenantInput>
}
export type SupportTicketCreateManyUserInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId?: string | null
source: string
status?: string
priority?: string
subject: string
message: string
fromEmail?: string | null
fromUrl?: string | null
inboundMessageId?: string | null
}
export type SupportTicketUpdateWithoutUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tenant?: Prisma.TenantUpdateOneWithoutSupportTicketsNestedInput
}
export type SupportTicketUncheckedUpdateWithoutUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type SupportTicketUncheckedUpdateManyWithoutUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type SupportTicketCreateManyTenantInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
userId?: string | null
source: string
status?: string
priority?: string
subject: string
message: string
fromEmail?: string | null
fromUrl?: string | null
inboundMessageId?: string | null
}
export type SupportTicketUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
user?: Prisma.UserUpdateOneWithoutSupportTicketsNestedInput
}
export type SupportTicketUncheckedUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type SupportTicketUncheckedUpdateManyWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
priority?: Prisma.StringFieldUpdateOperationsInput | string
subject?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type SupportTicketSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
userId?: boolean
source?: boolean
status?: boolean
priority?: boolean
subject?: boolean
message?: boolean
fromEmail?: boolean
fromUrl?: boolean
inboundMessageId?: boolean
tenant?: boolean | Prisma.SupportTicket$tenantArgs<ExtArgs>
user?: boolean | Prisma.SupportTicket$userArgs<ExtArgs>
}, ExtArgs["result"]["supportTicket"]>
export type SupportTicketSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
userId?: boolean
source?: boolean
status?: boolean
priority?: boolean
subject?: boolean
message?: boolean
fromEmail?: boolean
fromUrl?: boolean
inboundMessageId?: boolean
tenant?: boolean | Prisma.SupportTicket$tenantArgs<ExtArgs>
user?: boolean | Prisma.SupportTicket$userArgs<ExtArgs>
}, ExtArgs["result"]["supportTicket"]>
export type SupportTicketSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
userId?: boolean
source?: boolean
status?: boolean
priority?: boolean
subject?: boolean
message?: boolean
fromEmail?: boolean
fromUrl?: boolean
inboundMessageId?: boolean
tenant?: boolean | Prisma.SupportTicket$tenantArgs<ExtArgs>
user?: boolean | Prisma.SupportTicket$userArgs<ExtArgs>
}, ExtArgs["result"]["supportTicket"]>
export type SupportTicketSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
userId?: boolean
source?: boolean
status?: boolean
priority?: boolean
subject?: boolean
message?: boolean
fromEmail?: boolean
fromUrl?: boolean
inboundMessageId?: boolean
}
export type SupportTicketOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "userId" | "source" | "status" | "priority" | "subject" | "message" | "fromEmail" | "fromUrl" | "inboundMessageId", ExtArgs["result"]["supportTicket"]>
export type SupportTicketInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.SupportTicket$tenantArgs<ExtArgs>
user?: boolean | Prisma.SupportTicket$userArgs<ExtArgs>
}
export type SupportTicketIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.SupportTicket$tenantArgs<ExtArgs>
user?: boolean | Prisma.SupportTicket$userArgs<ExtArgs>
}
export type SupportTicketIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.SupportTicket$tenantArgs<ExtArgs>
user?: boolean | Prisma.SupportTicket$userArgs<ExtArgs>
}
export type $SupportTicketPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "SupportTicket"
objects: {
tenant: Prisma.$TenantPayload<ExtArgs> | null
user: Prisma.$UserPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string | null
userId: string | null
source: string
status: string
priority: string
subject: string
message: string
fromEmail: string | null
fromUrl: string | null
inboundMessageId: string | null
}, ExtArgs["result"]["supportTicket"]>
composites: {}
}
export type SupportTicketGetPayload<S extends boolean | null | undefined | SupportTicketDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload, S>
export type SupportTicketCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<SupportTicketFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: SupportTicketCountAggregateInputType | true
}
export interface SupportTicketDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SupportTicket'], meta: { name: 'SupportTicket' } }
/**
* Find zero or one SupportTicket that matches the filter.
* @param {SupportTicketFindUniqueArgs} args - Arguments to find a SupportTicket
* @example
* // Get one SupportTicket
* const supportTicket = await prisma.supportTicket.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends SupportTicketFindUniqueArgs>(args: Prisma.SelectSubset<T, SupportTicketFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SupportTicketClient<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one SupportTicket that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {SupportTicketFindUniqueOrThrowArgs} args - Arguments to find a SupportTicket
* @example
* // Get one SupportTicket
* const supportTicket = await prisma.supportTicket.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends SupportTicketFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SupportTicketFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SupportTicketClient<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first SupportTicket 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 {SupportTicketFindFirstArgs} args - Arguments to find a SupportTicket
* @example
* // Get one SupportTicket
* const supportTicket = await prisma.supportTicket.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends SupportTicketFindFirstArgs>(args?: Prisma.SelectSubset<T, SupportTicketFindFirstArgs<ExtArgs>>): Prisma.Prisma__SupportTicketClient<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first SupportTicket 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 {SupportTicketFindFirstOrThrowArgs} args - Arguments to find a SupportTicket
* @example
* // Get one SupportTicket
* const supportTicket = await prisma.supportTicket.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends SupportTicketFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SupportTicketFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SupportTicketClient<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more SupportTickets 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 {SupportTicketFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all SupportTickets
* const supportTickets = await prisma.supportTicket.findMany()
*
* // Get first 10 SupportTickets
* const supportTickets = await prisma.supportTicket.findMany({ take: 10 })
*
* // Only select the `id`
* const supportTicketWithIdOnly = await prisma.supportTicket.findMany({ select: { id: true } })
*
*/
findMany<T extends SupportTicketFindManyArgs>(args?: Prisma.SelectSubset<T, SupportTicketFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a SupportTicket.
* @param {SupportTicketCreateArgs} args - Arguments to create a SupportTicket.
* @example
* // Create one SupportTicket
* const SupportTicket = await prisma.supportTicket.create({
* data: {
* // ... data to create a SupportTicket
* }
* })
*
*/
create<T extends SupportTicketCreateArgs>(args: Prisma.SelectSubset<T, SupportTicketCreateArgs<ExtArgs>>): Prisma.Prisma__SupportTicketClient<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many SupportTickets.
* @param {SupportTicketCreateManyArgs} args - Arguments to create many SupportTickets.
* @example
* // Create many SupportTickets
* const supportTicket = await prisma.supportTicket.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends SupportTicketCreateManyArgs>(args?: Prisma.SelectSubset<T, SupportTicketCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many SupportTickets and returns the data saved in the database.
* @param {SupportTicketCreateManyAndReturnArgs} args - Arguments to create many SupportTickets.
* @example
* // Create many SupportTickets
* const supportTicket = await prisma.supportTicket.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many SupportTickets and only return the `id`
* const supportTicketWithIdOnly = await prisma.supportTicket.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 SupportTicketCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SupportTicketCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a SupportTicket.
* @param {SupportTicketDeleteArgs} args - Arguments to delete one SupportTicket.
* @example
* // Delete one SupportTicket
* const SupportTicket = await prisma.supportTicket.delete({
* where: {
* // ... filter to delete one SupportTicket
* }
* })
*
*/
delete<T extends SupportTicketDeleteArgs>(args: Prisma.SelectSubset<T, SupportTicketDeleteArgs<ExtArgs>>): Prisma.Prisma__SupportTicketClient<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one SupportTicket.
* @param {SupportTicketUpdateArgs} args - Arguments to update one SupportTicket.
* @example
* // Update one SupportTicket
* const supportTicket = await prisma.supportTicket.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends SupportTicketUpdateArgs>(args: Prisma.SelectSubset<T, SupportTicketUpdateArgs<ExtArgs>>): Prisma.Prisma__SupportTicketClient<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more SupportTickets.
* @param {SupportTicketDeleteManyArgs} args - Arguments to filter SupportTickets to delete.
* @example
* // Delete a few SupportTickets
* const { count } = await prisma.supportTicket.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends SupportTicketDeleteManyArgs>(args?: Prisma.SelectSubset<T, SupportTicketDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more SupportTickets.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SupportTicketUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many SupportTickets
* const supportTicket = await prisma.supportTicket.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends SupportTicketUpdateManyArgs>(args: Prisma.SelectSubset<T, SupportTicketUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more SupportTickets and returns the data updated in the database.
* @param {SupportTicketUpdateManyAndReturnArgs} args - Arguments to update many SupportTickets.
* @example
* // Update many SupportTickets
* const supportTicket = await prisma.supportTicket.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more SupportTickets and only return the `id`
* const supportTicketWithIdOnly = await prisma.supportTicket.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 SupportTicketUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SupportTicketUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one SupportTicket.
* @param {SupportTicketUpsertArgs} args - Arguments to update or create a SupportTicket.
* @example
* // Update or create a SupportTicket
* const supportTicket = await prisma.supportTicket.upsert({
* create: {
* // ... data to create a SupportTicket
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the SupportTicket we want to update
* }
* })
*/
upsert<T extends SupportTicketUpsertArgs>(args: Prisma.SelectSubset<T, SupportTicketUpsertArgs<ExtArgs>>): Prisma.Prisma__SupportTicketClient<runtime.Types.Result.GetResult<Prisma.$SupportTicketPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of SupportTickets.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SupportTicketCountArgs} args - Arguments to filter SupportTickets to count.
* @example
* // Count the number of SupportTickets
* const count = await prisma.supportTicket.count({
* where: {
* // ... the filter for the SupportTickets we want to count
* }
* })
**/
count<T extends SupportTicketCountArgs>(
args?: Prisma.Subset<T, SupportTicketCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], SupportTicketCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a SupportTicket.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SupportTicketAggregateArgs} 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 SupportTicketAggregateArgs>(args: Prisma.Subset<T, SupportTicketAggregateArgs>): Prisma.PrismaPromise<GetSupportTicketAggregateType<T>>
/**
* Group by SupportTicket.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SupportTicketGroupByArgs} 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 SupportTicketGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: SupportTicketGroupByArgs['orderBy'] }
: { orderBy?: SupportTicketGroupByArgs['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, SupportTicketGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSupportTicketGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the SupportTicket model
*/
readonly fields: SupportTicketFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for SupportTicket.
* 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__SupportTicketClient<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.SupportTicket$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SupportTicket$tenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
user<T extends Prisma.SupportTicket$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SupportTicket$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<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 SupportTicket model
*/
export interface SupportTicketFieldRefs {
readonly id: Prisma.FieldRef<"SupportTicket", 'String'>
readonly createdAt: Prisma.FieldRef<"SupportTicket", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"SupportTicket", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"SupportTicket", 'String'>
readonly userId: Prisma.FieldRef<"SupportTicket", 'String'>
readonly source: Prisma.FieldRef<"SupportTicket", 'String'>
readonly status: Prisma.FieldRef<"SupportTicket", 'String'>
readonly priority: Prisma.FieldRef<"SupportTicket", 'String'>
readonly subject: Prisma.FieldRef<"SupportTicket", 'String'>
readonly message: Prisma.FieldRef<"SupportTicket", 'String'>
readonly fromEmail: Prisma.FieldRef<"SupportTicket", 'String'>
readonly fromUrl: Prisma.FieldRef<"SupportTicket", 'String'>
readonly inboundMessageId: Prisma.FieldRef<"SupportTicket", 'String'>
}
// Custom InputTypes
/**
* SupportTicket findUnique
*/
export type SupportTicketFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
/**
* Filter, which SupportTicket to fetch.
*/
where: Prisma.SupportTicketWhereUniqueInput
}
/**
* SupportTicket findUniqueOrThrow
*/
export type SupportTicketFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
/**
* Filter, which SupportTicket to fetch.
*/
where: Prisma.SupportTicketWhereUniqueInput
}
/**
* SupportTicket findFirst
*/
export type SupportTicketFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
/**
* Filter, which SupportTicket to fetch.
*/
where?: Prisma.SupportTicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SupportTickets to fetch.
*/
orderBy?: Prisma.SupportTicketOrderByWithRelationInput | Prisma.SupportTicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SupportTickets.
*/
cursor?: Prisma.SupportTicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SupportTickets 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` SupportTickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SupportTickets.
*/
distinct?: Prisma.SupportTicketScalarFieldEnum | Prisma.SupportTicketScalarFieldEnum[]
}
/**
* SupportTicket findFirstOrThrow
*/
export type SupportTicketFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
/**
* Filter, which SupportTicket to fetch.
*/
where?: Prisma.SupportTicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SupportTickets to fetch.
*/
orderBy?: Prisma.SupportTicketOrderByWithRelationInput | Prisma.SupportTicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SupportTickets.
*/
cursor?: Prisma.SupportTicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SupportTickets 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` SupportTickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SupportTickets.
*/
distinct?: Prisma.SupportTicketScalarFieldEnum | Prisma.SupportTicketScalarFieldEnum[]
}
/**
* SupportTicket findMany
*/
export type SupportTicketFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
/**
* Filter, which SupportTickets to fetch.
*/
where?: Prisma.SupportTicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SupportTickets to fetch.
*/
orderBy?: Prisma.SupportTicketOrderByWithRelationInput | Prisma.SupportTicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing SupportTickets.
*/
cursor?: Prisma.SupportTicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SupportTickets 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` SupportTickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SupportTickets.
*/
distinct?: Prisma.SupportTicketScalarFieldEnum | Prisma.SupportTicketScalarFieldEnum[]
}
/**
* SupportTicket create
*/
export type SupportTicketCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
/**
* The data needed to create a SupportTicket.
*/
data: Prisma.XOR<Prisma.SupportTicketCreateInput, Prisma.SupportTicketUncheckedCreateInput>
}
/**
* SupportTicket createMany
*/
export type SupportTicketCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many SupportTickets.
*/
data: Prisma.SupportTicketCreateManyInput | Prisma.SupportTicketCreateManyInput[]
skipDuplicates?: boolean
}
/**
* SupportTicket createManyAndReturn
*/
export type SupportTicketCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* The data used to create many SupportTickets.
*/
data: Prisma.SupportTicketCreateManyInput | Prisma.SupportTicketCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* SupportTicket update
*/
export type SupportTicketUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
/**
* The data needed to update a SupportTicket.
*/
data: Prisma.XOR<Prisma.SupportTicketUpdateInput, Prisma.SupportTicketUncheckedUpdateInput>
/**
* Choose, which SupportTicket to update.
*/
where: Prisma.SupportTicketWhereUniqueInput
}
/**
* SupportTicket updateMany
*/
export type SupportTicketUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update SupportTickets.
*/
data: Prisma.XOR<Prisma.SupportTicketUpdateManyMutationInput, Prisma.SupportTicketUncheckedUpdateManyInput>
/**
* Filter which SupportTickets to update
*/
where?: Prisma.SupportTicketWhereInput
/**
* Limit how many SupportTickets to update.
*/
limit?: number
}
/**
* SupportTicket updateManyAndReturn
*/
export type SupportTicketUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* The data used to update SupportTickets.
*/
data: Prisma.XOR<Prisma.SupportTicketUpdateManyMutationInput, Prisma.SupportTicketUncheckedUpdateManyInput>
/**
* Filter which SupportTickets to update
*/
where?: Prisma.SupportTicketWhereInput
/**
* Limit how many SupportTickets to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* SupportTicket upsert
*/
export type SupportTicketUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
/**
* The filter to search for the SupportTicket to update in case it exists.
*/
where: Prisma.SupportTicketWhereUniqueInput
/**
* In case the SupportTicket found by the `where` argument doesn't exist, create a new SupportTicket with this data.
*/
create: Prisma.XOR<Prisma.SupportTicketCreateInput, Prisma.SupportTicketUncheckedCreateInput>
/**
* In case the SupportTicket was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.SupportTicketUpdateInput, Prisma.SupportTicketUncheckedUpdateInput>
}
/**
* SupportTicket delete
*/
export type SupportTicketDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
/**
* Filter which SupportTicket to delete.
*/
where: Prisma.SupportTicketWhereUniqueInput
}
/**
* SupportTicket deleteMany
*/
export type SupportTicketDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SupportTickets to delete
*/
where?: Prisma.SupportTicketWhereInput
/**
* Limit how many SupportTickets to delete.
*/
limit?: number
}
/**
* SupportTicket.tenant
*/
export type SupportTicket$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
}
/**
* SupportTicket.user
*/
export type SupportTicket$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* SupportTicket without action
*/
export type SupportTicketDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupportTicket
*/
select?: Prisma.SupportTicketSelect<ExtArgs> | null
/**
* Omit specific fields from the SupportTicket
*/
omit?: Prisma.SupportTicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupportTicketInclude<ExtArgs> | null
}