
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `SiteBanner` 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 SiteBanner
 * 
 */
export type SiteBannerModel = runtime.Types.Result.DefaultSelection<Prisma.$SiteBannerPayload>

export type AggregateSiteBanner = {
  _count: SiteBannerCountAggregateOutputType | null
  _avg: SiteBannerAvgAggregateOutputType | null
  _sum: SiteBannerSumAggregateOutputType | null
  _min: SiteBannerMinAggregateOutputType | null
  _max: SiteBannerMaxAggregateOutputType | null
}

export type SiteBannerAvgAggregateOutputType = {
  sortOrder: number | null
}

export type SiteBannerSumAggregateOutputType = {
  sortOrder: number | null
}

export type SiteBannerMinAggregateOutputType = {
  id: string | null
  tenantId: string | null
  imageUrl: string | null
  linkUrl: string | null
  altText: string | null
  sortOrder: number | null
  active: boolean | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type SiteBannerMaxAggregateOutputType = {
  id: string | null
  tenantId: string | null
  imageUrl: string | null
  linkUrl: string | null
  altText: string | null
  sortOrder: number | null
  active: boolean | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type SiteBannerCountAggregateOutputType = {
  id: number
  tenantId: number
  imageUrl: number
  linkUrl: number
  altText: number
  sortOrder: number
  active: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type SiteBannerAvgAggregateInputType = {
  sortOrder?: true
}

export type SiteBannerSumAggregateInputType = {
  sortOrder?: true
}

export type SiteBannerMinAggregateInputType = {
  id?: true
  tenantId?: true
  imageUrl?: true
  linkUrl?: true
  altText?: true
  sortOrder?: true
  active?: true
  createdAt?: true
  updatedAt?: true
}

export type SiteBannerMaxAggregateInputType = {
  id?: true
  tenantId?: true
  imageUrl?: true
  linkUrl?: true
  altText?: true
  sortOrder?: true
  active?: true
  createdAt?: true
  updatedAt?: true
}

export type SiteBannerCountAggregateInputType = {
  id?: true
  tenantId?: true
  imageUrl?: true
  linkUrl?: true
  altText?: true
  sortOrder?: true
  active?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type SiteBannerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which SiteBanner to aggregate.
   */
  where?: Prisma.SiteBannerWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of SiteBanners to fetch.
   */
  orderBy?: Prisma.SiteBannerOrderByWithRelationInput | Prisma.SiteBannerOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.SiteBannerWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` SiteBanners 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` SiteBanners.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned SiteBanners
  **/
  _count?: true | SiteBannerCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: SiteBannerAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: SiteBannerSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: SiteBannerMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: SiteBannerMaxAggregateInputType
}

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




export type SiteBannerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.SiteBannerWhereInput
  orderBy?: Prisma.SiteBannerOrderByWithAggregationInput | Prisma.SiteBannerOrderByWithAggregationInput[]
  by: Prisma.SiteBannerScalarFieldEnum[] | Prisma.SiteBannerScalarFieldEnum
  having?: Prisma.SiteBannerScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: SiteBannerCountAggregateInputType | true
  _avg?: SiteBannerAvgAggregateInputType
  _sum?: SiteBannerSumAggregateInputType
  _min?: SiteBannerMinAggregateInputType
  _max?: SiteBannerMaxAggregateInputType
}

export type SiteBannerGroupByOutputType = {
  id: string
  tenantId: string
  imageUrl: string
  linkUrl: string | null
  altText: string | null
  sortOrder: number
  active: boolean
  createdAt: Date
  updatedAt: Date
  _count: SiteBannerCountAggregateOutputType | null
  _avg: SiteBannerAvgAggregateOutputType | null
  _sum: SiteBannerSumAggregateOutputType | null
  _min: SiteBannerMinAggregateOutputType | null
  _max: SiteBannerMaxAggregateOutputType | null
}

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



export type SiteBannerWhereInput = {
  AND?: Prisma.SiteBannerWhereInput | Prisma.SiteBannerWhereInput[]
  OR?: Prisma.SiteBannerWhereInput[]
  NOT?: Prisma.SiteBannerWhereInput | Prisma.SiteBannerWhereInput[]
  id?: Prisma.StringFilter<"SiteBanner"> | string
  tenantId?: Prisma.StringFilter<"SiteBanner"> | string
  imageUrl?: Prisma.StringFilter<"SiteBanner"> | string
  linkUrl?: Prisma.StringNullableFilter<"SiteBanner"> | string | null
  altText?: Prisma.StringNullableFilter<"SiteBanner"> | string | null
  sortOrder?: Prisma.IntFilter<"SiteBanner"> | number
  active?: Prisma.BoolFilter<"SiteBanner"> | boolean
  createdAt?: Prisma.DateTimeFilter<"SiteBanner"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"SiteBanner"> | Date | string
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
}

export type SiteBannerOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  linkUrl?: Prisma.SortOrderInput | Prisma.SortOrder
  altText?: Prisma.SortOrderInput | Prisma.SortOrder
  sortOrder?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  tenant?: Prisma.TenantOrderByWithRelationInput
}

export type SiteBannerWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.SiteBannerWhereInput | Prisma.SiteBannerWhereInput[]
  OR?: Prisma.SiteBannerWhereInput[]
  NOT?: Prisma.SiteBannerWhereInput | Prisma.SiteBannerWhereInput[]
  tenantId?: Prisma.StringFilter<"SiteBanner"> | string
  imageUrl?: Prisma.StringFilter<"SiteBanner"> | string
  linkUrl?: Prisma.StringNullableFilter<"SiteBanner"> | string | null
  altText?: Prisma.StringNullableFilter<"SiteBanner"> | string | null
  sortOrder?: Prisma.IntFilter<"SiteBanner"> | number
  active?: Prisma.BoolFilter<"SiteBanner"> | boolean
  createdAt?: Prisma.DateTimeFilter<"SiteBanner"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"SiteBanner"> | Date | string
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
}, "id">

