/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Inventory` 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 Inventory * */ export type InventoryModel = runtime.Types.Result.DefaultSelection export type AggregateInventory = { _count: InventoryCountAggregateOutputType | null _avg: InventoryAvgAggregateOutputType | null _sum: InventorySumAggregateOutputType | null _min: InventoryMinAggregateOutputType | null _max: InventoryMaxAggregateOutputType | null } export type InventoryAvgAggregateOutputType = { id: number | null } export type InventorySumAggregateOutputType = { id: number | null } export type InventoryMinAggregateOutputType = { id: number | null name: string | null location: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null deletedAt: Date | null } export type InventoryMaxAggregateOutputType = { id: number | null name: string | null location: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null deletedAt: Date | null } export type InventoryCountAggregateOutputType = { id: number name: number location: number isActive: number createdAt: number updatedAt: number deletedAt: number _all: number } export type InventoryAvgAggregateInputType = { id?: true } export type InventorySumAggregateInputType = { id?: true } export type InventoryMinAggregateInputType = { id?: true name?: true location?: true isActive?: true createdAt?: true updatedAt?: true deletedAt?: true } export type InventoryMaxAggregateInputType = { id?: true name?: true location?: true isActive?: true createdAt?: true updatedAt?: true deletedAt?: true } export type InventoryCountAggregateInputType = { id?: true name?: true location?: true isActive?: true createdAt?: true updatedAt?: true deletedAt?: true _all?: true } export type InventoryAggregateArgs = { /** * Filter which Inventory to aggregate. */ where?: Prisma.InventoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Inventories to fetch. */ orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.InventoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Inventories 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` Inventories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Inventories **/ _count?: true | InventoryCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: InventoryAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: InventorySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: InventoryMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: InventoryMaxAggregateInputType } export type GetInventoryAggregateType = { [P in keyof T & keyof AggregateInventory]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type InventoryGroupByArgs = { where?: Prisma.InventoryWhereInput orderBy?: Prisma.InventoryOrderByWithAggregationInput | Prisma.InventoryOrderByWithAggregationInput[] by: Prisma.InventoryScalarFieldEnum[] | Prisma.InventoryScalarFieldEnum having?: Prisma.InventoryScalarWhereWithAggregatesInput take?: number skip?: number _count?: InventoryCountAggregateInputType | true _avg?: InventoryAvgAggregateInputType _sum?: InventorySumAggregateInputType _min?: InventoryMinAggregateInputType _max?: InventoryMaxAggregateInputType } export type InventoryGroupByOutputType = { id: number name: string location: string | null isActive: boolean createdAt: Date updatedAt: Date deletedAt: Date | null _count: InventoryCountAggregateOutputType | null _avg: InventoryAvgAggregateOutputType | null _sum: InventorySumAggregateOutputType | null _min: InventoryMinAggregateOutputType | null _max: InventoryMaxAggregateOutputType | null } type GetInventoryGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof InventoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type InventoryWhereInput = { AND?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[] OR?: Prisma.InventoryWhereInput[] NOT?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[] id?: Prisma.IntFilter<"Inventory"> | number name?: Prisma.StringFilter<"Inventory"> | string location?: Prisma.StringNullableFilter<"Inventory"> | string | null isActive?: Prisma.BoolFilter<"Inventory"> | boolean createdAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string deletedAt?: Prisma.DateTimeNullableFilter<"Inventory"> | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferListRelationFilter inventoryTransfersTo?: Prisma.InventoryTransferListRelationFilter productCharges?: Prisma.ProductChargeListRelationFilter purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter stockAdjustments?: Prisma.StockAdjustmentListRelationFilter stockMovements?: Prisma.StockMovementListRelationFilter } export type InventoryOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder location?: Prisma.SortOrderInput | Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder inventoryTransfersFrom?: Prisma.InventoryTransferOrderByRelationAggregateInput inventoryTransfersTo?: Prisma.InventoryTransferOrderByRelationAggregateInput productCharges?: Prisma.ProductChargeOrderByRelationAggregateInput purchaseReceipts?: Prisma.PurchaseReceiptOrderByRelationAggregateInput stockAdjustments?: Prisma.StockAdjustmentOrderByRelationAggregateInput stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput _relevance?: Prisma.InventoryOrderByRelevanceInput } export type InventoryWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[] OR?: Prisma.InventoryWhereInput[] NOT?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[] name?: Prisma.StringFilter<"Inventory"> | string location?: Prisma.StringNullableFilter<"Inventory"> | string | null isActive?: Prisma.BoolFilter<"Inventory"> | boolean createdAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string deletedAt?: Prisma.DateTimeNullableFilter<"Inventory"> | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferListRelationFilter inventoryTransfersTo?: Prisma.InventoryTransferListRelationFilter productCharges?: Prisma.ProductChargeListRelationFilter purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter stockAdjustments?: Prisma.StockAdjustmentListRelationFilter stockMovements?: Prisma.StockMovementListRelationFilter }, "id"> export type InventoryOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder location?: Prisma.SortOrderInput | Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.InventoryCountOrderByAggregateInput _avg?: Prisma.InventoryAvgOrderByAggregateInput _max?: Prisma.InventoryMaxOrderByAggregateInput _min?: Prisma.InventoryMinOrderByAggregateInput _sum?: Prisma.InventorySumOrderByAggregateInput } export type InventoryScalarWhereWithAggregatesInput = { AND?: Prisma.InventoryScalarWhereWithAggregatesInput | Prisma.InventoryScalarWhereWithAggregatesInput[] OR?: Prisma.InventoryScalarWhereWithAggregatesInput[] NOT?: Prisma.InventoryScalarWhereWithAggregatesInput | Prisma.InventoryScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"Inventory"> | number name?: Prisma.StringWithAggregatesFilter<"Inventory"> | string location?: Prisma.StringNullableWithAggregatesFilter<"Inventory"> | string | null isActive?: Prisma.BoolWithAggregatesFilter<"Inventory"> | boolean createdAt?: Prisma.DateTimeWithAggregatesFilter<"Inventory"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Inventory"> | Date | string deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Inventory"> | Date | string | null } export type InventoryCreateInput = { name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput } export type InventoryUncheckedCreateInput = { id?: number name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput } export type InventoryUpdateInput = { name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput } export type InventoryUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput } export type InventoryCreateManyInput = { id?: number name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null } export type InventoryUpdateManyMutationInput = { name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type InventoryUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type InventoryOrderByRelevanceInput = { fields: Prisma.InventoryOrderByRelevanceFieldEnum | Prisma.InventoryOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type InventoryCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder location?: Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrder } export type InventoryAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type InventoryMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder location?: Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrder } export type InventoryMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder location?: Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrder } export type InventorySumOrderByAggregateInput = { id?: Prisma.SortOrder } export type InventoryScalarRelationFilter = { is?: Prisma.InventoryWhereInput isNot?: Prisma.InventoryWhereInput } export type InventoryCreateNestedOneWithoutProductChargesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutProductChargesInput connect?: Prisma.InventoryWhereUniqueInput } export type InventoryUpdateOneRequiredWithoutProductChargesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutProductChargesInput upsert?: Prisma.InventoryUpsertWithoutProductChargesInput connect?: Prisma.InventoryWhereUniqueInput update?: Prisma.XOR, Prisma.InventoryUncheckedUpdateWithoutProductChargesInput> } export type InventoryCreateNestedOneWithoutPurchaseReceiptsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutPurchaseReceiptsInput connect?: Prisma.InventoryWhereUniqueInput } export type InventoryUpdateOneRequiredWithoutPurchaseReceiptsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutPurchaseReceiptsInput upsert?: Prisma.InventoryUpsertWithoutPurchaseReceiptsInput connect?: Prisma.InventoryWhereUniqueInput update?: Prisma.XOR, Prisma.InventoryUncheckedUpdateWithoutPurchaseReceiptsInput> } export type InventoryCreateNestedOneWithoutStockMovementsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockMovementsInput connect?: Prisma.InventoryWhereUniqueInput } export type InventoryUpdateOneRequiredWithoutStockMovementsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockMovementsInput upsert?: Prisma.InventoryUpsertWithoutStockMovementsInput connect?: Prisma.InventoryWhereUniqueInput update?: Prisma.XOR, Prisma.InventoryUncheckedUpdateWithoutStockMovementsInput> } export type InventoryCreateNestedOneWithoutInventoryTransfersFromInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutInventoryTransfersFromInput connect?: Prisma.InventoryWhereUniqueInput } export type InventoryCreateNestedOneWithoutInventoryTransfersToInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutInventoryTransfersToInput connect?: Prisma.InventoryWhereUniqueInput } export type InventoryUpdateOneRequiredWithoutInventoryTransfersFromNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutInventoryTransfersFromInput upsert?: Prisma.InventoryUpsertWithoutInventoryTransfersFromInput connect?: Prisma.InventoryWhereUniqueInput update?: Prisma.XOR, Prisma.InventoryUncheckedUpdateWithoutInventoryTransfersFromInput> } export type InventoryUpdateOneRequiredWithoutInventoryTransfersToNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutInventoryTransfersToInput upsert?: Prisma.InventoryUpsertWithoutInventoryTransfersToInput connect?: Prisma.InventoryWhereUniqueInput update?: Prisma.XOR, Prisma.InventoryUncheckedUpdateWithoutInventoryTransfersToInput> } export type InventoryCreateNestedOneWithoutStockAdjustmentsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockAdjustmentsInput connect?: Prisma.InventoryWhereUniqueInput } export type InventoryUpdateOneRequiredWithoutStockAdjustmentsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockAdjustmentsInput upsert?: Prisma.InventoryUpsertWithoutStockAdjustmentsInput connect?: Prisma.InventoryWhereUniqueInput update?: Prisma.XOR, Prisma.InventoryUncheckedUpdateWithoutStockAdjustmentsInput> } export type InventoryCreateWithoutProductChargesInput = { name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput } export type InventoryUncheckedCreateWithoutProductChargesInput = { id?: number name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput } export type InventoryCreateOrConnectWithoutProductChargesInput = { where: Prisma.InventoryWhereUniqueInput create: Prisma.XOR } export type InventoryUpsertWithoutProductChargesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.InventoryWhereInput } export type InventoryUpdateToOneWithWhereWithoutProductChargesInput = { where?: Prisma.InventoryWhereInput data: Prisma.XOR } export type InventoryUpdateWithoutProductChargesInput = { name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput } export type InventoryUncheckedUpdateWithoutProductChargesInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput } export type InventoryCreateWithoutPurchaseReceiptsInput = { name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput } export type InventoryUncheckedCreateWithoutPurchaseReceiptsInput = { id?: number name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput } export type InventoryCreateOrConnectWithoutPurchaseReceiptsInput = { where: Prisma.InventoryWhereUniqueInput create: Prisma.XOR } export type InventoryUpsertWithoutPurchaseReceiptsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.InventoryWhereInput } export type InventoryUpdateToOneWithWhereWithoutPurchaseReceiptsInput = { where?: Prisma.InventoryWhereInput data: Prisma.XOR } export type InventoryUpdateWithoutPurchaseReceiptsInput = { name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput } export type InventoryUncheckedUpdateWithoutPurchaseReceiptsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput } export type InventoryCreateWithoutStockMovementsInput = { name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput } export type InventoryUncheckedCreateWithoutStockMovementsInput = { id?: number name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput } export type InventoryCreateOrConnectWithoutStockMovementsInput = { where: Prisma.InventoryWhereUniqueInput create: Prisma.XOR } export type InventoryUpsertWithoutStockMovementsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.InventoryWhereInput } export type InventoryUpdateToOneWithWhereWithoutStockMovementsInput = { where?: Prisma.InventoryWhereInput data: Prisma.XOR } export type InventoryUpdateWithoutStockMovementsInput = { name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput } export type InventoryUncheckedUpdateWithoutStockMovementsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput } export type InventoryCreateWithoutInventoryTransfersFromInput = { name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput } export type InventoryUncheckedCreateWithoutInventoryTransfersFromInput = { id?: number name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput } export type InventoryCreateOrConnectWithoutInventoryTransfersFromInput = { where: Prisma.InventoryWhereUniqueInput create: Prisma.XOR } export type InventoryCreateWithoutInventoryTransfersToInput = { name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput } export type InventoryUncheckedCreateWithoutInventoryTransfersToInput = { id?: number name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput } export type InventoryCreateOrConnectWithoutInventoryTransfersToInput = { where: Prisma.InventoryWhereUniqueInput create: Prisma.XOR } export type InventoryUpsertWithoutInventoryTransfersFromInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.InventoryWhereInput } export type InventoryUpdateToOneWithWhereWithoutInventoryTransfersFromInput = { where?: Prisma.InventoryWhereInput data: Prisma.XOR } export type InventoryUpdateWithoutInventoryTransfersFromInput = { name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput } export type InventoryUncheckedUpdateWithoutInventoryTransfersFromInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput } export type InventoryUpsertWithoutInventoryTransfersToInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.InventoryWhereInput } export type InventoryUpdateToOneWithWhereWithoutInventoryTransfersToInput = { where?: Prisma.InventoryWhereInput data: Prisma.XOR } export type InventoryUpdateWithoutInventoryTransfersToInput = { name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput } export type InventoryUncheckedUpdateWithoutInventoryTransfersToInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput } export type InventoryCreateWithoutStockAdjustmentsInput = { name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput } export type InventoryUncheckedCreateWithoutStockAdjustmentsInput = { id?: number name: string location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string deletedAt?: Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput } export type InventoryCreateOrConnectWithoutStockAdjustmentsInput = { where: Prisma.InventoryWhereUniqueInput create: Prisma.XOR } export type InventoryUpsertWithoutStockAdjustmentsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.InventoryWhereInput } export type InventoryUpdateToOneWithWhereWithoutStockAdjustmentsInput = { where?: Prisma.InventoryWhereInput data: Prisma.XOR } export type InventoryUpdateWithoutStockAdjustmentsInput = { name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput } export type InventoryUncheckedUpdateWithoutStockAdjustmentsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput } /** * Count Type InventoryCountOutputType */ export type InventoryCountOutputType = { inventoryTransfersFrom: number inventoryTransfersTo: number productCharges: number purchaseReceipts: number stockAdjustments: number stockMovements: number } export type InventoryCountOutputTypeSelect = { inventoryTransfersFrom?: boolean | InventoryCountOutputTypeCountInventoryTransfersFromArgs inventoryTransfersTo?: boolean | InventoryCountOutputTypeCountInventoryTransfersToArgs productCharges?: boolean | InventoryCountOutputTypeCountProductChargesArgs purchaseReceipts?: boolean | InventoryCountOutputTypeCountPurchaseReceiptsArgs stockAdjustments?: boolean | InventoryCountOutputTypeCountStockAdjustmentsArgs stockMovements?: boolean | InventoryCountOutputTypeCountStockMovementsArgs } /** * InventoryCountOutputType without action */ export type InventoryCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the InventoryCountOutputType */ select?: Prisma.InventoryCountOutputTypeSelect | null } /** * InventoryCountOutputType without action */ export type InventoryCountOutputTypeCountInventoryTransfersFromArgs = { where?: Prisma.InventoryTransferWhereInput } /** * InventoryCountOutputType without action */ export type InventoryCountOutputTypeCountInventoryTransfersToArgs = { where?: Prisma.InventoryTransferWhereInput } /** * InventoryCountOutputType without action */ export type InventoryCountOutputTypeCountProductChargesArgs = { where?: Prisma.ProductChargeWhereInput } /** * InventoryCountOutputType without action */ export type InventoryCountOutputTypeCountPurchaseReceiptsArgs = { where?: Prisma.PurchaseReceiptWhereInput } /** * InventoryCountOutputType without action */ export type InventoryCountOutputTypeCountStockAdjustmentsArgs = { where?: Prisma.StockAdjustmentWhereInput } /** * InventoryCountOutputType without action */ export type InventoryCountOutputTypeCountStockMovementsArgs = { where?: Prisma.StockMovementWhereInput } export type InventorySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean location?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean deletedAt?: boolean inventoryTransfersFrom?: boolean | Prisma.Inventory$inventoryTransfersFromArgs inventoryTransfersTo?: boolean | Prisma.Inventory$inventoryTransfersToArgs productCharges?: boolean | Prisma.Inventory$productChargesArgs purchaseReceipts?: boolean | Prisma.Inventory$purchaseReceiptsArgs stockAdjustments?: boolean | Prisma.Inventory$stockAdjustmentsArgs stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs _count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs }, ExtArgs["result"]["inventory"]> export type InventorySelectScalar = { id?: boolean name?: boolean location?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean deletedAt?: boolean } export type InventoryOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "location" | "isActive" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["inventory"]> export type InventoryInclude = { inventoryTransfersFrom?: boolean | Prisma.Inventory$inventoryTransfersFromArgs inventoryTransfersTo?: boolean | Prisma.Inventory$inventoryTransfersToArgs productCharges?: boolean | Prisma.Inventory$productChargesArgs purchaseReceipts?: boolean | Prisma.Inventory$purchaseReceiptsArgs stockAdjustments?: boolean | Prisma.Inventory$stockAdjustmentsArgs stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs _count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs } export type $InventoryPayload = { name: "Inventory" objects: { inventoryTransfersFrom: Prisma.$InventoryTransferPayload[] inventoryTransfersTo: Prisma.$InventoryTransferPayload[] productCharges: Prisma.$ProductChargePayload[] purchaseReceipts: Prisma.$PurchaseReceiptPayload[] stockAdjustments: Prisma.$StockAdjustmentPayload[] stockMovements: Prisma.$StockMovementPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number name: string location: string | null isActive: boolean createdAt: Date updatedAt: Date deletedAt: Date | null }, ExtArgs["result"]["inventory"]> composites: {} } export type InventoryGetPayload = runtime.Types.Result.GetResult export type InventoryCountArgs = Omit & { select?: InventoryCountAggregateInputType | true } export interface InventoryDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Inventory'], meta: { name: 'Inventory' } } /** * Find zero or one Inventory that matches the filter. * @param {InventoryFindUniqueArgs} args - Arguments to find a Inventory * @example * // Get one Inventory * const inventory = await prisma.inventory.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__InventoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Inventory that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {InventoryFindUniqueOrThrowArgs} args - Arguments to find a Inventory * @example * // Get one Inventory * const inventory = await prisma.inventory.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__InventoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Inventory 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 {InventoryFindFirstArgs} args - Arguments to find a Inventory * @example * // Get one Inventory * const inventory = await prisma.inventory.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__InventoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Inventory 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 {InventoryFindFirstOrThrowArgs} args - Arguments to find a Inventory * @example * // Get one Inventory * const inventory = await prisma.inventory.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__InventoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Inventories 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 {InventoryFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Inventories * const inventories = await prisma.inventory.findMany() * * // Get first 10 Inventories * const inventories = await prisma.inventory.findMany({ take: 10 }) * * // Only select the `id` * const inventoryWithIdOnly = await prisma.inventory.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Inventory. * @param {InventoryCreateArgs} args - Arguments to create a Inventory. * @example * // Create one Inventory * const Inventory = await prisma.inventory.create({ * data: { * // ... data to create a Inventory * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__InventoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Inventories. * @param {InventoryCreateManyArgs} args - Arguments to create many Inventories. * @example * // Create many Inventories * const inventory = await prisma.inventory.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Inventory. * @param {InventoryDeleteArgs} args - Arguments to delete one Inventory. * @example * // Delete one Inventory * const Inventory = await prisma.inventory.delete({ * where: { * // ... filter to delete one Inventory * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__InventoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Inventory. * @param {InventoryUpdateArgs} args - Arguments to update one Inventory. * @example * // Update one Inventory * const inventory = await prisma.inventory.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__InventoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Inventories. * @param {InventoryDeleteManyArgs} args - Arguments to filter Inventories to delete. * @example * // Delete a few Inventories * const { count } = await prisma.inventory.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Inventories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InventoryUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Inventories * const inventory = await prisma.inventory.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Inventory. * @param {InventoryUpsertArgs} args - Arguments to update or create a Inventory. * @example * // Update or create a Inventory * const inventory = await prisma.inventory.upsert({ * create: { * // ... data to create a Inventory * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Inventory we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__InventoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Inventories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InventoryCountArgs} args - Arguments to filter Inventories to count. * @example * // Count the number of Inventories * const count = await prisma.inventory.count({ * where: { * // ... the filter for the Inventories 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 Inventory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InventoryAggregateArgs} 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 Inventory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InventoryGroupByArgs} 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 InventoryGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: InventoryGroupByArgs['orderBy'] } : { orderBy?: InventoryGroupByArgs['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 ? GetInventoryGroupByPayload : Prisma.PrismaPromise /** * Fields of the Inventory model */ readonly fields: InventoryFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Inventory. * 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__InventoryClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" inventoryTransfersFrom = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> inventoryTransfersTo = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> productCharges = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> purchaseReceipts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> stockAdjustments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> stockMovements = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the Inventory model */ export interface InventoryFieldRefs { readonly id: Prisma.FieldRef<"Inventory", 'Int'> readonly name: Prisma.FieldRef<"Inventory", 'String'> readonly location: Prisma.FieldRef<"Inventory", 'String'> readonly isActive: Prisma.FieldRef<"Inventory", 'Boolean'> readonly createdAt: Prisma.FieldRef<"Inventory", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Inventory", 'DateTime'> readonly deletedAt: Prisma.FieldRef<"Inventory", 'DateTime'> } // Custom InputTypes /** * Inventory findUnique */ export type InventoryFindUniqueArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null /** * Filter, which Inventory to fetch. */ where: Prisma.InventoryWhereUniqueInput } /** * Inventory findUniqueOrThrow */ export type InventoryFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null /** * Filter, which Inventory to fetch. */ where: Prisma.InventoryWhereUniqueInput } /** * Inventory findFirst */ export type InventoryFindFirstArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null /** * Filter, which Inventory to fetch. */ where?: Prisma.InventoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Inventories to fetch. */ orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Inventories. */ cursor?: Prisma.InventoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Inventories 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` Inventories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Inventories. */ distinct?: Prisma.InventoryScalarFieldEnum | Prisma.InventoryScalarFieldEnum[] } /** * Inventory findFirstOrThrow */ export type InventoryFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null /** * Filter, which Inventory to fetch. */ where?: Prisma.InventoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Inventories to fetch. */ orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Inventories. */ cursor?: Prisma.InventoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Inventories 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` Inventories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Inventories. */ distinct?: Prisma.InventoryScalarFieldEnum | Prisma.InventoryScalarFieldEnum[] } /** * Inventory findMany */ export type InventoryFindManyArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null /** * Filter, which Inventories to fetch. */ where?: Prisma.InventoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Inventories to fetch. */ orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Inventories. */ cursor?: Prisma.InventoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Inventories 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` Inventories. */ skip?: number distinct?: Prisma.InventoryScalarFieldEnum | Prisma.InventoryScalarFieldEnum[] } /** * Inventory create */ export type InventoryCreateArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null /** * The data needed to create a Inventory. */ data: Prisma.XOR } /** * Inventory createMany */ export type InventoryCreateManyArgs = { /** * The data used to create many Inventories. */ data: Prisma.InventoryCreateManyInput | Prisma.InventoryCreateManyInput[] skipDuplicates?: boolean } /** * Inventory update */ export type InventoryUpdateArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null /** * The data needed to update a Inventory. */ data: Prisma.XOR /** * Choose, which Inventory to update. */ where: Prisma.InventoryWhereUniqueInput } /** * Inventory updateMany */ export type InventoryUpdateManyArgs = { /** * The data used to update Inventories. */ data: Prisma.XOR /** * Filter which Inventories to update */ where?: Prisma.InventoryWhereInput /** * Limit how many Inventories to update. */ limit?: number } /** * Inventory upsert */ export type InventoryUpsertArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null /** * The filter to search for the Inventory to update in case it exists. */ where: Prisma.InventoryWhereUniqueInput /** * In case the Inventory found by the `where` argument doesn't exist, create a new Inventory with this data. */ create: Prisma.XOR /** * In case the Inventory was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Inventory delete */ export type InventoryDeleteArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null /** * Filter which Inventory to delete. */ where: Prisma.InventoryWhereUniqueInput } /** * Inventory deleteMany */ export type InventoryDeleteManyArgs = { /** * Filter which Inventories to delete */ where?: Prisma.InventoryWhereInput /** * Limit how many Inventories to delete. */ limit?: number } /** * Inventory.inventoryTransfersFrom */ export type Inventory$inventoryTransfersFromArgs = { /** * Select specific fields to fetch from the InventoryTransfer */ select?: Prisma.InventoryTransferSelect | null /** * Omit specific fields from the InventoryTransfer */ omit?: Prisma.InventoryTransferOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryTransferInclude | null where?: Prisma.InventoryTransferWhereInput orderBy?: Prisma.InventoryTransferOrderByWithRelationInput | Prisma.InventoryTransferOrderByWithRelationInput[] cursor?: Prisma.InventoryTransferWhereUniqueInput take?: number skip?: number distinct?: Prisma.InventoryTransferScalarFieldEnum | Prisma.InventoryTransferScalarFieldEnum[] } /** * Inventory.inventoryTransfersTo */ export type Inventory$inventoryTransfersToArgs = { /** * Select specific fields to fetch from the InventoryTransfer */ select?: Prisma.InventoryTransferSelect | null /** * Omit specific fields from the InventoryTransfer */ omit?: Prisma.InventoryTransferOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryTransferInclude | null where?: Prisma.InventoryTransferWhereInput orderBy?: Prisma.InventoryTransferOrderByWithRelationInput | Prisma.InventoryTransferOrderByWithRelationInput[] cursor?: Prisma.InventoryTransferWhereUniqueInput take?: number skip?: number distinct?: Prisma.InventoryTransferScalarFieldEnum | Prisma.InventoryTransferScalarFieldEnum[] } /** * Inventory.productCharges */ export type Inventory$productChargesArgs = { /** * 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 where?: Prisma.ProductChargeWhereInput orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[] cursor?: Prisma.ProductChargeWhereUniqueInput take?: number skip?: number distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[] } /** * Inventory.purchaseReceipts */ export type Inventory$purchaseReceiptsArgs = { /** * Select specific fields to fetch from the PurchaseReceipt */ select?: Prisma.PurchaseReceiptSelect | null /** * Omit specific fields from the PurchaseReceipt */ omit?: Prisma.PurchaseReceiptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PurchaseReceiptInclude | null where?: Prisma.PurchaseReceiptWhereInput orderBy?: Prisma.PurchaseReceiptOrderByWithRelationInput | Prisma.PurchaseReceiptOrderByWithRelationInput[] cursor?: Prisma.PurchaseReceiptWhereUniqueInput take?: number skip?: number distinct?: Prisma.PurchaseReceiptScalarFieldEnum | Prisma.PurchaseReceiptScalarFieldEnum[] } /** * Inventory.stockAdjustments */ export type Inventory$stockAdjustmentsArgs = { /** * Select specific fields to fetch from the StockAdjustment */ select?: Prisma.StockAdjustmentSelect | null /** * Omit specific fields from the StockAdjustment */ omit?: Prisma.StockAdjustmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StockAdjustmentInclude | null where?: Prisma.StockAdjustmentWhereInput orderBy?: Prisma.StockAdjustmentOrderByWithRelationInput | Prisma.StockAdjustmentOrderByWithRelationInput[] cursor?: Prisma.StockAdjustmentWhereUniqueInput take?: number skip?: number distinct?: Prisma.StockAdjustmentScalarFieldEnum | Prisma.StockAdjustmentScalarFieldEnum[] } /** * Inventory.stockMovements */ export type Inventory$stockMovementsArgs = { /** * Select specific fields to fetch from the StockMovement */ select?: Prisma.StockMovementSelect | null /** * Omit specific fields from the StockMovement */ omit?: Prisma.StockMovementOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StockMovementInclude | null where?: Prisma.StockMovementWhereInput orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[] cursor?: Prisma.StockMovementWhereUniqueInput take?: number skip?: number distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[] } /** * Inventory without action */ export type InventoryDefaultArgs = { /** * Select specific fields to fetch from the Inventory */ select?: Prisma.InventorySelect | null /** * Omit specific fields from the Inventory */ omit?: Prisma.InventoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InventoryInclude | null }