/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Site` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model Site * */ export type SiteModel = runtime.Types.Result.DefaultSelection export type AggregateSite = { _count: SiteCountAggregateOutputType | null _min: SiteMinAggregateOutputType | null _max: SiteMaxAggregateOutputType | null } export type SiteMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null type: string | null siteId: string | null name: string | null isActive: boolean | null branding: string | null copy: string | null serverName: string | null serverHost: string | null serverResolution: string | null createdByUserId: string | null } export type SiteMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null type: string | null siteId: string | null name: string | null isActive: boolean | null branding: string | null copy: string | null serverName: string | null serverHost: string | null serverResolution: string | null createdByUserId: string | null } export type SiteCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number type: number siteId: number name: number isActive: number branding: number copy: number serverName: number serverHost: number serverResolution: number createdByUserId: number _all: number } export type SiteMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true type?: true siteId?: true name?: true isActive?: true branding?: true copy?: true serverName?: true serverHost?: true serverResolution?: true createdByUserId?: true } export type SiteMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true type?: true siteId?: true name?: true isActive?: true branding?: true copy?: true serverName?: true serverHost?: true serverResolution?: true createdByUserId?: true } export type SiteCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true type?: true siteId?: true name?: true isActive?: true branding?: true copy?: true serverName?: true serverHost?: true serverResolution?: true createdByUserId?: true _all?: true } export type SiteAggregateArgs = { /** * Filter which Site to aggregate. */ where?: Prisma.SiteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sites to fetch. */ orderBy?: Prisma.SiteOrderByWithRelationInput | Prisma.SiteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SiteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sites 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` Sites. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Sites **/ _count?: true | SiteCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SiteMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SiteMaxAggregateInputType } export type GetSiteAggregateType = { [P in keyof T & keyof AggregateSite]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SiteGroupByArgs = { where?: Prisma.SiteWhereInput orderBy?: Prisma.SiteOrderByWithAggregationInput | Prisma.SiteOrderByWithAggregationInput[] by: Prisma.SiteScalarFieldEnum[] | Prisma.SiteScalarFieldEnum having?: Prisma.SiteScalarWhereWithAggregatesInput take?: number skip?: number _count?: SiteCountAggregateInputType | true _min?: SiteMinAggregateInputType _max?: SiteMaxAggregateInputType } export type SiteGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string type: string siteId: string name: string isActive: boolean branding: string copy: string serverName: string serverHost: string serverResolution: string createdByUserId: string | null _count: SiteCountAggregateOutputType | null _min: SiteMinAggregateOutputType | null _max: SiteMaxAggregateOutputType | null } export type GetSiteGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SiteGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SiteWhereInput = { AND?: Prisma.SiteWhereInput | Prisma.SiteWhereInput[] OR?: Prisma.SiteWhereInput[] NOT?: Prisma.SiteWhereInput | Prisma.SiteWhereInput[] id?: Prisma.StringFilter<"Site"> | string createdAt?: Prisma.DateTimeFilter<"Site"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Site"> | Date | string tenantId?: Prisma.StringFilter<"Site"> | string type?: Prisma.StringFilter<"Site"> | string siteId?: Prisma.StringFilter<"Site"> | string name?: Prisma.StringFilter<"Site"> | string isActive?: Prisma.BoolFilter<"Site"> | boolean branding?: Prisma.StringFilter<"Site"> | string copy?: Prisma.StringFilter<"Site"> | string serverName?: Prisma.StringFilter<"Site"> | string serverHost?: Prisma.StringFilter<"Site"> | string serverResolution?: Prisma.StringFilter<"Site"> | string createdByUserId?: Prisma.StringNullableFilter<"Site"> | string | null tenant?: Prisma.XOR createdByUser?: Prisma.XOR | null } export type SiteOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder type?: Prisma.SortOrder siteId?: Prisma.SortOrder name?: Prisma.SortOrder isActive?: Prisma.SortOrder branding?: Prisma.SortOrder copy?: Prisma.SortOrder serverName?: Prisma.SortOrder serverHost?: Prisma.SortOrder serverResolution?: Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput createdByUser?: Prisma.UserOrderByWithRelationInput } export type SiteWhereUniqueInput = Prisma.AtLeast<{ id?: string type_siteId?: Prisma.SiteTypeSiteIdCompoundUniqueInput AND?: Prisma.SiteWhereInput | Prisma.SiteWhereInput[] OR?: Prisma.SiteWhereInput[] NOT?: Prisma.SiteWhereInput | Prisma.SiteWhereInput[] createdAt?: Prisma.DateTimeFilter<"Site"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Site"> | Date | string tenantId?: Prisma.StringFilter<"Site"> | string type?: Prisma.StringFilter<"Site"> | string siteId?: Prisma.StringFilter<"Site"> | string name?: Prisma.StringFilter<"Site"> | string isActive?: Prisma.BoolFilter<"Site"> | boolean branding?: Prisma.StringFilter<"Site"> | string copy?: Prisma.StringFilter<"Site"> | string serverName?: Prisma.StringFilter<"Site"> | string serverHost?: Prisma.StringFilter<"Site"> | string serverResolution?: Prisma.StringFilter<"Site"> | string createdByUserId?: Prisma.StringNullableFilter<"Site"> | string | null tenant?: Prisma.XOR createdByUser?: Prisma.XOR | null }, "id" | "type_siteId"> export type SiteOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder type?: Prisma.SortOrder siteId?: Prisma.SortOrder name?: Prisma.SortOrder isActive?: Prisma.SortOrder branding?: Prisma.SortOrder copy?: Prisma.SortOrder serverName?: Prisma.SortOrder serverHost?: Prisma.SortOrder serverResolution?: Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.SiteCountOrderByAggregateInput _max?: Prisma.SiteMaxOrderByAggregateInput _min?: Prisma.SiteMinOrderByAggregateInput } export type SiteScalarWhereWithAggregatesInput = { AND?: Prisma.SiteScalarWhereWithAggregatesInput | Prisma.SiteScalarWhereWithAggregatesInput[] OR?: Prisma.SiteScalarWhereWithAggregatesInput[] NOT?: Prisma.SiteScalarWhereWithAggregatesInput | Prisma.SiteScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Site"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Site"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Site"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"Site"> | string type?: Prisma.StringWithAggregatesFilter<"Site"> | string siteId?: Prisma.StringWithAggregatesFilter<"Site"> | string name?: Prisma.StringWithAggregatesFilter<"Site"> | string isActive?: Prisma.BoolWithAggregatesFilter<"Site"> | boolean branding?: Prisma.StringWithAggregatesFilter<"Site"> | string copy?: Prisma.StringWithAggregatesFilter<"Site"> | string serverName?: Prisma.StringWithAggregatesFilter<"Site"> | string serverHost?: Prisma.StringWithAggregatesFilter<"Site"> | string serverResolution?: Prisma.StringWithAggregatesFilter<"Site"> | string createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"Site"> | string | null } export type SiteCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string type: string siteId: string name: string isActive?: boolean branding?: string copy?: string serverName: string serverHost: string serverResolution: string tenant: Prisma.TenantCreateNestedOneWithoutSitesInput createdByUser?: Prisma.UserCreateNestedOneWithoutSitesCreatedInput } export type SiteUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string type: string siteId: string name: string isActive?: boolean branding?: string copy?: string serverName: string serverHost: string serverResolution: string createdByUserId?: string | null } export type SiteUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string tenant?: Prisma.TenantUpdateOneRequiredWithoutSitesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutSitesCreatedNestedInput } export type SiteUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SiteCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string type: string siteId: string name: string isActive?: boolean branding?: string copy?: string serverName: string serverHost: string serverResolution: string createdByUserId?: string | null } export type SiteUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string } export type SiteUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SiteListRelationFilter = { every?: Prisma.SiteWhereInput some?: Prisma.SiteWhereInput none?: Prisma.SiteWhereInput } export type SiteOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type SiteTypeSiteIdCompoundUniqueInput = { type: string siteId: string } export type SiteCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder type?: Prisma.SortOrder siteId?: Prisma.SortOrder name?: Prisma.SortOrder isActive?: Prisma.SortOrder branding?: Prisma.SortOrder copy?: Prisma.SortOrder serverName?: Prisma.SortOrder serverHost?: Prisma.SortOrder serverResolution?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder } export type SiteMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder type?: Prisma.SortOrder siteId?: Prisma.SortOrder name?: Prisma.SortOrder isActive?: Prisma.SortOrder branding?: Prisma.SortOrder copy?: Prisma.SortOrder serverName?: Prisma.SortOrder serverHost?: Prisma.SortOrder serverResolution?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder } export type SiteMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder type?: Prisma.SortOrder siteId?: Prisma.SortOrder name?: Prisma.SortOrder isActive?: Prisma.SortOrder branding?: Prisma.SortOrder copy?: Prisma.SortOrder serverName?: Prisma.SortOrder serverHost?: Prisma.SortOrder serverResolution?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder } export type SiteCreateNestedManyWithoutCreatedByUserInput = { create?: Prisma.XOR | Prisma.SiteCreateWithoutCreatedByUserInput[] | Prisma.SiteUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.SiteCreateOrConnectWithoutCreatedByUserInput | Prisma.SiteCreateOrConnectWithoutCreatedByUserInput[] createMany?: Prisma.SiteCreateManyCreatedByUserInputEnvelope connect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] } export type SiteUncheckedCreateNestedManyWithoutCreatedByUserInput = { create?: Prisma.XOR | Prisma.SiteCreateWithoutCreatedByUserInput[] | Prisma.SiteUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.SiteCreateOrConnectWithoutCreatedByUserInput | Prisma.SiteCreateOrConnectWithoutCreatedByUserInput[] createMany?: Prisma.SiteCreateManyCreatedByUserInputEnvelope connect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] } export type SiteUpdateManyWithoutCreatedByUserNestedInput = { create?: Prisma.XOR | Prisma.SiteCreateWithoutCreatedByUserInput[] | Prisma.SiteUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.SiteCreateOrConnectWithoutCreatedByUserInput | Prisma.SiteCreateOrConnectWithoutCreatedByUserInput[] upsert?: Prisma.SiteUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.SiteUpsertWithWhereUniqueWithoutCreatedByUserInput[] createMany?: Prisma.SiteCreateManyCreatedByUserInputEnvelope set?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] disconnect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] delete?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] connect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] update?: Prisma.SiteUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.SiteUpdateWithWhereUniqueWithoutCreatedByUserInput[] updateMany?: Prisma.SiteUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.SiteUpdateManyWithWhereWithoutCreatedByUserInput[] deleteMany?: Prisma.SiteScalarWhereInput | Prisma.SiteScalarWhereInput[] } export type SiteUncheckedUpdateManyWithoutCreatedByUserNestedInput = { create?: Prisma.XOR | Prisma.SiteCreateWithoutCreatedByUserInput[] | Prisma.SiteUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.SiteCreateOrConnectWithoutCreatedByUserInput | Prisma.SiteCreateOrConnectWithoutCreatedByUserInput[] upsert?: Prisma.SiteUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.SiteUpsertWithWhereUniqueWithoutCreatedByUserInput[] createMany?: Prisma.SiteCreateManyCreatedByUserInputEnvelope set?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] disconnect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] delete?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] connect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] update?: Prisma.SiteUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.SiteUpdateWithWhereUniqueWithoutCreatedByUserInput[] updateMany?: Prisma.SiteUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.SiteUpdateManyWithWhereWithoutCreatedByUserInput[] deleteMany?: Prisma.SiteScalarWhereInput | Prisma.SiteScalarWhereInput[] } export type SiteCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.SiteCreateWithoutTenantInput[] | Prisma.SiteUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.SiteCreateOrConnectWithoutTenantInput | Prisma.SiteCreateOrConnectWithoutTenantInput[] createMany?: Prisma.SiteCreateManyTenantInputEnvelope connect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] } export type SiteUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.SiteCreateWithoutTenantInput[] | Prisma.SiteUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.SiteCreateOrConnectWithoutTenantInput | Prisma.SiteCreateOrConnectWithoutTenantInput[] createMany?: Prisma.SiteCreateManyTenantInputEnvelope connect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] } export type SiteUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.SiteCreateWithoutTenantInput[] | Prisma.SiteUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.SiteCreateOrConnectWithoutTenantInput | Prisma.SiteCreateOrConnectWithoutTenantInput[] upsert?: Prisma.SiteUpsertWithWhereUniqueWithoutTenantInput | Prisma.SiteUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.SiteCreateManyTenantInputEnvelope set?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] disconnect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] delete?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] connect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] update?: Prisma.SiteUpdateWithWhereUniqueWithoutTenantInput | Prisma.SiteUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.SiteUpdateManyWithWhereWithoutTenantInput | Prisma.SiteUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.SiteScalarWhereInput | Prisma.SiteScalarWhereInput[] } export type SiteUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.SiteCreateWithoutTenantInput[] | Prisma.SiteUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.SiteCreateOrConnectWithoutTenantInput | Prisma.SiteCreateOrConnectWithoutTenantInput[] upsert?: Prisma.SiteUpsertWithWhereUniqueWithoutTenantInput | Prisma.SiteUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.SiteCreateManyTenantInputEnvelope set?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] disconnect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] delete?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] connect?: Prisma.SiteWhereUniqueInput | Prisma.SiteWhereUniqueInput[] update?: Prisma.SiteUpdateWithWhereUniqueWithoutTenantInput | Prisma.SiteUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.SiteUpdateManyWithWhereWithoutTenantInput | Prisma.SiteUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.SiteScalarWhereInput | Prisma.SiteScalarWhereInput[] } export type SiteCreateWithoutCreatedByUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string type: string siteId: string name: string isActive?: boolean branding?: string copy?: string serverName: string serverHost: string serverResolution: string tenant: Prisma.TenantCreateNestedOneWithoutSitesInput } export type SiteUncheckedCreateWithoutCreatedByUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string type: string siteId: string name: string isActive?: boolean branding?: string copy?: string serverName: string serverHost: string serverResolution: string } export type SiteCreateOrConnectWithoutCreatedByUserInput = { where: Prisma.SiteWhereUniqueInput create: Prisma.XOR } export type SiteCreateManyCreatedByUserInputEnvelope = { data: Prisma.SiteCreateManyCreatedByUserInput | Prisma.SiteCreateManyCreatedByUserInput[] skipDuplicates?: boolean } export type SiteUpsertWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.SiteWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SiteUpdateWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.SiteWhereUniqueInput data: Prisma.XOR } export type SiteUpdateManyWithWhereWithoutCreatedByUserInput = { where: Prisma.SiteScalarWhereInput data: Prisma.XOR } export type SiteScalarWhereInput = { AND?: Prisma.SiteScalarWhereInput | Prisma.SiteScalarWhereInput[] OR?: Prisma.SiteScalarWhereInput[] NOT?: Prisma.SiteScalarWhereInput | Prisma.SiteScalarWhereInput[] id?: Prisma.StringFilter<"Site"> | string createdAt?: Prisma.DateTimeFilter<"Site"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Site"> | Date | string tenantId?: Prisma.StringFilter<"Site"> | string type?: Prisma.StringFilter<"Site"> | string siteId?: Prisma.StringFilter<"Site"> | string name?: Prisma.StringFilter<"Site"> | string isActive?: Prisma.BoolFilter<"Site"> | boolean branding?: Prisma.StringFilter<"Site"> | string copy?: Prisma.StringFilter<"Site"> | string serverName?: Prisma.StringFilter<"Site"> | string serverHost?: Prisma.StringFilter<"Site"> | string serverResolution?: Prisma.StringFilter<"Site"> | string createdByUserId?: Prisma.StringNullableFilter<"Site"> | string | null } export type SiteCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string type: string siteId: string name: string isActive?: boolean branding?: string copy?: string serverName: string serverHost: string serverResolution: string createdByUser?: Prisma.UserCreateNestedOneWithoutSitesCreatedInput } export type SiteUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string type: string siteId: string name: string isActive?: boolean branding?: string copy?: string serverName: string serverHost: string serverResolution: string createdByUserId?: string | null } export type SiteCreateOrConnectWithoutTenantInput = { where: Prisma.SiteWhereUniqueInput create: Prisma.XOR } export type SiteCreateManyTenantInputEnvelope = { data: Prisma.SiteCreateManyTenantInput | Prisma.SiteCreateManyTenantInput[] skipDuplicates?: boolean } export type SiteUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.SiteWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SiteUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.SiteWhereUniqueInput data: Prisma.XOR } export type SiteUpdateManyWithWhereWithoutTenantInput = { where: Prisma.SiteScalarWhereInput data: Prisma.XOR } export type SiteCreateManyCreatedByUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string type: string siteId: string name: string isActive?: boolean branding?: string copy?: string serverName: string serverHost: string serverResolution: string } export type SiteUpdateWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string tenant?: Prisma.TenantUpdateOneRequiredWithoutSitesNestedInput } export type SiteUncheckedUpdateWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string } export type SiteUncheckedUpdateManyWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string } export type SiteCreateManyTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string type: string siteId: string name: string isActive?: boolean branding?: string copy?: string serverName: string serverHost: string serverResolution: string createdByUserId?: string | null } export type SiteUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string createdByUser?: Prisma.UserUpdateOneWithoutSitesCreatedNestedInput } export type SiteUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SiteUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string type?: Prisma.StringFieldUpdateOperationsInput | string siteId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean branding?: Prisma.StringFieldUpdateOperationsInput | string copy?: Prisma.StringFieldUpdateOperationsInput | string serverName?: Prisma.StringFieldUpdateOperationsInput | string serverHost?: Prisma.StringFieldUpdateOperationsInput | string serverResolution?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SiteSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean type?: boolean siteId?: boolean name?: boolean isActive?: boolean branding?: boolean copy?: boolean serverName?: boolean serverHost?: boolean serverResolution?: boolean createdByUserId?: boolean tenant?: boolean | Prisma.TenantDefaultArgs createdByUser?: boolean | Prisma.Site$createdByUserArgs }, ExtArgs["result"]["site"]> export type SiteSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean type?: boolean siteId?: boolean name?: boolean isActive?: boolean branding?: boolean copy?: boolean serverName?: boolean serverHost?: boolean serverResolution?: boolean createdByUserId?: boolean tenant?: boolean | Prisma.TenantDefaultArgs createdByUser?: boolean | Prisma.Site$createdByUserArgs }, ExtArgs["result"]["site"]> export type SiteSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean type?: boolean siteId?: boolean name?: boolean isActive?: boolean branding?: boolean copy?: boolean serverName?: boolean serverHost?: boolean serverResolution?: boolean createdByUserId?: boolean tenant?: boolean | Prisma.TenantDefaultArgs createdByUser?: boolean | Prisma.Site$createdByUserArgs }, ExtArgs["result"]["site"]> export type SiteSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean type?: boolean siteId?: boolean name?: boolean isActive?: boolean branding?: boolean copy?: boolean serverName?: boolean serverHost?: boolean serverResolution?: boolean createdByUserId?: boolean } export type SiteOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "type" | "siteId" | "name" | "isActive" | "branding" | "copy" | "serverName" | "serverHost" | "serverResolution" | "createdByUserId", ExtArgs["result"]["site"]> export type SiteInclude = { tenant?: boolean | Prisma.TenantDefaultArgs createdByUser?: boolean | Prisma.Site$createdByUserArgs } export type SiteIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs createdByUser?: boolean | Prisma.Site$createdByUserArgs } export type SiteIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs createdByUser?: boolean | Prisma.Site$createdByUserArgs } export type $SitePayload = { name: "Site" objects: { tenant: Prisma.$TenantPayload createdByUser: Prisma.$UserPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string type: string siteId: string name: string isActive: boolean branding: string copy: string serverName: string serverHost: string serverResolution: string createdByUserId: string | null }, ExtArgs["result"]["site"]> composites: {} } export type SiteGetPayload = runtime.Types.Result.GetResult export type SiteCountArgs = Omit & { select?: SiteCountAggregateInputType | true } export interface SiteDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Site'], meta: { name: 'Site' } } /** * Find zero or one Site that matches the filter. * @param {SiteFindUniqueArgs} args - Arguments to find a Site * @example * // Get one Site * const site = await prisma.site.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SiteClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Site that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SiteFindUniqueOrThrowArgs} args - Arguments to find a Site * @example * // Get one Site * const site = await prisma.site.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SiteClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Site 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 {SiteFindFirstArgs} args - Arguments to find a Site * @example * // Get one Site * const site = await prisma.site.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SiteClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Site 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 {SiteFindFirstOrThrowArgs} args - Arguments to find a Site * @example * // Get one Site * const site = await prisma.site.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SiteClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Sites 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 {SiteFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sites * const sites = await prisma.site.findMany() * * // Get first 10 Sites * const sites = await prisma.site.findMany({ take: 10 }) * * // Only select the `id` * const siteWithIdOnly = await prisma.site.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Site. * @param {SiteCreateArgs} args - Arguments to create a Site. * @example * // Create one Site * const Site = await prisma.site.create({ * data: { * // ... data to create a Site * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SiteClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Sites. * @param {SiteCreateManyArgs} args - Arguments to create many Sites. * @example * // Create many Sites * const site = await prisma.site.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Sites and returns the data saved in the database. * @param {SiteCreateManyAndReturnArgs} args - Arguments to create many Sites. * @example * // Create many Sites * const site = await prisma.site.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Sites and only return the `id` * const siteWithIdOnly = await prisma.site.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Site. * @param {SiteDeleteArgs} args - Arguments to delete one Site. * @example * // Delete one Site * const Site = await prisma.site.delete({ * where: { * // ... filter to delete one Site * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SiteClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Site. * @param {SiteUpdateArgs} args - Arguments to update one Site. * @example * // Update one Site * const site = await prisma.site.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SiteClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Sites. * @param {SiteDeleteManyArgs} args - Arguments to filter Sites to delete. * @example * // Delete a few Sites * const { count } = await prisma.site.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sites. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SiteUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sites * const site = await prisma.site.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sites and returns the data updated in the database. * @param {SiteUpdateManyAndReturnArgs} args - Arguments to update many Sites. * @example * // Update many Sites * const site = await prisma.site.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Sites and only return the `id` * const siteWithIdOnly = await prisma.site.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Site. * @param {SiteUpsertArgs} args - Arguments to update or create a Site. * @example * // Update or create a Site * const site = await prisma.site.upsert({ * create: { * // ... data to create a Site * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Site we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SiteClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Sites. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SiteCountArgs} args - Arguments to filter Sites to count. * @example * // Count the number of Sites * const count = await prisma.site.count({ * where: { * // ... the filter for the Sites we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Site. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SiteAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Site. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SiteGroupByArgs} 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 SiteGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SiteGroupByArgs['orderBy'] } : { orderBy?: SiteGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetSiteGroupByPayload : Prisma.PrismaPromise /** * Fields of the Site model */ readonly fields: SiteFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Site. * 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__SiteClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> createdByUser = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the Site model */ export interface SiteFieldRefs { readonly id: Prisma.FieldRef<"Site", 'String'> readonly createdAt: Prisma.FieldRef<"Site", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Site", 'DateTime'> readonly tenantId: Prisma.FieldRef<"Site", 'String'> readonly type: Prisma.FieldRef<"Site", 'String'> readonly siteId: Prisma.FieldRef<"Site", 'String'> readonly name: Prisma.FieldRef<"Site", 'String'> readonly isActive: Prisma.FieldRef<"Site", 'Boolean'> readonly branding: Prisma.FieldRef<"Site", 'String'> readonly copy: Prisma.FieldRef<"Site", 'String'> readonly serverName: Prisma.FieldRef<"Site", 'String'> readonly serverHost: Prisma.FieldRef<"Site", 'String'> readonly serverResolution: Prisma.FieldRef<"Site", 'String'> readonly createdByUserId: Prisma.FieldRef<"Site", 'String'> } // Custom InputTypes /** * Site findUnique */ export type SiteFindUniqueArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null /** * Filter, which Site to fetch. */ where: Prisma.SiteWhereUniqueInput } /** * Site findUniqueOrThrow */ export type SiteFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null /** * Filter, which Site to fetch. */ where: Prisma.SiteWhereUniqueInput } /** * Site findFirst */ export type SiteFindFirstArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null /** * Filter, which Site to fetch. */ where?: Prisma.SiteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sites to fetch. */ orderBy?: Prisma.SiteOrderByWithRelationInput | Prisma.SiteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sites. */ cursor?: Prisma.SiteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sites 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` Sites. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sites. */ distinct?: Prisma.SiteScalarFieldEnum | Prisma.SiteScalarFieldEnum[] } /** * Site findFirstOrThrow */ export type SiteFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null /** * Filter, which Site to fetch. */ where?: Prisma.SiteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sites to fetch. */ orderBy?: Prisma.SiteOrderByWithRelationInput | Prisma.SiteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sites. */ cursor?: Prisma.SiteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sites 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` Sites. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sites. */ distinct?: Prisma.SiteScalarFieldEnum | Prisma.SiteScalarFieldEnum[] } /** * Site findMany */ export type SiteFindManyArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null /** * Filter, which Sites to fetch. */ where?: Prisma.SiteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sites to fetch. */ orderBy?: Prisma.SiteOrderByWithRelationInput | Prisma.SiteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Sites. */ cursor?: Prisma.SiteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sites 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` Sites. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sites. */ distinct?: Prisma.SiteScalarFieldEnum | Prisma.SiteScalarFieldEnum[] } /** * Site create */ export type SiteCreateArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null /** * The data needed to create a Site. */ data: Prisma.XOR } /** * Site createMany */ export type SiteCreateManyArgs = { /** * The data used to create many Sites. */ data: Prisma.SiteCreateManyInput | Prisma.SiteCreateManyInput[] skipDuplicates?: boolean } /** * Site createManyAndReturn */ export type SiteCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelectCreateManyAndReturn | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * The data used to create many Sites. */ data: Prisma.SiteCreateManyInput | Prisma.SiteCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteIncludeCreateManyAndReturn | null } /** * Site update */ export type SiteUpdateArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null /** * The data needed to update a Site. */ data: Prisma.XOR /** * Choose, which Site to update. */ where: Prisma.SiteWhereUniqueInput } /** * Site updateMany */ export type SiteUpdateManyArgs = { /** * The data used to update Sites. */ data: Prisma.XOR /** * Filter which Sites to update */ where?: Prisma.SiteWhereInput /** * Limit how many Sites to update. */ limit?: number } /** * Site updateManyAndReturn */ export type SiteUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelectUpdateManyAndReturn | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * The data used to update Sites. */ data: Prisma.XOR /** * Filter which Sites to update */ where?: Prisma.SiteWhereInput /** * Limit how many Sites to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteIncludeUpdateManyAndReturn | null } /** * Site upsert */ export type SiteUpsertArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null /** * The filter to search for the Site to update in case it exists. */ where: Prisma.SiteWhereUniqueInput /** * In case the Site found by the `where` argument doesn't exist, create a new Site with this data. */ create: Prisma.XOR /** * In case the Site was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Site delete */ export type SiteDeleteArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null /** * Filter which Site to delete. */ where: Prisma.SiteWhereUniqueInput } /** * Site deleteMany */ export type SiteDeleteManyArgs = { /** * Filter which Sites to delete */ where?: Prisma.SiteWhereInput /** * Limit how many Sites to delete. */ limit?: number } /** * Site.createdByUser */ export type Site$createdByUserArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * Site without action */ export type SiteDefaultArgs = { /** * Select specific fields to fetch from the Site */ select?: Prisma.SiteSelect | null /** * Omit specific fields from the Site */ omit?: Prisma.SiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SiteInclude | null }