
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// @ts-nocheck 
/*
 * This file exports the `ShortLink` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/library"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"

/**
 * Model ShortLink
 * 
 */
export type ShortLinkModel = runtime.Types.Result.DefaultSelection<Prisma.$ShortLinkPayload>

export type AggregateShortLink = {
  _count: ShortLinkCountAggregateOutputType | null
  _min: ShortLinkMinAggregateOutputType | null
  _max: ShortLinkMaxAggregateOutputType | null
}

export type ShortLinkMinAggregateOutputType = {
  id: string | null
  shortCode: string | null
  fullUrl: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ShortLinkMaxAggregateOutputType = {
  id: string | null
  shortCode: string | null
  fullUrl: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ShortLinkCountAggregateOutputType = {
  id: number
  shortCode: number
  fullUrl: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type ShortLinkMinAggregateInputType = {
  id?: true
  shortCode?: true
  fullUrl?: true
  createdAt?: true
  updatedAt?: true
}

export type ShortLinkMaxAggregateInputType = {
  id?: true
  shortCode?: true
  fullUrl?: true
  createdAt?: true
  updatedAt?: true
}

export type ShortLinkCountAggregateInputType = {
  id?: true
  shortCode?: true
  fullUrl?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type ShortLinkAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ShortLink to aggregate.
   */
  where?: Prisma.ShortLinkWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ShortLinks to fetch.
   */
  orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ShortLinkWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ShortLinks 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` ShortLinks.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ShortLinks
  **/
  _count?: true | ShortLinkCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ShortLinkMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ShortLinkMaxAggregateInputType
}

export type GetShortLinkAggregateType<T extends ShortLinkAggregateArgs> = {
      [P in keyof T & keyof AggregateShortLink]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateShortLink[P]>
    : Prisma.GetScalarType<T[P], AggregateShortLink[P]>
}




export type ShortLinkGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ShortLinkWhereInput
  orderBy?: Prisma.ShortLinkOrderByWithAggregationInput | Prisma.ShortLinkOrderByWithAggregationInput[]
  by: Prisma.ShortLinkScalarFieldEnum[] | Prisma.ShortLinkScalarFieldEnum
  having?: Prisma.ShortLinkScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ShortLinkCountAggregateInputType | true
  _min?: ShortLinkMinAggregateInputType
  _max?: ShortLinkMaxAggregateInputType
}

export type ShortLinkGroupByOutputType = {
  id: string
  shortCode: string
  fullUrl: string
  createdAt: Date
  updatedAt: Date
  _count: ShortLinkCountAggregateOutputType | null
  _min: ShortLinkMinAggregateOutputType | null
  _max: ShortLinkMaxAggregateOutputType | null
}

type GetShortLinkGroupByPayload<T extends ShortLinkGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<ShortLinkGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof ShortLinkGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], ShortLinkGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], ShortLinkGroupByOutputType[P]>
      }
    >
  >



export type ShortLinkWhereInput = {
  AND?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[]
  OR?: Prisma.ShortLinkWhereInput[]
  NOT?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[]
  id?: Prisma.StringFilter<"ShortLink"> | string
  shortCode?: Prisma.StringFilter<"ShortLink"> | string
  fullUrl?: Prisma.StringFilter<"ShortLink"> | string
  createdAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string
}

export type ShortLinkOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  shortCode?: Prisma.SortOrder
  fullUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ShortLinkWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  shortCode?: string
  AND?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[]
  OR?: Prisma.ShortLinkWhereInput[]
  NOT?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[]
  fullUrl?: Prisma.StringFilter<"ShortLink"> | string
  createdAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string
}, "id" | "shortCode">

export type ShortLinkOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  shortCode?: Prisma.SortOrder
  fullUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.ShortLinkCountOrderByAggregateInput
  _max?: Prisma.ShortLinkMaxOrderByAggregateInput
  _min?: Prisma.ShortLinkMinOrderByAggregateInput
}

export type ShortLinkScalarWhereWithAggregatesInput = {
  AND?: Prisma.ShortLinkScalarWhereWithAggregatesInput | Prisma.ShortLinkScalarWhereWithAggregatesInput[]
  OR?: Prisma.ShortLinkScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ShortLinkScalarWhereWithAggregatesInput | Prisma.ShortLinkScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ShortLink"> | string
  shortCode?: Prisma.StringWithAggregatesFilter<"ShortLink"> | string
  fullUrl?: Prisma.StringWithAggregatesFilter<"ShortLink"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ShortLink"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ShortLink"> | Date | string
}

export type ShortLinkCreateInput = {
  id?: string
  shortCode: string
  fullUrl: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ShortLinkUncheckedCreateInput = {
  id?: string
  shortCode: string
  fullUrl: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ShortLinkUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  shortCode?: Prisma.StringFieldUpdateOperationsInput | string
  fullUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ShortLinkUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  shortCode?: Prisma.StringFieldUpdateOperationsInput | string
  fullUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ShortLinkCreateManyInput = {
  id?: string
  shortCode: string
  fullUrl: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ShortLinkUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  shortCode?: Prisma.StringFieldUpdateOperationsInput | string
  fullUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ShortLinkUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  shortCode?: Prisma.StringFieldUpdateOperationsInput | string
  fullUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ShortLinkCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  shortCode?: Prisma.SortOrder
  fullUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ShortLinkMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  shortCode?: Prisma.SortOrder
  fullUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ShortLinkMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  shortCode?: Prisma.SortOrder
  fullUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type StringFieldUpdateOperationsInput = {
  set?: string
}

export type DateTimeFieldUpdateOperationsInput = {
  set?: Date | string
}



export type ShortLinkSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  shortCode?: boolean
  fullUrl?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["shortLink"]>

export type ShortLinkSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  shortCode?: boolean
  fullUrl?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["shortLink"]>

export type ShortLinkSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  shortCode?: boolean
  fullUrl?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["shortLink"]>

export type ShortLinkSelectScalar = {
  id?: boolean
  shortCode?: boolean
  fullUrl?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type ShortLinkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "shortCode" | "fullUrl" | "createdAt" | "updatedAt", ExtArgs["result"]["shortLink"]>

export type $ShortLinkPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ShortLink"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    shortCode: string
    fullUrl: string
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["shortLink"]>
  composites: {}
}

export type ShortLinkGetPayload<S extends boolean | null | undefined | ShortLinkDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload, S>

export type ShortLinkCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<ShortLinkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: ShortLinkCountAggregateInputType | true
  }

export interface ShortLinkDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShortLink'], meta: { name: 'ShortLink' } }
  /**
   * Find zero or one ShortLink that matches the filter.
   * @param {ShortLinkFindUniqueArgs} args - Arguments to find a ShortLink
   * @example
   * // Get one ShortLink
   * const shortLink = await prisma.shortLink.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends ShortLinkFindUniqueArgs>(args: Prisma.SelectSubset<T, ShortLinkFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one ShortLink that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {ShortLinkFindUniqueOrThrowArgs} args - Arguments to find a ShortLink
   * @example
   * // Get one ShortLink
   * const shortLink = await prisma.shortLink.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends ShortLinkFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ShortLinkFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first ShortLink 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 {ShortLinkFindFirstArgs} args - Arguments to find a ShortLink
   * @example
   * // Get one ShortLink
   * const shortLink = await prisma.shortLink.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends ShortLinkFindFirstArgs>(args?: Prisma.SelectSubset<T, ShortLinkFindFirstArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first ShortLink 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 {ShortLinkFindFirstOrThrowArgs} args - Arguments to find a ShortLink
   * @example
   * // Get one ShortLink
   * const shortLink = await prisma.shortLink.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends ShortLinkFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ShortLinkFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more ShortLinks 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 {ShortLinkFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all ShortLinks
   * const shortLinks = await prisma.shortLink.findMany()
   * 
   * // Get first 10 ShortLinks
   * const shortLinks = await prisma.shortLink.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const shortLinkWithIdOnly = await prisma.shortLink.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends ShortLinkFindManyArgs>(args?: Prisma.SelectSubset<T, ShortLinkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a ShortLink.
   * @param {ShortLinkCreateArgs} args - Arguments to create a ShortLink.
   * @example
   * // Create one ShortLink
   * const ShortLink = await prisma.shortLink.create({
   *   data: {
   *     // ... data to create a ShortLink
   *   }
   * })
   * 
   */
  create<T extends ShortLinkCreateArgs>(args: Prisma.SelectSubset<T, ShortLinkCreateArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many ShortLinks.
   * @param {ShortLinkCreateManyArgs} args - Arguments to create many ShortLinks.
   * @example
   * // Create many ShortLinks
   * const shortLink = await prisma.shortLink.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends ShortLinkCreateManyArgs>(args?: Prisma.SelectSubset<T, ShortLinkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many ShortLinks and returns the data saved in the database.
   * @param {ShortLinkCreateManyAndReturnArgs} args - Arguments to create many ShortLinks.
   * @example
   * // Create many ShortLinks
   * const shortLink = await prisma.shortLink.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many ShortLinks and only return the `id`
   * const shortLinkWithIdOnly = await prisma.shortLink.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 ShortLinkCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ShortLinkCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a ShortLink.
   * @param {ShortLinkDeleteArgs} args - Arguments to delete one ShortLink.
   * @example
   * // Delete one ShortLink
   * const ShortLink = await prisma.shortLink.delete({
   *   where: {
   *     // ... filter to delete one ShortLink
   *   }
   * })
   * 
   */
  delete<T extends ShortLinkDeleteArgs>(args: Prisma.SelectSubset<T, ShortLinkDeleteArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one ShortLink.
   * @param {ShortLinkUpdateArgs} args - Arguments to update one ShortLink.
   * @example
   * // Update one ShortLink
   * const shortLink = await prisma.shortLink.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends ShortLinkUpdateArgs>(args: Prisma.SelectSubset<T, ShortLinkUpdateArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more ShortLinks.
   * @param {ShortLinkDeleteManyArgs} args - Arguments to filter ShortLinks to delete.
   * @example
   * // Delete a few ShortLinks
   * const { count } = await prisma.shortLink.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends ShortLinkDeleteManyArgs>(args?: Prisma.SelectSubset<T, ShortLinkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more ShortLinks.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ShortLinkUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many ShortLinks
   * const shortLink = await prisma.shortLink.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends ShortLinkUpdateManyArgs>(args: Prisma.SelectSubset<T, ShortLinkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more ShortLinks and returns the data updated in the database.
   * @param {ShortLinkUpdateManyAndReturnArgs} args - Arguments to update many ShortLinks.
   * @example
   * // Update many ShortLinks
   * const shortLink = await prisma.shortLink.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more ShortLinks and only return the `id`
   * const shortLinkWithIdOnly = await prisma.shortLink.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 ShortLinkUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ShortLinkUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one ShortLink.
   * @param {ShortLinkUpsertArgs} args - Arguments to update or create a ShortLink.
   * @example
   * // Update or create a ShortLink
   * const shortLink = await prisma.shortLink.upsert({
   *   create: {
   *     // ... data to create a ShortLink
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the ShortLink we want to update
   *   }
   * })
   */
  upsert<T extends ShortLinkUpsertArgs>(args: Prisma.SelectSubset<T, ShortLinkUpsertArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of ShortLinks.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ShortLinkCountArgs} args - Arguments to filter ShortLinks to count.
   * @example
   * // Count the number of ShortLinks
   * const count = await prisma.shortLink.count({
   *   where: {
   *     // ... the filter for the ShortLinks we want to count
   *   }
   * })
  **/
  count<T extends ShortLinkCountArgs>(
    args?: Prisma.Subset<T, ShortLinkCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], ShortLinkCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a ShortLink.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ShortLinkAggregateArgs} 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 ShortLinkAggregateArgs>(args: Prisma.Subset<T, ShortLinkAggregateArgs>): Prisma.PrismaPromise<GetShortLinkAggregateType<T>>

  /**
   * Group by ShortLink.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ShortLinkGroupByArgs} 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 ShortLinkGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: ShortLinkGroupByArgs['orderBy'] }
      : { orderBy?: ShortLinkGroupByArgs['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, ShortLinkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShortLinkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the ShortLink model
 */
readonly fields: ShortLinkFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for ShortLink.
 * 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__ShortLinkClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  /**
   * 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 ShortLink model
 */
export interface ShortLinkFieldRefs {
  readonly id: Prisma.FieldRef<"ShortLink", 'String'>
  readonly shortCode: Prisma.FieldRef<"ShortLink", 'String'>
  readonly fullUrl: Prisma.FieldRef<"ShortLink", 'String'>
  readonly createdAt: Prisma.FieldRef<"ShortLink", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"ShortLink", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ShortLink findUnique
 */
export type ShortLinkFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * Filter, which ShortLink to fetch.
   */
  where: Prisma.ShortLinkWhereUniqueInput
}

/**
 * ShortLink findUniqueOrThrow
 */
export type ShortLinkFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * Filter, which ShortLink to fetch.
   */
  where: Prisma.ShortLinkWhereUniqueInput
}

/**
 * ShortLink findFirst
 */
export type ShortLinkFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * Filter, which ShortLink to fetch.
   */
  where?: Prisma.ShortLinkWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ShortLinks to fetch.
   */
  orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ShortLinks.
   */
  cursor?: Prisma.ShortLinkWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ShortLinks 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` ShortLinks.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ShortLinks.
   */
  distinct?: Prisma.ShortLinkScalarFieldEnum | Prisma.ShortLinkScalarFieldEnum[]
}

/**
 * ShortLink findFirstOrThrow
 */
export type ShortLinkFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * Filter, which ShortLink to fetch.
   */
  where?: Prisma.ShortLinkWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ShortLinks to fetch.
   */
  orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ShortLinks.
   */
  cursor?: Prisma.ShortLinkWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ShortLinks 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` ShortLinks.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ShortLinks.
   */
  distinct?: Prisma.ShortLinkScalarFieldEnum | Prisma.ShortLinkScalarFieldEnum[]
}

/**
 * ShortLink findMany
 */
export type ShortLinkFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * Filter, which ShortLinks to fetch.
   */
  where?: Prisma.ShortLinkWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ShortLinks to fetch.
   */
  orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing ShortLinks.
   */
  cursor?: Prisma.ShortLinkWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ShortLinks 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` ShortLinks.
   */
  skip?: number
  distinct?: Prisma.ShortLinkScalarFieldEnum | Prisma.ShortLinkScalarFieldEnum[]
}

/**
 * ShortLink create
 */
export type ShortLinkCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * The data needed to create a ShortLink.
   */
  data: Prisma.XOR<Prisma.ShortLinkCreateInput, Prisma.ShortLinkUncheckedCreateInput>
}

/**
 * ShortLink createMany
 */
export type ShortLinkCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many ShortLinks.
   */
  data: Prisma.ShortLinkCreateManyInput | Prisma.ShortLinkCreateManyInput[]
}