export type SiteBannerOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  linkUrl?: Prisma.SortOrderInput | Prisma.SortOrder
  altText?: Prisma.SortOrderInput | Prisma.SortOrder
  sortOrder?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.SiteBannerCountOrderByAggregateInput
  _avg?: Prisma.SiteBannerAvgOrderByAggregateInput
  _max?: Prisma.SiteBannerMaxOrderByAggregateInput
  _min?: Prisma.SiteBannerMinOrderByAggregateInput
  _sum?: Prisma.SiteBannerSumOrderByAggregateInput
}

export type SiteBannerScalarWhereWithAggregatesInput = {
  AND?: Prisma.SiteBannerScalarWhereWithAggregatesInput | Prisma.SiteBannerScalarWhereWithAggregatesInput[]
  OR?: Prisma.SiteBannerScalarWhereWithAggregatesInput[]
  NOT?: Prisma.SiteBannerScalarWhereWithAggregatesInput | Prisma.SiteBannerScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"SiteBanner"> | string
  tenantId?: Prisma.StringWithAggregatesFilter<"SiteBanner"> | string
  imageUrl?: Prisma.StringWithAggregatesFilter<"SiteBanner"> | string
  linkUrl?: Prisma.StringNullableWithAggregatesFilter<"SiteBanner"> | string | null
  altText?: Prisma.StringNullableWithAggregatesFilter<"SiteBanner"> | string | null
  sortOrder?: Prisma.IntWithAggregatesFilter<"SiteBanner"> | number
  active?: Prisma.BoolWithAggregatesFilter<"SiteBanner"> | boolean
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"SiteBanner"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SiteBanner"> | Date | string
}

export type SiteBannerCreateInput = {
  id?: string
  imageUrl: string
  linkUrl?: string | null
  altText?: string | null
  sortOrder?: number
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  tenant: Prisma.TenantCreateNestedOneWithoutSiteBannersInput
}

export type SiteBannerUncheckedCreateInput = {
  id?: string
  tenantId: string
  imageUrl: string
  linkUrl?: string | null
  altText?: string | null
  sortOrder?: number
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type SiteBannerUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  linkUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  tenant?: Prisma.TenantUpdateOneRequiredWithoutSiteBannersNestedInput
}

