/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Customer` 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 Customer * */ export type CustomerModel = runtime.Types.Result.DefaultSelection export type AggregateCustomer = { _count: CustomerCountAggregateOutputType | null _min: CustomerMinAggregateOutputType | null _max: CustomerMaxAggregateOutputType | null } export type CustomerMinAggregateOutputType = { id: string | null created_at: Date | null updated_at: Date | null deleted_at: Date | null type: $Enums.CustomerType | null complex_id: string | null is_favorite: boolean | null } export type CustomerMaxAggregateOutputType = { id: string | null created_at: Date | null updated_at: Date | null deleted_at: Date | null type: $Enums.CustomerType | null complex_id: string | null is_favorite: boolean | null } export type CustomerCountAggregateOutputType = { id: number created_at: number updated_at: number deleted_at: number type: number complex_id: number is_favorite: number _all: number } export type CustomerMinAggregateInputType = { id?: true created_at?: true updated_at?: true deleted_at?: true type?: true complex_id?: true is_favorite?: true } export type CustomerMaxAggregateInputType = { id?: true created_at?: true updated_at?: true deleted_at?: true type?: true complex_id?: true is_favorite?: true } export type CustomerCountAggregateInputType = { id?: true created_at?: true updated_at?: true deleted_at?: true type?: true complex_id?: true is_favorite?: true _all?: true } export type CustomerAggregateArgs = { /** * Filter which Customer to aggregate. */ where?: Prisma.CustomerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Customers to fetch. */ orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.CustomerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Customers 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` Customers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Customers **/ _count?: true | CustomerCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CustomerMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CustomerMaxAggregateInputType } export type GetCustomerAggregateType = { [P in keyof T & keyof AggregateCustomer]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type CustomerGroupByArgs = { where?: Prisma.CustomerWhereInput orderBy?: Prisma.CustomerOrderByWithAggregationInput | Prisma.CustomerOrderByWithAggregationInput[] by: Prisma.CustomerScalarFieldEnum[] | Prisma.CustomerScalarFieldEnum having?: Prisma.CustomerScalarWhereWithAggregatesInput take?: number skip?: number _count?: CustomerCountAggregateInputType | true _min?: CustomerMinAggregateInputType _max?: CustomerMaxAggregateInputType } export type CustomerGroupByOutputType = { id: string created_at: Date updated_at: Date deleted_at: Date | null type: $Enums.CustomerType complex_id: string is_favorite: boolean | null _count: CustomerCountAggregateOutputType | null _min: CustomerMinAggregateOutputType | null _max: CustomerMaxAggregateOutputType | null } type GetCustomerGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CustomerGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type CustomerWhereInput = { AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[] OR?: Prisma.CustomerWhereInput[] NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[] id?: Prisma.StringFilter<"Customer"> | string created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null type?: Prisma.EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType complex_id?: Prisma.StringFilter<"Customer"> | string is_favorite?: Prisma.BoolNullableFilter<"Customer"> | boolean | null sales_invoices?: Prisma.SalesInvoiceListRelationFilter customerIndividuals?: Prisma.XOR | null customerLegals?: Prisma.XOR | null } export type CustomerOrderByWithRelationInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrder complex_id?: Prisma.SortOrder is_favorite?: Prisma.SortOrderInput | Prisma.SortOrder sales_invoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput customerIndividuals?: Prisma.CustomerIndividualOrderByWithRelationInput customerLegals?: Prisma.CustomerLegalOrderByWithRelationInput _relevance?: Prisma.CustomerOrderByRelevanceInput } export type CustomerWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[] OR?: Prisma.CustomerWhereInput[] NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[] created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null type?: Prisma.EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType complex_id?: Prisma.StringFilter<"Customer"> | string is_favorite?: Prisma.BoolNullableFilter<"Customer"> | boolean | null sales_invoices?: Prisma.SalesInvoiceListRelationFilter customerIndividuals?: Prisma.XOR | null customerLegals?: Prisma.XOR | null }, "id"> export type CustomerOrderByWithAggregationInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrder complex_id?: Prisma.SortOrder is_favorite?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.CustomerCountOrderByAggregateInput _max?: Prisma.CustomerMaxOrderByAggregateInput _min?: Prisma.CustomerMinOrderByAggregateInput } export type CustomerScalarWhereWithAggregatesInput = { AND?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[] OR?: Prisma.CustomerScalarWhereWithAggregatesInput[] NOT?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Customer"> | string created_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string updated_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null type?: Prisma.EnumCustomerTypeWithAggregatesFilter<"Customer"> | $Enums.CustomerType complex_id?: Prisma.StringWithAggregatesFilter<"Customer"> | string is_favorite?: Prisma.BoolNullableWithAggregatesFilter<"Customer"> | boolean | null } export type CustomerCreateInput = { id?: string created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null type: $Enums.CustomerType complex_id: string is_favorite?: boolean | null sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput customerIndividuals?: Prisma.CustomerIndividualCreateNestedOneWithoutCustomerInput customerLegals?: Prisma.CustomerLegalCreateNestedOneWithoutCustomerInput } export type CustomerUncheckedCreateInput = { id?: string created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null type: $Enums.CustomerType complex_id: string is_favorite?: boolean | null sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput customerIndividuals?: Prisma.CustomerIndividualUncheckedCreateNestedOneWithoutCustomerInput customerLegals?: Prisma.CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput } export type CustomerUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput customerIndividuals?: Prisma.CustomerIndividualUpdateOneWithoutCustomerNestedInput customerLegals?: Prisma.CustomerLegalUpdateOneWithoutCustomerNestedInput } export type CustomerUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput customerIndividuals?: Prisma.CustomerIndividualUncheckedUpdateOneWithoutCustomerNestedInput customerLegals?: Prisma.CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput } export type CustomerCreateManyInput = { id?: string created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null type: $Enums.CustomerType complex_id: string is_favorite?: boolean | null } export type CustomerUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null } export type CustomerUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null } export type CustomerOrderByRelevanceInput = { fields: Prisma.CustomerOrderByRelevanceFieldEnum | Prisma.CustomerOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type CustomerCountOrderByAggregateInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrder type?: Prisma.SortOrder complex_id?: Prisma.SortOrder is_favorite?: Prisma.SortOrder } export type CustomerMaxOrderByAggregateInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrder type?: Prisma.SortOrder complex_id?: Prisma.SortOrder is_favorite?: Prisma.SortOrder } export type CustomerMinOrderByAggregateInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrder type?: Prisma.SortOrder complex_id?: Prisma.SortOrder is_favorite?: Prisma.SortOrder } export type CustomerScalarRelationFilter = { is?: Prisma.CustomerWhereInput isNot?: Prisma.CustomerWhereInput } export type CustomerNullableScalarRelationFilter = { is?: Prisma.CustomerWhereInput | null isNot?: Prisma.CustomerWhereInput | null } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type EnumCustomerTypeFieldUpdateOperationsInput = { set?: $Enums.CustomerType } export type NullableBoolFieldUpdateOperationsInput = { set?: boolean | null } export type CustomerCreateNestedOneWithoutCustomerIndividualsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerIndividualsInput connect?: Prisma.CustomerWhereUniqueInput } export type CustomerUpdateOneRequiredWithoutCustomerIndividualsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerIndividualsInput upsert?: Prisma.CustomerUpsertWithoutCustomerIndividualsInput connect?: Prisma.CustomerWhereUniqueInput update?: Prisma.XOR, Prisma.CustomerUncheckedUpdateWithoutCustomerIndividualsInput> } export type CustomerCreateNestedOneWithoutCustomerLegalsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerLegalsInput connect?: Prisma.CustomerWhereUniqueInput } export type CustomerUpdateOneRequiredWithoutCustomerLegalsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerLegalsInput upsert?: Prisma.CustomerUpsertWithoutCustomerLegalsInput connect?: Prisma.CustomerWhereUniqueInput update?: Prisma.XOR, Prisma.CustomerUncheckedUpdateWithoutCustomerLegalsInput> } export type CustomerCreateNestedOneWithoutSales_invoicesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSales_invoicesInput connect?: Prisma.CustomerWhereUniqueInput } export type CustomerUpdateOneWithoutSales_invoicesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSales_invoicesInput upsert?: Prisma.CustomerUpsertWithoutSales_invoicesInput disconnect?: Prisma.CustomerWhereInput | boolean delete?: Prisma.CustomerWhereInput | boolean connect?: Prisma.CustomerWhereUniqueInput update?: Prisma.XOR, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput> } export type CustomerCreateWithoutCustomerIndividualsInput = { id?: string created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null type: $Enums.CustomerType complex_id: string is_favorite?: boolean | null sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput customerLegals?: Prisma.CustomerLegalCreateNestedOneWithoutCustomerInput } export type CustomerUncheckedCreateWithoutCustomerIndividualsInput = { id?: string created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null type: $Enums.CustomerType complex_id: string is_favorite?: boolean | null sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput customerLegals?: Prisma.CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput } export type CustomerCreateOrConnectWithoutCustomerIndividualsInput = { where: Prisma.CustomerWhereUniqueInput create: Prisma.XOR } export type CustomerUpsertWithoutCustomerIndividualsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutCustomerIndividualsInput = { where?: Prisma.CustomerWhereInput data: Prisma.XOR } export type CustomerUpdateWithoutCustomerIndividualsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput customerLegals?: Prisma.CustomerLegalUpdateOneWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutCustomerIndividualsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput customerLegals?: Prisma.CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput } export type CustomerCreateWithoutCustomerLegalsInput = { id?: string created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null type: $Enums.CustomerType complex_id: string is_favorite?: boolean | null sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput customerIndividuals?: Prisma.CustomerIndividualCreateNestedOneWithoutCustomerInput } export type CustomerUncheckedCreateWithoutCustomerLegalsInput = { id?: string created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null type: $Enums.CustomerType complex_id: string is_favorite?: boolean | null sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput customerIndividuals?: Prisma.CustomerIndividualUncheckedCreateNestedOneWithoutCustomerInput } export type CustomerCreateOrConnectWithoutCustomerLegalsInput = { where: Prisma.CustomerWhereUniqueInput create: Prisma.XOR } export type CustomerUpsertWithoutCustomerLegalsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutCustomerLegalsInput = { where?: Prisma.CustomerWhereInput data: Prisma.XOR } export type CustomerUpdateWithoutCustomerLegalsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput customerIndividuals?: Prisma.CustomerIndividualUpdateOneWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutCustomerLegalsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput customerIndividuals?: Prisma.CustomerIndividualUncheckedUpdateOneWithoutCustomerNestedInput } export type CustomerCreateWithoutSales_invoicesInput = { id?: string created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null type: $Enums.CustomerType complex_id: string is_favorite?: boolean | null customerIndividuals?: Prisma.CustomerIndividualCreateNestedOneWithoutCustomerInput customerLegals?: Prisma.CustomerLegalCreateNestedOneWithoutCustomerInput } export type CustomerUncheckedCreateWithoutSales_invoicesInput = { id?: string created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null type: $Enums.CustomerType complex_id: string is_favorite?: boolean | null customerIndividuals?: Prisma.CustomerIndividualUncheckedCreateNestedOneWithoutCustomerInput customerLegals?: Prisma.CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput } export type CustomerCreateOrConnectWithoutSales_invoicesInput = { where: Prisma.CustomerWhereUniqueInput create: Prisma.XOR } export type CustomerUpsertWithoutSales_invoicesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutSales_invoicesInput = { where?: Prisma.CustomerWhereInput data: Prisma.XOR } export type CustomerUpdateWithoutSales_invoicesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null customerIndividuals?: Prisma.CustomerIndividualUpdateOneWithoutCustomerNestedInput customerLegals?: Prisma.CustomerLegalUpdateOneWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutSales_invoicesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType complex_id?: Prisma.StringFieldUpdateOperationsInput | string is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null customerIndividuals?: Prisma.CustomerIndividualUncheckedUpdateOneWithoutCustomerNestedInput customerLegals?: Prisma.CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput } /** * Count Type CustomerCountOutputType */ export type CustomerCountOutputType = { sales_invoices: number } export type CustomerCountOutputTypeSelect = { sales_invoices?: boolean | CustomerCountOutputTypeCountSales_invoicesArgs } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CustomerCountOutputType */ select?: Prisma.CustomerCountOutputTypeSelect | null } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeCountSales_invoicesArgs = { where?: Prisma.SalesInvoiceWhereInput } export type CustomerSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean created_at?: boolean updated_at?: boolean deleted_at?: boolean type?: boolean complex_id?: boolean is_favorite?: boolean sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs customerIndividuals?: boolean | Prisma.Customer$customerIndividualsArgs customerLegals?: boolean | Prisma.Customer$customerLegalsArgs _count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs }, ExtArgs["result"]["customer"]> export type CustomerSelectScalar = { id?: boolean created_at?: boolean updated_at?: boolean deleted_at?: boolean type?: boolean complex_id?: boolean is_favorite?: boolean } export type CustomerOmit = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "deleted_at" | "type" | "complex_id" | "is_favorite", ExtArgs["result"]["customer"]> export type CustomerInclude = { sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs customerIndividuals?: boolean | Prisma.Customer$customerIndividualsArgs customerLegals?: boolean | Prisma.Customer$customerLegalsArgs _count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs } export type $CustomerPayload = { name: "Customer" objects: { sales_invoices: Prisma.$SalesInvoicePayload[] customerIndividuals: Prisma.$CustomerIndividualPayload | null customerLegals: Prisma.$CustomerLegalPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string created_at: Date updated_at: Date deleted_at: Date | null type: $Enums.CustomerType complex_id: string is_favorite: boolean | null }, ExtArgs["result"]["customer"]> composites: {} } export type CustomerGetPayload = runtime.Types.Result.GetResult export type CustomerCountArgs = Omit & { select?: CustomerCountAggregateInputType | true } export interface CustomerDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Customer'], meta: { name: 'Customer' } } /** * Find zero or one Customer that matches the filter. * @param {CustomerFindUniqueArgs} args - Arguments to find a Customer * @example * // Get one Customer * const customer = await prisma.customer.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__CustomerClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Customer that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CustomerFindUniqueOrThrowArgs} args - Arguments to find a Customer * @example * // Get one Customer * const customer = await prisma.customer.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__CustomerClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Customer 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 {CustomerFindFirstArgs} args - Arguments to find a Customer * @example * // Get one Customer * const customer = await prisma.customer.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__CustomerClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Customer 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 {CustomerFindFirstOrThrowArgs} args - Arguments to find a Customer * @example * // Get one Customer * const customer = await prisma.customer.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__CustomerClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Customers 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 {CustomerFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Customers * const customers = await prisma.customer.findMany() * * // Get first 10 Customers * const customers = await prisma.customer.findMany({ take: 10 }) * * // Only select the `id` * const customerWithIdOnly = await prisma.customer.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Customer. * @param {CustomerCreateArgs} args - Arguments to create a Customer. * @example * // Create one Customer * const Customer = await prisma.customer.create({ * data: { * // ... data to create a Customer * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__CustomerClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Customers. * @param {CustomerCreateManyArgs} args - Arguments to create many Customers. * @example * // Create many Customers * const customer = await prisma.customer.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Customer. * @param {CustomerDeleteArgs} args - Arguments to delete one Customer. * @example * // Delete one Customer * const Customer = await prisma.customer.delete({ * where: { * // ... filter to delete one Customer * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__CustomerClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Customer. * @param {CustomerUpdateArgs} args - Arguments to update one Customer. * @example * // Update one Customer * const customer = await prisma.customer.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__CustomerClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Customers. * @param {CustomerDeleteManyArgs} args - Arguments to filter Customers to delete. * @example * // Delete a few Customers * const { count } = await prisma.customer.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Customers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Customers * const customer = await prisma.customer.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Customer. * @param {CustomerUpsertArgs} args - Arguments to update or create a Customer. * @example * // Update or create a Customer * const customer = await prisma.customer.upsert({ * create: { * // ... data to create a Customer * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Customer we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__CustomerClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Customers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerCountArgs} args - Arguments to filter Customers to count. * @example * // Count the number of Customers * const count = await prisma.customer.count({ * where: { * // ... the filter for the Customers 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 Customer. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerAggregateArgs} 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 Customer. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerGroupByArgs} 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 CustomerGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CustomerGroupByArgs['orderBy'] } : { orderBy?: CustomerGroupByArgs['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 ? GetCustomerGroupByPayload : Prisma.PrismaPromise /** * Fields of the Customer model */ readonly fields: CustomerFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Customer. * 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__CustomerClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" sales_invoices = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> customerIndividuals = {}>(args?: Prisma.Subset>): Prisma.Prisma__CustomerIndividualClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> customerLegals = {}>(args?: Prisma.Subset>): Prisma.Prisma__CustomerLegalClient, 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 Customer model */ export interface CustomerFieldRefs { readonly id: Prisma.FieldRef<"Customer", 'String'> readonly created_at: Prisma.FieldRef<"Customer", 'DateTime'> readonly updated_at: Prisma.FieldRef<"Customer", 'DateTime'> readonly deleted_at: Prisma.FieldRef<"Customer", 'DateTime'> readonly type: Prisma.FieldRef<"Customer", 'CustomerType'> readonly complex_id: Prisma.FieldRef<"Customer", 'String'> readonly is_favorite: Prisma.FieldRef<"Customer", 'Boolean'> } // Custom InputTypes /** * Customer findUnique */ export type CustomerFindUniqueArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null /** * Filter, which Customer to fetch. */ where: Prisma.CustomerWhereUniqueInput } /** * Customer findUniqueOrThrow */ export type CustomerFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null /** * Filter, which Customer to fetch. */ where: Prisma.CustomerWhereUniqueInput } /** * Customer findFirst */ export type CustomerFindFirstArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null /** * Filter, which Customer to fetch. */ where?: Prisma.CustomerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Customers to fetch. */ orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Customers. */ cursor?: Prisma.CustomerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Customers 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` Customers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Customers. */ distinct?: Prisma.CustomerScalarFieldEnum | Prisma.CustomerScalarFieldEnum[] } /** * Customer findFirstOrThrow */ export type CustomerFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null /** * Filter, which Customer to fetch. */ where?: Prisma.CustomerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Customers to fetch. */ orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Customers. */ cursor?: Prisma.CustomerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Customers 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` Customers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Customers. */ distinct?: Prisma.CustomerScalarFieldEnum | Prisma.CustomerScalarFieldEnum[] } /** * Customer findMany */ export type CustomerFindManyArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null /** * Filter, which Customers to fetch. */ where?: Prisma.CustomerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Customers to fetch. */ orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Customers. */ cursor?: Prisma.CustomerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Customers 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` Customers. */ skip?: number distinct?: Prisma.CustomerScalarFieldEnum | Prisma.CustomerScalarFieldEnum[] } /** * Customer create */ export type CustomerCreateArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null /** * The data needed to create a Customer. */ data: Prisma.XOR } /** * Customer createMany */ export type CustomerCreateManyArgs = { /** * The data used to create many Customers. */ data: Prisma.CustomerCreateManyInput | Prisma.CustomerCreateManyInput[] skipDuplicates?: boolean } /** * Customer update */ export type CustomerUpdateArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null /** * The data needed to update a Customer. */ data: Prisma.XOR /** * Choose, which Customer to update. */ where: Prisma.CustomerWhereUniqueInput } /** * Customer updateMany */ export type CustomerUpdateManyArgs = { /** * The data used to update Customers. */ data: Prisma.XOR /** * Filter which Customers to update */ where?: Prisma.CustomerWhereInput /** * Limit how many Customers to update. */ limit?: number } /** * Customer upsert */ export type CustomerUpsertArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null /** * The filter to search for the Customer to update in case it exists. */ where: Prisma.CustomerWhereUniqueInput /** * In case the Customer found by the `where` argument doesn't exist, create a new Customer with this data. */ create: Prisma.XOR /** * In case the Customer was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Customer delete */ export type CustomerDeleteArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null /** * Filter which Customer to delete. */ where: Prisma.CustomerWhereUniqueInput } /** * Customer deleteMany */ export type CustomerDeleteManyArgs = { /** * Filter which Customers to delete */ where?: Prisma.CustomerWhereInput /** * Limit how many Customers to delete. */ limit?: number } /** * Customer.sales_invoices */ export type Customer$sales_invoicesArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null where?: Prisma.SalesInvoiceWhereInput orderBy?: Prisma.SalesInvoiceOrderByWithRelationInput | Prisma.SalesInvoiceOrderByWithRelationInput[] cursor?: Prisma.SalesInvoiceWhereUniqueInput take?: number skip?: number distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[] } /** * Customer.customerIndividuals */ export type Customer$customerIndividualsArgs = { /** * Select specific fields to fetch from the CustomerIndividual */ select?: Prisma.CustomerIndividualSelect | null /** * Omit specific fields from the CustomerIndividual */ omit?: Prisma.CustomerIndividualOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerIndividualInclude | null where?: Prisma.CustomerIndividualWhereInput } /** * Customer.customerLegals */ export type Customer$customerLegalsArgs = { /** * Select specific fields to fetch from the CustomerLegal */ select?: Prisma.CustomerLegalSelect | null /** * Omit specific fields from the CustomerLegal */ omit?: Prisma.CustomerLegalOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerLegalInclude | null where?: Prisma.CustomerLegalWhereInput } /** * Customer without action */ export type CustomerDefaultArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null }