Add SQL query for average cost retrieval and generate TriggerLog model
This commit is contained in:
@@ -39,6 +39,7 @@ export type InventoryMinAggregateOutputType = {
|
||||
name: string | null
|
||||
location: string | null
|
||||
isActive: boolean | null
|
||||
isPointOfSale: boolean | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
deletedAt: Date | null
|
||||
@@ -49,6 +50,7 @@ export type InventoryMaxAggregateOutputType = {
|
||||
name: string | null
|
||||
location: string | null
|
||||
isActive: boolean | null
|
||||
isPointOfSale: boolean | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
deletedAt: Date | null
|
||||
@@ -59,6 +61,7 @@ export type InventoryCountAggregateOutputType = {
|
||||
name: number
|
||||
location: number
|
||||
isActive: number
|
||||
isPointOfSale: number
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
deletedAt: number
|
||||
@@ -79,6 +82,7 @@ export type InventoryMinAggregateInputType = {
|
||||
name?: true
|
||||
location?: true
|
||||
isActive?: true
|
||||
isPointOfSale?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
@@ -89,6 +93,7 @@ export type InventoryMaxAggregateInputType = {
|
||||
name?: true
|
||||
location?: true
|
||||
isActive?: true
|
||||
isPointOfSale?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
@@ -99,6 +104,7 @@ export type InventoryCountAggregateInputType = {
|
||||
name?: true
|
||||
location?: true
|
||||
isActive?: true
|
||||
isPointOfSale?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
@@ -196,6 +202,7 @@ export type InventoryGroupByOutputType = {
|
||||
name: string
|
||||
location: string | null
|
||||
isActive: boolean
|
||||
isPointOfSale: boolean
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
@@ -229,6 +236,7 @@ export type InventoryWhereInput = {
|
||||
name?: Prisma.StringFilter<"Inventory"> | string
|
||||
location?: Prisma.StringNullableFilter<"Inventory"> | string | null
|
||||
isActive?: Prisma.BoolFilter<"Inventory"> | boolean
|
||||
isPointOfSale?: Prisma.BoolFilter<"Inventory"> | boolean
|
||||
createdAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Inventory"> | Date | string | null
|
||||
@@ -238,6 +246,7 @@ export type InventoryWhereInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
stockAdjustments?: Prisma.StockAdjustmentListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
stockBalances?: Prisma.StockBalanceListRelationFilter
|
||||
}
|
||||
|
||||
export type InventoryOrderByWithRelationInput = {
|
||||
@@ -245,6 +254,7 @@ export type InventoryOrderByWithRelationInput = {
|
||||
name?: Prisma.SortOrder
|
||||
location?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
isPointOfSale?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
@@ -254,6 +264,7 @@ export type InventoryOrderByWithRelationInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptOrderByRelationAggregateInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentOrderByRelationAggregateInput
|
||||
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
|
||||
stockBalances?: Prisma.StockBalanceOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.InventoryOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -265,6 +276,7 @@ export type InventoryWhereUniqueInput = Prisma.AtLeast<{
|
||||
name?: Prisma.StringFilter<"Inventory"> | string
|
||||
location?: Prisma.StringNullableFilter<"Inventory"> | string | null
|
||||
isActive?: Prisma.BoolFilter<"Inventory"> | boolean
|
||||
isPointOfSale?: Prisma.BoolFilter<"Inventory"> | boolean
|
||||
createdAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Inventory"> | Date | string | null
|
||||
@@ -274,6 +286,7 @@ export type InventoryWhereUniqueInput = Prisma.AtLeast<{
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
stockAdjustments?: Prisma.StockAdjustmentListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
stockBalances?: Prisma.StockBalanceListRelationFilter
|
||||
}, "id">
|
||||
|
||||
export type InventoryOrderByWithAggregationInput = {
|
||||
@@ -281,6 +294,7 @@ export type InventoryOrderByWithAggregationInput = {
|
||||
name?: Prisma.SortOrder
|
||||
location?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
isPointOfSale?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
@@ -299,6 +313,7 @@ export type InventoryScalarWhereWithAggregatesInput = {
|
||||
name?: Prisma.StringWithAggregatesFilter<"Inventory"> | string
|
||||
location?: Prisma.StringNullableWithAggregatesFilter<"Inventory"> | string | null
|
||||
isActive?: Prisma.BoolWithAggregatesFilter<"Inventory"> | boolean
|
||||
isPointOfSale?: Prisma.BoolWithAggregatesFilter<"Inventory"> | boolean
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Inventory"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Inventory"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Inventory"> | Date | string | null
|
||||
@@ -308,6 +323,7 @@ export type InventoryCreateInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -317,6 +333,7 @@ export type InventoryCreateInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedCreateInput = {
|
||||
@@ -324,6 +341,7 @@ export type InventoryUncheckedCreateInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -333,12 +351,14 @@ export type InventoryUncheckedCreateInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryUpdateInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -348,6 +368,7 @@ export type InventoryUpdateInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedUpdateInput = {
|
||||
@@ -355,6 +376,7 @@ export type InventoryUncheckedUpdateInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -364,6 +386,7 @@ export type InventoryUncheckedUpdateInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryCreateManyInput = {
|
||||
@@ -371,6 +394,7 @@ export type InventoryCreateManyInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -380,6 +404,7 @@ export type InventoryUpdateManyMutationInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -390,6 +415,7 @@ export type InventoryUncheckedUpdateManyInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -406,6 +432,7 @@ export type InventoryCountOrderByAggregateInput = {
|
||||
name?: Prisma.SortOrder
|
||||
location?: Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
isPointOfSale?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
@@ -420,6 +447,7 @@ export type InventoryMaxOrderByAggregateInput = {
|
||||
name?: Prisma.SortOrder
|
||||
location?: Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
isPointOfSale?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
@@ -430,6 +458,7 @@ export type InventoryMinOrderByAggregateInput = {
|
||||
name?: Prisma.SortOrder
|
||||
location?: Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
isPointOfSale?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
@@ -486,6 +515,20 @@ export type InventoryUpdateOneRequiredWithoutStockMovementsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutStockMovementsInput, Prisma.InventoryUpdateWithoutStockMovementsInput>, Prisma.InventoryUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type InventoryCreateNestedOneWithoutStockBalancesInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockBalancesInput, Prisma.InventoryUncheckedCreateWithoutStockBalancesInput>
|
||||
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockBalancesInput
|
||||
connect?: Prisma.InventoryWhereUniqueInput
|
||||
}
|
||||
|
||||
export type InventoryUpdateOneRequiredWithoutStockBalancesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockBalancesInput, Prisma.InventoryUncheckedCreateWithoutStockBalancesInput>
|
||||
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockBalancesInput
|
||||
upsert?: Prisma.InventoryUpsertWithoutStockBalancesInput
|
||||
connect?: Prisma.InventoryWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutStockBalancesInput, Prisma.InventoryUpdateWithoutStockBalancesInput>, Prisma.InventoryUncheckedUpdateWithoutStockBalancesInput>
|
||||
}
|
||||
|
||||
export type InventoryCreateNestedOneWithoutInventoryTransfersFromInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryCreateWithoutInventoryTransfersFromInput, Prisma.InventoryUncheckedCreateWithoutInventoryTransfersFromInput>
|
||||
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutInventoryTransfersFromInput
|
||||
@@ -532,6 +575,7 @@ export type InventoryCreateWithoutProductChargesInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -540,6 +584,7 @@ export type InventoryCreateWithoutProductChargesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedCreateWithoutProductChargesInput = {
|
||||
@@ -547,6 +592,7 @@ export type InventoryUncheckedCreateWithoutProductChargesInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -555,6 +601,7 @@ export type InventoryUncheckedCreateWithoutProductChargesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryCreateOrConnectWithoutProductChargesInput = {
|
||||
@@ -577,6 +624,7 @@ export type InventoryUpdateWithoutProductChargesInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -585,6 +633,7 @@ export type InventoryUpdateWithoutProductChargesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedUpdateWithoutProductChargesInput = {
|
||||
@@ -592,6 +641,7 @@ export type InventoryUncheckedUpdateWithoutProductChargesInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -600,12 +650,14 @@ export type InventoryUncheckedUpdateWithoutProductChargesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryCreateWithoutPurchaseReceiptsInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -614,6 +666,7 @@ export type InventoryCreateWithoutPurchaseReceiptsInput = {
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedCreateWithoutPurchaseReceiptsInput = {
|
||||
@@ -621,6 +674,7 @@ export type InventoryUncheckedCreateWithoutPurchaseReceiptsInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -629,6 +683,7 @@ export type InventoryUncheckedCreateWithoutPurchaseReceiptsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryCreateOrConnectWithoutPurchaseReceiptsInput = {
|
||||
@@ -651,6 +706,7 @@ export type InventoryUpdateWithoutPurchaseReceiptsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -659,6 +715,7 @@ export type InventoryUpdateWithoutPurchaseReceiptsInput = {
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
@@ -666,6 +723,7 @@ export type InventoryUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -674,12 +732,14 @@ export type InventoryUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryCreateWithoutStockMovementsInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -688,6 +748,7 @@ export type InventoryCreateWithoutStockMovementsInput = {
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedCreateWithoutStockMovementsInput = {
|
||||
@@ -695,6 +756,7 @@ export type InventoryUncheckedCreateWithoutStockMovementsInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -703,6 +765,7 @@ export type InventoryUncheckedCreateWithoutStockMovementsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryCreateOrConnectWithoutStockMovementsInput = {
|
||||
@@ -725,6 +788,7 @@ export type InventoryUpdateWithoutStockMovementsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -733,6 +797,7 @@ export type InventoryUpdateWithoutStockMovementsInput = {
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedUpdateWithoutStockMovementsInput = {
|
||||
@@ -740,6 +805,7 @@ export type InventoryUncheckedUpdateWithoutStockMovementsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -748,12 +814,96 @@ export type InventoryUncheckedUpdateWithoutStockMovementsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryCreateWithoutStockBalancesInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: 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 InventoryUncheckedCreateWithoutStockBalancesInput = {
|
||||
id?: number
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: 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 InventoryCreateOrConnectWithoutStockBalancesInput = {
|
||||
where: Prisma.InventoryWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockBalancesInput, Prisma.InventoryUncheckedCreateWithoutStockBalancesInput>
|
||||
}
|
||||
|
||||
export type InventoryUpsertWithoutStockBalancesInput = {
|
||||
update: Prisma.XOR<Prisma.InventoryUpdateWithoutStockBalancesInput, Prisma.InventoryUncheckedUpdateWithoutStockBalancesInput>
|
||||
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockBalancesInput, Prisma.InventoryUncheckedCreateWithoutStockBalancesInput>
|
||||
where?: Prisma.InventoryWhereInput
|
||||
}
|
||||
|
||||
export type InventoryUpdateToOneWithWhereWithoutStockBalancesInput = {
|
||||
where?: Prisma.InventoryWhereInput
|
||||
data: Prisma.XOR<Prisma.InventoryUpdateWithoutStockBalancesInput, Prisma.InventoryUncheckedUpdateWithoutStockBalancesInput>
|
||||
}
|
||||
|
||||
export type InventoryUpdateWithoutStockBalancesInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: 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 InventoryUncheckedUpdateWithoutStockBalancesInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: 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 InventoryCreateWithoutInventoryTransfersFromInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -762,6 +912,7 @@ export type InventoryCreateWithoutInventoryTransfersFromInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedCreateWithoutInventoryTransfersFromInput = {
|
||||
@@ -769,6 +920,7 @@ export type InventoryUncheckedCreateWithoutInventoryTransfersFromInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -777,6 +929,7 @@ export type InventoryUncheckedCreateWithoutInventoryTransfersFromInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryCreateOrConnectWithoutInventoryTransfersFromInput = {
|
||||
@@ -788,6 +941,7 @@ export type InventoryCreateWithoutInventoryTransfersToInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -796,6 +950,7 @@ export type InventoryCreateWithoutInventoryTransfersToInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedCreateWithoutInventoryTransfersToInput = {
|
||||
@@ -803,6 +958,7 @@ export type InventoryUncheckedCreateWithoutInventoryTransfersToInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -811,6 +967,7 @@ export type InventoryUncheckedCreateWithoutInventoryTransfersToInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryCreateOrConnectWithoutInventoryTransfersToInput = {
|
||||
@@ -833,6 +990,7 @@ export type InventoryUpdateWithoutInventoryTransfersFromInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -841,6 +999,7 @@ export type InventoryUpdateWithoutInventoryTransfersFromInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedUpdateWithoutInventoryTransfersFromInput = {
|
||||
@@ -848,6 +1007,7 @@ export type InventoryUncheckedUpdateWithoutInventoryTransfersFromInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -856,6 +1016,7 @@ export type InventoryUncheckedUpdateWithoutInventoryTransfersFromInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUpsertWithoutInventoryTransfersToInput = {
|
||||
@@ -873,6 +1034,7 @@ export type InventoryUpdateWithoutInventoryTransfersToInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -881,6 +1043,7 @@ export type InventoryUpdateWithoutInventoryTransfersToInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedUpdateWithoutInventoryTransfersToInput = {
|
||||
@@ -888,6 +1051,7 @@ export type InventoryUncheckedUpdateWithoutInventoryTransfersToInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -896,12 +1060,14 @@ export type InventoryUncheckedUpdateWithoutInventoryTransfersToInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryCreateWithoutStockAdjustmentsInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -910,6 +1076,7 @@ export type InventoryCreateWithoutStockAdjustmentsInput = {
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedCreateWithoutStockAdjustmentsInput = {
|
||||
@@ -917,6 +1084,7 @@ export type InventoryUncheckedCreateWithoutStockAdjustmentsInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -925,6 +1093,7 @@ export type InventoryUncheckedCreateWithoutStockAdjustmentsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryCreateOrConnectWithoutStockAdjustmentsInput = {
|
||||
@@ -947,6 +1116,7 @@ export type InventoryUpdateWithoutStockAdjustmentsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -955,6 +1125,7 @@ export type InventoryUpdateWithoutStockAdjustmentsInput = {
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedUpdateWithoutStockAdjustmentsInput = {
|
||||
@@ -962,6 +1133,7 @@ export type InventoryUncheckedUpdateWithoutStockAdjustmentsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
@@ -970,6 +1142,7 @@ export type InventoryUncheckedUpdateWithoutStockAdjustmentsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -984,6 +1157,7 @@ export type InventoryCountOutputType = {
|
||||
purchaseReceipts: number
|
||||
stockAdjustments: number
|
||||
stockMovements: number
|
||||
stockBalances: number
|
||||
}
|
||||
|
||||
export type InventoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
@@ -993,6 +1167,7 @@ export type InventoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensi
|
||||
purchaseReceipts?: boolean | InventoryCountOutputTypeCountPurchaseReceiptsArgs
|
||||
stockAdjustments?: boolean | InventoryCountOutputTypeCountStockAdjustmentsArgs
|
||||
stockMovements?: boolean | InventoryCountOutputTypeCountStockMovementsArgs
|
||||
stockBalances?: boolean | InventoryCountOutputTypeCountStockBalancesArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1047,12 +1222,20 @@ export type InventoryCountOutputTypeCountStockMovementsArgs<ExtArgs extends runt
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* InventoryCountOutputType without action
|
||||
*/
|
||||
export type InventoryCountOutputTypeCountStockBalancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.StockBalanceWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type InventorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
location?: boolean
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
@@ -1062,6 +1245,7 @@ export type InventorySelect<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
purchaseReceipts?: boolean | Prisma.Inventory$purchaseReceiptsArgs<ExtArgs>
|
||||
stockAdjustments?: boolean | Prisma.Inventory$stockAdjustmentsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs<ExtArgs>
|
||||
stockBalances?: boolean | Prisma.Inventory$stockBalancesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["inventory"]>
|
||||
|
||||
@@ -1072,12 +1256,13 @@ export type InventorySelectScalar = {
|
||||
name?: boolean
|
||||
location?: boolean
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
}
|
||||
|
||||
export type InventoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "location" | "isActive" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["inventory"]>
|
||||
export type InventoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "location" | "isActive" | "isPointOfSale" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["inventory"]>
|
||||
export type InventoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
inventoryTransfersFrom?: boolean | Prisma.Inventory$inventoryTransfersFromArgs<ExtArgs>
|
||||
inventoryTransfersTo?: boolean | Prisma.Inventory$inventoryTransfersToArgs<ExtArgs>
|
||||
@@ -1085,6 +1270,7 @@ export type InventoryInclude<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
purchaseReceipts?: boolean | Prisma.Inventory$purchaseReceiptsArgs<ExtArgs>
|
||||
stockAdjustments?: boolean | Prisma.Inventory$stockAdjustmentsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs<ExtArgs>
|
||||
stockBalances?: boolean | Prisma.Inventory$stockBalancesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -1097,12 +1283,14 @@ export type $InventoryPayload<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
purchaseReceipts: Prisma.$PurchaseReceiptPayload<ExtArgs>[]
|
||||
stockAdjustments: Prisma.$StockAdjustmentPayload<ExtArgs>[]
|
||||
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
|
||||
stockBalances: Prisma.$StockBalancePayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
name: string
|
||||
location: string | null
|
||||
isActive: boolean
|
||||
isPointOfSale: boolean
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
@@ -1452,6 +1640,7 @@ export interface Prisma__InventoryClient<T, Null = never, ExtArgs extends runtim
|
||||
purchaseReceipts<T extends Prisma.Inventory$purchaseReceiptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$purchaseReceiptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockAdjustments<T extends Prisma.Inventory$stockAdjustmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$stockAdjustmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockAdjustmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockMovements<T extends Prisma.Inventory$stockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$stockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockBalances<T extends Prisma.Inventory$stockBalancesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$stockBalancesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockBalancePayload<ExtArgs>, 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.
|
||||
@@ -1485,6 +1674,7 @@ export interface InventoryFieldRefs {
|
||||
readonly name: Prisma.FieldRef<"Inventory", 'String'>
|
||||
readonly location: Prisma.FieldRef<"Inventory", 'String'>
|
||||
readonly isActive: Prisma.FieldRef<"Inventory", 'Boolean'>
|
||||
readonly isPointOfSale: Prisma.FieldRef<"Inventory", 'Boolean'>
|
||||
readonly createdAt: Prisma.FieldRef<"Inventory", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"Inventory", 'DateTime'>
|
||||
readonly deletedAt: Prisma.FieldRef<"Inventory", 'DateTime'>
|
||||
@@ -1974,6 +2164,30 @@ export type Inventory$stockMovementsArgs<ExtArgs extends runtime.Types.Extension
|
||||
distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Inventory.stockBalances
|
||||
*/
|
||||
export type Inventory$stockBalancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockBalance
|
||||
*/
|
||||
select?: Prisma.StockBalanceSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
where?: Prisma.StockBalanceWhereInput
|
||||
orderBy?: Prisma.StockBalanceOrderByWithRelationInput | Prisma.StockBalanceOrderByWithRelationInput[]
|
||||
cursor?: Prisma.StockBalanceWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.StockBalanceScalarFieldEnum | Prisma.StockBalanceScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Inventory without action
|
||||
*/
|
||||
|
||||
@@ -273,6 +273,7 @@ export type ProductWhereInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemListRelationFilter
|
||||
stockAdjustments?: Prisma.StockAdjustmentListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
stockBalances?: Prisma.StockBalanceListRelationFilter
|
||||
}
|
||||
|
||||
export type ProductOrderByWithRelationInput = {
|
||||
@@ -295,6 +296,7 @@ export type ProductOrderByWithRelationInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentOrderByRelationAggregateInput
|
||||
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
|
||||
stockBalances?: Prisma.StockBalanceOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.ProductOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -321,6 +323,7 @@ export type ProductWhereUniqueInput = Prisma.AtLeast<{
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemListRelationFilter
|
||||
stockAdjustments?: Prisma.StockAdjustmentListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
stockBalances?: Prisma.StockBalanceListRelationFilter
|
||||
}, "id" | "sku" | "barcode">
|
||||
|
||||
export type ProductOrderByWithAggregationInput = {
|
||||
@@ -374,6 +377,7 @@ export type ProductCreateInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateInput = {
|
||||
@@ -394,6 +398,7 @@ export type ProductUncheckedCreateInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUpdateInput = {
|
||||
@@ -413,6 +418,7 @@ export type ProductUpdateInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateInput = {
|
||||
@@ -433,6 +439,7 @@ export type ProductUncheckedUpdateInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductCreateManyInput = {
|
||||
@@ -705,6 +712,20 @@ export type ProductUpdateOneRequiredWithoutStockMovementsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutStockMovementsInput, Prisma.ProductUpdateWithoutStockMovementsInput>, Prisma.ProductUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type ProductCreateNestedOneWithoutStockBalancesInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductCreateWithoutStockBalancesInput, Prisma.ProductUncheckedCreateWithoutStockBalancesInput>
|
||||
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutStockBalancesInput
|
||||
connect?: Prisma.ProductWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ProductUpdateOneRequiredWithoutStockBalancesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductCreateWithoutStockBalancesInput, Prisma.ProductUncheckedCreateWithoutStockBalancesInput>
|
||||
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutStockBalancesInput
|
||||
upsert?: Prisma.ProductUpsertWithoutStockBalancesInput
|
||||
connect?: Prisma.ProductWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutStockBalancesInput, Prisma.ProductUpdateWithoutStockBalancesInput>, Prisma.ProductUncheckedUpdateWithoutStockBalancesInput>
|
||||
}
|
||||
|
||||
export type ProductCreateNestedOneWithoutInventoryTransferItemsInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductCreateWithoutInventoryTransferItemsInput, Prisma.ProductUncheckedCreateWithoutInventoryTransferItemsInput>
|
||||
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutInventoryTransferItemsInput
|
||||
@@ -749,6 +770,7 @@ export type ProductCreateWithoutVariantsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutVariantsInput = {
|
||||
@@ -768,6 +790,7 @@ export type ProductUncheckedCreateWithoutVariantsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutVariantsInput = {
|
||||
@@ -802,6 +825,7 @@ export type ProductUpdateWithoutVariantsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutVariantsInput = {
|
||||
@@ -821,6 +845,7 @@ export type ProductUncheckedUpdateWithoutVariantsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductCreateWithoutBrandInput = {
|
||||
@@ -839,6 +864,7 @@ export type ProductCreateWithoutBrandInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutBrandInput = {
|
||||
@@ -858,6 +884,7 @@ export type ProductUncheckedCreateWithoutBrandInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutBrandInput = {
|
||||
@@ -918,6 +945,7 @@ export type ProductCreateWithoutCategoryInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutCategoryInput = {
|
||||
@@ -937,6 +965,7 @@ export type ProductUncheckedCreateWithoutCategoryInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutCategoryInput = {
|
||||
@@ -981,6 +1010,7 @@ export type ProductCreateWithoutProductChargesInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutProductChargesInput = {
|
||||
@@ -1000,6 +1030,7 @@ export type ProductUncheckedCreateWithoutProductChargesInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutProductChargesInput = {
|
||||
@@ -1034,6 +1065,7 @@ export type ProductUpdateWithoutProductChargesInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutProductChargesInput = {
|
||||
@@ -1053,6 +1085,7 @@ export type ProductUncheckedUpdateWithoutProductChargesInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductCreateWithoutPurchaseReceiptItemsInput = {
|
||||
@@ -1071,6 +1104,7 @@ export type ProductCreateWithoutPurchaseReceiptItemsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutPurchaseReceiptItemsInput = {
|
||||
@@ -1090,6 +1124,7 @@ export type ProductUncheckedCreateWithoutPurchaseReceiptItemsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutPurchaseReceiptItemsInput = {
|
||||
@@ -1124,6 +1159,7 @@ export type ProductUpdateWithoutPurchaseReceiptItemsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutPurchaseReceiptItemsInput = {
|
||||
@@ -1143,6 +1179,7 @@ export type ProductUncheckedUpdateWithoutPurchaseReceiptItemsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductCreateWithoutSalesInvoiceItemsInput = {
|
||||
@@ -1161,6 +1198,7 @@ export type ProductCreateWithoutSalesInvoiceItemsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutSalesInvoiceItemsInput = {
|
||||
@@ -1180,6 +1218,7 @@ export type ProductUncheckedCreateWithoutSalesInvoiceItemsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutSalesInvoiceItemsInput = {
|
||||
@@ -1214,6 +1253,7 @@ export type ProductUpdateWithoutSalesInvoiceItemsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutSalesInvoiceItemsInput = {
|
||||
@@ -1233,6 +1273,7 @@ export type ProductUncheckedUpdateWithoutSalesInvoiceItemsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductCreateWithoutStockMovementsInput = {
|
||||
@@ -1251,6 +1292,7 @@ export type ProductCreateWithoutStockMovementsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutProductInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutStockMovementsInput = {
|
||||
@@ -1270,6 +1312,7 @@ export type ProductUncheckedCreateWithoutStockMovementsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutProductInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutStockMovementsInput = {
|
||||
@@ -1304,6 +1347,7 @@ export type ProductUpdateWithoutStockMovementsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUpdateManyWithoutProductNestedInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutStockMovementsInput = {
|
||||
@@ -1323,6 +1367,101 @@ export type ProductUncheckedUpdateWithoutStockMovementsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductCreateWithoutStockBalancesInput = {
|
||||
name: string
|
||||
description?: string | null
|
||||
sku?: string | null
|
||||
barcode?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
inventoryTransferItems?: Prisma.InventoryTransferItemCreateNestedManyWithoutProductInput
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutProductInput
|
||||
variants?: Prisma.ProductVariantCreateNestedManyWithoutProductInput
|
||||
brand?: Prisma.ProductBrandCreateNestedOneWithoutProductsInput
|
||||
category?: Prisma.ProductCategoryCreateNestedOneWithoutProductsInput
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutProductInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutStockBalancesInput = {
|
||||
id?: number
|
||||
name: string
|
||||
description?: string | null
|
||||
sku?: string | null
|
||||
barcode?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
brandId?: number | null
|
||||
categoryId?: number | null
|
||||
inventoryTransferItems?: Prisma.InventoryTransferItemUncheckedCreateNestedManyWithoutProductInput
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutProductInput
|
||||
variants?: Prisma.ProductVariantUncheckedCreateNestedManyWithoutProductInput
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutProductInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutStockBalancesInput = {
|
||||
where: Prisma.ProductWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.ProductCreateWithoutStockBalancesInput, Prisma.ProductUncheckedCreateWithoutStockBalancesInput>
|
||||
}
|
||||
|
||||
export type ProductUpsertWithoutStockBalancesInput = {
|
||||
update: Prisma.XOR<Prisma.ProductUpdateWithoutStockBalancesInput, Prisma.ProductUncheckedUpdateWithoutStockBalancesInput>
|
||||
create: Prisma.XOR<Prisma.ProductCreateWithoutStockBalancesInput, Prisma.ProductUncheckedCreateWithoutStockBalancesInput>
|
||||
where?: Prisma.ProductWhereInput
|
||||
}
|
||||
|
||||
export type ProductUpdateToOneWithWhereWithoutStockBalancesInput = {
|
||||
where?: Prisma.ProductWhereInput
|
||||
data: Prisma.XOR<Prisma.ProductUpdateWithoutStockBalancesInput, Prisma.ProductUncheckedUpdateWithoutStockBalancesInput>
|
||||
}
|
||||
|
||||
export type ProductUpdateWithoutStockBalancesInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
inventoryTransferItems?: Prisma.InventoryTransferItemUpdateManyWithoutProductNestedInput
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutProductNestedInput
|
||||
variants?: Prisma.ProductVariantUpdateManyWithoutProductNestedInput
|
||||
brand?: Prisma.ProductBrandUpdateOneWithoutProductsNestedInput
|
||||
category?: Prisma.ProductCategoryUpdateOneWithoutProductsNestedInput
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUpdateManyWithoutProductNestedInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutStockBalancesInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
brandId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
categoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
inventoryTransferItems?: Prisma.InventoryTransferItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutProductNestedInput
|
||||
variants?: Prisma.ProductVariantUncheckedUpdateManyWithoutProductNestedInput
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductCreateWithoutInventoryTransferItemsInput = {
|
||||
@@ -1341,6 +1480,7 @@ export type ProductCreateWithoutInventoryTransferItemsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutInventoryTransferItemsInput = {
|
||||
@@ -1360,6 +1500,7 @@ export type ProductUncheckedCreateWithoutInventoryTransferItemsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutInventoryTransferItemsInput = {
|
||||
@@ -1394,6 +1535,7 @@ export type ProductUpdateWithoutInventoryTransferItemsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutInventoryTransferItemsInput = {
|
||||
@@ -1413,6 +1555,7 @@ export type ProductUncheckedUpdateWithoutInventoryTransferItemsInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductCreateWithoutStockAdjustmentsInput = {
|
||||
@@ -1431,6 +1574,7 @@ export type ProductCreateWithoutStockAdjustmentsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutProductInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedCreateWithoutStockAdjustmentsInput = {
|
||||
@@ -1450,6 +1594,7 @@ export type ProductUncheckedCreateWithoutStockAdjustmentsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutProductInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
|
||||
}
|
||||
|
||||
export type ProductCreateOrConnectWithoutStockAdjustmentsInput = {
|
||||
@@ -1484,6 +1629,7 @@ export type ProductUpdateWithoutStockAdjustmentsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUpdateManyWithoutProductNestedInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutStockAdjustmentsInput = {
|
||||
@@ -1503,6 +1649,7 @@ export type ProductUncheckedUpdateWithoutStockAdjustmentsInput = {
|
||||
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductCreateManyBrandInput = {
|
||||
@@ -1533,6 +1680,7 @@ export type ProductUpdateWithoutBrandInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutBrandInput = {
|
||||
@@ -1552,6 +1700,7 @@ export type ProductUncheckedUpdateWithoutBrandInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateManyWithoutBrandInput = {
|
||||
@@ -1594,6 +1743,7 @@ export type ProductUpdateWithoutCategoryInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateWithoutCategoryInput = {
|
||||
@@ -1613,6 +1763,7 @@ export type ProductUncheckedUpdateWithoutCategoryInput = {
|
||||
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
|
||||
}
|
||||
|
||||
export type ProductUncheckedUpdateManyWithoutCategoryInput = {
|
||||
@@ -1640,6 +1791,7 @@ export type ProductCountOutputType = {
|
||||
salesInvoiceItems: number
|
||||
stockAdjustments: number
|
||||
stockMovements: number
|
||||
stockBalances: number
|
||||
}
|
||||
|
||||
export type ProductCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
@@ -1650,6 +1802,7 @@ export type ProductCountOutputTypeSelect<ExtArgs extends runtime.Types.Extension
|
||||
salesInvoiceItems?: boolean | ProductCountOutputTypeCountSalesInvoiceItemsArgs
|
||||
stockAdjustments?: boolean | ProductCountOutputTypeCountStockAdjustmentsArgs
|
||||
stockMovements?: boolean | ProductCountOutputTypeCountStockMovementsArgs
|
||||
stockBalances?: boolean | ProductCountOutputTypeCountStockBalancesArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1711,6 +1864,13 @@ export type ProductCountOutputTypeCountStockMovementsArgs<ExtArgs extends runtim
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* ProductCountOutputType without action
|
||||
*/
|
||||
export type ProductCountOutputTypeCountStockBalancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.StockBalanceWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type ProductSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -1732,6 +1892,7 @@ export type ProductSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
salesInvoiceItems?: boolean | Prisma.Product$salesInvoiceItemsArgs<ExtArgs>
|
||||
stockAdjustments?: boolean | Prisma.Product$stockAdjustmentsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Product$stockMovementsArgs<ExtArgs>
|
||||
stockBalances?: boolean | Prisma.Product$stockBalancesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ProductCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["product"]>
|
||||
|
||||
@@ -1761,6 +1922,7 @@ export type ProductInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
salesInvoiceItems?: boolean | Prisma.Product$salesInvoiceItemsArgs<ExtArgs>
|
||||
stockAdjustments?: boolean | Prisma.Product$stockAdjustmentsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Product$stockMovementsArgs<ExtArgs>
|
||||
stockBalances?: boolean | Prisma.Product$stockBalancesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ProductCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -1776,6 +1938,7 @@ export type $ProductPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
salesInvoiceItems: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
|
||||
stockAdjustments: Prisma.$StockAdjustmentPayload<ExtArgs>[]
|
||||
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
|
||||
stockBalances: Prisma.$StockBalancePayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -2137,6 +2300,7 @@ export interface Prisma__ProductClient<T, Null = never, ExtArgs extends runtime.
|
||||
salesInvoiceItems<T extends Prisma.Product$salesInvoiceItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$salesInvoiceItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockAdjustments<T extends Prisma.Product$stockAdjustmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$stockAdjustmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockAdjustmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockMovements<T extends Prisma.Product$stockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$stockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockBalances<T extends Prisma.Product$stockBalancesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$stockBalancesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockBalancePayload<ExtArgs>, 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.
|
||||
@@ -2724,6 +2888,30 @@ export type Product$stockMovementsArgs<ExtArgs extends runtime.Types.Extensions.
|
||||
distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Product.stockBalances
|
||||
*/
|
||||
export type Product$stockBalancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockBalance
|
||||
*/
|
||||
select?: Prisma.StockBalanceSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
where?: Prisma.StockBalanceWhereInput
|
||||
orderBy?: Prisma.StockBalanceOrderByWithRelationInput | Prisma.StockBalanceOrderByWithRelationInput[]
|
||||
cursor?: Prisma.StockBalanceWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.StockBalanceScalarFieldEnum | Prisma.StockBalanceScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Product without action
|
||||
*/
|
||||
|
||||
@@ -27,81 +27,107 @@ export type AggregateStockBalance = {
|
||||
}
|
||||
|
||||
export type StockBalanceAvgAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
ProductId: number | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockBalanceSumAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
ProductId: number | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockBalanceMinAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
updatedAt: Date | null
|
||||
ProductId: number | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
}
|
||||
|
||||
export type StockBalanceMaxAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
updatedAt: Date | null
|
||||
ProductId: number | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
}
|
||||
|
||||
export type StockBalanceCountAggregateOutputType = {
|
||||
id: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity: number
|
||||
totalCost: number
|
||||
updatedAt: number
|
||||
ProductId: number
|
||||
avgCost: number
|
||||
totalCost: number
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type StockBalanceAvgAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
totalCost?: true
|
||||
ProductId?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
}
|
||||
|
||||
export type StockBalanceSumAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
totalCost?: true
|
||||
ProductId?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
}
|
||||
|
||||
export type StockBalanceMinAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
totalCost?: true
|
||||
updatedAt?: true
|
||||
ProductId?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
}
|
||||
|
||||
export type StockBalanceMaxAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
totalCost?: true
|
||||
updatedAt?: true
|
||||
ProductId?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
}
|
||||
|
||||
export type StockBalanceCountAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
totalCost?: true
|
||||
updatedAt?: true
|
||||
ProductId?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -192,11 +218,14 @@ export type StockBalanceGroupByArgs<ExtArgs extends runtime.Types.Extensions.Int
|
||||
}
|
||||
|
||||
export type StockBalanceGroupByOutputType = {
|
||||
id: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
updatedAt: Date
|
||||
ProductId: number
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
_count: StockBalanceCountAggregateOutputType | null
|
||||
_avg: StockBalanceAvgAggregateOutputType | null
|
||||
_sum: StockBalanceSumAggregateOutputType | null
|
||||
@@ -223,38 +252,57 @@ export type StockBalanceWhereInput = {
|
||||
AND?: Prisma.StockBalanceWhereInput | Prisma.StockBalanceWhereInput[]
|
||||
OR?: Prisma.StockBalanceWhereInput[]
|
||||
NOT?: Prisma.StockBalanceWhereInput | Prisma.StockBalanceWhereInput[]
|
||||
id?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
quantity?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
ProductId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
}
|
||||
|
||||
export type StockBalanceOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
ProductId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
inventory?: Prisma.InventoryOrderByWithRelationInput
|
||||
}
|
||||
|
||||
export type StockBalanceWhereUniqueInput = Prisma.AtLeast<{
|
||||
ProductId?: number
|
||||
id?: number
|
||||
productId_inventoryId?: Prisma.StockBalanceProductIdInventoryIdCompoundUniqueInput
|
||||
AND?: Prisma.StockBalanceWhereInput | Prisma.StockBalanceWhereInput[]
|
||||
OR?: Prisma.StockBalanceWhereInput[]
|
||||
NOT?: Prisma.StockBalanceWhereInput | Prisma.StockBalanceWhereInput[]
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
quantity?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}, "ProductId">
|
||||
totalCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
}, "id" | "productId_inventoryId">
|
||||
|
||||
export type StockBalanceOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
ProductId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
_count?: Prisma.StockBalanceCountOrderByAggregateInput
|
||||
_avg?: Prisma.StockBalanceAvgOrderByAggregateInput
|
||||
_max?: Prisma.StockBalanceMaxOrderByAggregateInput
|
||||
@@ -266,138 +314,469 @@ export type StockBalanceScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.StockBalanceScalarWhereWithAggregatesInput | Prisma.StockBalanceScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.StockBalanceScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.StockBalanceScalarWhereWithAggregatesInput | Prisma.StockBalanceScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
quantity?: Prisma.DecimalWithAggregatesFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalWithAggregatesFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StockBalance"> | Date | string
|
||||
ProductId?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
avgCost?: Prisma.DecimalWithAggregatesFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalWithAggregatesFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"StockBalance"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StockBalance"> | Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceCreateInput = {
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
ProductId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockBalancesInput
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockBalancesInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateInput = {
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
id?: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
ProductId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
ProductId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
ProductId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyInput = {
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
id?: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
ProductId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyMutationInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
ProductId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
ProductId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceListRelationFilter = {
|
||||
every?: Prisma.StockBalanceWhereInput
|
||||
some?: Prisma.StockBalanceWhereInput
|
||||
none?: Prisma.StockBalanceWhereInput
|
||||
}
|
||||
|
||||
export type StockBalanceOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceProductIdInventoryIdCompoundUniqueInput = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
}
|
||||
|
||||
export type StockBalanceCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
ProductId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceAvgOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
ProductId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
ProductId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
ProductId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
ProductId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
delete?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
update?: Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput | Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
delete?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
update?: Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput | Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceCreateNestedManyWithoutInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutInventoryInput, Prisma.StockBalanceUncheckedCreateWithoutInventoryInput> | Prisma.StockBalanceCreateWithoutInventoryInput[] | Prisma.StockBalanceUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutInventoryInput | Prisma.StockBalanceCreateOrConnectWithoutInventoryInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyInventoryInputEnvelope
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateNestedManyWithoutInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutInventoryInput, Prisma.StockBalanceUncheckedCreateWithoutInventoryInput> | Prisma.StockBalanceCreateWithoutInventoryInput[] | Prisma.StockBalanceUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutInventoryInput | Prisma.StockBalanceCreateOrConnectWithoutInventoryInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyInventoryInputEnvelope
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyWithoutInventoryNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutInventoryInput, Prisma.StockBalanceUncheckedCreateWithoutInventoryInput> | Prisma.StockBalanceCreateWithoutInventoryInput[] | Prisma.StockBalanceUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutInventoryInput | Prisma.StockBalanceCreateOrConnectWithoutInventoryInput[]
|
||||
upsert?: Prisma.StockBalanceUpsertWithWhereUniqueWithoutInventoryInput | Prisma.StockBalanceUpsertWithWhereUniqueWithoutInventoryInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyInventoryInputEnvelope
|
||||
set?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
delete?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
update?: Prisma.StockBalanceUpdateWithWhereUniqueWithoutInventoryInput | Prisma.StockBalanceUpdateWithWhereUniqueWithoutInventoryInput[]
|
||||
updateMany?: Prisma.StockBalanceUpdateManyWithWhereWithoutInventoryInput | Prisma.StockBalanceUpdateManyWithWhereWithoutInventoryInput[]
|
||||
deleteMany?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutInventoryInput, Prisma.StockBalanceUncheckedCreateWithoutInventoryInput> | Prisma.StockBalanceCreateWithoutInventoryInput[] | Prisma.StockBalanceUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutInventoryInput | Prisma.StockBalanceCreateOrConnectWithoutInventoryInput[]
|
||||
upsert?: Prisma.StockBalanceUpsertWithWhereUniqueWithoutInventoryInput | Prisma.StockBalanceUpsertWithWhereUniqueWithoutInventoryInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyInventoryInputEnvelope
|
||||
set?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
delete?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
update?: Prisma.StockBalanceUpdateWithWhereUniqueWithoutInventoryInput | Prisma.StockBalanceUpdateWithWhereUniqueWithoutInventoryInput[]
|
||||
updateMany?: Prisma.StockBalanceUpdateManyWithWhereWithoutInventoryInput | Prisma.StockBalanceUpdateManyWithWhereWithoutInventoryInput[]
|
||||
deleteMany?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceCreateWithoutProductInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockBalancesInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateWithoutProductInput = {
|
||||
id?: number
|
||||
inventoryId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyProductInputEnvelope = {
|
||||
data: Prisma.StockBalanceCreateManyProductInput | Prisma.StockBalanceCreateManyProductInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockBalanceUpsertWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockBalanceUpdateWithoutProductInput, Prisma.StockBalanceUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateWithoutProductInput, Prisma.StockBalanceUncheckedUpdateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyWithWhereWithoutProductInput = {
|
||||
where: Prisma.StockBalanceScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateManyMutationInput, Prisma.StockBalanceUncheckedUpdateManyWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceScalarWhereInput = {
|
||||
AND?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
OR?: Prisma.StockBalanceScalarWhereInput[]
|
||||
NOT?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
quantity?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceCreateWithoutInventoryInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockBalancesInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateWithoutInventoryInput = {
|
||||
id?: number
|
||||
productId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceCreateOrConnectWithoutInventoryInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutInventoryInput, Prisma.StockBalanceUncheckedCreateWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyInventoryInputEnvelope = {
|
||||
data: Prisma.StockBalanceCreateManyInventoryInput | Prisma.StockBalanceCreateManyInventoryInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockBalanceUpsertWithWhereUniqueWithoutInventoryInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockBalanceUpdateWithoutInventoryInput, Prisma.StockBalanceUncheckedUpdateWithoutInventoryInput>
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutInventoryInput, Prisma.StockBalanceUncheckedCreateWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithWhereUniqueWithoutInventoryInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateWithoutInventoryInput, Prisma.StockBalanceUncheckedUpdateWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyWithWhereWithoutInventoryInput = {
|
||||
where: Prisma.StockBalanceScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateManyMutationInput, Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyProductInput = {
|
||||
id?: number
|
||||
inventoryId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithoutProductInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyInventoryInput = {
|
||||
id?: number
|
||||
productId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithoutInventoryInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateWithoutInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyWithoutInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type StockBalanceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
quantity?: boolean
|
||||
totalCost?: boolean
|
||||
updatedAt?: boolean
|
||||
ProductId?: boolean
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["stockBalance"]>
|
||||
|
||||
|
||||
|
||||
export type StockBalanceSelectScalar = {
|
||||
id?: boolean
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
quantity?: boolean
|
||||
totalCost?: boolean
|
||||
updatedAt?: boolean
|
||||
ProductId?: boolean
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
}
|
||||
|
||||
export type StockBalanceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"quantity" | "totalCost" | "updatedAt" | "ProductId" | "avgCost", ExtArgs["result"]["stockBalance"]>
|
||||
export type StockBalanceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "productId" | "inventoryId" | "quantity" | "avgCost" | "totalCost" | "createdAt" | "updatedAt", ExtArgs["result"]["stockBalance"]>
|
||||
export type StockBalanceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $StockBalancePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "StockBalance"
|
||||
objects: {}
|
||||
objects: {
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
inventory: Prisma.$InventoryPayload<ExtArgs>
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
updatedAt: Date
|
||||
ProductId: number
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
}, ExtArgs["result"]["stockBalance"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -481,8 +860,8 @@ export interface StockBalanceDelegate<ExtArgs extends runtime.Types.Extensions.I
|
||||
* // Get first 10 StockBalances
|
||||
* const stockBalances = await prisma.stockBalance.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `quantity`
|
||||
* const stockBalanceWithQuantityOnly = await prisma.stockBalance.findMany({ select: { quantity: true } })
|
||||
* // Only select the `id`
|
||||
* const stockBalanceWithIdOnly = await prisma.stockBalance.findMany({ select: { id: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends StockBalanceFindManyArgs>(args?: Prisma.SelectSubset<T, StockBalanceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockBalancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
@@ -738,6 +1117,8 @@ readonly fields: StockBalanceFieldRefs;
|
||||
*/
|
||||
export interface Prisma__StockBalanceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
inventory<T extends Prisma.InventoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InventoryDefaultArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, 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.
|
||||
@@ -767,11 +1148,14 @@ export interface Prisma__StockBalanceClient<T, Null = never, ExtArgs extends run
|
||||
* Fields of the StockBalance model
|
||||
*/
|
||||
export interface StockBalanceFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly productId: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly inventoryId: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly quantity: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly totalCost: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly updatedAt: Prisma.FieldRef<"StockBalance", 'DateTime'>
|
||||
readonly ProductId: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly avgCost: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly totalCost: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly createdAt: Prisma.FieldRef<"StockBalance", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"StockBalance", 'DateTime'>
|
||||
}
|
||||
|
||||
|
||||
@@ -788,6 +1172,10 @@ export type StockBalanceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockBalance to fetch.
|
||||
*/
|
||||
@@ -806,6 +1194,10 @@ export type StockBalanceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Exte
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockBalance to fetch.
|
||||
*/
|
||||
@@ -824,6 +1216,10 @@ export type StockBalanceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.I
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockBalance to fetch.
|
||||
*/
|
||||
@@ -872,6 +1268,10 @@ export type StockBalanceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Exten
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockBalance to fetch.
|
||||
*/
|
||||
@@ -920,6 +1320,10 @@ export type StockBalanceFindManyArgs<ExtArgs extends runtime.Types.Extensions.In
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockBalances to fetch.
|
||||
*/
|
||||
@@ -963,6 +1367,10 @@ export type StockBalanceCreateArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
/**
|
||||
* The data needed to create a StockBalance.
|
||||
*/
|
||||
@@ -992,6 +1400,10 @@ export type StockBalanceUpdateArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
/**
|
||||
* The data needed to update a StockBalance.
|
||||
*/
|
||||
@@ -1032,6 +1444,10 @@ export type StockBalanceUpsertArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
/**
|
||||
* The filter to search for the StockBalance to update in case it exists.
|
||||
*/
|
||||
@@ -1058,6 +1474,10 @@ export type StockBalanceDeleteArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter which StockBalance to delete.
|
||||
*/
|
||||
@@ -1090,4 +1510,8 @@ export type StockBalanceDefaultArgs<ExtArgs extends runtime.Types.Extensions.Int
|
||||
* Omit specific fields from the StockBalance
|
||||
*/
|
||||
omit?: Prisma.StockBalanceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockBalanceInclude<ExtArgs> | null
|
||||
}
|
||||
|
||||
@@ -34,6 +34,8 @@ export type StockMovementAvgAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
avgCost: runtime.Decimal | null
|
||||
remainedInStock: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
}
|
||||
|
||||
export type StockMovementSumAggregateOutputType = {
|
||||
@@ -44,6 +46,8 @@ export type StockMovementSumAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
avgCost: runtime.Decimal | null
|
||||
remainedInStock: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
}
|
||||
|
||||
export type StockMovementMinAggregateOutputType = {
|
||||
@@ -58,6 +62,8 @@ export type StockMovementMinAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
avgCost: runtime.Decimal | null
|
||||
remainedInStock: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
}
|
||||
|
||||
export type StockMovementMaxAggregateOutputType = {
|
||||
@@ -72,6 +78,8 @@ export type StockMovementMaxAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
avgCost: runtime.Decimal | null
|
||||
remainedInStock: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCountAggregateOutputType = {
|
||||
@@ -86,6 +94,8 @@ export type StockMovementCountAggregateOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: number
|
||||
remainedInStock: number
|
||||
supplierId: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -98,6 +108,8 @@ export type StockMovementAvgAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
}
|
||||
|
||||
export type StockMovementSumAggregateInputType = {
|
||||
@@ -108,6 +120,8 @@ export type StockMovementSumAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
}
|
||||
|
||||
export type StockMovementMinAggregateInputType = {
|
||||
@@ -122,6 +136,8 @@ export type StockMovementMinAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
}
|
||||
|
||||
export type StockMovementMaxAggregateInputType = {
|
||||
@@ -136,6 +152,8 @@ export type StockMovementMaxAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
}
|
||||
|
||||
export type StockMovementCountAggregateInputType = {
|
||||
@@ -150,6 +168,8 @@ export type StockMovementCountAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -251,6 +271,8 @@ export type StockMovementGroupByOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal
|
||||
remainedInStock: runtime.Decimal
|
||||
supplierId: number | null
|
||||
_count: StockMovementCountAggregateOutputType | null
|
||||
_avg: StockMovementAvgAggregateOutputType | null
|
||||
_sum: StockMovementSumAggregateOutputType | null
|
||||
@@ -288,8 +310,11 @@ export type StockMovementWhereInput = {
|
||||
productId?: Prisma.IntFilter<"StockMovement"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockMovement"> | number
|
||||
avgCost?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
supplier?: Prisma.XOR<Prisma.SupplierNullableScalarRelationFilter, Prisma.SupplierWhereInput> | null
|
||||
}
|
||||
|
||||
export type StockMovementOrderByWithRelationInput = {
|
||||
@@ -304,8 +329,11 @@ export type StockMovementOrderByWithRelationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
inventory?: Prisma.InventoryOrderByWithRelationInput
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
supplier?: Prisma.SupplierOrderByWithRelationInput
|
||||
_relevance?: Prisma.StockMovementOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -324,8 +352,11 @@ export type StockMovementWhereUniqueInput = Prisma.AtLeast<{
|
||||
productId?: Prisma.IntFilter<"StockMovement"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockMovement"> | number
|
||||
avgCost?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
supplier?: Prisma.XOR<Prisma.SupplierNullableScalarRelationFilter, Prisma.SupplierWhereInput> | null
|
||||
}, "id">
|
||||
|
||||
export type StockMovementOrderByWithAggregationInput = {
|
||||
@@ -340,6 +371,8 @@ export type StockMovementOrderByWithAggregationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.StockMovementCountOrderByAggregateInput
|
||||
_avg?: Prisma.StockMovementAvgOrderByAggregateInput
|
||||
_max?: Prisma.StockMovementMaxOrderByAggregateInput
|
||||
@@ -362,6 +395,8 @@ export type StockMovementScalarWhereWithAggregatesInput = {
|
||||
productId?: Prisma.IntWithAggregatesFilter<"StockMovement"> | number
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"StockMovement"> | number
|
||||
avgCost?: Prisma.DecimalWithAggregatesFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalWithAggregatesFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.IntNullableWithAggregatesFilter<"StockMovement"> | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateInput = {
|
||||
@@ -373,8 +408,10 @@ export type StockMovementCreateInput = {
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockMovementsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockMovementsInput
|
||||
supplier?: Prisma.SupplierCreateNestedOneWithoutStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateInput = {
|
||||
@@ -389,6 +426,8 @@ export type StockMovementUncheckedCreateInput = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateInput = {
|
||||
@@ -400,8 +439,10 @@ export type StockMovementUpdateInput = {
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneWithoutStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateInput = {
|
||||
@@ -416,6 +457,8 @@ export type StockMovementUncheckedUpdateInput = {
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateManyInput = {
|
||||
@@ -430,6 +473,8 @@ export type StockMovementCreateManyInput = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateManyMutationInput = {
|
||||
@@ -441,6 +486,7 @@ export type StockMovementUpdateManyMutationInput = {
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyInput = {
|
||||
@@ -455,6 +501,8 @@ export type StockMovementUncheckedUpdateManyInput = {
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementListRelationFilter = {
|
||||
@@ -485,6 +533,8 @@ export type StockMovementCountOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementAvgOrderByAggregateInput = {
|
||||
@@ -495,6 +545,8 @@ export type StockMovementAvgOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementMaxOrderByAggregateInput = {
|
||||
@@ -509,6 +561,8 @@ export type StockMovementMaxOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementMinOrderByAggregateInput = {
|
||||
@@ -523,6 +577,8 @@ export type StockMovementMinOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementSumOrderByAggregateInput = {
|
||||
@@ -533,6 +589,8 @@ export type StockMovementSumOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementCreateNestedManyWithoutProductInput = {
|
||||
@@ -577,6 +635,48 @@ export type StockMovementUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockMovementCreateNestedManyWithoutSupplierInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutSupplierInput, Prisma.StockMovementUncheckedCreateWithoutSupplierInput> | Prisma.StockMovementCreateWithoutSupplierInput[] | Prisma.StockMovementUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutSupplierInput | Prisma.StockMovementCreateOrConnectWithoutSupplierInput[]
|
||||
createMany?: Prisma.StockMovementCreateManySupplierInputEnvelope
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateNestedManyWithoutSupplierInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutSupplierInput, Prisma.StockMovementUncheckedCreateWithoutSupplierInput> | Prisma.StockMovementCreateWithoutSupplierInput[] | Prisma.StockMovementUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutSupplierInput | Prisma.StockMovementCreateOrConnectWithoutSupplierInput[]
|
||||
createMany?: Prisma.StockMovementCreateManySupplierInputEnvelope
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUpdateManyWithoutSupplierNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutSupplierInput, Prisma.StockMovementUncheckedCreateWithoutSupplierInput> | Prisma.StockMovementCreateWithoutSupplierInput[] | Prisma.StockMovementUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutSupplierInput | Prisma.StockMovementCreateOrConnectWithoutSupplierInput[]
|
||||
upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutSupplierInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutSupplierInput[]
|
||||
createMany?: Prisma.StockMovementCreateManySupplierInputEnvelope
|
||||
set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutSupplierInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutSupplierInput[]
|
||||
updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutSupplierInput | Prisma.StockMovementUpdateManyWithWhereWithoutSupplierInput[]
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutSupplierNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutSupplierInput, Prisma.StockMovementUncheckedCreateWithoutSupplierInput> | Prisma.StockMovementCreateWithoutSupplierInput[] | Prisma.StockMovementUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutSupplierInput | Prisma.StockMovementCreateOrConnectWithoutSupplierInput[]
|
||||
upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutSupplierInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutSupplierInput[]
|
||||
createMany?: Prisma.StockMovementCreateManySupplierInputEnvelope
|
||||
set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutSupplierInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutSupplierInput[]
|
||||
updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutSupplierInput | Prisma.StockMovementUpdateManyWithWhereWithoutSupplierInput[]
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockMovementCreateNestedManyWithoutInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutInventoryInput, Prisma.StockMovementUncheckedCreateWithoutInventoryInput> | Prisma.StockMovementCreateWithoutInventoryInput[] | Prisma.StockMovementUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutInventoryInput | Prisma.StockMovementCreateOrConnectWithoutInventoryInput[]
|
||||
@@ -636,7 +736,9 @@ export type StockMovementCreateWithoutProductInput = {
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockMovementsInput
|
||||
supplier?: Prisma.SupplierCreateNestedOneWithoutStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateWithoutProductInput = {
|
||||
@@ -650,6 +752,8 @@ export type StockMovementUncheckedCreateWithoutProductInput = {
|
||||
createdAt?: Date | string
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateOrConnectWithoutProductInput = {
|
||||
@@ -693,6 +797,63 @@ export type StockMovementScalarWhereInput = {
|
||||
productId?: Prisma.IntFilter<"StockMovement"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockMovement"> | number
|
||||
avgCost?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateWithoutSupplierInput = {
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType: $Enums.MovementReferenceType
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockMovementsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateWithoutSupplierInput = {
|
||||
id?: number
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType: $Enums.MovementReferenceType
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockMovementCreateOrConnectWithoutSupplierInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockMovementCreateWithoutSupplierInput, Prisma.StockMovementUncheckedCreateWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type StockMovementCreateManySupplierInputEnvelope = {
|
||||
data: Prisma.StockMovementCreateManySupplierInput | Prisma.StockMovementCreateManySupplierInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockMovementUpsertWithWhereUniqueWithoutSupplierInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockMovementUpdateWithoutSupplierInput, Prisma.StockMovementUncheckedUpdateWithoutSupplierInput>
|
||||
create: Prisma.XOR<Prisma.StockMovementCreateWithoutSupplierInput, Prisma.StockMovementUncheckedCreateWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithWhereUniqueWithoutSupplierInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockMovementUpdateWithoutSupplierInput, Prisma.StockMovementUncheckedUpdateWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type StockMovementUpdateManyWithWhereWithoutSupplierInput = {
|
||||
where: Prisma.StockMovementScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type StockMovementCreateWithoutInventoryInput = {
|
||||
@@ -704,7 +865,9 @@ export type StockMovementCreateWithoutInventoryInput = {
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockMovementsInput
|
||||
supplier?: Prisma.SupplierCreateNestedOneWithoutStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateWithoutInventoryInput = {
|
||||
@@ -718,6 +881,8 @@ export type StockMovementUncheckedCreateWithoutInventoryInput = {
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateOrConnectWithoutInventoryInput = {
|
||||
@@ -757,6 +922,8 @@ export type StockMovementCreateManyProductInput = {
|
||||
createdAt?: Date | string
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithoutProductInput = {
|
||||
@@ -768,7 +935,9 @@ export type StockMovementUpdateWithoutProductInput = {
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneWithoutStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateWithoutProductInput = {
|
||||
@@ -782,6 +951,8 @@ export type StockMovementUncheckedUpdateWithoutProductInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutProductInput = {
|
||||
@@ -795,6 +966,67 @@ export type StockMovementUncheckedUpdateManyWithoutProductInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateManySupplierInput = {
|
||||
id?: number
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType: $Enums.MovementReferenceType
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithoutSupplierInput = {
|
||||
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType?: Prisma.EnumMovementReferenceTypeFieldUpdateOperationsInput | $Enums.MovementReferenceType
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateWithoutSupplierInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType?: Prisma.EnumMovementReferenceTypeFieldUpdateOperationsInput | $Enums.MovementReferenceType
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutSupplierInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType?: Prisma.EnumMovementReferenceTypeFieldUpdateOperationsInput | $Enums.MovementReferenceType
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockMovementCreateManyInventoryInput = {
|
||||
@@ -808,6 +1040,8 @@ export type StockMovementCreateManyInventoryInput = {
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithoutInventoryInput = {
|
||||
@@ -819,7 +1053,9 @@ export type StockMovementUpdateWithoutInventoryInput = {
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneWithoutStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateWithoutInventoryInput = {
|
||||
@@ -833,6 +1069,8 @@ export type StockMovementUncheckedUpdateWithoutInventoryInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutInventoryInput = {
|
||||
@@ -846,6 +1084,8 @@ export type StockMovementUncheckedUpdateManyWithoutInventoryInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
|
||||
@@ -862,8 +1102,11 @@ export type StockMovementSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
avgCost?: boolean
|
||||
remainedInStock?: boolean
|
||||
supplierId?: boolean
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
supplier?: boolean | Prisma.StockMovement$supplierArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["stockMovement"]>
|
||||
|
||||
|
||||
@@ -880,12 +1123,15 @@ export type StockMovementSelectScalar = {
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
avgCost?: boolean
|
||||
remainedInStock?: boolean
|
||||
supplierId?: boolean
|
||||
}
|
||||
|
||||
export type StockMovementOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "type" | "quantity" | "fee" | "totalCost" | "referenceType" | "referenceId" | "createdAt" | "productId" | "inventoryId" | "avgCost", ExtArgs["result"]["stockMovement"]>
|
||||
export type StockMovementOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "type" | "quantity" | "fee" | "totalCost" | "referenceType" | "referenceId" | "createdAt" | "productId" | "inventoryId" | "avgCost" | "remainedInStock" | "supplierId", ExtArgs["result"]["stockMovement"]>
|
||||
export type StockMovementInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
supplier?: boolean | Prisma.StockMovement$supplierArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $StockMovementPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
@@ -893,6 +1139,7 @@ export type $StockMovementPayload<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
objects: {
|
||||
inventory: Prisma.$InventoryPayload<ExtArgs>
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
supplier: Prisma.$SupplierPayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -906,6 +1153,8 @@ export type $StockMovementPayload<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal
|
||||
remainedInStock: runtime.Decimal
|
||||
supplierId: number | null
|
||||
}, ExtArgs["result"]["stockMovement"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -1248,6 +1497,7 @@ export interface Prisma__StockMovementClient<T, Null = never, ExtArgs extends ru
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
inventory<T extends Prisma.InventoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InventoryDefaultArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
supplier<T extends Prisma.StockMovement$supplierArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StockMovement$supplierArgs<ExtArgs>>): Prisma.Prisma__SupplierClient<runtime.Types.Result.GetResult<Prisma.$SupplierPayload<ExtArgs>, 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.
|
||||
@@ -1288,6 +1538,8 @@ export interface StockMovementFieldRefs {
|
||||
readonly productId: Prisma.FieldRef<"StockMovement", 'Int'>
|
||||
readonly inventoryId: Prisma.FieldRef<"StockMovement", 'Int'>
|
||||
readonly avgCost: Prisma.FieldRef<"StockMovement", 'Decimal'>
|
||||
readonly remainedInStock: Prisma.FieldRef<"StockMovement", 'Decimal'>
|
||||
readonly supplierId: Prisma.FieldRef<"StockMovement", 'Int'>
|
||||
}
|
||||
|
||||
|
||||
@@ -1630,6 +1882,25 @@ export type StockMovementDeleteManyArgs<ExtArgs extends runtime.Types.Extensions
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* StockMovement.supplier
|
||||
*/
|
||||
export type StockMovement$supplierArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Supplier
|
||||
*/
|
||||
select?: Prisma.SupplierSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
where?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* StockMovement without action
|
||||
*/
|
||||
|
||||
@@ -282,6 +282,7 @@ export type SupplierWhereInput = {
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeListRelationFilter
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
}
|
||||
|
||||
export type SupplierOrderByWithRelationInput = {
|
||||
@@ -300,6 +301,7 @@ export type SupplierOrderByWithRelationInput = {
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
productCharges?: Prisma.ProductChargeOrderByRelationAggregateInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptOrderByRelationAggregateInput
|
||||
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.SupplierOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -322,6 +324,7 @@ export type SupplierWhereUniqueInput = Prisma.AtLeast<{
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeListRelationFilter
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
}, "id" | "mobileNumber">
|
||||
|
||||
export type SupplierOrderByWithAggregationInput = {
|
||||
@@ -379,6 +382,7 @@ export type SupplierCreateInput = {
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateInput = {
|
||||
@@ -397,6 +401,7 @@ export type SupplierUncheckedCreateInput = {
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateInput = {
|
||||
@@ -414,6 +419,7 @@ export type SupplierUpdateInput = {
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateInput = {
|
||||
@@ -432,6 +438,7 @@ export type SupplierUncheckedUpdateInput = {
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierCreateManyInput = {
|
||||
@@ -548,6 +555,11 @@ export type SupplierScalarRelationFilter = {
|
||||
isNot?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
export type SupplierNullableScalarRelationFilter = {
|
||||
is?: Prisma.SupplierWhereInput | null
|
||||
isNot?: Prisma.SupplierWhereInput | null
|
||||
}
|
||||
|
||||
export type SupplierCreateNestedOneWithoutProductChargesInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutProductChargesInput, Prisma.SupplierUncheckedCreateWithoutProductChargesInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutProductChargesInput
|
||||
@@ -576,6 +588,22 @@ export type SupplierUpdateOneRequiredWithoutPurchaseReceiptsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SupplierUpdateToOneWithWhereWithoutPurchaseReceiptsInput, Prisma.SupplierUpdateWithoutPurchaseReceiptsInput>, Prisma.SupplierUncheckedUpdateWithoutPurchaseReceiptsInput>
|
||||
}
|
||||
|
||||
export type SupplierCreateNestedOneWithoutStockMovementsInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutStockMovementsInput, Prisma.SupplierUncheckedCreateWithoutStockMovementsInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutStockMovementsInput
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateOneWithoutStockMovementsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutStockMovementsInput, Prisma.SupplierUncheckedCreateWithoutStockMovementsInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutStockMovementsInput
|
||||
upsert?: Prisma.SupplierUpsertWithoutStockMovementsInput
|
||||
disconnect?: Prisma.SupplierWhereInput | boolean
|
||||
delete?: Prisma.SupplierWhereInput | boolean
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SupplierUpdateToOneWithWhereWithoutStockMovementsInput, Prisma.SupplierUpdateWithoutStockMovementsInput>, Prisma.SupplierUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type SupplierCreateWithoutProductChargesInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
@@ -590,6 +618,7 @@ export type SupplierCreateWithoutProductChargesInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateWithoutProductChargesInput = {
|
||||
@@ -607,6 +636,7 @@ export type SupplierUncheckedCreateWithoutProductChargesInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierCreateOrConnectWithoutProductChargesInput = {
|
||||
@@ -639,6 +669,7 @@ export type SupplierUpdateWithoutProductChargesInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateWithoutProductChargesInput = {
|
||||
@@ -656,6 +687,7 @@ export type SupplierUncheckedUpdateWithoutProductChargesInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierCreateWithoutPurchaseReceiptsInput = {
|
||||
@@ -672,6 +704,7 @@ export type SupplierCreateWithoutPurchaseReceiptsInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateWithoutPurchaseReceiptsInput = {
|
||||
@@ -689,6 +722,7 @@ export type SupplierUncheckedCreateWithoutPurchaseReceiptsInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierCreateOrConnectWithoutPurchaseReceiptsInput = {
|
||||
@@ -721,6 +755,7 @@ export type SupplierUpdateWithoutPurchaseReceiptsInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
@@ -738,6 +773,93 @@ export type SupplierUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierCreateWithoutStockMovementsInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateWithoutStockMovementsInput = {
|
||||
id?: number
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierCreateOrConnectWithoutStockMovementsInput = {
|
||||
where: Prisma.SupplierWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutStockMovementsInput, Prisma.SupplierUncheckedCreateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type SupplierUpsertWithoutStockMovementsInput = {
|
||||
update: Prisma.XOR<Prisma.SupplierUpdateWithoutStockMovementsInput, Prisma.SupplierUncheckedUpdateWithoutStockMovementsInput>
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutStockMovementsInput, Prisma.SupplierUncheckedCreateWithoutStockMovementsInput>
|
||||
where?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateToOneWithWhereWithoutStockMovementsInput = {
|
||||
where?: Prisma.SupplierWhereInput
|
||||
data: Prisma.XOR<Prisma.SupplierUpdateWithoutStockMovementsInput, Prisma.SupplierUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type SupplierUpdateWithoutStockMovementsInput = {
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateWithoutStockMovementsInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -748,11 +870,13 @@ export type SupplierUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
export type SupplierCountOutputType = {
|
||||
productCharges: number
|
||||
purchaseReceipts: number
|
||||
stockMovements: number
|
||||
}
|
||||
|
||||
export type SupplierCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productCharges?: boolean | SupplierCountOutputTypeCountProductChargesArgs
|
||||
purchaseReceipts?: boolean | SupplierCountOutputTypeCountPurchaseReceiptsArgs
|
||||
stockMovements?: boolean | SupplierCountOutputTypeCountStockMovementsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -779,6 +903,13 @@ export type SupplierCountOutputTypeCountPurchaseReceiptsArgs<ExtArgs extends run
|
||||
where?: Prisma.PurchaseReceiptWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* SupplierCountOutputType without action
|
||||
*/
|
||||
export type SupplierCountOutputTypeCountStockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type SupplierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -796,6 +927,7 @@ export type SupplierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
deletedAt?: boolean
|
||||
productCharges?: boolean | Prisma.Supplier$productChargesArgs<ExtArgs>
|
||||
purchaseReceipts?: boolean | Prisma.Supplier$purchaseReceiptsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Supplier$stockMovementsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SupplierCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["supplier"]>
|
||||
|
||||
@@ -821,6 +953,7 @@ export type SupplierOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
export type SupplierInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productCharges?: boolean | Prisma.Supplier$productChargesArgs<ExtArgs>
|
||||
purchaseReceipts?: boolean | Prisma.Supplier$purchaseReceiptsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Supplier$stockMovementsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SupplierCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -829,6 +962,7 @@ export type $SupplierPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
objects: {
|
||||
productCharges: Prisma.$ProductChargePayload<ExtArgs>[]
|
||||
purchaseReceipts: Prisma.$PurchaseReceiptPayload<ExtArgs>[]
|
||||
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -1186,6 +1320,7 @@ export interface Prisma__SupplierClient<T, Null = never, ExtArgs extends runtime
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
productCharges<T extends Prisma.Supplier$productChargesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$productChargesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
purchaseReceipts<T extends Prisma.Supplier$purchaseReceiptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$purchaseReceiptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockMovements<T extends Prisma.Supplier$stockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$stockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, 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.
|
||||
@@ -1618,6 +1753,30 @@ export type Supplier$purchaseReceiptsArgs<ExtArgs extends runtime.Types.Extensio
|
||||
distinct?: Prisma.PurchaseReceiptScalarFieldEnum | Prisma.PurchaseReceiptScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier.stockMovements
|
||||
*/
|
||||
export type Supplier$stockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockMovement
|
||||
*/
|
||||
select?: Prisma.StockMovementSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockMovement
|
||||
*/
|
||||
omit?: Prisma.StockMovementOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockMovementInclude<ExtArgs> | null
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[]
|
||||
cursor?: Prisma.StockMovementWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier without action
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user