export type SiteBannerUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  linkUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type SiteBannerCreateManyInput = {
  id?: string
  tenantId: string
  imageUrl: string
  linkUrl?: string | null
  altText?: string | null
  sortOrder?: number
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type SiteBannerUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  linkUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type SiteBannerUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  linkUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type SiteBannerListRelationFilter = {
  every?: Prisma.SiteBannerWhereInput
  some?: Prisma.SiteBannerWhereInput
  none?: Prisma.SiteBannerWhereInput
}

export type SiteBannerOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type SiteBannerCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  linkUrl?: Prisma.SortOrder
  altText?: Prisma.SortOrder
  sortOrder?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type SiteBannerAvgOrderByAggregateInput = {
  sortOrder?: Prisma.SortOrder
}

export type SiteBannerMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  linkUrl?: Prisma.SortOrder
  altText?: Prisma.SortOrder
  sortOrder?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type SiteBannerMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  linkUrl?: Prisma.SortOrder
  altText?: Prisma.SortOrder
  sortOrder?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type SiteBannerSumOrderByAggregateInput = {
  sortOrder?: Prisma.SortOrder
}

export type SiteBannerCreateNestedManyWithoutTenantInput = {
  create?: Prisma.XOR<Prisma.SiteBannerCreateWithoutTenantInput, Prisma.SiteBannerUncheckedCreateWithoutTenantInput> | Prisma.SiteBannerCreateWithoutTenantInput[] | Prisma.SiteBannerUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.SiteBannerCreateOrConnectWithoutTenantInput | Prisma.SiteBannerCreateOrConnectWithoutTenantInput[]
  createMany?: Prisma.SiteBannerCreateManyTenantInputEnvelope
  connect?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
}

export type SiteBannerUncheckedCreateNestedManyWithoutTenantInput = {
  create?: Prisma.XOR<Prisma.SiteBannerCreateWithoutTenantInput, Prisma.SiteBannerUncheckedCreateWithoutTenantInput> | Prisma.SiteBannerCreateWithoutTenantInput[] | Prisma.SiteBannerUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.SiteBannerCreateOrConnectWithoutTenantInput | Prisma.SiteBannerCreateOrConnectWithoutTenantInput[]
  createMany?: Prisma.SiteBannerCreateManyTenantInputEnvelope
  connect?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
}

export type SiteBannerUpdateManyWithoutTenantNestedInput = {
  create?: Prisma.XOR<Prisma.SiteBannerCreateWithoutTenantInput, Prisma.SiteBannerUncheckedCreateWithoutTenantInput> | Prisma.SiteBannerCreateWithoutTenantInput[] | Prisma.SiteBannerUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.SiteBannerCreateOrConnectWithoutTenantInput | Prisma.SiteBannerCreateOrConnectWithoutTenantInput[]
  upsert?: Prisma.SiteBannerUpsertWithWhereUniqueWithoutTenantInput | Prisma.SiteBannerUpsertWithWhereUniqueWithoutTenantInput[]
  createMany?: Prisma.SiteBannerCreateManyTenantInputEnvelope
  set?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
  disconnect?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
  delete?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
  connect?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
  update?: Prisma.SiteBannerUpdateWithWhereUniqueWithoutTenantInput | Prisma.SiteBannerUpdateWithWhereUniqueWithoutTenantInput[]
  updateMany?: Prisma.SiteBannerUpdateManyWithWhereWithoutTenantInput | Prisma.SiteBannerUpdateManyWithWhereWithoutTenantInput[]
  deleteMany?: Prisma.SiteBannerScalarWhereInput | Prisma.SiteBannerScalarWhereInput[]
}

export type SiteBannerUncheckedUpdateManyWithoutTenantNestedInput = {
  create?: Prisma.XOR<Prisma.SiteBannerCreateWithoutTenantInput, Prisma.SiteBannerUncheckedCreateWithoutTenantInput> | Prisma.SiteBannerCreateWithoutTenantInput[] | Prisma.SiteBannerUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.SiteBannerCreateOrConnectWithoutTenantInput | Prisma.SiteBannerCreateOrConnectWithoutTenantInput[]
  upsert?: Prisma.SiteBannerUpsertWithWhereUniqueWithoutTenantInput | Prisma.SiteBannerUpsertWithWhereUniqueWithoutTenantInput[]
  createMany?: Prisma.SiteBannerCreateManyTenantInputEnvelope
  set?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
  disconnect?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
  delete?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
  connect?: Prisma.SiteBannerWhereUniqueInput | Prisma.SiteBannerWhereUniqueInput[]
  update?: Prisma.SiteBannerUpdateWithWhereUniqueWithoutTenantInput | Prisma.SiteBannerUpdateWithWhereUniqueWithoutTenantInput[]
  updateMany?: Prisma.SiteBannerUpdateManyWithWhereWithoutTenantInput | Prisma.SiteBannerUpdateManyWithWhereWithoutTenantInput[]
  deleteMany?: Prisma.SiteBannerScalarWhereInput | Prisma.SiteBannerScalarWhereInput[]
}

export type SiteBannerCreateWithoutTenantInput = {
  id?: string
  imageUrl: string
  linkUrl?: string | null
  altText?: string | null
  sortOrder?: number
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type SiteBannerUncheckedCreateWithoutTenantInput = {
  id?: string
  imageUrl: string
  linkUrl?: string | null
  altText?: string | null
  sortOrder?: number
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type SiteBannerCreateOrConnectWithoutTenantInput = {
  where: Prisma.SiteBannerWhereUniqueInput
  create: Prisma.XOR<Prisma.SiteBannerCreateWithoutTenantInput, Prisma.SiteBannerUncheckedCreateWithoutTenantInput>
}

export type SiteBannerCreateManyTenantInputEnvelope = {
  data: Prisma.SiteBannerCreateManyTenantInput | Prisma.SiteBannerCreateManyTenantInput[]
  skipDuplicates?: boolean
}

export type SiteBannerUpsertWithWhereUniqueWithoutTenantInput = {
  where: Prisma.SiteBannerWhereUniqueInput
  update: Prisma.XOR<Prisma.SiteBannerUpdateWithoutTenantInput, Prisma.SiteBannerUncheckedUpdateWithoutTenantInput>
  create: Prisma.XOR<Prisma.SiteBannerCreateWithoutTenantInput, Prisma.SiteBannerUncheckedCreateWithoutTenantInput>
}

export type SiteBannerUpdateWithWhereUniqueWithoutTenantInput = {
  where: Prisma.SiteBannerWhereUniqueInput
  data: Prisma.XOR<Prisma.SiteBannerUpdateWithoutTenantInput, Prisma.SiteBannerUncheckedUpdateWithoutTenantInput>
}

export type SiteBannerUpdateManyWithWhereWithoutTenantInput = {
  where: Prisma.SiteBannerScalarWhereInput
  data: Prisma.XOR<Prisma.SiteBannerUpdateManyMutationInput, Prisma.SiteBannerUncheckedUpdateManyWithoutTenantInput>
}

export type SiteBannerScalarWhereInput = {
  AND?: Prisma.SiteBannerScalarWhereInput | Prisma.SiteBannerScalarWhereInput[]
  OR?: Prisma.SiteBannerScalarWhereInput[]
  NOT?: Prisma.SiteBannerScalarWhereInput | Prisma.SiteBannerScalarWhereInput[]
  id?: Prisma.StringFilter<"SiteBanner"> | string
  tenantId?: Prisma.StringFilter<"SiteBanner"> | string
  imageUrl?: Prisma.StringFilter<"SiteBanner"> | string
  linkUrl?: Prisma.StringNullableFilter<"SiteBanner"> | string | null
  altText?: Prisma.StringNullableFilter<"SiteBanner"> | string | null
  sortOrder?: Prisma.IntFilter<"SiteBanner"> | number
  active?: Prisma.BoolFilter<"SiteBanner"> | boolean
  createdAt?: Prisma.DateTimeFilter<"SiteBanner"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"SiteBanner"> | Date | string
}

export type SiteBannerCreateManyTenantInput = {
  id?: string
  imageUrl: string
  linkUrl?: string | null
  altText?: string | null
  sortOrder?: number
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type SiteBannerUpdateWithoutTenantInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  linkUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type SiteBannerUncheckedUpdateWithoutTenantInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  linkUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type SiteBannerUncheckedUpdateManyWithoutTenantInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  linkUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type SiteBannerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tenantId?: boolean
  imageUrl?: boolean
  linkUrl?: boolean
  altText?: boolean
  sortOrder?: boolean
  active?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}, ExtArgs["result"]["siteBanner"]>

export type SiteBannerSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tenantId?: boolean
  imageUrl?: boolean
  linkUrl?: boolean
  altText?: boolean
  sortOrder?: boolean
  active?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}, ExtArgs["result"]["siteBanner"]>

export type SiteBannerSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tenantId?: boolean
  imageUrl?: boolean
  linkUrl?: boolean
  altText?: boolean
  sortOrder?: boolean
  active?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}, ExtArgs["result"]["siteBanner"]>

export type SiteBannerSelectScalar = {
  id?: boolean
  tenantId?: boolean
  imageUrl?: boolean
  linkUrl?: boolean
  altText?: boolean
  sortOrder?: boolean
  active?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type SiteBannerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "imageUrl" | "linkUrl" | "altText" | "sortOrder" | "active" | "createdAt" | "updatedAt", ExtArgs["result"]["siteBanner"]>
export type SiteBannerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}
export type SiteBannerIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}
export type SiteBannerIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}

