/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ProductCharge` 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 ProductCharge * */ export type ProductChargeModel = runtime.Types.Result.DefaultSelection export type AggregateProductCharge = { _count: ProductChargeCountAggregateOutputType | null _avg: ProductChargeAvgAggregateOutputType | null _sum: ProductChargeSumAggregateOutputType | null _min: ProductChargeMinAggregateOutputType | null _max: ProductChargeMaxAggregateOutputType | null } export type ProductChargeAvgAggregateOutputType = { id: number | null count: runtime.Decimal | null fee: runtime.Decimal | null totalAmount: runtime.Decimal | null productId: number | null inventoryId: number | null supplierId: number | null } export type ProductChargeSumAggregateOutputType = { id: number | null count: runtime.Decimal | null fee: runtime.Decimal | null totalAmount: runtime.Decimal | null productId: number | null inventoryId: number | null supplierId: number | null } export type ProductChargeMinAggregateOutputType = { id: number | null count: runtime.Decimal | null fee: runtime.Decimal | null totalAmount: runtime.Decimal | null isSettled: boolean | null buyAt: Date | null description: string | null createdAt: Date | null updatedAt: Date | null deletedAt: Date | null productId: number | null inventoryId: number | null supplierId: number | null } export type ProductChargeMaxAggregateOutputType = { id: number | null count: runtime.Decimal | null fee: runtime.Decimal | null totalAmount: runtime.Decimal | null isSettled: boolean | null buyAt: Date | null description: string | null createdAt: Date | null updatedAt: Date | null deletedAt: Date | null productId: number | null inventoryId: number | null supplierId: number | null } export type ProductChargeCountAggregateOutputType = { id: number count: number fee: number totalAmount: number isSettled: number buyAt: number description: number createdAt: number updatedAt: number deletedAt: number productId: number inventoryId: number supplierId: number _all: number } export type ProductChargeAvgAggregateInputType = { id?: true count?: true fee?: true totalAmount?: true productId?: true inventoryId?: true supplierId?: true } export type ProductChargeSumAggregateInputType = { id?: true count?: true fee?: true totalAmount?: true productId?: true inventoryId?: true supplierId?: true } export type ProductChargeMinAggregateInputType = { id?: true count?: true fee?: true totalAmount?: true isSettled?: true buyAt?: true description?: true createdAt?: true updatedAt?: true deletedAt?: true productId?: true inventoryId?: true supplierId?: true } export type ProductChargeMaxAggregateInputType = { id?: true count?: true fee?: true totalAmount?: true isSettled?: true buyAt?: true description?: true createdAt?: true updatedAt?: true deletedAt?: true productId?: true inventoryId?: true supplierId?: true } export type ProductChargeCountAggregateInputType = { id?: true count?: true fee?: true totalAmount?: true isSettled?: true buyAt?: true description?: true createdAt?: true updatedAt?: true deletedAt?: true productId?: true inventoryId?: true supplierId?: true _all?: true } export type ProductChargeAggregateArgs = { /** * Filter which ProductCharge to aggregate. */ where?: Prisma.ProductChargeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProductCharges to fetch. */ orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ProductChargeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProductCharges 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` ProductCharges. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ProductCharges **/ _count?: true | ProductChargeCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ProductChargeAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ProductChargeSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProductChargeMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProductChargeMaxAggregateInputType } export type GetProductChargeAggregateType = { [P in keyof T & keyof AggregateProductCharge]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ProductChargeGroupByArgs = { where?: Prisma.ProductChargeWhereInput orderBy?: Prisma.ProductChargeOrderByWithAggregationInput | Prisma.ProductChargeOrderByWithAggregationInput[] by: Prisma.ProductChargeScalarFieldEnum[] | Prisma.ProductChargeScalarFieldEnum having?: Prisma.ProductChargeScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProductChargeCountAggregateInputType | true _avg?: ProductChargeAvgAggregateInputType _sum?: ProductChargeSumAggregateInputType _min?: ProductChargeMinAggregateInputType _max?: ProductChargeMaxAggregateInputType } export type ProductChargeGroupByOutputType = { id: number count: runtime.Decimal fee: runtime.Decimal totalAmount: runtime.Decimal isSettled: boolean buyAt: Date | null description: string | null createdAt: Date updatedAt: Date deletedAt: Date | null productId: number inventoryId: number supplierId: number _count: ProductChargeCountAggregateOutputType | null _avg: ProductChargeAvgAggregateOutputType | null _sum: ProductChargeSumAggregateOutputType | null _min: ProductChargeMinAggregateOutputType | null _max: ProductChargeMaxAggregateOutputType | null } type GetProductChargeGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ProductChargeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ProductChargeWhereInput = { AND?: Prisma.ProductChargeWhereInput | Prisma.ProductChargeWhereInput[] OR?: Prisma.ProductChargeWhereInput[] NOT?: Prisma.ProductChargeWhereInput | Prisma.ProductChargeWhereInput[] id?: Prisma.IntFilter<"ProductCharge"> | number count?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFilter<"ProductCharge"> | boolean buyAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null description?: Prisma.StringNullableFilter<"ProductCharge"> | string | null createdAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string deletedAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null productId?: Prisma.IntFilter<"ProductCharge"> | number inventoryId?: Prisma.IntFilter<"ProductCharge"> | number supplierId?: Prisma.IntFilter<"ProductCharge"> | number inventory?: Prisma.XOR product?: Prisma.XOR supplier?: Prisma.XOR } export type ProductChargeOrderByWithRelationInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder totalAmount?: Prisma.SortOrder isSettled?: Prisma.SortOrder buyAt?: Prisma.SortOrderInput | Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder productId?: Prisma.SortOrder inventoryId?: Prisma.SortOrder supplierId?: Prisma.SortOrder inventory?: Prisma.InventoryOrderByWithRelationInput product?: Prisma.ProductOrderByWithRelationInput supplier?: Prisma.SupplierOrderByWithRelationInput _relevance?: Prisma.ProductChargeOrderByRelevanceInput } export type ProductChargeWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.ProductChargeWhereInput | Prisma.ProductChargeWhereInput[] OR?: Prisma.ProductChargeWhereInput[] NOT?: Prisma.ProductChargeWhereInput | Prisma.ProductChargeWhereInput[] count?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFilter<"ProductCharge"> | boolean buyAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null description?: Prisma.StringNullableFilter<"ProductCharge"> | string | null createdAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string deletedAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null productId?: Prisma.IntFilter<"ProductCharge"> | number inventoryId?: Prisma.IntFilter<"ProductCharge"> | number supplierId?: Prisma.IntFilter<"ProductCharge"> | number inventory?: Prisma.XOR product?: Prisma.XOR supplier?: Prisma.XOR }, "id"> export type ProductChargeOrderByWithAggregationInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder totalAmount?: Prisma.SortOrder isSettled?: Prisma.SortOrder buyAt?: Prisma.SortOrderInput | Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder productId?: Prisma.SortOrder inventoryId?: Prisma.SortOrder supplierId?: Prisma.SortOrder _count?: Prisma.ProductChargeCountOrderByAggregateInput _avg?: Prisma.ProductChargeAvgOrderByAggregateInput _max?: Prisma.ProductChargeMaxOrderByAggregateInput _min?: Prisma.ProductChargeMinOrderByAggregateInput _sum?: Prisma.ProductChargeSumOrderByAggregateInput } export type ProductChargeScalarWhereWithAggregatesInput = { AND?: Prisma.ProductChargeScalarWhereWithAggregatesInput | Prisma.ProductChargeScalarWhereWithAggregatesInput[] OR?: Prisma.ProductChargeScalarWhereWithAggregatesInput[] NOT?: Prisma.ProductChargeScalarWhereWithAggregatesInput | Prisma.ProductChargeScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"ProductCharge"> | number count?: Prisma.DecimalWithAggregatesFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalWithAggregatesFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalWithAggregatesFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolWithAggregatesFilter<"ProductCharge"> | boolean buyAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductCharge"> | Date | string | null description?: Prisma.StringNullableWithAggregatesFilter<"ProductCharge"> | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProductCharge"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ProductCharge"> | Date | string deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductCharge"> | Date | string | null productId?: Prisma.IntWithAggregatesFilter<"ProductCharge"> | number inventoryId?: Prisma.IntWithAggregatesFilter<"ProductCharge"> | number supplierId?: Prisma.IntWithAggregatesFilter<"ProductCharge"> | number } export type ProductChargeCreateInput = { count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventory: Prisma.InventoryCreateNestedOneWithoutProductChargesInput product: Prisma.ProductCreateNestedOneWithoutProductChargesInput supplier: Prisma.SupplierCreateNestedOneWithoutProductChargesInput } export type ProductChargeUncheckedCreateInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null productId: number inventoryId: number supplierId: number } export type ProductChargeUpdateInput = { count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventory?: Prisma.InventoryUpdateOneRequiredWithoutProductChargesNestedInput product?: Prisma.ProductUpdateOneRequiredWithoutProductChargesNestedInput supplier?: Prisma.SupplierUpdateOneRequiredWithoutProductChargesNestedInput } export type ProductChargeUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null productId?: Prisma.IntFieldUpdateOperationsInput | number inventoryId?: Prisma.IntFieldUpdateOperationsInput | number supplierId?: Prisma.IntFieldUpdateOperationsInput | number } export type ProductChargeCreateManyInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null productId: number inventoryId: number supplierId: number } export type ProductChargeUpdateManyMutationInput = { count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ProductChargeUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null productId?: Prisma.IntFieldUpdateOperationsInput | number inventoryId?: Prisma.IntFieldUpdateOperationsInput | number supplierId?: Prisma.IntFieldUpdateOperationsInput | number } export type ProductChargeListRelationFilter = { every?: Prisma.ProductChargeWhereInput some?: Prisma.ProductChargeWhereInput none?: Prisma.ProductChargeWhereInput } export type ProductChargeOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type ProductChargeOrderByRelevanceInput = { fields: Prisma.ProductChargeOrderByRelevanceFieldEnum | Prisma.ProductChargeOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type ProductChargeCountOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder totalAmount?: Prisma.SortOrder isSettled?: Prisma.SortOrder buyAt?: Prisma.SortOrder description?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrder productId?: Prisma.SortOrder inventoryId?: Prisma.SortOrder supplierId?: Prisma.SortOrder } export type ProductChargeAvgOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder totalAmount?: Prisma.SortOrder productId?: Prisma.SortOrder inventoryId?: Prisma.SortOrder supplierId?: Prisma.SortOrder } export type ProductChargeMaxOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder totalAmount?: Prisma.SortOrder isSettled?: Prisma.SortOrder buyAt?: Prisma.SortOrder description?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrder productId?: Prisma.SortOrder inventoryId?: Prisma.SortOrder supplierId?: Prisma.SortOrder } export type ProductChargeMinOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder totalAmount?: Prisma.SortOrder isSettled?: Prisma.SortOrder buyAt?: Prisma.SortOrder description?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrder productId?: Prisma.SortOrder inventoryId?: Prisma.SortOrder supplierId?: Prisma.SortOrder } export type ProductChargeSumOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder totalAmount?: Prisma.SortOrder productId?: Prisma.SortOrder inventoryId?: Prisma.SortOrder supplierId?: Prisma.SortOrder } export type ProductChargeCreateNestedManyWithoutProductInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutProductInput[] | Prisma.ProductChargeUncheckedCreateWithoutProductInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutProductInput | Prisma.ProductChargeCreateOrConnectWithoutProductInput[] createMany?: Prisma.ProductChargeCreateManyProductInputEnvelope connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] } export type ProductChargeUncheckedCreateNestedManyWithoutProductInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutProductInput[] | Prisma.ProductChargeUncheckedCreateWithoutProductInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutProductInput | Prisma.ProductChargeCreateOrConnectWithoutProductInput[] createMany?: Prisma.ProductChargeCreateManyProductInputEnvelope connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] } export type ProductChargeUpdateManyWithoutProductNestedInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutProductInput[] | Prisma.ProductChargeUncheckedCreateWithoutProductInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutProductInput | Prisma.ProductChargeCreateOrConnectWithoutProductInput[] upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutProductInput[] createMany?: Prisma.ProductChargeCreateManyProductInputEnvelope set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutProductInput[] updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutProductInput | Prisma.ProductChargeUpdateManyWithWhereWithoutProductInput[] deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[] } export type ProductChargeUncheckedUpdateManyWithoutProductNestedInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutProductInput[] | Prisma.ProductChargeUncheckedCreateWithoutProductInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutProductInput | Prisma.ProductChargeCreateOrConnectWithoutProductInput[] upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutProductInput[] createMany?: Prisma.ProductChargeCreateManyProductInputEnvelope set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutProductInput[] updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutProductInput | Prisma.ProductChargeUpdateManyWithWhereWithoutProductInput[] deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[] } export type ProductChargeCreateNestedManyWithoutSupplierInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutSupplierInput[] | Prisma.ProductChargeUncheckedCreateWithoutSupplierInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutSupplierInput | Prisma.ProductChargeCreateOrConnectWithoutSupplierInput[] createMany?: Prisma.ProductChargeCreateManySupplierInputEnvelope connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] } export type ProductChargeUncheckedCreateNestedManyWithoutSupplierInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutSupplierInput[] | Prisma.ProductChargeUncheckedCreateWithoutSupplierInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutSupplierInput | Prisma.ProductChargeCreateOrConnectWithoutSupplierInput[] createMany?: Prisma.ProductChargeCreateManySupplierInputEnvelope connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] } export type ProductChargeUpdateManyWithoutSupplierNestedInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutSupplierInput[] | Prisma.ProductChargeUncheckedCreateWithoutSupplierInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutSupplierInput | Prisma.ProductChargeCreateOrConnectWithoutSupplierInput[] upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutSupplierInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutSupplierInput[] createMany?: Prisma.ProductChargeCreateManySupplierInputEnvelope set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutSupplierInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutSupplierInput[] updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutSupplierInput | Prisma.ProductChargeUpdateManyWithWhereWithoutSupplierInput[] deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[] } export type ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutSupplierInput[] | Prisma.ProductChargeUncheckedCreateWithoutSupplierInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutSupplierInput | Prisma.ProductChargeCreateOrConnectWithoutSupplierInput[] upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutSupplierInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutSupplierInput[] createMany?: Prisma.ProductChargeCreateManySupplierInputEnvelope set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutSupplierInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutSupplierInput[] updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutSupplierInput | Prisma.ProductChargeUpdateManyWithWhereWithoutSupplierInput[] deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[] } export type ProductChargeCreateNestedManyWithoutInventoryInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutInventoryInput[] | Prisma.ProductChargeUncheckedCreateWithoutInventoryInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutInventoryInput | Prisma.ProductChargeCreateOrConnectWithoutInventoryInput[] createMany?: Prisma.ProductChargeCreateManyInventoryInputEnvelope connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] } export type ProductChargeUncheckedCreateNestedManyWithoutInventoryInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutInventoryInput[] | Prisma.ProductChargeUncheckedCreateWithoutInventoryInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutInventoryInput | Prisma.ProductChargeCreateOrConnectWithoutInventoryInput[] createMany?: Prisma.ProductChargeCreateManyInventoryInputEnvelope connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] } export type ProductChargeUpdateManyWithoutInventoryNestedInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutInventoryInput[] | Prisma.ProductChargeUncheckedCreateWithoutInventoryInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutInventoryInput | Prisma.ProductChargeCreateOrConnectWithoutInventoryInput[] upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutInventoryInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutInventoryInput[] createMany?: Prisma.ProductChargeCreateManyInventoryInputEnvelope set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutInventoryInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutInventoryInput[] updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutInventoryInput | Prisma.ProductChargeUpdateManyWithWhereWithoutInventoryInput[] deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[] } export type ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput = { create?: Prisma.XOR | Prisma.ProductChargeCreateWithoutInventoryInput[] | Prisma.ProductChargeUncheckedCreateWithoutInventoryInput[] connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutInventoryInput | Prisma.ProductChargeCreateOrConnectWithoutInventoryInput[] upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutInventoryInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutInventoryInput[] createMany?: Prisma.ProductChargeCreateManyInventoryInputEnvelope set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[] update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutInventoryInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutInventoryInput[] updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutInventoryInput | Prisma.ProductChargeUpdateManyWithWhereWithoutInventoryInput[] deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[] } export type ProductChargeCreateWithoutProductInput = { count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventory: Prisma.InventoryCreateNestedOneWithoutProductChargesInput supplier: Prisma.SupplierCreateNestedOneWithoutProductChargesInput } export type ProductChargeUncheckedCreateWithoutProductInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryId: number supplierId: number } export type ProductChargeCreateOrConnectWithoutProductInput = { where: Prisma.ProductChargeWhereUniqueInput create: Prisma.XOR } export type ProductChargeCreateManyProductInputEnvelope = { data: Prisma.ProductChargeCreateManyProductInput | Prisma.ProductChargeCreateManyProductInput[] skipDuplicates?: boolean } export type ProductChargeUpsertWithWhereUniqueWithoutProductInput = { where: Prisma.ProductChargeWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ProductChargeUpdateWithWhereUniqueWithoutProductInput = { where: Prisma.ProductChargeWhereUniqueInput data: Prisma.XOR } export type ProductChargeUpdateManyWithWhereWithoutProductInput = { where: Prisma.ProductChargeScalarWhereInput data: Prisma.XOR } export type ProductChargeScalarWhereInput = { AND?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[] OR?: Prisma.ProductChargeScalarWhereInput[] NOT?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[] id?: Prisma.IntFilter<"ProductCharge"> | number count?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFilter<"ProductCharge"> | boolean buyAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null description?: Prisma.StringNullableFilter<"ProductCharge"> | string | null createdAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string deletedAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null productId?: Prisma.IntFilter<"ProductCharge"> | number inventoryId?: Prisma.IntFilter<"ProductCharge"> | number supplierId?: Prisma.IntFilter<"ProductCharge"> | number } export type ProductChargeCreateWithoutSupplierInput = { count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventory: Prisma.InventoryCreateNestedOneWithoutProductChargesInput product: Prisma.ProductCreateNestedOneWithoutProductChargesInput } export type ProductChargeUncheckedCreateWithoutSupplierInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null productId: number inventoryId: number } export type ProductChargeCreateOrConnectWithoutSupplierInput = { where: Prisma.ProductChargeWhereUniqueInput create: Prisma.XOR } export type ProductChargeCreateManySupplierInputEnvelope = { data: Prisma.ProductChargeCreateManySupplierInput | Prisma.ProductChargeCreateManySupplierInput[] skipDuplicates?: boolean } export type ProductChargeUpsertWithWhereUniqueWithoutSupplierInput = { where: Prisma.ProductChargeWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ProductChargeUpdateWithWhereUniqueWithoutSupplierInput = { where: Prisma.ProductChargeWhereUniqueInput data: Prisma.XOR } export type ProductChargeUpdateManyWithWhereWithoutSupplierInput = { where: Prisma.ProductChargeScalarWhereInput data: Prisma.XOR } export type ProductChargeCreateWithoutInventoryInput = { count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null product: Prisma.ProductCreateNestedOneWithoutProductChargesInput supplier: Prisma.SupplierCreateNestedOneWithoutProductChargesInput } export type ProductChargeUncheckedCreateWithoutInventoryInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null productId: number supplierId: number } export type ProductChargeCreateOrConnectWithoutInventoryInput = { where: Prisma.ProductChargeWhereUniqueInput create: Prisma.XOR } export type ProductChargeCreateManyInventoryInputEnvelope = { data: Prisma.ProductChargeCreateManyInventoryInput | Prisma.ProductChargeCreateManyInventoryInput[] skipDuplicates?: boolean } export type ProductChargeUpsertWithWhereUniqueWithoutInventoryInput = { where: Prisma.ProductChargeWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ProductChargeUpdateWithWhereUniqueWithoutInventoryInput = { where: Prisma.ProductChargeWhereUniqueInput data: Prisma.XOR } export type ProductChargeUpdateManyWithWhereWithoutInventoryInput = { where: Prisma.ProductChargeScalarWhereInput data: Prisma.XOR } export type ProductChargeCreateManyProductInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryId: number supplierId: number } export type ProductChargeUpdateWithoutProductInput = { count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventory?: Prisma.InventoryUpdateOneRequiredWithoutProductChargesNestedInput supplier?: Prisma.SupplierUpdateOneRequiredWithoutProductChargesNestedInput } export type ProductChargeUncheckedUpdateWithoutProductInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryId?: Prisma.IntFieldUpdateOperationsInput | number supplierId?: Prisma.IntFieldUpdateOperationsInput | number } export type ProductChargeUncheckedUpdateManyWithoutProductInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryId?: Prisma.IntFieldUpdateOperationsInput | number supplierId?: Prisma.IntFieldUpdateOperationsInput | number } export type ProductChargeCreateManySupplierInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null productId: number inventoryId: number } export type ProductChargeUpdateWithoutSupplierInput = { count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventory?: Prisma.InventoryUpdateOneRequiredWithoutProductChargesNestedInput product?: Prisma.ProductUpdateOneRequiredWithoutProductChargesNestedInput } export type ProductChargeUncheckedUpdateWithoutSupplierInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null productId?: Prisma.IntFieldUpdateOperationsInput | number inventoryId?: Prisma.IntFieldUpdateOperationsInput | number } export type ProductChargeUncheckedUpdateManyWithoutSupplierInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null productId?: Prisma.IntFieldUpdateOperationsInput | number inventoryId?: Prisma.IntFieldUpdateOperationsInput | number } export type ProductChargeCreateManyInventoryInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: boolean buyAt?: Date | string | null description?: string | null createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null productId: number supplierId: number } export type ProductChargeUpdateWithoutInventoryInput = { count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null product?: Prisma.ProductUpdateOneRequiredWithoutProductChargesNestedInput supplier?: Prisma.SupplierUpdateOneRequiredWithoutProductChargesNestedInput } export type ProductChargeUncheckedUpdateWithoutInventoryInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null productId?: Prisma.IntFieldUpdateOperationsInput | number supplierId?: Prisma.IntFieldUpdateOperationsInput | number } export type ProductChargeUncheckedUpdateManyWithoutInventoryInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null productId?: Prisma.IntFieldUpdateOperationsInput | number supplierId?: Prisma.IntFieldUpdateOperationsInput | number } export type ProductChargeSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean count?: boolean fee?: boolean totalAmount?: boolean isSettled?: boolean buyAt?: boolean description?: boolean createdAt?: boolean updatedAt?: boolean deletedAt?: boolean productId?: boolean inventoryId?: boolean supplierId?: boolean inventory?: boolean | Prisma.InventoryDefaultArgs product?: boolean | Prisma.ProductDefaultArgs supplier?: boolean | Prisma.SupplierDefaultArgs }, ExtArgs["result"]["productCharge"]> export type ProductChargeSelectScalar = { id?: boolean count?: boolean fee?: boolean totalAmount?: boolean isSettled?: boolean buyAt?: boolean description?: boolean createdAt?: boolean updatedAt?: boolean deletedAt?: boolean productId?: boolean inventoryId?: boolean supplierId?: boolean } export type ProductChargeOmit = runtime.Types.Extensions.GetOmit<"id" | "count" | "fee" | "totalAmount" | "isSettled" | "buyAt" | "description" | "createdAt" | "updatedAt" | "deletedAt" | "productId" | "inventoryId" | "supplierId", ExtArgs["result"]["productCharge"]> export type ProductChargeInclude = { inventory?: boolean | Prisma.InventoryDefaultArgs product?: boolean | Prisma.ProductDefaultArgs supplier?: boolean | Prisma.SupplierDefaultArgs } export type $ProductChargePayload = { name: "ProductCharge" objects: { inventory: Prisma.$InventoryPayload product: Prisma.$ProductPayload supplier: Prisma.$SupplierPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number count: runtime.Decimal fee: runtime.Decimal totalAmount: runtime.Decimal isSettled: boolean buyAt: Date | null description: string | null createdAt: Date updatedAt: Date deletedAt: Date | null productId: number inventoryId: number supplierId: number }, ExtArgs["result"]["productCharge"]> composites: {} } export type ProductChargeGetPayload = runtime.Types.Result.GetResult export type ProductChargeCountArgs = Omit & { select?: ProductChargeCountAggregateInputType | true } export interface ProductChargeDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ProductCharge'], meta: { name: 'ProductCharge' } } /** * Find zero or one ProductCharge that matches the filter. * @param {ProductChargeFindUniqueArgs} args - Arguments to find a ProductCharge * @example * // Get one ProductCharge * const productCharge = await prisma.productCharge.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProductChargeClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ProductCharge that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProductChargeFindUniqueOrThrowArgs} args - Arguments to find a ProductCharge * @example * // Get one ProductCharge * const productCharge = await prisma.productCharge.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProductChargeClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ProductCharge 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 {ProductChargeFindFirstArgs} args - Arguments to find a ProductCharge * @example * // Get one ProductCharge * const productCharge = await prisma.productCharge.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProductChargeClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ProductCharge 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 {ProductChargeFindFirstOrThrowArgs} args - Arguments to find a ProductCharge * @example * // Get one ProductCharge * const productCharge = await prisma.productCharge.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProductChargeClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ProductCharges 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 {ProductChargeFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ProductCharges * const productCharges = await prisma.productCharge.findMany() * * // Get first 10 ProductCharges * const productCharges = await prisma.productCharge.findMany({ take: 10 }) * * // Only select the `id` * const productChargeWithIdOnly = await prisma.productCharge.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ProductCharge. * @param {ProductChargeCreateArgs} args - Arguments to create a ProductCharge. * @example * // Create one ProductCharge * const ProductCharge = await prisma.productCharge.create({ * data: { * // ... data to create a ProductCharge * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ProductChargeClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ProductCharges. * @param {ProductChargeCreateManyArgs} args - Arguments to create many ProductCharges. * @example * // Create many ProductCharges * const productCharge = await prisma.productCharge.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a ProductCharge. * @param {ProductChargeDeleteArgs} args - Arguments to delete one ProductCharge. * @example * // Delete one ProductCharge * const ProductCharge = await prisma.productCharge.delete({ * where: { * // ... filter to delete one ProductCharge * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProductChargeClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ProductCharge. * @param {ProductChargeUpdateArgs} args - Arguments to update one ProductCharge. * @example * // Update one ProductCharge * const productCharge = await prisma.productCharge.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ProductChargeClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ProductCharges. * @param {ProductChargeDeleteManyArgs} args - Arguments to filter ProductCharges to delete. * @example * // Delete a few ProductCharges * const { count } = await prisma.productCharge.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProductCharges. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProductChargeUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ProductCharges * const productCharge = await prisma.productCharge.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one ProductCharge. * @param {ProductChargeUpsertArgs} args - Arguments to update or create a ProductCharge. * @example * // Update or create a ProductCharge * const productCharge = await prisma.productCharge.upsert({ * create: { * // ... data to create a ProductCharge * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ProductCharge we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProductChargeClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ProductCharges. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProductChargeCountArgs} args - Arguments to filter ProductCharges to count. * @example * // Count the number of ProductCharges * const count = await prisma.productCharge.count({ * where: { * // ... the filter for the ProductCharges 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 ProductCharge. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProductChargeAggregateArgs} 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 ProductCharge. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProductChargeGroupByArgs} 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 ProductChargeGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ProductChargeGroupByArgs['orderBy'] } : { orderBy?: ProductChargeGroupByArgs['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 ? GetProductChargeGroupByPayload : Prisma.PrismaPromise /** * Fields of the ProductCharge model */ readonly fields: ProductChargeFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ProductCharge. * 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__ProductChargeClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" inventory = {}>(args?: Prisma.Subset>): Prisma.Prisma__InventoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> product = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProductClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> supplier = {}>(args?: Prisma.Subset>): Prisma.Prisma__SupplierClient, 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 ProductCharge model */ export interface ProductChargeFieldRefs { readonly id: Prisma.FieldRef<"ProductCharge", 'Int'> readonly count: Prisma.FieldRef<"ProductCharge", 'Decimal'> readonly fee: Prisma.FieldRef<"ProductCharge", 'Decimal'> readonly totalAmount: Prisma.FieldRef<"ProductCharge", 'Decimal'> readonly isSettled: Prisma.FieldRef<"ProductCharge", 'Boolean'> readonly buyAt: Prisma.FieldRef<"ProductCharge", 'DateTime'> readonly description: Prisma.FieldRef<"ProductCharge", 'String'> readonly createdAt: Prisma.FieldRef<"ProductCharge", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"ProductCharge", 'DateTime'> readonly deletedAt: Prisma.FieldRef<"ProductCharge", 'DateTime'> readonly productId: Prisma.FieldRef<"ProductCharge", 'Int'> readonly inventoryId: Prisma.FieldRef<"ProductCharge", 'Int'> readonly supplierId: Prisma.FieldRef<"ProductCharge", 'Int'> } // Custom InputTypes /** * ProductCharge findUnique */ export type ProductChargeFindUniqueArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null /** * Filter, which ProductCharge to fetch. */ where: Prisma.ProductChargeWhereUniqueInput } /** * ProductCharge findUniqueOrThrow */ export type ProductChargeFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null /** * Filter, which ProductCharge to fetch. */ where: Prisma.ProductChargeWhereUniqueInput } /** * ProductCharge findFirst */ export type ProductChargeFindFirstArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null /** * Filter, which ProductCharge to fetch. */ where?: Prisma.ProductChargeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProductCharges to fetch. */ orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProductCharges. */ cursor?: Prisma.ProductChargeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProductCharges 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` ProductCharges. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProductCharges. */ distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[] } /** * ProductCharge findFirstOrThrow */ export type ProductChargeFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null /** * Filter, which ProductCharge to fetch. */ where?: Prisma.ProductChargeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProductCharges to fetch. */ orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProductCharges. */ cursor?: Prisma.ProductChargeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProductCharges 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` ProductCharges. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProductCharges. */ distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[] } /** * ProductCharge findMany */ export type ProductChargeFindManyArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null /** * Filter, which ProductCharges to fetch. */ where?: Prisma.ProductChargeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProductCharges to fetch. */ orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ProductCharges. */ cursor?: Prisma.ProductChargeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProductCharges 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` ProductCharges. */ skip?: number distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[] } /** * ProductCharge create */ export type ProductChargeCreateArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null /** * The data needed to create a ProductCharge. */ data: Prisma.XOR } /** * ProductCharge createMany */ export type ProductChargeCreateManyArgs = { /** * The data used to create many ProductCharges. */ data: Prisma.ProductChargeCreateManyInput | Prisma.ProductChargeCreateManyInput[] skipDuplicates?: boolean } /** * ProductCharge update */ export type ProductChargeUpdateArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null /** * The data needed to update a ProductCharge. */ data: Prisma.XOR /** * Choose, which ProductCharge to update. */ where: Prisma.ProductChargeWhereUniqueInput } /** * ProductCharge updateMany */ export type ProductChargeUpdateManyArgs = { /** * The data used to update ProductCharges. */ data: Prisma.XOR /** * Filter which ProductCharges to update */ where?: Prisma.ProductChargeWhereInput /** * Limit how many ProductCharges to update. */ limit?: number } /** * ProductCharge upsert */ export type ProductChargeUpsertArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null /** * The filter to search for the ProductCharge to update in case it exists. */ where: Prisma.ProductChargeWhereUniqueInput /** * In case the ProductCharge found by the `where` argument doesn't exist, create a new ProductCharge with this data. */ create: Prisma.XOR /** * In case the ProductCharge was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ProductCharge delete */ export type ProductChargeDeleteArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null /** * Filter which ProductCharge to delete. */ where: Prisma.ProductChargeWhereUniqueInput } /** * ProductCharge deleteMany */ export type ProductChargeDeleteManyArgs = { /** * Filter which ProductCharges to delete */ where?: Prisma.ProductChargeWhereInput /** * Limit how many ProductCharges to delete. */ limit?: number } /** * ProductCharge without action */ export type ProductChargeDefaultArgs = { /** * Select specific fields to fetch from the ProductCharge */ select?: Prisma.ProductChargeSelect | null /** * Omit specific fields from the ProductCharge */ omit?: Prisma.ProductChargeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProductChargeInclude | null }