Files
optima/api/generated/prisma/models/UnifiSite.ts
T
2026-04-07 23:56:31 +00:00

1444 lines
52 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 `UnifiSite` 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 UnifiSite
*
*/
export type UnifiSiteModel = runtime.Types.Result.DefaultSelection<Prisma.$UnifiSitePayload>
export type AggregateUnifiSite = {
_count: UnifiSiteCountAggregateOutputType | null
_avg: UnifiSiteAvgAggregateOutputType | null
_sum: UnifiSiteSumAggregateOutputType | null
_min: UnifiSiteMinAggregateOutputType | null
_max: UnifiSiteMaxAggregateOutputType | null
}
export type UnifiSiteAvgAggregateOutputType = {
companyId: number | null
}
export type UnifiSiteSumAggregateOutputType = {
companyId: number | null
}
export type UnifiSiteMinAggregateOutputType = {
id: string | null
name: string | null
siteId: string | null
companyId: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type UnifiSiteMaxAggregateOutputType = {
id: string | null
name: string | null
siteId: string | null
companyId: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type UnifiSiteCountAggregateOutputType = {
id: number
name: number
siteId: number
companyId: number
createdAt: number
updatedAt: number
_all: number
}
export type UnifiSiteAvgAggregateInputType = {
companyId?: true
}
export type UnifiSiteSumAggregateInputType = {
companyId?: true
}
export type UnifiSiteMinAggregateInputType = {
id?: true
name?: true
siteId?: true
companyId?: true
createdAt?: true
updatedAt?: true
}
export type UnifiSiteMaxAggregateInputType = {
id?: true
name?: true
siteId?: true
companyId?: true
createdAt?: true
updatedAt?: true
}
export type UnifiSiteCountAggregateInputType = {
id?: true
name?: true
siteId?: true
companyId?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type UnifiSiteAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which UnifiSite to aggregate.
*/
where?: Prisma.UnifiSiteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UnifiSites to fetch.
*/
orderBy?: Prisma.UnifiSiteOrderByWithRelationInput | Prisma.UnifiSiteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.UnifiSiteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UnifiSites 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` UnifiSites.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned UnifiSites
**/
_count?: true | UnifiSiteCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: UnifiSiteAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: UnifiSiteSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: UnifiSiteMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: UnifiSiteMaxAggregateInputType
}
export type GetUnifiSiteAggregateType<T extends UnifiSiteAggregateArgs> = {
[P in keyof T & keyof AggregateUnifiSite]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateUnifiSite[P]>
: Prisma.GetScalarType<T[P], AggregateUnifiSite[P]>
}
export type UnifiSiteGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.UnifiSiteWhereInput
orderBy?: Prisma.UnifiSiteOrderByWithAggregationInput | Prisma.UnifiSiteOrderByWithAggregationInput[]
by: Prisma.UnifiSiteScalarFieldEnum[] | Prisma.UnifiSiteScalarFieldEnum
having?: Prisma.UnifiSiteScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: UnifiSiteCountAggregateInputType | true
_avg?: UnifiSiteAvgAggregateInputType
_sum?: UnifiSiteSumAggregateInputType
_min?: UnifiSiteMinAggregateInputType
_max?: UnifiSiteMaxAggregateInputType
}
export type UnifiSiteGroupByOutputType = {
id: string
name: string
siteId: string
companyId: number | null
createdAt: Date
updatedAt: Date
_count: UnifiSiteCountAggregateOutputType | null
_avg: UnifiSiteAvgAggregateOutputType | null
_sum: UnifiSiteSumAggregateOutputType | null
_min: UnifiSiteMinAggregateOutputType | null
_max: UnifiSiteMaxAggregateOutputType | null
}
type GetUnifiSiteGroupByPayload<T extends UnifiSiteGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<UnifiSiteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof UnifiSiteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], UnifiSiteGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], UnifiSiteGroupByOutputType[P]>
}
>
>
export type UnifiSiteWhereInput = {
AND?: Prisma.UnifiSiteWhereInput | Prisma.UnifiSiteWhereInput[]
OR?: Prisma.UnifiSiteWhereInput[]
NOT?: Prisma.UnifiSiteWhereInput | Prisma.UnifiSiteWhereInput[]
id?: Prisma.StringFilter<"UnifiSite"> | string
name?: Prisma.StringFilter<"UnifiSite"> | string
siteId?: Prisma.StringFilter<"UnifiSite"> | string
companyId?: Prisma.IntNullableFilter<"UnifiSite"> | number | null
createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
}
export type UnifiSiteOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
siteId?: Prisma.SortOrder
companyId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
company?: Prisma.CompanyOrderByWithRelationInput
}
export type UnifiSiteWhereUniqueInput = Prisma.AtLeast<{
id?: string
siteId?: string
AND?: Prisma.UnifiSiteWhereInput | Prisma.UnifiSiteWhereInput[]
OR?: Prisma.UnifiSiteWhereInput[]
NOT?: Prisma.UnifiSiteWhereInput | Prisma.UnifiSiteWhereInput[]
name?: Prisma.StringFilter<"UnifiSite"> | string
companyId?: Prisma.IntNullableFilter<"UnifiSite"> | number | null
createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
}, "id" | "siteId">
export type UnifiSiteOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
siteId?: Prisma.SortOrder
companyId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.UnifiSiteCountOrderByAggregateInput
_avg?: Prisma.UnifiSiteAvgOrderByAggregateInput
_max?: Prisma.UnifiSiteMaxOrderByAggregateInput
_min?: Prisma.UnifiSiteMinOrderByAggregateInput
_sum?: Prisma.UnifiSiteSumOrderByAggregateInput
}
export type UnifiSiteScalarWhereWithAggregatesInput = {
AND?: Prisma.UnifiSiteScalarWhereWithAggregatesInput | Prisma.UnifiSiteScalarWhereWithAggregatesInput[]
OR?: Prisma.UnifiSiteScalarWhereWithAggregatesInput[]
NOT?: Prisma.UnifiSiteScalarWhereWithAggregatesInput | Prisma.UnifiSiteScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"UnifiSite"> | string
name?: Prisma.StringWithAggregatesFilter<"UnifiSite"> | string
siteId?: Prisma.StringWithAggregatesFilter<"UnifiSite"> | string
companyId?: Prisma.IntNullableWithAggregatesFilter<"UnifiSite"> | number | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"UnifiSite"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"UnifiSite"> | Date | string
}
export type UnifiSiteCreateInput = {
id?: string
name: string
siteId: string
createdAt?: Date | string
updatedAt?: Date | string
company?: Prisma.CompanyCreateNestedOneWithoutUnifiSitesInput
}
export type UnifiSiteUncheckedCreateInput = {
id?: string
name: string
siteId: string
companyId?: number | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type UnifiSiteUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
siteId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
company?: Prisma.CompanyUpdateOneWithoutUnifiSitesNestedInput
}
export type UnifiSiteUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
siteId?: Prisma.StringFieldUpdateOperationsInput | string
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type UnifiSiteCreateManyInput = {
id?: string
name: string
siteId: string
companyId?: number | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type UnifiSiteUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
siteId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type UnifiSiteUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
siteId?: Prisma.StringFieldUpdateOperationsInput | string
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type UnifiSiteCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
siteId?: Prisma.SortOrder
companyId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type UnifiSiteAvgOrderByAggregateInput = {
companyId?: Prisma.SortOrder
}
export type UnifiSiteMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
siteId?: Prisma.SortOrder
companyId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type UnifiSiteMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
siteId?: Prisma.SortOrder
companyId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type UnifiSiteSumOrderByAggregateInput = {
companyId?: Prisma.SortOrder
}
export type UnifiSiteListRelationFilter = {
every?: Prisma.UnifiSiteWhereInput
some?: Prisma.UnifiSiteWhereInput
none?: Prisma.UnifiSiteWhereInput
}
export type UnifiSiteOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type UnifiSiteCreateNestedManyWithoutCompanyInput = {
create?: Prisma.XOR<Prisma.UnifiSiteCreateWithoutCompanyInput, Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput> | Prisma.UnifiSiteCreateWithoutCompanyInput[] | Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput[]
connectOrCreate?: Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput | Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput[]
createMany?: Prisma.UnifiSiteCreateManyCompanyInputEnvelope
connect?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
}
export type UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput = {
create?: Prisma.XOR<Prisma.UnifiSiteCreateWithoutCompanyInput, Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput> | Prisma.UnifiSiteCreateWithoutCompanyInput[] | Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput[]
connectOrCreate?: Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput | Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput[]
createMany?: Prisma.UnifiSiteCreateManyCompanyInputEnvelope
connect?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
}
export type UnifiSiteUpdateManyWithoutCompanyNestedInput = {
create?: Prisma.XOR<Prisma.UnifiSiteCreateWithoutCompanyInput, Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput> | Prisma.UnifiSiteCreateWithoutCompanyInput[] | Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput[]
connectOrCreate?: Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput | Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput[]
upsert?: Prisma.UnifiSiteUpsertWithWhereUniqueWithoutCompanyInput | Prisma.UnifiSiteUpsertWithWhereUniqueWithoutCompanyInput[]
createMany?: Prisma.UnifiSiteCreateManyCompanyInputEnvelope
set?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
disconnect?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
delete?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
connect?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
update?: Prisma.UnifiSiteUpdateWithWhereUniqueWithoutCompanyInput | Prisma.UnifiSiteUpdateWithWhereUniqueWithoutCompanyInput[]
updateMany?: Prisma.UnifiSiteUpdateManyWithWhereWithoutCompanyInput | Prisma.UnifiSiteUpdateManyWithWhereWithoutCompanyInput[]
deleteMany?: Prisma.UnifiSiteScalarWhereInput | Prisma.UnifiSiteScalarWhereInput[]
}
export type UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput = {
create?: Prisma.XOR<Prisma.UnifiSiteCreateWithoutCompanyInput, Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput> | Prisma.UnifiSiteCreateWithoutCompanyInput[] | Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput[]
connectOrCreate?: Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput | Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput[]
upsert?: Prisma.UnifiSiteUpsertWithWhereUniqueWithoutCompanyInput | Prisma.UnifiSiteUpsertWithWhereUniqueWithoutCompanyInput[]
createMany?: Prisma.UnifiSiteCreateManyCompanyInputEnvelope
set?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
disconnect?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
delete?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
connect?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[]
update?: Prisma.UnifiSiteUpdateWithWhereUniqueWithoutCompanyInput | Prisma.UnifiSiteUpdateWithWhereUniqueWithoutCompanyInput[]
updateMany?: Prisma.UnifiSiteUpdateManyWithWhereWithoutCompanyInput | Prisma.UnifiSiteUpdateManyWithWhereWithoutCompanyInput[]
deleteMany?: Prisma.UnifiSiteScalarWhereInput | Prisma.UnifiSiteScalarWhereInput[]
}
export type UnifiSiteCreateWithoutCompanyInput = {
id?: string
name: string
siteId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type UnifiSiteUncheckedCreateWithoutCompanyInput = {
id?: string
name: string
siteId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type UnifiSiteCreateOrConnectWithoutCompanyInput = {
where: Prisma.UnifiSiteWhereUniqueInput
create: Prisma.XOR<Prisma.UnifiSiteCreateWithoutCompanyInput, Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput>
}
export type UnifiSiteCreateManyCompanyInputEnvelope = {
data: Prisma.UnifiSiteCreateManyCompanyInput | Prisma.UnifiSiteCreateManyCompanyInput[]
skipDuplicates?: boolean
}
export type UnifiSiteUpsertWithWhereUniqueWithoutCompanyInput = {
where: Prisma.UnifiSiteWhereUniqueInput
update: Prisma.XOR<Prisma.UnifiSiteUpdateWithoutCompanyInput, Prisma.UnifiSiteUncheckedUpdateWithoutCompanyInput>
create: Prisma.XOR<Prisma.UnifiSiteCreateWithoutCompanyInput, Prisma.UnifiSiteUncheckedCreateWithoutCompanyInput>
}
export type UnifiSiteUpdateWithWhereUniqueWithoutCompanyInput = {
where: Prisma.UnifiSiteWhereUniqueInput
data: Prisma.XOR<Prisma.UnifiSiteUpdateWithoutCompanyInput, Prisma.UnifiSiteUncheckedUpdateWithoutCompanyInput>
}
export type UnifiSiteUpdateManyWithWhereWithoutCompanyInput = {
where: Prisma.UnifiSiteScalarWhereInput
data: Prisma.XOR<Prisma.UnifiSiteUpdateManyMutationInput, Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyInput>
}
export type UnifiSiteScalarWhereInput = {
AND?: Prisma.UnifiSiteScalarWhereInput | Prisma.UnifiSiteScalarWhereInput[]
OR?: Prisma.UnifiSiteScalarWhereInput[]
NOT?: Prisma.UnifiSiteScalarWhereInput | Prisma.UnifiSiteScalarWhereInput[]
id?: Prisma.StringFilter<"UnifiSite"> | string
name?: Prisma.StringFilter<"UnifiSite"> | string
siteId?: Prisma.StringFilter<"UnifiSite"> | string
companyId?: Prisma.IntNullableFilter<"UnifiSite"> | number | null
createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
}
export type UnifiSiteCreateManyCompanyInput = {
id?: string
name: string
siteId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type UnifiSiteUpdateWithoutCompanyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
siteId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type UnifiSiteUncheckedUpdateWithoutCompanyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
siteId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type UnifiSiteUncheckedUpdateManyWithoutCompanyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
siteId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type UnifiSiteSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
siteId?: boolean
companyId?: boolean
createdAt?: boolean
updatedAt?: boolean
company?: boolean | Prisma.UnifiSite$companyArgs<ExtArgs>
}, ExtArgs["result"]["unifiSite"]>
export type UnifiSiteSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
siteId?: boolean
companyId?: boolean
createdAt?: boolean
updatedAt?: boolean
company?: boolean | Prisma.UnifiSite$companyArgs<ExtArgs>
}, ExtArgs["result"]["unifiSite"]>
export type UnifiSiteSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
siteId?: boolean
companyId?: boolean
createdAt?: boolean
updatedAt?: boolean
company?: boolean | Prisma.UnifiSite$companyArgs<ExtArgs>
}, ExtArgs["result"]["unifiSite"]>
export type UnifiSiteSelectScalar = {
id?: boolean
name?: boolean
siteId?: boolean
companyId?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type UnifiSiteOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "siteId" | "companyId" | "createdAt" | "updatedAt", ExtArgs["result"]["unifiSite"]>
export type UnifiSiteInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
company?: boolean | Prisma.UnifiSite$companyArgs<ExtArgs>
}
export type UnifiSiteIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
company?: boolean | Prisma.UnifiSite$companyArgs<ExtArgs>
}
export type UnifiSiteIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
company?: boolean | Prisma.UnifiSite$companyArgs<ExtArgs>
}
export type $UnifiSitePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "UnifiSite"
objects: {
company: Prisma.$CompanyPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
name: string
siteId: string
companyId: number | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["unifiSite"]>
composites: {}
}
export type UnifiSiteGetPayload<S extends boolean | null | undefined | UnifiSiteDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload, S>
export type UnifiSiteCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<UnifiSiteFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: UnifiSiteCountAggregateInputType | true
}
export interface UnifiSiteDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UnifiSite'], meta: { name: 'UnifiSite' } }
/**
* Find zero or one UnifiSite that matches the filter.
* @param {UnifiSiteFindUniqueArgs} args - Arguments to find a UnifiSite
* @example
* // Get one UnifiSite
* const unifiSite = await prisma.unifiSite.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends UnifiSiteFindUniqueArgs>(args: Prisma.SelectSubset<T, UnifiSiteFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UnifiSiteClient<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one UnifiSite that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {UnifiSiteFindUniqueOrThrowArgs} args - Arguments to find a UnifiSite
* @example
* // Get one UnifiSite
* const unifiSite = await prisma.unifiSite.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends UnifiSiteFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UnifiSiteFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UnifiSiteClient<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first UnifiSite 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 {UnifiSiteFindFirstArgs} args - Arguments to find a UnifiSite
* @example
* // Get one UnifiSite
* const unifiSite = await prisma.unifiSite.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends UnifiSiteFindFirstArgs>(args?: Prisma.SelectSubset<T, UnifiSiteFindFirstArgs<ExtArgs>>): Prisma.Prisma__UnifiSiteClient<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first UnifiSite 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 {UnifiSiteFindFirstOrThrowArgs} args - Arguments to find a UnifiSite
* @example
* // Get one UnifiSite
* const unifiSite = await prisma.unifiSite.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends UnifiSiteFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UnifiSiteFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UnifiSiteClient<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more UnifiSites 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 {UnifiSiteFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all UnifiSites
* const unifiSites = await prisma.unifiSite.findMany()
*
* // Get first 10 UnifiSites
* const unifiSites = await prisma.unifiSite.findMany({ take: 10 })
*
* // Only select the `id`
* const unifiSiteWithIdOnly = await prisma.unifiSite.findMany({ select: { id: true } })
*
*/
findMany<T extends UnifiSiteFindManyArgs>(args?: Prisma.SelectSubset<T, UnifiSiteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a UnifiSite.
* @param {UnifiSiteCreateArgs} args - Arguments to create a UnifiSite.
* @example
* // Create one UnifiSite
* const UnifiSite = await prisma.unifiSite.create({
* data: {
* // ... data to create a UnifiSite
* }
* })
*
*/
create<T extends UnifiSiteCreateArgs>(args: Prisma.SelectSubset<T, UnifiSiteCreateArgs<ExtArgs>>): Prisma.Prisma__UnifiSiteClient<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many UnifiSites.
* @param {UnifiSiteCreateManyArgs} args - Arguments to create many UnifiSites.
* @example
* // Create many UnifiSites
* const unifiSite = await prisma.unifiSite.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends UnifiSiteCreateManyArgs>(args?: Prisma.SelectSubset<T, UnifiSiteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many UnifiSites and returns the data saved in the database.
* @param {UnifiSiteCreateManyAndReturnArgs} args - Arguments to create many UnifiSites.
* @example
* // Create many UnifiSites
* const unifiSite = await prisma.unifiSite.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many UnifiSites and only return the `id`
* const unifiSiteWithIdOnly = await prisma.unifiSite.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 UnifiSiteCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UnifiSiteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a UnifiSite.
* @param {UnifiSiteDeleteArgs} args - Arguments to delete one UnifiSite.
* @example
* // Delete one UnifiSite
* const UnifiSite = await prisma.unifiSite.delete({
* where: {
* // ... filter to delete one UnifiSite
* }
* })
*
*/
delete<T extends UnifiSiteDeleteArgs>(args: Prisma.SelectSubset<T, UnifiSiteDeleteArgs<ExtArgs>>): Prisma.Prisma__UnifiSiteClient<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one UnifiSite.
* @param {UnifiSiteUpdateArgs} args - Arguments to update one UnifiSite.
* @example
* // Update one UnifiSite
* const unifiSite = await prisma.unifiSite.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends UnifiSiteUpdateArgs>(args: Prisma.SelectSubset<T, UnifiSiteUpdateArgs<ExtArgs>>): Prisma.Prisma__UnifiSiteClient<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more UnifiSites.
* @param {UnifiSiteDeleteManyArgs} args - Arguments to filter UnifiSites to delete.
* @example
* // Delete a few UnifiSites
* const { count } = await prisma.unifiSite.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends UnifiSiteDeleteManyArgs>(args?: Prisma.SelectSubset<T, UnifiSiteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more UnifiSites.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UnifiSiteUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many UnifiSites
* const unifiSite = await prisma.unifiSite.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends UnifiSiteUpdateManyArgs>(args: Prisma.SelectSubset<T, UnifiSiteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more UnifiSites and returns the data updated in the database.
* @param {UnifiSiteUpdateManyAndReturnArgs} args - Arguments to update many UnifiSites.
* @example
* // Update many UnifiSites
* const unifiSite = await prisma.unifiSite.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more UnifiSites and only return the `id`
* const unifiSiteWithIdOnly = await prisma.unifiSite.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 UnifiSiteUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UnifiSiteUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one UnifiSite.
* @param {UnifiSiteUpsertArgs} args - Arguments to update or create a UnifiSite.
* @example
* // Update or create a UnifiSite
* const unifiSite = await prisma.unifiSite.upsert({
* create: {
* // ... data to create a UnifiSite
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the UnifiSite we want to update
* }
* })
*/
upsert<T extends UnifiSiteUpsertArgs>(args: Prisma.SelectSubset<T, UnifiSiteUpsertArgs<ExtArgs>>): Prisma.Prisma__UnifiSiteClient<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of UnifiSites.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UnifiSiteCountArgs} args - Arguments to filter UnifiSites to count.
* @example
* // Count the number of UnifiSites
* const count = await prisma.unifiSite.count({
* where: {
* // ... the filter for the UnifiSites we want to count
* }
* })
**/
count<T extends UnifiSiteCountArgs>(
args?: Prisma.Subset<T, UnifiSiteCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], UnifiSiteCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a UnifiSite.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UnifiSiteAggregateArgs} 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 UnifiSiteAggregateArgs>(args: Prisma.Subset<T, UnifiSiteAggregateArgs>): Prisma.PrismaPromise<GetUnifiSiteAggregateType<T>>
/**
* Group by UnifiSite.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UnifiSiteGroupByArgs} 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 UnifiSiteGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: UnifiSiteGroupByArgs['orderBy'] }
: { orderBy?: UnifiSiteGroupByArgs['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, UnifiSiteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUnifiSiteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the UnifiSite model
*/
readonly fields: UnifiSiteFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for UnifiSite.
* 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__UnifiSiteClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
company<T extends Prisma.UnifiSite$companyArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UnifiSite$companyArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<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 UnifiSite model
*/
export interface UnifiSiteFieldRefs {
readonly id: Prisma.FieldRef<"UnifiSite", 'String'>
readonly name: Prisma.FieldRef<"UnifiSite", 'String'>
readonly siteId: Prisma.FieldRef<"UnifiSite", 'String'>
readonly companyId: Prisma.FieldRef<"UnifiSite", 'Int'>
readonly createdAt: Prisma.FieldRef<"UnifiSite", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"UnifiSite", 'DateTime'>
}
// Custom InputTypes
/**
* UnifiSite findUnique
*/
export type UnifiSiteFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
/**
* Filter, which UnifiSite to fetch.
*/
where: Prisma.UnifiSiteWhereUniqueInput
}
/**
* UnifiSite findUniqueOrThrow
*/
export type UnifiSiteFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
/**
* Filter, which UnifiSite to fetch.
*/
where: Prisma.UnifiSiteWhereUniqueInput
}
/**
* UnifiSite findFirst
*/
export type UnifiSiteFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
/**
* Filter, which UnifiSite to fetch.
*/
where?: Prisma.UnifiSiteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UnifiSites to fetch.
*/
orderBy?: Prisma.UnifiSiteOrderByWithRelationInput | Prisma.UnifiSiteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for UnifiSites.
*/
cursor?: Prisma.UnifiSiteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UnifiSites 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` UnifiSites.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of UnifiSites.
*/
distinct?: Prisma.UnifiSiteScalarFieldEnum | Prisma.UnifiSiteScalarFieldEnum[]
}
/**
* UnifiSite findFirstOrThrow
*/
export type UnifiSiteFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
/**
* Filter, which UnifiSite to fetch.
*/
where?: Prisma.UnifiSiteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UnifiSites to fetch.
*/
orderBy?: Prisma.UnifiSiteOrderByWithRelationInput | Prisma.UnifiSiteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for UnifiSites.
*/
cursor?: Prisma.UnifiSiteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UnifiSites 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` UnifiSites.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of UnifiSites.
*/
distinct?: Prisma.UnifiSiteScalarFieldEnum | Prisma.UnifiSiteScalarFieldEnum[]
}
/**
* UnifiSite findMany
*/
export type UnifiSiteFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
/**
* Filter, which UnifiSites to fetch.
*/
where?: Prisma.UnifiSiteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UnifiSites to fetch.
*/
orderBy?: Prisma.UnifiSiteOrderByWithRelationInput | Prisma.UnifiSiteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing UnifiSites.
*/
cursor?: Prisma.UnifiSiteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UnifiSites 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` UnifiSites.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of UnifiSites.
*/
distinct?: Prisma.UnifiSiteScalarFieldEnum | Prisma.UnifiSiteScalarFieldEnum[]
}
/**
* UnifiSite create
*/
export type UnifiSiteCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
/**
* The data needed to create a UnifiSite.
*/
data: Prisma.XOR<Prisma.UnifiSiteCreateInput, Prisma.UnifiSiteUncheckedCreateInput>
}
/**
* UnifiSite createMany
*/
export type UnifiSiteCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many UnifiSites.
*/
data: Prisma.UnifiSiteCreateManyInput | Prisma.UnifiSiteCreateManyInput[]
skipDuplicates?: boolean
}
/**
* UnifiSite createManyAndReturn
*/
export type UnifiSiteCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* The data used to create many UnifiSites.
*/
data: Prisma.UnifiSiteCreateManyInput | Prisma.UnifiSiteCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* UnifiSite update
*/
export type UnifiSiteUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
/**
* The data needed to update a UnifiSite.
*/
data: Prisma.XOR<Prisma.UnifiSiteUpdateInput, Prisma.UnifiSiteUncheckedUpdateInput>
/**
* Choose, which UnifiSite to update.
*/
where: Prisma.UnifiSiteWhereUniqueInput
}
/**
* UnifiSite updateMany
*/
export type UnifiSiteUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update UnifiSites.
*/
data: Prisma.XOR<Prisma.UnifiSiteUpdateManyMutationInput, Prisma.UnifiSiteUncheckedUpdateManyInput>
/**
* Filter which UnifiSites to update
*/
where?: Prisma.UnifiSiteWhereInput
/**
* Limit how many UnifiSites to update.
*/
limit?: number
}
/**
* UnifiSite updateManyAndReturn
*/
export type UnifiSiteUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* The data used to update UnifiSites.
*/
data: Prisma.XOR<Prisma.UnifiSiteUpdateManyMutationInput, Prisma.UnifiSiteUncheckedUpdateManyInput>
/**
* Filter which UnifiSites to update
*/
where?: Prisma.UnifiSiteWhereInput
/**
* Limit how many UnifiSites to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* UnifiSite upsert
*/
export type UnifiSiteUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
/**
* The filter to search for the UnifiSite to update in case it exists.
*/
where: Prisma.UnifiSiteWhereUniqueInput
/**
* In case the UnifiSite found by the `where` argument doesn't exist, create a new UnifiSite with this data.
*/
create: Prisma.XOR<Prisma.UnifiSiteCreateInput, Prisma.UnifiSiteUncheckedCreateInput>
/**
* In case the UnifiSite was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.UnifiSiteUpdateInput, Prisma.UnifiSiteUncheckedUpdateInput>
}
/**
* UnifiSite delete
*/
export type UnifiSiteDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
/**
* Filter which UnifiSite to delete.
*/
where: Prisma.UnifiSiteWhereUniqueInput
}
/**
* UnifiSite deleteMany
*/
export type UnifiSiteDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which UnifiSites to delete
*/
where?: Prisma.UnifiSiteWhereInput
/**
* Limit how many UnifiSites to delete.
*/
limit?: number
}
/**
* UnifiSite.company
*/
export type UnifiSite$companyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | null
where?: Prisma.CompanyWhereInput
}
/**
* UnifiSite without action
*/
export type UnifiSiteDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UnifiSite
*/
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
/**
* Omit specific fields from the UnifiSite
*/
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
}