export type $SiteBannerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "SiteBanner"
  objects: {
    tenant: Prisma.$TenantPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    tenantId: string
    imageUrl: string
    linkUrl: string | null
    altText: string | null
    sortOrder: number
    active: boolean
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["siteBanner"]>
  composites: {}
}

export type SiteBannerGetPayload<S extends boolean | null | undefined | SiteBannerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SiteBannerPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for SiteBanner.
 * 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__SiteBannerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the SiteBanner model
 */
export interface SiteBannerFieldRefs {
  readonly id: Prisma.FieldRef<"SiteBanner", 'String'>
  readonly tenantId: Prisma.FieldRef<"SiteBanner", 'String'>
  readonly imageUrl: Prisma.FieldRef<"SiteBanner", 'String'>
  readonly linkUrl: Prisma.FieldRef<"SiteBanner", 'String'>
  readonly altText: Prisma.FieldRef<"SiteBanner", 'String'>
  readonly sortOrder: Prisma.FieldRef<"SiteBanner", 'Int'>
  readonly active: Prisma.FieldRef<"SiteBanner", 'Boolean'>
  readonly createdAt: Prisma.FieldRef<"SiteBanner", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"SiteBanner", 'DateTime'>
}
    

// Custom InputTypes
/**
 * SiteBanner findUnique
 */
