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

1860 lines
67 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `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<Prisma.$SitePayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends SiteAggregateArgs> = {
[P in keyof T & keyof AggregateSite]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateSite[P]>
: Prisma.GetScalarType<T[P], AggregateSite[P]>
}
export type SiteGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends SiteGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<SiteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SiteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], SiteGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], SiteGroupByOutputType[P]>
}
>
>
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<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
createdByUser?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | 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<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
createdByUser?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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<Prisma.SiteCreateWithoutCreatedByUserInput, Prisma.SiteUncheckedCreateWithoutCreatedByUserInput>
}
export type SiteCreateManyCreatedByUserInputEnvelope = {
data: Prisma.SiteCreateManyCreatedByUserInput | Prisma.SiteCreateManyCreatedByUserInput[]
skipDuplicates?: boolean
}
export type SiteUpsertWithWhereUniqueWithoutCreatedByUserInput = {
where: Prisma.SiteWhereUniqueInput
update: Prisma.XOR<Prisma.SiteUpdateWithoutCreatedByUserInput, Prisma.SiteUncheckedUpdateWithoutCreatedByUserInput>
create: Prisma.XOR<Prisma.SiteCreateWithoutCreatedByUserInput, Prisma.SiteUncheckedCreateWithoutCreatedByUserInput>
}
export type SiteUpdateWithWhereUniqueWithoutCreatedByUserInput = {
where: Prisma.SiteWhereUniqueInput
data: Prisma.XOR<Prisma.SiteUpdateWithoutCreatedByUserInput, Prisma.SiteUncheckedUpdateWithoutCreatedByUserInput>
}
export type SiteUpdateManyWithWhereWithoutCreatedByUserInput = {
where: Prisma.SiteScalarWhereInput
data: Prisma.XOR<Prisma.SiteUpdateManyMutationInput, Prisma.SiteUncheckedUpdateManyWithoutCreatedByUserInput>
}
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<Prisma.SiteCreateWithoutTenantInput, Prisma.SiteUncheckedCreateWithoutTenantInput>
}
export type SiteCreateManyTenantInputEnvelope = {
data: Prisma.SiteCreateManyTenantInput | Prisma.SiteCreateManyTenantInput[]
skipDuplicates?: boolean
}
export type SiteUpsertWithWhereUniqueWithoutTenantInput = {
where: Prisma.SiteWhereUniqueInput
update: Prisma.XOR<Prisma.SiteUpdateWithoutTenantInput, Prisma.SiteUncheckedUpdateWithoutTenantInput>
create: Prisma.XOR<Prisma.SiteCreateWithoutTenantInput, Prisma.SiteUncheckedCreateWithoutTenantInput>
}
export type SiteUpdateWithWhereUniqueWithoutTenantInput = {
where: Prisma.SiteWhereUniqueInput
data: Prisma.XOR<Prisma.SiteUpdateWithoutTenantInput, Prisma.SiteUncheckedUpdateWithoutTenantInput>
}
export type SiteUpdateManyWithWhereWithoutTenantInput = {
where: Prisma.SiteScalarWhereInput
data: Prisma.XOR<Prisma.SiteUpdateManyMutationInput, Prisma.SiteUncheckedUpdateManyWithoutTenantInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
createdByUser?: boolean | Prisma.Site$createdByUserArgs<ExtArgs>
}, ExtArgs["result"]["site"]>
export type SiteSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
createdByUser?: boolean | Prisma.Site$createdByUserArgs<ExtArgs>
}, ExtArgs["result"]["site"]>
export type SiteSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
createdByUser?: boolean | Prisma.Site$createdByUserArgs<ExtArgs>
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "type" | "siteId" | "name" | "isActive" | "branding" | "copy" | "serverName" | "serverHost" | "serverResolution" | "createdByUserId", ExtArgs["result"]["site"]>
export type SiteInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
createdByUser?: boolean | Prisma.Site$createdByUserArgs<ExtArgs>
}
export type SiteIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
createdByUser?: boolean | Prisma.Site$createdByUserArgs<ExtArgs>
}
export type SiteIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
createdByUser?: boolean | Prisma.Site$createdByUserArgs<ExtArgs>
}
export type $SitePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Site"
objects: {
tenant: Prisma.$TenantPayload<ExtArgs>
createdByUser: Prisma.$UserPayload<ExtArgs> | 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<S extends boolean | null | undefined | SiteDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SitePayload, S>
export type SiteCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<SiteFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: SiteCountAggregateInputType | true
}
export interface SiteDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends SiteFindUniqueArgs>(args: Prisma.SelectSubset<T, SiteFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SiteClient<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SiteFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SiteClient<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteFindFirstArgs>(args?: Prisma.SelectSubset<T, SiteFindFirstArgs<ExtArgs>>): Prisma.Prisma__SiteClient<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SiteFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SiteClient<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteFindManyArgs>(args?: Prisma.SelectSubset<T, SiteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteCreateArgs>(args: Prisma.SelectSubset<T, SiteCreateArgs<ExtArgs>>): Prisma.Prisma__SiteClient<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteCreateManyArgs>(args?: Prisma.SelectSubset<T, SiteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends SiteCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SiteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteDeleteArgs>(args: Prisma.SelectSubset<T, SiteDeleteArgs<ExtArgs>>): Prisma.Prisma__SiteClient<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteUpdateArgs>(args: Prisma.SelectSubset<T, SiteUpdateArgs<ExtArgs>>): Prisma.Prisma__SiteClient<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteDeleteManyArgs>(args?: Prisma.SelectSubset<T, SiteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends SiteUpdateManyArgs>(args: Prisma.SelectSubset<T, SiteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends SiteUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SiteUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteUpsertArgs>(args: Prisma.SelectSubset<T, SiteUpsertArgs<ExtArgs>>): Prisma.Prisma__SiteClient<runtime.Types.Result.GetResult<Prisma.$SitePayload<ExtArgs>, 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<T extends SiteCountArgs>(
args?: Prisma.Subset<T, SiteCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], SiteCountAggregateOutputType>
: 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<T extends SiteAggregateArgs>(args: Prisma.Subset<T, SiteAggregateArgs>): Prisma.PrismaPromise<GetSiteAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: SiteGroupByArgs['orderBy'] }
: { orderBy?: SiteGroupByArgs['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, SiteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSiteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<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>
createdByUser<T extends Prisma.Site$createdByUserArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Site$createdByUserArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | null
/**
* Filter, which Site to fetch.
*/
where: Prisma.SiteWhereUniqueInput
}
/**
* Site findUniqueOrThrow
*/
export type SiteFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | null
/**
* Filter, which Site to fetch.
*/
where: Prisma.SiteWhereUniqueInput
}
/**
* Site findFirst
*/
export type SiteFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | null
/**
* The data needed to create a Site.
*/
data: Prisma.XOR<Prisma.SiteCreateInput, Prisma.SiteUncheckedCreateInput>
}
/**
* Site createMany
*/
export type SiteCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Sites.
*/
data: Prisma.SiteCreateManyInput | Prisma.SiteCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Site createManyAndReturn
*/
export type SiteCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | 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<ExtArgs> | null
}
/**
* Site update
*/
export type SiteUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | null
/**
* The data needed to update a Site.
*/
data: Prisma.XOR<Prisma.SiteUpdateInput, Prisma.SiteUncheckedUpdateInput>
/**
* Choose, which Site to update.
*/
where: Prisma.SiteWhereUniqueInput
}
/**
* Site updateMany
*/
export type SiteUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Sites.
*/
data: Prisma.XOR<Prisma.SiteUpdateManyMutationInput, Prisma.SiteUncheckedUpdateManyInput>
/**
* Filter which Sites to update
*/
where?: Prisma.SiteWhereInput
/**
* Limit how many Sites to update.
*/
limit?: number
}
/**
* Site updateManyAndReturn
*/
export type SiteUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* The data used to update Sites.
*/
data: Prisma.XOR<Prisma.SiteUpdateManyMutationInput, Prisma.SiteUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* Site upsert
*/
export type SiteUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | 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<Prisma.SiteCreateInput, Prisma.SiteUncheckedCreateInput>
/**
* In case the Site was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.SiteUpdateInput, Prisma.SiteUncheckedUpdateInput>
}
/**
* Site delete
*/
export type SiteDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | null
/**
* Filter which Site to delete.
*/
where: Prisma.SiteWhereUniqueInput
}
/**
* Site deleteMany
*/
export type SiteDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Sites to delete
*/
where?: Prisma.SiteWhereInput
/**
* Limit how many Sites to delete.
*/
limit?: number
}
/**
* Site.createdByUser
*/
export type Site$createdByUserArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* Site without action
*/
export type SiteDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Site
*/
select?: Prisma.SiteSelect<ExtArgs> | null
/**
* Omit specific fields from the Site
*/
omit?: Prisma.SiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SiteInclude<ExtArgs> | null
}