/**
 * ShortLink createManyAndReturn
 */
export type ShortLinkCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * The data used to create many ShortLinks.
   */
  data: Prisma.ShortLinkCreateManyInput | Prisma.ShortLinkCreateManyInput[]
}

/**
 * ShortLink update
 */
export type ShortLinkUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * The data needed to update a ShortLink.
   */
  data: Prisma.XOR<Prisma.ShortLinkUpdateInput, Prisma.ShortLinkUncheckedUpdateInput>
  /**
   * Choose, which ShortLink to update.
   */
  where: Prisma.ShortLinkWhereUniqueInput
}

/**
 * ShortLink updateMany
 */
export type ShortLinkUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ShortLinks.
   */
  data: Prisma.XOR<Prisma.ShortLinkUpdateManyMutationInput, Prisma.ShortLinkUncheckedUpdateManyInput>
  /**
   * Filter which ShortLinks to update
   */
  where?: Prisma.ShortLinkWhereInput
  /**
   * Limit how many ShortLinks to update.
   */
  limit?: number
}

/**
 * ShortLink updateManyAndReturn
 */
export type ShortLinkUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * The data used to update ShortLinks.
   */
  data: Prisma.XOR<Prisma.ShortLinkUpdateManyMutationInput, Prisma.ShortLinkUncheckedUpdateManyInput>
  /**
   * Filter which ShortLinks to update
   */
  where?: Prisma.ShortLinkWhereInput
  /**
   * Limit how many ShortLinks to update.
   */
  limit?: number
}

/**
 * ShortLink upsert
 */
export type ShortLinkUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * The filter to search for the ShortLink to update in case it exists.
   */
  where: Prisma.ShortLinkWhereUniqueInput
  /**
   * In case the ShortLink found by the `where` argument doesn't exist, create a new ShortLink with this data.
   */
  create: Prisma.XOR<Prisma.ShortLinkCreateInput, Prisma.ShortLinkUncheckedCreateInput>
  /**
   * In case the ShortLink was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ShortLinkUpdateInput, Prisma.ShortLinkUncheckedUpdateInput>
}

/**
 * ShortLink delete
 */
export type ShortLinkDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  /**
   * Filter which ShortLink to delete.
   */
  where: Prisma.ShortLinkWhereUniqueInput
}

/**
 * ShortLink deleteMany
 */
export type ShortLinkDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ShortLinks to delete
   */
  where?: Prisma.ShortLinkWhereInput
  /**
   * Limit how many ShortLinks to delete.
   */
  limit?: number
}

/**
 * ShortLink without action
 */
export type ShortLinkDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShortLink
   */
  select?: Prisma.ShortLinkSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShortLink
   */
  omit?: Prisma.ShortLinkOmit<ExtArgs> | null
}
