Add SQL query for average cost retrieval and generate TriggerLog model
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user