feat: implement bank accounts, branches, and banks modules with CRUD operations
- Added BankAccountsController, BankAccountsService, and related DTOs for managing bank accounts. - Implemented BankBranchesController, BankBranchesService, and related DTOs for managing bank branches. - Created BanksController and BanksService for retrieving bank information. - Integrated Prisma for database operations across all modules. - Added response mapping for consistent API responses.
This commit is contained in:
@@ -27,107 +27,107 @@ export type AggregateStockBalance = {
|
||||
}
|
||||
|
||||
export type StockBalanceAvgAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
inventoryId: number | null
|
||||
productId: number | null
|
||||
id: number | null
|
||||
}
|
||||
|
||||
export type StockBalanceSumAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
inventoryId: number | null
|
||||
productId: number | null
|
||||
id: number | null
|
||||
}
|
||||
|
||||
export type StockBalanceMinAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
avgCost: runtime.Decimal | null
|
||||
inventoryId: number | null
|
||||
productId: number | null
|
||||
createdAt: Date | null
|
||||
id: number | null
|
||||
}
|
||||
|
||||
export type StockBalanceMaxAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
avgCost: runtime.Decimal | null
|
||||
inventoryId: number | null
|
||||
productId: number | null
|
||||
createdAt: Date | null
|
||||
id: number | null
|
||||
}
|
||||
|
||||
export type StockBalanceCountAggregateOutputType = {
|
||||
id: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity: number
|
||||
avgCost: number
|
||||
totalCost: number
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
avgCost: number
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt: number
|
||||
id: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type StockBalanceAvgAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
id?: true
|
||||
}
|
||||
|
||||
export type StockBalanceSumAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
id?: true
|
||||
}
|
||||
|
||||
export type StockBalanceMinAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
createdAt?: true
|
||||
id?: true
|
||||
}
|
||||
|
||||
export type StockBalanceMaxAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
createdAt?: true
|
||||
id?: true
|
||||
}
|
||||
|
||||
export type StockBalanceCountAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
createdAt?: true
|
||||
id?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -218,14 +218,14 @@ export type StockBalanceGroupByArgs<ExtArgs extends runtime.Types.Extensions.Int
|
||||
}
|
||||
|
||||
export type StockBalanceGroupByOutputType = {
|
||||
id: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity: runtime.Decimal
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
avgCost: runtime.Decimal
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt: Date
|
||||
id: number
|
||||
_count: StockBalanceCountAggregateOutputType | null
|
||||
_avg: StockBalanceAvgAggregateOutputType | null
|
||||
_sum: StockBalanceSumAggregateOutputType | null
|
||||
@@ -252,29 +252,29 @@ 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
|
||||
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>
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
id?: Prisma.IntFilter<"StockBalance"> | number
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
}
|
||||
|
||||
export type StockBalanceOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
inventory?: Prisma.InventoryOrderByWithRelationInput
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
}
|
||||
|
||||
export type StockBalanceWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -283,26 +283,26 @@ export type StockBalanceWhereUniqueInput = Prisma.AtLeast<{
|
||||
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
|
||||
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>
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
}, "id" | "productId_inventoryId">
|
||||
|
||||
export type StockBalanceOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
_count?: Prisma.StockBalanceCountOrderByAggregateInput
|
||||
_avg?: Prisma.StockBalanceAvgOrderByAggregateInput
|
||||
_max?: Prisma.StockBalanceMaxOrderByAggregateInput
|
||||
@@ -314,86 +314,86 @@ 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
|
||||
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
|
||||
avgCost?: Prisma.DecimalWithAggregatesFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"StockBalance"> | Date | string
|
||||
id?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
}
|
||||
|
||||
export type StockBalanceCreateInput = {
|
||||
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
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockBalancesInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockBalancesInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateInput = {
|
||||
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
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateInput = {
|
||||
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
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: 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
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyInput = {
|
||||
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
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyMutationInput = {
|
||||
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
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: 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
|
||||
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
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockBalanceListRelationFilter = {
|
||||
@@ -412,96 +412,54 @@ export type StockBalanceProductIdInventoryIdCompoundUniqueInput = {
|
||||
}
|
||||
|
||||
export type StockBalanceCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceAvgOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: 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[]
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceCreateNestedManyWithoutInventoryInput = {
|
||||
@@ -546,82 +504,65 @@ export type StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||||
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 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 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 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 StockBalanceCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput>
|
||||
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 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 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 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
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: 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
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceCreateOrConnectWithoutInventoryInput = {
|
||||
@@ -650,133 +591,192 @@ export type StockBalanceUpdateManyWithWhereWithoutInventoryInput = {
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateManyMutationInput, Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyProductInput = {
|
||||
id?: number
|
||||
inventoryId: number
|
||||
export type StockBalanceScalarWhereInput = {
|
||||
AND?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
OR?: Prisma.StockBalanceScalarWhereInput[]
|
||||
NOT?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
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
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
id?: Prisma.IntFilter<"StockBalance"> | number
|
||||
}
|
||||
|
||||
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
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockBalancesInput
|
||||
}
|
||||
|
||||
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 StockBalanceUncheckedCreateWithoutProductInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
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 StockBalanceCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
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 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 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
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
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
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: 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
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
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
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyProductInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithoutProductInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateWithoutProductInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyWithoutProductInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
|
||||
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
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
avgCost?: boolean
|
||||
inventoryId?: boolean
|
||||
productId?: boolean
|
||||
createdAt?: boolean
|
||||
id?: boolean
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["stockBalance"]>
|
||||
|
||||
|
||||
|
||||
export type StockBalanceSelectScalar = {
|
||||
id?: boolean
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
quantity?: boolean
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
avgCost?: boolean
|
||||
inventoryId?: boolean
|
||||
productId?: boolean
|
||||
createdAt?: boolean
|
||||
id?: boolean
|
||||
}
|
||||
|
||||
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 StockBalanceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"quantity" | "totalCost" | "updatedAt" | "avgCost" | "inventoryId" | "productId" | "createdAt" | "id", 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>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $StockBalancePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "StockBalance"
|
||||
objects: {
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
inventory: Prisma.$InventoryPayload<ExtArgs>
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity: runtime.Decimal
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
avgCost: runtime.Decimal
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt: Date
|
||||
id: number
|
||||
}, ExtArgs["result"]["stockBalance"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -860,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 `id`
|
||||
* const stockBalanceWithIdOnly = await prisma.stockBalance.findMany({ select: { id: true } })
|
||||
* // Only select the `quantity`
|
||||
* const stockBalanceWithQuantityOnly = await prisma.stockBalance.findMany({ select: { quantity: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends StockBalanceFindManyArgs>(args?: Prisma.SelectSubset<T, StockBalanceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockBalancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
@@ -1117,8 +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>
|
||||
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>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1148,14 +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 avgCost: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly totalCost: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly createdAt: Prisma.FieldRef<"StockBalance", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"StockBalance", 'DateTime'>
|
||||
readonly avgCost: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly inventoryId: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly productId: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly createdAt: Prisma.FieldRef<"StockBalance", 'DateTime'>
|
||||
readonly id: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user