export type SiteBannerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
  /**
   * Filter, which SiteBanner to fetch.
   */
  where: Prisma.SiteBannerWhereUniqueInput
}

/**
 * SiteBanner findUniqueOrThrow
 */
export type SiteBannerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
  /**
   * Filter, which SiteBanner to fetch.
   */
  where: Prisma.SiteBannerWhereUniqueInput
}

/**
 * SiteBanner findFirst
 */
export type SiteBannerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
  /**
   * Filter, which SiteBanner to fetch.
   */
  where?: Prisma.SiteBannerWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of SiteBanners to fetch.
   */
  orderBy?: Prisma.SiteBannerOrderByWithRelationInput | Prisma.SiteBannerOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for SiteBanners.
   */
  cursor?: Prisma.SiteBannerWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` SiteBanners 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` SiteBanners.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of SiteBanners.
   */
  distinct?: Prisma.SiteBannerScalarFieldEnum | Prisma.SiteBannerScalarFieldEnum[]
}

/**
 * SiteBanner findFirstOrThrow
 */
export type SiteBannerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
  /**
   * Filter, which SiteBanner to fetch.
   */
  where?: Prisma.SiteBannerWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of SiteBanners to fetch.
   */
  orderBy?: Prisma.SiteBannerOrderByWithRelationInput | Prisma.SiteBannerOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for SiteBanners.
   */
  cursor?: Prisma.SiteBannerWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` SiteBanners 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` SiteBanners.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of SiteBanners.
   */
  distinct?: Prisma.SiteBannerScalarFieldEnum | Prisma.SiteBannerScalarFieldEnum[]
}

