
/* !!! 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"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * 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
  userId: string | null
  type: $Enums.SupportTicketType | null
  message: string | null
  status: $Enums.SupportTicketStatus | null
  createdAt: Date | null
  updatedAt: Date | null
  resolvedAt: Date | null
}

export type SupportTicketMaxAggregateOutputType = {
  id: string | null
  userId: string | null
  type: $Enums.SupportTicketType | null
  message: string | null
  status: $Enums.SupportTicketStatus | null
  createdAt: Date | null
  updatedAt: Date | null
  resolvedAt: Date | null
}

export type SupportTicketCountAggregateOutputType = {
  id: number
  userId: number
  type: number
  message: number
  status: number
  createdAt: number
  updatedAt: number
  resolvedAt: number
  _all: number
}


export type SupportTicketMinAggregateInputType = {
  id?: true
  userId?: true
  type?: true
  message?: true
  status?: true
  createdAt?: true
  updatedAt?: true
  resolvedAt?: true
}

export type SupportTicketMaxAggregateInputType = {
  id?: true
  userId?: true
  type?: true
  message?: true
  status?: true
  createdAt?: true
  updatedAt?: true
  resolvedAt?: true
}

export type SupportTicketCountAggregateInputType = {
  id?: true
  userId?: true
  type?: true
  message?: true
  status?: true
  createdAt?: true
  updatedAt?: true
  resolvedAt?: 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
  userId: string
  type: $Enums.SupportTicketType
  message: string
  status: $Enums.SupportTicketStatus
  createdAt: Date
  updatedAt: Date
  resolvedAt: Date | null
  _count: SupportTicketCountAggregateOutputType | null
  _min: SupportTicketMinAggregateOutputType | null
  _max: SupportTicketMaxAggregateOutputType | null
}

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
  userId?: Prisma.StringFilter<"supportTicket"> | string
  type?: Prisma.EnumSupportTicketTypeFilter<"supportTicket"> | $Enums.SupportTicketType
  message?: Prisma.StringFilter<"supportTicket"> | string
  status?: Prisma.EnumSupportTicketStatusFilter<"supportTicket"> | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFilter<"supportTicket"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"supportTicket"> | Date | string
  resolvedAt?: Prisma.DateTimeNullableFilter<"supportTicket"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.userWhereInput>
}

export type supportTicketOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  status?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  resolvedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  user?: Prisma.userOrderByWithRelationInput
}

export type supportTicketWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.supportTicketWhereInput | Prisma.supportTicketWhereInput[]
  OR?: Prisma.supportTicketWhereInput[]
  NOT?: Prisma.supportTicketWhereInput | Prisma.supportTicketWhereInput[]
  userId?: Prisma.StringFilter<"supportTicket"> | string
  type?: Prisma.EnumSupportTicketTypeFilter<"supportTicket"> | $Enums.SupportTicketType
  message?: Prisma.StringFilter<"supportTicket"> | string
  status?: Prisma.EnumSupportTicketStatusFilter<"supportTicket"> | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFilter<"supportTicket"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"supportTicket"> | Date | string
  resolvedAt?: Prisma.DateTimeNullableFilter<"supportTicket"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.userWhereInput>
}, "id">

export type supportTicketOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  status?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  resolvedAt?: 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
  userId?: Prisma.StringWithAggregatesFilter<"supportTicket"> | string
  type?: Prisma.EnumSupportTicketTypeWithAggregatesFilter<"supportTicket"> | $Enums.SupportTicketType
  message?: Prisma.StringWithAggregatesFilter<"supportTicket"> | string
  status?: Prisma.EnumSupportTicketStatusWithAggregatesFilter<"supportTicket"> | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"supportTicket"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"supportTicket"> | Date | string
  resolvedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"supportTicket"> | Date | string | null
}

export type supportTicketCreateInput = {
  id?: string
  type: $Enums.SupportTicketType
  message: string
  status?: $Enums.SupportTicketStatus
  createdAt?: Date | string
  updatedAt?: Date | string
  resolvedAt?: Date | string | null
  user: Prisma.userCreateNestedOneWithoutSupportTicketsInput
}

export type supportTicketUncheckedCreateInput = {
  id?: string
  userId: string
  type: $Enums.SupportTicketType
  message: string
  status?: $Enums.SupportTicketStatus
  createdAt?: Date | string
  updatedAt?: Date | string
  resolvedAt?: Date | string | null
}

export type supportTicketUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumSupportTicketTypeFieldUpdateOperationsInput | $Enums.SupportTicketType
  message?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumSupportTicketStatusFieldUpdateOperationsInput | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  user?: Prisma.userUpdateOneRequiredWithoutSupportTicketsNestedInput
}

export type supportTicketUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumSupportTicketTypeFieldUpdateOperationsInput | $Enums.SupportTicketType
  message?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumSupportTicketStatusFieldUpdateOperationsInput | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type supportTicketCreateManyInput = {
  id?: string
  userId: string
  type: $Enums.SupportTicketType
  message: string
  status?: $Enums.SupportTicketStatus
  createdAt?: Date | string
  updatedAt?: Date | string
  resolvedAt?: Date | string | null
}

export type supportTicketUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumSupportTicketTypeFieldUpdateOperationsInput | $Enums.SupportTicketType
  message?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumSupportTicketStatusFieldUpdateOperationsInput | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type supportTicketUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumSupportTicketTypeFieldUpdateOperationsInput | $Enums.SupportTicketType
  message?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumSupportTicketStatusFieldUpdateOperationsInput | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | 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
  userId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  status?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  resolvedAt?: Prisma.SortOrder
}

export type supportTicketMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  status?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  resolvedAt?: Prisma.SortOrder
}

export type supportTicketMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  status?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  resolvedAt?: 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 EnumSupportTicketTypeFieldUpdateOperationsInput = {
  set?: $Enums.SupportTicketType
}

export type EnumSupportTicketStatusFieldUpdateOperationsInput = {
  set?: $Enums.SupportTicketStatus
}

export type NullableDateTimeFieldUpdateOperationsInput = {
  set?: Date | string | null
}

export type supportTicketCreateWithoutUserInput = {
  id?: string
  type: $Enums.SupportTicketType
  message: string
  status?: $Enums.SupportTicketStatus
  createdAt?: Date | string
  updatedAt?: Date | string
  resolvedAt?: Date | string | null
}

export type supportTicketUncheckedCreateWithoutUserInput = {
  id?: string
  type: $Enums.SupportTicketType
  message: string
  status?: $Enums.SupportTicketStatus
  createdAt?: Date | string
  updatedAt?: Date | string
  resolvedAt?: Date | 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
  userId?: Prisma.StringFilter<"supportTicket"> | string
  type?: Prisma.EnumSupportTicketTypeFilter<"supportTicket"> | $Enums.SupportTicketType
  message?: Prisma.StringFilter<"supportTicket"> | string
  status?: Prisma.EnumSupportTicketStatusFilter<"supportTicket"> | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFilter<"supportTicket"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"supportTicket"> | Date | string
  resolvedAt?: Prisma.DateTimeNullableFilter<"supportTicket"> | Date | string | null
}

export type supportTicketCreateManyUserInput = {
  id?: string
  type: $Enums.SupportTicketType
  message: string
  status?: $Enums.SupportTicketStatus
  createdAt?: Date | string
  updatedAt?: Date | string
  resolvedAt?: Date | string | null
}

export type supportTicketUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumSupportTicketTypeFieldUpdateOperationsInput | $Enums.SupportTicketType
  message?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumSupportTicketStatusFieldUpdateOperationsInput | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type supportTicketUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumSupportTicketTypeFieldUpdateOperationsInput | $Enums.SupportTicketType
  message?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumSupportTicketStatusFieldUpdateOperationsInput | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type supportTicketUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumSupportTicketTypeFieldUpdateOperationsInput | $Enums.SupportTicketType
  message?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumSupportTicketStatusFieldUpdateOperationsInput | $Enums.SupportTicketStatus
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type supportTicketSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  type?: boolean
  message?: boolean
  status?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  resolvedAt?: boolean
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["supportTicket"]>

export type supportTicketSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  type?: boolean
  message?: boolean
  status?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  resolvedAt?: boolean
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["supportTicket"]>

export type supportTicketSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  type?: boolean
  message?: boolean
  status?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  resolvedAt?: boolean
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["supportTicket"]>

export type supportTicketSelectScalar = {
  id?: boolean
  userId?: boolean
  type?: boolean
  message?: boolean
  status?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  resolvedAt?: boolean
}

export type supportTicketOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "type" | "message" | "status" | "createdAt" | "updatedAt" | "resolvedAt", ExtArgs["result"]["supportTicket"]>
export type supportTicketInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}
export type supportTicketIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}
export type supportTicketIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}

export type $supportTicketPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "supportTicket"
  objects: {
    user: Prisma.$userPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    userId: string
    type: $Enums.SupportTicketType
    message: string
    status: $Enums.SupportTicketStatus
    createdAt: Date
    updatedAt: Date
    resolvedAt: Date | 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"
  user<T extends Prisma.userDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.userDefaultArgs<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 userId: Prisma.FieldRef<"supportTicket", 'String'>
  readonly type: Prisma.FieldRef<"supportTicket", 'SupportTicketType'>
  readonly message: Prisma.FieldRef<"supportTicket", 'String'>
  readonly status: Prisma.FieldRef<"supportTicket", 'SupportTicketStatus'>
  readonly createdAt: Prisma.FieldRef<"supportTicket", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"supportTicket", 'DateTime'>
  readonly resolvedAt: Prisma.FieldRef<"supportTicket", 'DateTime'>
}
    

// 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
  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 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
}
