/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Complex` 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.js" import type * as Prisma from "../internal/prismaNamespace.js" /** * Model Complex * */ export type ComplexModel = runtime.Types.Result.DefaultSelection export type AggregateComplex = { _count: ComplexCountAggregateOutputType | null _min: ComplexMinAggregateOutputType | null _max: ComplexMaxAggregateOutputType | null } export type ComplexMinAggregateOutputType = { id: string | null name: string | null address: string | null tax_id: string | null created_at: Date | null updated_at: Date | null business_activity_id: string | null } export type ComplexMaxAggregateOutputType = { id: string | null name: string | null address: string | null tax_id: string | null created_at: Date | null updated_at: Date | null business_activity_id: string | null } export type ComplexCountAggregateOutputType = { id: number name: number address: number tax_id: number created_at: number updated_at: number business_activity_id: number _all: number } export type ComplexMinAggregateInputType = { id?: true name?: true address?: true tax_id?: true created_at?: true updated_at?: true business_activity_id?: true } export type ComplexMaxAggregateInputType = { id?: true name?: true address?: true tax_id?: true created_at?: true updated_at?: true business_activity_id?: true } export type ComplexCountAggregateInputType = { id?: true name?: true address?: true tax_id?: true created_at?: true updated_at?: true business_activity_id?: true _all?: true } export type ComplexAggregateArgs = { /** * Filter which Complex to aggregate. */ where?: Prisma.ComplexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Complexes to fetch. */ orderBy?: Prisma.ComplexOrderByWithRelationInput | Prisma.ComplexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ComplexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Complexes 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` Complexes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Complexes **/ _count?: true | ComplexCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ComplexMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ComplexMaxAggregateInputType } export type GetComplexAggregateType = { [P in keyof T & keyof AggregateComplex]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ComplexGroupByArgs = { where?: Prisma.ComplexWhereInput orderBy?: Prisma.ComplexOrderByWithAggregationInput | Prisma.ComplexOrderByWithAggregationInput[] by: Prisma.ComplexScalarFieldEnum[] | Prisma.ComplexScalarFieldEnum having?: Prisma.ComplexScalarWhereWithAggregatesInput take?: number skip?: number _count?: ComplexCountAggregateInputType | true _min?: ComplexMinAggregateInputType _max?: ComplexMaxAggregateInputType } export type ComplexGroupByOutputType = { id: string name: string address: string | null tax_id: string | null created_at: Date updated_at: Date business_activity_id: string _count: ComplexCountAggregateOutputType | null _min: ComplexMinAggregateOutputType | null _max: ComplexMaxAggregateOutputType | null } type GetComplexGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ComplexGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ComplexWhereInput = { AND?: Prisma.ComplexWhereInput | Prisma.ComplexWhereInput[] OR?: Prisma.ComplexWhereInput[] NOT?: Prisma.ComplexWhereInput | Prisma.ComplexWhereInput[] id?: Prisma.StringFilter<"Complex"> | string name?: Prisma.StringFilter<"Complex"> | string address?: Prisma.StringNullableFilter<"Complex"> | string | null tax_id?: Prisma.StringNullableFilter<"Complex"> | string | null created_at?: Prisma.DateTimeFilter<"Complex"> | Date | string updated_at?: Prisma.DateTimeFilter<"Complex"> | Date | string business_activity_id?: Prisma.StringFilter<"Complex"> | string business_activity?: Prisma.XOR pos_list?: Prisma.PosListRelationFilter goods?: Prisma.GoodListRelationFilter good_categories?: Prisma.GoodCategoryListRelationFilter permissionComplexes?: Prisma.PermissionComplexListRelationFilter } export type ComplexOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder address?: Prisma.SortOrderInput | Prisma.SortOrder tax_id?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder business_activity_id?: Prisma.SortOrder business_activity?: Prisma.BusinessActivityOrderByWithRelationInput pos_list?: Prisma.PosOrderByRelationAggregateInput goods?: Prisma.GoodOrderByRelationAggregateInput good_categories?: Prisma.GoodCategoryOrderByRelationAggregateInput permissionComplexes?: Prisma.PermissionComplexOrderByRelationAggregateInput _relevance?: Prisma.ComplexOrderByRelevanceInput } export type ComplexWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.ComplexWhereInput | Prisma.ComplexWhereInput[] OR?: Prisma.ComplexWhereInput[] NOT?: Prisma.ComplexWhereInput | Prisma.ComplexWhereInput[] name?: Prisma.StringFilter<"Complex"> | string address?: Prisma.StringNullableFilter<"Complex"> | string | null tax_id?: Prisma.StringNullableFilter<"Complex"> | string | null created_at?: Prisma.DateTimeFilter<"Complex"> | Date | string updated_at?: Prisma.DateTimeFilter<"Complex"> | Date | string business_activity_id?: Prisma.StringFilter<"Complex"> | string business_activity?: Prisma.XOR pos_list?: Prisma.PosListRelationFilter goods?: Prisma.GoodListRelationFilter good_categories?: Prisma.GoodCategoryListRelationFilter permissionComplexes?: Prisma.PermissionComplexListRelationFilter }, "id"> export type ComplexOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder address?: Prisma.SortOrderInput | Prisma.SortOrder tax_id?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder business_activity_id?: Prisma.SortOrder _count?: Prisma.ComplexCountOrderByAggregateInput _max?: Prisma.ComplexMaxOrderByAggregateInput _min?: Prisma.ComplexMinOrderByAggregateInput } export type ComplexScalarWhereWithAggregatesInput = { AND?: Prisma.ComplexScalarWhereWithAggregatesInput | Prisma.ComplexScalarWhereWithAggregatesInput[] OR?: Prisma.ComplexScalarWhereWithAggregatesInput[] NOT?: Prisma.ComplexScalarWhereWithAggregatesInput | Prisma.ComplexScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Complex"> | string name?: Prisma.StringWithAggregatesFilter<"Complex"> | string address?: Prisma.StringNullableWithAggregatesFilter<"Complex"> | string | null tax_id?: Prisma.StringNullableWithAggregatesFilter<"Complex"> | string | null created_at?: Prisma.DateTimeWithAggregatesFilter<"Complex"> | Date | string updated_at?: Prisma.DateTimeWithAggregatesFilter<"Complex"> | Date | string business_activity_id?: Prisma.StringWithAggregatesFilter<"Complex"> | string } export type ComplexCreateInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput goods?: Prisma.GoodCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity_id: string pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput } export type ComplexUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexCreateManyInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity_id: string } export type ComplexUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ComplexUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string } export type ComplexListRelationFilter = { every?: Prisma.ComplexWhereInput some?: Prisma.ComplexWhereInput none?: Prisma.ComplexWhereInput } export type ComplexOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type ComplexOrderByRelevanceInput = { fields: Prisma.ComplexOrderByRelevanceFieldEnum | Prisma.ComplexOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type ComplexCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder address?: Prisma.SortOrder tax_id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder business_activity_id?: Prisma.SortOrder } export type ComplexMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder address?: Prisma.SortOrder tax_id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder business_activity_id?: Prisma.SortOrder } export type ComplexMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder address?: Prisma.SortOrder tax_id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder business_activity_id?: Prisma.SortOrder } export type ComplexScalarRelationFilter = { is?: Prisma.ComplexWhereInput isNot?: Prisma.ComplexWhereInput } export type ComplexNullableScalarRelationFilter = { is?: Prisma.ComplexWhereInput | null isNot?: Prisma.ComplexWhereInput | null } export type ComplexCreateNestedManyWithoutBusiness_activityInput = { create?: Prisma.XOR | Prisma.ComplexCreateWithoutBusiness_activityInput[] | Prisma.ComplexUncheckedCreateWithoutBusiness_activityInput[] connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput | Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput[] createMany?: Prisma.ComplexCreateManyBusiness_activityInputEnvelope connect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] } export type ComplexUncheckedCreateNestedManyWithoutBusiness_activityInput = { create?: Prisma.XOR | Prisma.ComplexCreateWithoutBusiness_activityInput[] | Prisma.ComplexUncheckedCreateWithoutBusiness_activityInput[] connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput | Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput[] createMany?: Prisma.ComplexCreateManyBusiness_activityInputEnvelope connect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] } export type ComplexUpdateManyWithoutBusiness_activityNestedInput = { create?: Prisma.XOR | Prisma.ComplexCreateWithoutBusiness_activityInput[] | Prisma.ComplexUncheckedCreateWithoutBusiness_activityInput[] connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput | Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput[] upsert?: Prisma.ComplexUpsertWithWhereUniqueWithoutBusiness_activityInput | Prisma.ComplexUpsertWithWhereUniqueWithoutBusiness_activityInput[] createMany?: Prisma.ComplexCreateManyBusiness_activityInputEnvelope set?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] disconnect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] delete?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] connect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] update?: Prisma.ComplexUpdateWithWhereUniqueWithoutBusiness_activityInput | Prisma.ComplexUpdateWithWhereUniqueWithoutBusiness_activityInput[] updateMany?: Prisma.ComplexUpdateManyWithWhereWithoutBusiness_activityInput | Prisma.ComplexUpdateManyWithWhereWithoutBusiness_activityInput[] deleteMany?: Prisma.ComplexScalarWhereInput | Prisma.ComplexScalarWhereInput[] } export type ComplexUncheckedUpdateManyWithoutBusiness_activityNestedInput = { create?: Prisma.XOR | Prisma.ComplexCreateWithoutBusiness_activityInput[] | Prisma.ComplexUncheckedCreateWithoutBusiness_activityInput[] connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput | Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput[] upsert?: Prisma.ComplexUpsertWithWhereUniqueWithoutBusiness_activityInput | Prisma.ComplexUpsertWithWhereUniqueWithoutBusiness_activityInput[] createMany?: Prisma.ComplexCreateManyBusiness_activityInputEnvelope set?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] disconnect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] delete?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] connect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] update?: Prisma.ComplexUpdateWithWhereUniqueWithoutBusiness_activityInput | Prisma.ComplexUpdateWithWhereUniqueWithoutBusiness_activityInput[] updateMany?: Prisma.ComplexUpdateManyWithWhereWithoutBusiness_activityInput | Prisma.ComplexUpdateManyWithWhereWithoutBusiness_activityInput[] deleteMany?: Prisma.ComplexScalarWhereInput | Prisma.ComplexScalarWhereInput[] } export type ComplexCreateNestedOneWithoutPos_listInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPos_listInput connect?: Prisma.ComplexWhereUniqueInput } export type ComplexUpdateOneRequiredWithoutPos_listNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPos_listInput upsert?: Prisma.ComplexUpsertWithoutPos_listInput connect?: Prisma.ComplexWhereUniqueInput update?: Prisma.XOR, Prisma.ComplexUncheckedUpdateWithoutPos_listInput> } export type ComplexCreateNestedOneWithoutPermissionComplexesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPermissionComplexesInput connect?: Prisma.ComplexWhereUniqueInput } export type ComplexUpdateOneRequiredWithoutPermissionComplexesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPermissionComplexesInput upsert?: Prisma.ComplexUpsertWithoutPermissionComplexesInput connect?: Prisma.ComplexWhereUniqueInput update?: Prisma.XOR, Prisma.ComplexUncheckedUpdateWithoutPermissionComplexesInput> } export type ComplexCreateNestedOneWithoutGoodsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutGoodsInput connect?: Prisma.ComplexWhereUniqueInput } export type ComplexUpdateOneWithoutGoodsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutGoodsInput upsert?: Prisma.ComplexUpsertWithoutGoodsInput disconnect?: Prisma.ComplexWhereInput | boolean delete?: Prisma.ComplexWhereInput | boolean connect?: Prisma.ComplexWhereUniqueInput update?: Prisma.XOR, Prisma.ComplexUncheckedUpdateWithoutGoodsInput> } export type ComplexCreateNestedOneWithoutGood_categoriesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutGood_categoriesInput connect?: Prisma.ComplexWhereUniqueInput } export type ComplexUpdateOneWithoutGood_categoriesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutGood_categoriesInput upsert?: Prisma.ComplexUpsertWithoutGood_categoriesInput disconnect?: Prisma.ComplexWhereInput | boolean delete?: Prisma.ComplexWhereInput | boolean connect?: Prisma.ComplexWhereUniqueInput update?: Prisma.XOR, Prisma.ComplexUncheckedUpdateWithoutGood_categoriesInput> } export type ComplexCreateWithoutBusiness_activityInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput goods?: Prisma.GoodCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateWithoutBusiness_activityInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput } export type ComplexCreateOrConnectWithoutBusiness_activityInput = { where: Prisma.ComplexWhereUniqueInput create: Prisma.XOR } export type ComplexCreateManyBusiness_activityInputEnvelope = { data: Prisma.ComplexCreateManyBusiness_activityInput | Prisma.ComplexCreateManyBusiness_activityInput[] skipDuplicates?: boolean } export type ComplexUpsertWithWhereUniqueWithoutBusiness_activityInput = { where: Prisma.ComplexWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ComplexUpdateWithWhereUniqueWithoutBusiness_activityInput = { where: Prisma.ComplexWhereUniqueInput data: Prisma.XOR } export type ComplexUpdateManyWithWhereWithoutBusiness_activityInput = { where: Prisma.ComplexScalarWhereInput data: Prisma.XOR } export type ComplexScalarWhereInput = { AND?: Prisma.ComplexScalarWhereInput | Prisma.ComplexScalarWhereInput[] OR?: Prisma.ComplexScalarWhereInput[] NOT?: Prisma.ComplexScalarWhereInput | Prisma.ComplexScalarWhereInput[] id?: Prisma.StringFilter<"Complex"> | string name?: Prisma.StringFilter<"Complex"> | string address?: Prisma.StringNullableFilter<"Complex"> | string | null tax_id?: Prisma.StringNullableFilter<"Complex"> | string | null created_at?: Prisma.DateTimeFilter<"Complex"> | Date | string updated_at?: Prisma.DateTimeFilter<"Complex"> | Date | string business_activity_id?: Prisma.StringFilter<"Complex"> | string } export type ComplexCreateWithoutPos_listInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput goods?: Prisma.GoodCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateWithoutPos_listInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity_id: string goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput } export type ComplexCreateOrConnectWithoutPos_listInput = { where: Prisma.ComplexWhereUniqueInput create: Prisma.XOR } export type ComplexUpsertWithoutPos_listInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ComplexWhereInput } export type ComplexUpdateToOneWithWhereWithoutPos_listInput = { where?: Prisma.ComplexWhereInput data: Prisma.XOR } export type ComplexUpdateWithoutPos_listInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateWithoutPos_listInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexCreateWithoutPermissionComplexesInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput goods?: Prisma.GoodCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateWithoutPermissionComplexesInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity_id: string pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput } export type ComplexCreateOrConnectWithoutPermissionComplexesInput = { where: Prisma.ComplexWhereUniqueInput create: Prisma.XOR } export type ComplexUpsertWithoutPermissionComplexesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ComplexWhereInput } export type ComplexUpdateToOneWithWhereWithoutPermissionComplexesInput = { where?: Prisma.ComplexWhereInput data: Prisma.XOR } export type ComplexUpdateWithoutPermissionComplexesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateWithoutPermissionComplexesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexCreateWithoutGoodsInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateWithoutGoodsInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity_id: string pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput } export type ComplexCreateOrConnectWithoutGoodsInput = { where: Prisma.ComplexWhereUniqueInput create: Prisma.XOR } export type ComplexUpsertWithoutGoodsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ComplexWhereInput } export type ComplexUpdateToOneWithWhereWithoutGoodsInput = { where?: Prisma.ComplexWhereInput data: Prisma.XOR } export type ComplexUpdateWithoutGoodsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateWithoutGoodsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexCreateWithoutGood_categoriesInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput goods?: Prisma.GoodCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateWithoutGood_categoriesInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string business_activity_id: string pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput } export type ComplexCreateOrConnectWithoutGood_categoriesInput = { where: Prisma.ComplexWhereUniqueInput create: Prisma.XOR } export type ComplexUpsertWithoutGood_categoriesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ComplexWhereInput } export type ComplexUpdateToOneWithWhereWithoutGood_categoriesInput = { where?: Prisma.ComplexWhereInput data: Prisma.XOR } export type ComplexUpdateWithoutGood_categoriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateWithoutGood_categoriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexCreateManyBusiness_activityInput = { id?: string name: string address?: string | null tax_id?: string | null created_at?: Date | string updated_at?: Date | string } export type ComplexUpdateWithoutBusiness_activityInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateWithoutBusiness_activityInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateManyWithoutBusiness_activityInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type ComplexCountOutputType */ export type ComplexCountOutputType = { pos_list: number goods: number good_categories: number permissionComplexes: number } export type ComplexCountOutputTypeSelect = { pos_list?: boolean | ComplexCountOutputTypeCountPos_listArgs goods?: boolean | ComplexCountOutputTypeCountGoodsArgs good_categories?: boolean | ComplexCountOutputTypeCountGood_categoriesArgs permissionComplexes?: boolean | ComplexCountOutputTypeCountPermissionComplexesArgs } /** * ComplexCountOutputType without action */ export type ComplexCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ComplexCountOutputType */ select?: Prisma.ComplexCountOutputTypeSelect | null } /** * ComplexCountOutputType without action */ export type ComplexCountOutputTypeCountPos_listArgs = { where?: Prisma.PosWhereInput } /** * ComplexCountOutputType without action */ export type ComplexCountOutputTypeCountGoodsArgs = { where?: Prisma.GoodWhereInput } /** * ComplexCountOutputType without action */ export type ComplexCountOutputTypeCountGood_categoriesArgs = { where?: Prisma.GoodCategoryWhereInput } /** * ComplexCountOutputType without action */ export type ComplexCountOutputTypeCountPermissionComplexesArgs = { where?: Prisma.PermissionComplexWhereInput } export type ComplexSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean address?: boolean tax_id?: boolean created_at?: boolean updated_at?: boolean business_activity_id?: boolean business_activity?: boolean | Prisma.BusinessActivityDefaultArgs pos_list?: boolean | Prisma.Complex$pos_listArgs goods?: boolean | Prisma.Complex$goodsArgs good_categories?: boolean | Prisma.Complex$good_categoriesArgs permissionComplexes?: boolean | Prisma.Complex$permissionComplexesArgs _count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs }, ExtArgs["result"]["complex"]> export type ComplexSelectScalar = { id?: boolean name?: boolean address?: boolean tax_id?: boolean created_at?: boolean updated_at?: boolean business_activity_id?: boolean } export type ComplexOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "address" | "tax_id" | "created_at" | "updated_at" | "business_activity_id", ExtArgs["result"]["complex"]> export type ComplexInclude = { business_activity?: boolean | Prisma.BusinessActivityDefaultArgs pos_list?: boolean | Prisma.Complex$pos_listArgs goods?: boolean | Prisma.Complex$goodsArgs good_categories?: boolean | Prisma.Complex$good_categoriesArgs permissionComplexes?: boolean | Prisma.Complex$permissionComplexesArgs _count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs } export type $ComplexPayload = { name: "Complex" objects: { business_activity: Prisma.$BusinessActivityPayload pos_list: Prisma.$PosPayload[] goods: Prisma.$GoodPayload[] good_categories: Prisma.$GoodCategoryPayload[] permissionComplexes: Prisma.$PermissionComplexPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string address: string | null tax_id: string | null created_at: Date updated_at: Date business_activity_id: string }, ExtArgs["result"]["complex"]> composites: {} } export type ComplexGetPayload = runtime.Types.Result.GetResult export type ComplexCountArgs = Omit & { select?: ComplexCountAggregateInputType | true } export interface ComplexDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Complex'], meta: { name: 'Complex' } } /** * Find zero or one Complex that matches the filter. * @param {ComplexFindUniqueArgs} args - Arguments to find a Complex * @example * // Get one Complex * const complex = await prisma.complex.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Complex that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ComplexFindUniqueOrThrowArgs} args - Arguments to find a Complex * @example * // Get one Complex * const complex = await prisma.complex.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Complex 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 {ComplexFindFirstArgs} args - Arguments to find a Complex * @example * // Get one Complex * const complex = await prisma.complex.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Complex 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 {ComplexFindFirstOrThrowArgs} args - Arguments to find a Complex * @example * // Get one Complex * const complex = await prisma.complex.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Complexes 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 {ComplexFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Complexes * const complexes = await prisma.complex.findMany() * * // Get first 10 Complexes * const complexes = await prisma.complex.findMany({ take: 10 }) * * // Only select the `id` * const complexWithIdOnly = await prisma.complex.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Complex. * @param {ComplexCreateArgs} args - Arguments to create a Complex. * @example * // Create one Complex * const Complex = await prisma.complex.create({ * data: { * // ... data to create a Complex * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Complexes. * @param {ComplexCreateManyArgs} args - Arguments to create many Complexes. * @example * // Create many Complexes * const complex = await prisma.complex.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Complex. * @param {ComplexDeleteArgs} args - Arguments to delete one Complex. * @example * // Delete one Complex * const Complex = await prisma.complex.delete({ * where: { * // ... filter to delete one Complex * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Complex. * @param {ComplexUpdateArgs} args - Arguments to update one Complex. * @example * // Update one Complex * const complex = await prisma.complex.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Complexes. * @param {ComplexDeleteManyArgs} args - Arguments to filter Complexes to delete. * @example * // Delete a few Complexes * const { count } = await prisma.complex.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Complexes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Complexes * const complex = await prisma.complex.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Complex. * @param {ComplexUpsertArgs} args - Arguments to update or create a Complex. * @example * // Update or create a Complex * const complex = await prisma.complex.upsert({ * create: { * // ... data to create a Complex * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Complex we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Complexes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexCountArgs} args - Arguments to filter Complexes to count. * @example * // Count the number of Complexes * const count = await prisma.complex.count({ * where: { * // ... the filter for the Complexes 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 Complex. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexAggregateArgs} 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 Complex. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexGroupByArgs} 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 ComplexGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ComplexGroupByArgs['orderBy'] } : { orderBy?: ComplexGroupByArgs['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 ? GetComplexGroupByPayload : Prisma.PrismaPromise /** * Fields of the Complex model */ readonly fields: ComplexFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Complex. * 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__ComplexClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" business_activity = {}>(args?: Prisma.Subset>): Prisma.Prisma__BusinessActivityClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> pos_list = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> goods = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> good_categories = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> permissionComplexes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 Complex model */ export interface ComplexFieldRefs { readonly id: Prisma.FieldRef<"Complex", 'String'> readonly name: Prisma.FieldRef<"Complex", 'String'> readonly address: Prisma.FieldRef<"Complex", 'String'> readonly tax_id: Prisma.FieldRef<"Complex", 'String'> readonly created_at: Prisma.FieldRef<"Complex", 'DateTime'> readonly updated_at: Prisma.FieldRef<"Complex", 'DateTime'> readonly business_activity_id: Prisma.FieldRef<"Complex", 'String'> } // Custom InputTypes /** * Complex findUnique */ export type ComplexFindUniqueArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complex to fetch. */ where: Prisma.ComplexWhereUniqueInput } /** * Complex findUniqueOrThrow */ export type ComplexFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complex to fetch. */ where: Prisma.ComplexWhereUniqueInput } /** * Complex findFirst */ export type ComplexFindFirstArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complex to fetch. */ where?: Prisma.ComplexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Complexes to fetch. */ orderBy?: Prisma.ComplexOrderByWithRelationInput | Prisma.ComplexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Complexes. */ cursor?: Prisma.ComplexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Complexes 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` Complexes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Complexes. */ distinct?: Prisma.ComplexScalarFieldEnum | Prisma.ComplexScalarFieldEnum[] } /** * Complex findFirstOrThrow */ export type ComplexFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complex to fetch. */ where?: Prisma.ComplexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Complexes to fetch. */ orderBy?: Prisma.ComplexOrderByWithRelationInput | Prisma.ComplexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Complexes. */ cursor?: Prisma.ComplexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Complexes 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` Complexes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Complexes. */ distinct?: Prisma.ComplexScalarFieldEnum | Prisma.ComplexScalarFieldEnum[] } /** * Complex findMany */ export type ComplexFindManyArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complexes to fetch. */ where?: Prisma.ComplexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Complexes to fetch. */ orderBy?: Prisma.ComplexOrderByWithRelationInput | Prisma.ComplexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Complexes. */ cursor?: Prisma.ComplexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Complexes 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` Complexes. */ skip?: number distinct?: Prisma.ComplexScalarFieldEnum | Prisma.ComplexScalarFieldEnum[] } /** * Complex create */ export type ComplexCreateArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * The data needed to create a Complex. */ data: Prisma.XOR } /** * Complex createMany */ export type ComplexCreateManyArgs = { /** * The data used to create many Complexes. */ data: Prisma.ComplexCreateManyInput | Prisma.ComplexCreateManyInput[] skipDuplicates?: boolean } /** * Complex update */ export type ComplexUpdateArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * The data needed to update a Complex. */ data: Prisma.XOR /** * Choose, which Complex to update. */ where: Prisma.ComplexWhereUniqueInput } /** * Complex updateMany */ export type ComplexUpdateManyArgs = { /** * The data used to update Complexes. */ data: Prisma.XOR /** * Filter which Complexes to update */ where?: Prisma.ComplexWhereInput /** * Limit how many Complexes to update. */ limit?: number } /** * Complex upsert */ export type ComplexUpsertArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * The filter to search for the Complex to update in case it exists. */ where: Prisma.ComplexWhereUniqueInput /** * In case the Complex found by the `where` argument doesn't exist, create a new Complex with this data. */ create: Prisma.XOR /** * In case the Complex was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Complex delete */ export type ComplexDeleteArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter which Complex to delete. */ where: Prisma.ComplexWhereUniqueInput } /** * Complex deleteMany */ export type ComplexDeleteManyArgs = { /** * Filter which Complexes to delete */ where?: Prisma.ComplexWhereInput /** * Limit how many Complexes to delete. */ limit?: number } /** * Complex.pos_list */ export type Complex$pos_listArgs = { /** * Select specific fields to fetch from the Pos */ select?: Prisma.PosSelect | null /** * Omit specific fields from the Pos */ omit?: Prisma.PosOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PosInclude | null where?: Prisma.PosWhereInput orderBy?: Prisma.PosOrderByWithRelationInput | Prisma.PosOrderByWithRelationInput[] cursor?: Prisma.PosWhereUniqueInput take?: number skip?: number distinct?: Prisma.PosScalarFieldEnum | Prisma.PosScalarFieldEnum[] } /** * Complex.goods */ export type Complex$goodsArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null where?: Prisma.GoodWhereInput orderBy?: Prisma.GoodOrderByWithRelationInput | Prisma.GoodOrderByWithRelationInput[] cursor?: Prisma.GoodWhereUniqueInput take?: number skip?: number distinct?: Prisma.GoodScalarFieldEnum | Prisma.GoodScalarFieldEnum[] } /** * Complex.good_categories */ export type Complex$good_categoriesArgs = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | null where?: Prisma.GoodCategoryWhereInput orderBy?: Prisma.GoodCategoryOrderByWithRelationInput | Prisma.GoodCategoryOrderByWithRelationInput[] cursor?: Prisma.GoodCategoryWhereUniqueInput take?: number skip?: number distinct?: Prisma.GoodCategoryScalarFieldEnum | Prisma.GoodCategoryScalarFieldEnum[] } /** * Complex.permissionComplexes */ export type Complex$permissionComplexesArgs = { /** * Select specific fields to fetch from the PermissionComplex */ select?: Prisma.PermissionComplexSelect | null /** * Omit specific fields from the PermissionComplex */ omit?: Prisma.PermissionComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PermissionComplexInclude | null where?: Prisma.PermissionComplexWhereInput orderBy?: Prisma.PermissionComplexOrderByWithRelationInput | Prisma.PermissionComplexOrderByWithRelationInput[] cursor?: Prisma.PermissionComplexWhereUniqueInput take?: number skip?: number distinct?: Prisma.PermissionComplexScalarFieldEnum | Prisma.PermissionComplexScalarFieldEnum[] } /** * Complex without action */ export type ComplexDefaultArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null }