/**
 * SiteBanner findMany
 */
export type SiteBannerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
  /**
   * Filter, which SiteBanners to fetch.
   */
  where?: Prisma.SiteBannerWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of SiteBanners to fetch.
   */
  orderBy?: Prisma.SiteBannerOrderByWithRelationInput | Prisma.SiteBannerOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing SiteBanners.
   */
  cursor?: Prisma.SiteBannerWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` SiteBanners 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` SiteBanners.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of SiteBanners.
   */
  distinct?: Prisma.SiteBannerScalarFieldEnum | Prisma.SiteBannerScalarFieldEnum[]
}

/**
 * SiteBanner create
 */
export type SiteBannerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
  /**
   * The data needed to create a SiteBanner.
   */
  data: Prisma.XOR<Prisma.SiteBannerCreateInput, Prisma.SiteBannerUncheckedCreateInput>
}

/**
 * SiteBanner createMany
 */
export type SiteBannerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many SiteBanners.
   */
  data: Prisma.SiteBannerCreateManyInput | Prisma.SiteBannerCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * SiteBanner createManyAndReturn
 */
export type SiteBannerCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * The data used to create many SiteBanners.
   */
  data: Prisma.SiteBannerCreateManyInput | Prisma.SiteBannerCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * SiteBanner update
 */
export type SiteBannerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
  /**
   * The data needed to update a SiteBanner.
   */
  data: Prisma.XOR<Prisma.SiteBannerUpdateInput, Prisma.SiteBannerUncheckedUpdateInput>
  /**
   * Choose, which SiteBanner to update.
   */
  where: Prisma.SiteBannerWhereUniqueInput
}

/**
 * SiteBanner updateMany
 */
export type SiteBannerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update SiteBanners.
   */
  data: Prisma.XOR<Prisma.SiteBannerUpdateManyMutationInput, Prisma.SiteBannerUncheckedUpdateManyInput>
  /**
   * Filter which SiteBanners to update
   */
  where?: Prisma.SiteBannerWhereInput
  /**
   * Limit how many SiteBanners to update.
   */
  limit?: number
}

/**
 * SiteBanner updateManyAndReturn
 */
export type SiteBannerUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * The data used to update SiteBanners.
   */
  data: Prisma.XOR<Prisma.SiteBannerUpdateManyMutationInput, Prisma.SiteBannerUncheckedUpdateManyInput>
  /**
   * Filter which SiteBanners to update
   */
  where?: Prisma.SiteBannerWhereInput
  /**
   * Limit how many SiteBanners to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * SiteBanner upsert
 */
export type SiteBannerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
  /**
   * The filter to search for the SiteBanner to update in case it exists.
   */
  where: Prisma.SiteBannerWhereUniqueInput
  /**
   * In case the SiteBanner found by the `where` argument doesn't exist, create a new SiteBanner with this data.
   */
  create: Prisma.XOR<Prisma.SiteBannerCreateInput, Prisma.SiteBannerUncheckedCreateInput>
  /**
   * In case the SiteBanner was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.SiteBannerUpdateInput, Prisma.SiteBannerUncheckedUpdateInput>
}

/**
 * SiteBanner delete
 */
export type SiteBannerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
  /**
   * Filter which SiteBanner to delete.
   */
  where: Prisma.SiteBannerWhereUniqueInput
}

/**
 * SiteBanner deleteMany
 */
export type SiteBannerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which SiteBanners to delete
   */
  where?: Prisma.SiteBannerWhereInput
  /**
   * Limit how many SiteBanners to delete.
   */
  limit?: number
}

/**
 * SiteBanner without action
 */
export type SiteBannerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SiteBanner
   */
  select?: Prisma.SiteBannerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SiteBanner
   */
  omit?: Prisma.SiteBannerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SiteBannerInclude<ExtArgs> | null
}
