/* !!! 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 export type AggregateUnifiSite = { _count: UnifiSiteCountAggregateOutputType | null _min: UnifiSiteMinAggregateOutputType | null _max: UnifiSiteMaxAggregateOutputType | null } export type UnifiSiteMinAggregateOutputType = { id: string | null name: string | null siteId: string | null companyId: string | null createdAt: Date | null updatedAt: Date | null } export type UnifiSiteMaxAggregateOutputType = { id: string | null name: string | null siteId: string | null companyId: string | 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 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 = { /** * 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 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 = { [P in keyof T & keyof AggregateUnifiSite]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type UnifiSiteGroupByArgs = { where?: Prisma.UnifiSiteWhereInput orderBy?: Prisma.UnifiSiteOrderByWithAggregationInput | Prisma.UnifiSiteOrderByWithAggregationInput[] by: Prisma.UnifiSiteScalarFieldEnum[] | Prisma.UnifiSiteScalarFieldEnum having?: Prisma.UnifiSiteScalarWhereWithAggregatesInput take?: number skip?: number _count?: UnifiSiteCountAggregateInputType | true _min?: UnifiSiteMinAggregateInputType _max?: UnifiSiteMaxAggregateInputType } export type UnifiSiteGroupByOutputType = { id: string name: string siteId: string companyId: string | null createdAt: Date updatedAt: Date _count: UnifiSiteCountAggregateOutputType | null _min: UnifiSiteMinAggregateOutputType | null _max: UnifiSiteMaxAggregateOutputType | null } type GetUnifiSiteGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof UnifiSiteGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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.StringNullableFilter<"UnifiSite"> | string | null createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string company?: Prisma.XOR | 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.StringNullableFilter<"UnifiSite"> | string | null createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string company?: Prisma.XOR | 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 _max?: Prisma.UnifiSiteMaxOrderByAggregateInput _min?: Prisma.UnifiSiteMinOrderByAggregateInput } 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.StringNullableWithAggregatesFilter<"UnifiSite"> | string | 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?: string | 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.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type UnifiSiteCreateManyInput = { id?: string name: string siteId: string companyId?: string | 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.NullableStringFieldUpdateOperationsInput | string | 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 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 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[] connectOrCreate?: Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput | Prisma.UnifiSiteCreateOrConnectWithoutCompanyInput[] createMany?: Prisma.UnifiSiteCreateManyCompanyInputEnvelope connect?: Prisma.UnifiSiteWhereUniqueInput | Prisma.UnifiSiteWhereUniqueInput[] } export type UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type UnifiSiteCreateManyCompanyInputEnvelope = { data: Prisma.UnifiSiteCreateManyCompanyInput | Prisma.UnifiSiteCreateManyCompanyInput[] skipDuplicates?: boolean } export type UnifiSiteUpsertWithWhereUniqueWithoutCompanyInput = { where: Prisma.UnifiSiteWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type UnifiSiteUpdateWithWhereUniqueWithoutCompanyInput = { where: Prisma.UnifiSiteWhereUniqueInput data: Prisma.XOR } export type UnifiSiteUpdateManyWithWhereWithoutCompanyInput = { where: Prisma.UnifiSiteScalarWhereInput data: Prisma.XOR } 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.StringNullableFilter<"UnifiSite"> | string | 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 = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean siteId?: boolean companyId?: boolean createdAt?: boolean updatedAt?: boolean company?: boolean | Prisma.UnifiSite$companyArgs }, ExtArgs["result"]["unifiSite"]> export type UnifiSiteSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean siteId?: boolean companyId?: boolean createdAt?: boolean updatedAt?: boolean company?: boolean | Prisma.UnifiSite$companyArgs }, ExtArgs["result"]["unifiSite"]> export type UnifiSiteSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean siteId?: boolean companyId?: boolean createdAt?: boolean updatedAt?: boolean company?: boolean | Prisma.UnifiSite$companyArgs }, ExtArgs["result"]["unifiSite"]> export type UnifiSiteSelectScalar = { id?: boolean name?: boolean siteId?: boolean companyId?: boolean createdAt?: boolean updatedAt?: boolean } export type UnifiSiteOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "siteId" | "companyId" | "createdAt" | "updatedAt", ExtArgs["result"]["unifiSite"]> export type UnifiSiteInclude = { company?: boolean | Prisma.UnifiSite$companyArgs } export type UnifiSiteIncludeCreateManyAndReturn = { company?: boolean | Prisma.UnifiSite$companyArgs } export type UnifiSiteIncludeUpdateManyAndReturn = { company?: boolean | Prisma.UnifiSite$companyArgs } export type $UnifiSitePayload = { name: "UnifiSite" objects: { company: Prisma.$CompanyPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string siteId: string companyId: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["unifiSite"]> composites: {} } export type UnifiSiteGetPayload = runtime.Types.Result.GetResult export type UnifiSiteCountArgs = Omit & { select?: UnifiSiteCountAggregateInputType | true } export interface UnifiSiteDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__UnifiSiteClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnifiSiteClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UnifiSiteClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UnifiSiteClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnifiSiteClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnifiSiteClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnifiSiteClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnifiSiteClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: UnifiSiteGroupByArgs['orderBy'] } : { orderBy?: UnifiSiteGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetUnifiSiteGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" company = {}>(args?: Prisma.Subset>): Prisma.Prisma__CompanyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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", 'String'> readonly createdAt: Prisma.FieldRef<"UnifiSite", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"UnifiSite", 'DateTime'> } // Custom InputTypes /** * UnifiSite findUnique */ export type UnifiSiteFindUniqueArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | null /** * Filter, which UnifiSite to fetch. */ where: Prisma.UnifiSiteWhereUniqueInput } /** * UnifiSite findUniqueOrThrow */ export type UnifiSiteFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | null /** * Filter, which UnifiSite to fetch. */ where: Prisma.UnifiSiteWhereUniqueInput } /** * UnifiSite findFirst */ export type UnifiSiteFindFirstArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | 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 = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | 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 = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | 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 distinct?: Prisma.UnifiSiteScalarFieldEnum | Prisma.UnifiSiteScalarFieldEnum[] } /** * UnifiSite create */ export type UnifiSiteCreateArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | null /** * The data needed to create a UnifiSite. */ data: Prisma.XOR } /** * UnifiSite createMany */ export type UnifiSiteCreateManyArgs = { /** * The data used to create many UnifiSites. */ data: Prisma.UnifiSiteCreateManyInput | Prisma.UnifiSiteCreateManyInput[] skipDuplicates?: boolean } /** * UnifiSite createManyAndReturn */ export type UnifiSiteCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelectCreateManyAndReturn | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | 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 | null } /** * UnifiSite update */ export type UnifiSiteUpdateArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | null /** * The data needed to update a UnifiSite. */ data: Prisma.XOR /** * Choose, which UnifiSite to update. */ where: Prisma.UnifiSiteWhereUniqueInput } /** * UnifiSite updateMany */ export type UnifiSiteUpdateManyArgs = { /** * The data used to update UnifiSites. */ data: Prisma.XOR /** * Filter which UnifiSites to update */ where?: Prisma.UnifiSiteWhereInput /** * Limit how many UnifiSites to update. */ limit?: number } /** * UnifiSite updateManyAndReturn */ export type UnifiSiteUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelectUpdateManyAndReturn | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * The data used to update UnifiSites. */ data: Prisma.XOR /** * 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 | null } /** * UnifiSite upsert */ export type UnifiSiteUpsertArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | 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 /** * In case the UnifiSite was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * UnifiSite delete */ export type UnifiSiteDeleteArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | null /** * Filter which UnifiSite to delete. */ where: Prisma.UnifiSiteWhereUniqueInput } /** * UnifiSite deleteMany */ export type UnifiSiteDeleteManyArgs = { /** * Filter which UnifiSites to delete */ where?: Prisma.UnifiSiteWhereInput /** * Limit how many UnifiSites to delete. */ limit?: number } /** * UnifiSite.company */ export type UnifiSite$companyArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null where?: Prisma.CompanyWhereInput } /** * UnifiSite without action */ export type UnifiSiteDefaultArgs = { /** * Select specific fields to fetch from the UnifiSite */ select?: Prisma.UnifiSiteSelect | null /** * Omit specific fields from the UnifiSite */ omit?: Prisma.UnifiSiteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UnifiSiteInclude | null }