feat: implement POS order management system
- Added CreateOrderDto and CreateOrderItemDto for order creation. - Developed PosOrdersController to handle order-related endpoints. - Created PosOrdersService for business logic related to orders. - Implemented PosOrdersWorkflow for order processing workflows. - Established Prisma integration for database operations in orders. - Introduced SalesInvoicesModule and related DTOs for sales invoice management. - Enhanced SalesInvoicesService and SalesInvoicesWorkflow for invoice processing.
This commit is contained in:
@@ -182,3 +182,8 @@ export type Supplier = Prisma.SupplierModel
|
||||
*
|
||||
*/
|
||||
export type SupplierLedger = Prisma.SupplierLedgerModel
|
||||
/**
|
||||
* Model StockAvailableView
|
||||
*
|
||||
*/
|
||||
export type StockAvailableView = Prisma.StockAvailableViewModel
|
||||
|
||||
@@ -202,3 +202,8 @@ export type Supplier = Prisma.SupplierModel
|
||||
*
|
||||
*/
|
||||
export type SupplierLedger = Prisma.SupplierLedgerModel
|
||||
/**
|
||||
* Model StockAvailableView
|
||||
*
|
||||
*/
|
||||
export type StockAvailableView = Prisma.StockAvailableViewModel
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -416,7 +416,8 @@ export const ModelName = {
|
||||
StockAdjustment: 'StockAdjustment',
|
||||
StockReservation: 'StockReservation',
|
||||
Supplier: 'Supplier',
|
||||
SupplierLedger: 'SupplierLedger'
|
||||
SupplierLedger: 'SupplierLedger',
|
||||
StockAvailableView: 'StockAvailableView'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -432,7 +433,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "role" | "otpCode" | "refreshToken" | "bankBranch" | "bankAccount" | "bankAccountTransaction" | "inventory" | "inventoryBankAccount" | "posAccount" | "inventoryTransfer" | "inventoryTransferItem" | "bank" | "order" | "orderItem" | "customer" | "triggerLog" | "productVariant" | "product" | "productBrand" | "productCategory" | "purchaseReceipt" | "purchaseReceiptItem" | "purchaseReceiptPayments" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "stockMovement" | "stockBalance" | "stockAdjustment" | "stockReservation" | "supplier" | "supplierLedger"
|
||||
modelProps: "user" | "role" | "otpCode" | "refreshToken" | "bankBranch" | "bankAccount" | "bankAccountTransaction" | "inventory" | "inventoryBankAccount" | "posAccount" | "inventoryTransfer" | "inventoryTransferItem" | "bank" | "order" | "orderItem" | "customer" | "triggerLog" | "productVariant" | "product" | "productBrand" | "productCategory" | "purchaseReceipt" | "purchaseReceiptItem" | "purchaseReceiptPayments" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "stockMovement" | "stockBalance" | "stockAdjustment" | "stockReservation" | "supplier" | "supplierLedger" | "stockAvailableView"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -2614,6 +2615,36 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
StockAvailableView: {
|
||||
payload: Prisma.$StockAvailableViewPayload<ExtArgs>
|
||||
fields: Prisma.StockAvailableViewFieldRefs
|
||||
operations: {
|
||||
findFirst: {
|
||||
args: Prisma.StockAvailableViewFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$StockAvailableViewPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.StockAvailableViewFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$StockAvailableViewPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.StockAvailableViewFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$StockAvailableViewPayload>[]
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.StockAvailableViewAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateStockAvailableView>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.StockAvailableViewGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.StockAvailableViewGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.StockAvailableViewCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.StockAvailableViewCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} & {
|
||||
other: {
|
||||
@@ -2829,7 +2860,8 @@ export const OrderScalarFieldEnum = {
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
customerId: 'customerId'
|
||||
customerId: 'customerId',
|
||||
posAccountId: 'posAccountId'
|
||||
} as const
|
||||
|
||||
export type OrderScalarFieldEnum = (typeof OrderScalarFieldEnum)[keyof typeof OrderScalarFieldEnum]
|
||||
@@ -3078,7 +3110,6 @@ export type StockAdjustmentScalarFieldEnum = (typeof StockAdjustmentScalarFieldE
|
||||
export const StockReservationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
quantity: 'quantity',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt',
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
@@ -3122,6 +3153,17 @@ export const SupplierLedgerScalarFieldEnum = {
|
||||
export type SupplierLedgerScalarFieldEnum = (typeof SupplierLedgerScalarFieldEnum)[keyof typeof SupplierLedgerScalarFieldEnum]
|
||||
|
||||
|
||||
export const StockAvailableViewScalarFieldEnum = {
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
physicalQuantity: 'physicalQuantity',
|
||||
reservedQuantity: 'reservedQuantity',
|
||||
availableQuantity: 'availableQuantity'
|
||||
} as const
|
||||
|
||||
export type StockAvailableViewScalarFieldEnum = (typeof StockAvailableViewScalarFieldEnum)[keyof typeof StockAvailableViewScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -3634,6 +3676,7 @@ export type GlobalOmitConfig = {
|
||||
stockReservation?: Prisma.StockReservationOmit
|
||||
supplier?: Prisma.SupplierOmit
|
||||
supplierLedger?: Prisma.SupplierLedgerOmit
|
||||
stockAvailableView?: Prisma.StockAvailableViewOmit
|
||||
}
|
||||
|
||||
/* Types for Logging */
|
||||
|
||||
@@ -83,7 +83,8 @@ export const ModelName = {
|
||||
StockAdjustment: 'StockAdjustment',
|
||||
StockReservation: 'StockReservation',
|
||||
Supplier: 'Supplier',
|
||||
SupplierLedger: 'SupplierLedger'
|
||||
SupplierLedger: 'SupplierLedger',
|
||||
StockAvailableView: 'StockAvailableView'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -278,7 +279,8 @@ export const OrderScalarFieldEnum = {
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
customerId: 'customerId'
|
||||
customerId: 'customerId',
|
||||
posAccountId: 'posAccountId'
|
||||
} as const
|
||||
|
||||
export type OrderScalarFieldEnum = (typeof OrderScalarFieldEnum)[keyof typeof OrderScalarFieldEnum]
|
||||
@@ -527,7 +529,6 @@ export type StockAdjustmentScalarFieldEnum = (typeof StockAdjustmentScalarFieldE
|
||||
export const StockReservationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
quantity: 'quantity',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt',
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
@@ -571,6 +572,17 @@ export const SupplierLedgerScalarFieldEnum = {
|
||||
export type SupplierLedgerScalarFieldEnum = (typeof SupplierLedgerScalarFieldEnum)[keyof typeof SupplierLedgerScalarFieldEnum]
|
||||
|
||||
|
||||
export const StockAvailableViewScalarFieldEnum = {
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
physicalQuantity: 'physicalQuantity',
|
||||
reservedQuantity: 'reservedQuantity',
|
||||
availableQuantity: 'availableQuantity'
|
||||
} as const
|
||||
|
||||
export type StockAvailableViewScalarFieldEnum = (typeof StockAvailableViewScalarFieldEnum)[keyof typeof StockAvailableViewScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
|
||||
@@ -41,4 +41,5 @@ export type * from './models/StockAdjustment.js'
|
||||
export type * from './models/StockReservation.js'
|
||||
export type * from './models/Supplier.js'
|
||||
export type * from './models/SupplierLedger.js'
|
||||
export type * from './models/StockAvailableView.js'
|
||||
export type * from './commonInputTypes.js'
|
||||
@@ -30,12 +30,14 @@ export type OrderAvgAggregateOutputType = {
|
||||
id: number | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
customerId: number | null
|
||||
posAccountId: number | null
|
||||
}
|
||||
|
||||
export type OrderSumAggregateOutputType = {
|
||||
id: number | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
customerId: number | null
|
||||
posAccountId: number | null
|
||||
}
|
||||
|
||||
export type OrderMinAggregateOutputType = {
|
||||
@@ -48,6 +50,7 @@ export type OrderMinAggregateOutputType = {
|
||||
updatedAt: Date | null
|
||||
deletedAt: Date | null
|
||||
customerId: number | null
|
||||
posAccountId: number | null
|
||||
}
|
||||
|
||||
export type OrderMaxAggregateOutputType = {
|
||||
@@ -60,6 +63,7 @@ export type OrderMaxAggregateOutputType = {
|
||||
updatedAt: Date | null
|
||||
deletedAt: Date | null
|
||||
customerId: number | null
|
||||
posAccountId: number | null
|
||||
}
|
||||
|
||||
export type OrderCountAggregateOutputType = {
|
||||
@@ -72,6 +76,7 @@ export type OrderCountAggregateOutputType = {
|
||||
updatedAt: number
|
||||
deletedAt: number
|
||||
customerId: number
|
||||
posAccountId: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -80,12 +85,14 @@ export type OrderAvgAggregateInputType = {
|
||||
id?: true
|
||||
totalAmount?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
}
|
||||
|
||||
export type OrderSumAggregateInputType = {
|
||||
id?: true
|
||||
totalAmount?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
}
|
||||
|
||||
export type OrderMinAggregateInputType = {
|
||||
@@ -98,6 +105,7 @@ export type OrderMinAggregateInputType = {
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
}
|
||||
|
||||
export type OrderMaxAggregateInputType = {
|
||||
@@ -110,6 +118,7 @@ export type OrderMaxAggregateInputType = {
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
}
|
||||
|
||||
export type OrderCountAggregateInputType = {
|
||||
@@ -122,6 +131,7 @@ export type OrderCountAggregateInputType = {
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -221,6 +231,7 @@ export type OrderGroupByOutputType = {
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
customerId: number | null
|
||||
posAccountId: number
|
||||
_count: OrderCountAggregateOutputType | null
|
||||
_avg: OrderAvgAggregateOutputType | null
|
||||
_sum: OrderSumAggregateOutputType | null
|
||||
@@ -256,8 +267,11 @@ export type OrderWhereInput = {
|
||||
updatedAt?: Prisma.DateTimeFilter<"Order"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Order"> | Date | string | null
|
||||
customerId?: Prisma.IntNullableFilter<"Order"> | number | null
|
||||
posAccountId?: Prisma.IntFilter<"Order"> | number
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
posAccount?: Prisma.XOR<Prisma.PosAccountScalarRelationFilter, Prisma.PosAccountWhereInput>
|
||||
orderItems?: Prisma.OrderItemListRelationFilter
|
||||
stockReservations?: Prisma.StockReservationListRelationFilter
|
||||
}
|
||||
|
||||
export type OrderOrderByWithRelationInput = {
|
||||
@@ -270,8 +284,11 @@ export type OrderOrderByWithRelationInput = {
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
customer?: Prisma.CustomerOrderByWithRelationInput
|
||||
posAccount?: Prisma.PosAccountOrderByWithRelationInput
|
||||
orderItems?: Prisma.OrderItemOrderByRelationAggregateInput
|
||||
stockReservations?: Prisma.StockReservationOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.OrderOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -288,8 +305,11 @@ export type OrderWhereUniqueInput = Prisma.AtLeast<{
|
||||
updatedAt?: Prisma.DateTimeFilter<"Order"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Order"> | Date | string | null
|
||||
customerId?: Prisma.IntNullableFilter<"Order"> | number | null
|
||||
posAccountId?: Prisma.IntFilter<"Order"> | number
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
posAccount?: Prisma.XOR<Prisma.PosAccountScalarRelationFilter, Prisma.PosAccountWhereInput>
|
||||
orderItems?: Prisma.OrderItemListRelationFilter
|
||||
stockReservations?: Prisma.StockReservationListRelationFilter
|
||||
}, "id" | "orderNumber">
|
||||
|
||||
export type OrderOrderByWithAggregationInput = {
|
||||
@@ -302,6 +322,7 @@ export type OrderOrderByWithAggregationInput = {
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
_count?: Prisma.OrderCountOrderByAggregateInput
|
||||
_avg?: Prisma.OrderAvgOrderByAggregateInput
|
||||
_max?: Prisma.OrderMaxOrderByAggregateInput
|
||||
@@ -322,6 +343,7 @@ export type OrderScalarWhereWithAggregatesInput = {
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Order"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Order"> | Date | string | null
|
||||
customerId?: Prisma.IntNullableWithAggregatesFilter<"Order"> | number | null
|
||||
posAccountId?: Prisma.IntWithAggregatesFilter<"Order"> | number
|
||||
}
|
||||
|
||||
export type OrderCreateInput = {
|
||||
@@ -333,7 +355,9 @@ export type OrderCreateInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutOrdersInput
|
||||
posAccount: Prisma.PosAccountCreateNestedOneWithoutOrdersInput
|
||||
orderItems?: Prisma.OrderItemCreateNestedManyWithoutOrderInput
|
||||
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedCreateInput = {
|
||||
@@ -346,7 +370,9 @@ export type OrderUncheckedCreateInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customerId?: number | null
|
||||
posAccountId: number
|
||||
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutOrderInput
|
||||
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderUpdateInput = {
|
||||
@@ -358,7 +384,9 @@ export type OrderUpdateInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customer?: Prisma.CustomerUpdateOneWithoutOrdersNestedInput
|
||||
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutOrdersNestedInput
|
||||
orderItems?: Prisma.OrderItemUpdateManyWithoutOrderNestedInput
|
||||
stockReservations?: Prisma.StockReservationUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedUpdateInput = {
|
||||
@@ -371,7 +399,9 @@ export type OrderUncheckedUpdateInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutOrderNestedInput
|
||||
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderCreateManyInput = {
|
||||
@@ -384,6 +414,7 @@ export type OrderCreateManyInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customerId?: number | null
|
||||
posAccountId: number
|
||||
}
|
||||
|
||||
export type OrderUpdateManyMutationInput = {
|
||||
@@ -406,6 +437,17 @@ export type OrderUncheckedUpdateManyInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type OrderListRelationFilter = {
|
||||
every?: Prisma.OrderWhereInput
|
||||
some?: Prisma.OrderWhereInput
|
||||
none?: Prisma.OrderWhereInput
|
||||
}
|
||||
|
||||
export type OrderOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type OrderOrderByRelevanceInput = {
|
||||
@@ -424,12 +466,14 @@ export type OrderCountOrderByAggregateInput = {
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type OrderAvgOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type OrderMaxOrderByAggregateInput = {
|
||||
@@ -442,6 +486,7 @@ export type OrderMaxOrderByAggregateInput = {
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type OrderMinOrderByAggregateInput = {
|
||||
@@ -454,12 +499,14 @@ export type OrderMinOrderByAggregateInput = {
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type OrderSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type OrderScalarRelationFilter = {
|
||||
@@ -467,14 +514,46 @@ export type OrderScalarRelationFilter = {
|
||||
isNot?: Prisma.OrderWhereInput
|
||||
}
|
||||
|
||||
export type OrderListRelationFilter = {
|
||||
every?: Prisma.OrderWhereInput
|
||||
some?: Prisma.OrderWhereInput
|
||||
none?: Prisma.OrderWhereInput
|
||||
export type OrderCreateNestedManyWithoutPosAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.OrderCreateWithoutPosAccountInput, Prisma.OrderUncheckedCreateWithoutPosAccountInput> | Prisma.OrderCreateWithoutPosAccountInput[] | Prisma.OrderUncheckedCreateWithoutPosAccountInput[]
|
||||
connectOrCreate?: Prisma.OrderCreateOrConnectWithoutPosAccountInput | Prisma.OrderCreateOrConnectWithoutPosAccountInput[]
|
||||
createMany?: Prisma.OrderCreateManyPosAccountInputEnvelope
|
||||
connect?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type OrderOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
export type OrderUncheckedCreateNestedManyWithoutPosAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.OrderCreateWithoutPosAccountInput, Prisma.OrderUncheckedCreateWithoutPosAccountInput> | Prisma.OrderCreateWithoutPosAccountInput[] | Prisma.OrderUncheckedCreateWithoutPosAccountInput[]
|
||||
connectOrCreate?: Prisma.OrderCreateOrConnectWithoutPosAccountInput | Prisma.OrderCreateOrConnectWithoutPosAccountInput[]
|
||||
createMany?: Prisma.OrderCreateManyPosAccountInputEnvelope
|
||||
connect?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type OrderUpdateManyWithoutPosAccountNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.OrderCreateWithoutPosAccountInput, Prisma.OrderUncheckedCreateWithoutPosAccountInput> | Prisma.OrderCreateWithoutPosAccountInput[] | Prisma.OrderUncheckedCreateWithoutPosAccountInput[]
|
||||
connectOrCreate?: Prisma.OrderCreateOrConnectWithoutPosAccountInput | Prisma.OrderCreateOrConnectWithoutPosAccountInput[]
|
||||
upsert?: Prisma.OrderUpsertWithWhereUniqueWithoutPosAccountInput | Prisma.OrderUpsertWithWhereUniqueWithoutPosAccountInput[]
|
||||
createMany?: Prisma.OrderCreateManyPosAccountInputEnvelope
|
||||
set?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
disconnect?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
delete?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
connect?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
update?: Prisma.OrderUpdateWithWhereUniqueWithoutPosAccountInput | Prisma.OrderUpdateWithWhereUniqueWithoutPosAccountInput[]
|
||||
updateMany?: Prisma.OrderUpdateManyWithWhereWithoutPosAccountInput | Prisma.OrderUpdateManyWithWhereWithoutPosAccountInput[]
|
||||
deleteMany?: Prisma.OrderScalarWhereInput | Prisma.OrderScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type OrderUncheckedUpdateManyWithoutPosAccountNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.OrderCreateWithoutPosAccountInput, Prisma.OrderUncheckedCreateWithoutPosAccountInput> | Prisma.OrderCreateWithoutPosAccountInput[] | Prisma.OrderUncheckedCreateWithoutPosAccountInput[]
|
||||
connectOrCreate?: Prisma.OrderCreateOrConnectWithoutPosAccountInput | Prisma.OrderCreateOrConnectWithoutPosAccountInput[]
|
||||
upsert?: Prisma.OrderUpsertWithWhereUniqueWithoutPosAccountInput | Prisma.OrderUpsertWithWhereUniqueWithoutPosAccountInput[]
|
||||
createMany?: Prisma.OrderCreateManyPosAccountInputEnvelope
|
||||
set?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
disconnect?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
delete?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
connect?: Prisma.OrderWhereUniqueInput | Prisma.OrderWhereUniqueInput[]
|
||||
update?: Prisma.OrderUpdateWithWhereUniqueWithoutPosAccountInput | Prisma.OrderUpdateWithWhereUniqueWithoutPosAccountInput[]
|
||||
updateMany?: Prisma.OrderUpdateManyWithWhereWithoutPosAccountInput | Prisma.OrderUpdateManyWithWhereWithoutPosAccountInput[]
|
||||
deleteMany?: Prisma.OrderScalarWhereInput | Prisma.OrderScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type EnumOrderStatusFieldUpdateOperationsInput = {
|
||||
@@ -545,6 +624,89 @@ export type OrderUncheckedUpdateManyWithoutCustomerNestedInput = {
|
||||
deleteMany?: Prisma.OrderScalarWhereInput | Prisma.OrderScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type OrderCreateNestedOneWithoutStockReservationsInput = {
|
||||
create?: Prisma.XOR<Prisma.OrderCreateWithoutStockReservationsInput, Prisma.OrderUncheckedCreateWithoutStockReservationsInput>
|
||||
connectOrCreate?: Prisma.OrderCreateOrConnectWithoutStockReservationsInput
|
||||
connect?: Prisma.OrderWhereUniqueInput
|
||||
}
|
||||
|
||||
export type OrderUpdateOneRequiredWithoutStockReservationsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.OrderCreateWithoutStockReservationsInput, Prisma.OrderUncheckedCreateWithoutStockReservationsInput>
|
||||
connectOrCreate?: Prisma.OrderCreateOrConnectWithoutStockReservationsInput
|
||||
upsert?: Prisma.OrderUpsertWithoutStockReservationsInput
|
||||
connect?: Prisma.OrderWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.OrderUpdateToOneWithWhereWithoutStockReservationsInput, Prisma.OrderUpdateWithoutStockReservationsInput>, Prisma.OrderUncheckedUpdateWithoutStockReservationsInput>
|
||||
}
|
||||
|
||||
export type OrderCreateWithoutPosAccountInput = {
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutOrdersInput
|
||||
orderItems?: Prisma.OrderItemCreateNestedManyWithoutOrderInput
|
||||
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedCreateWithoutPosAccountInput = {
|
||||
id?: number
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customerId?: number | null
|
||||
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutOrderInput
|
||||
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderCreateOrConnectWithoutPosAccountInput = {
|
||||
where: Prisma.OrderWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.OrderCreateWithoutPosAccountInput, Prisma.OrderUncheckedCreateWithoutPosAccountInput>
|
||||
}
|
||||
|
||||
export type OrderCreateManyPosAccountInputEnvelope = {
|
||||
data: Prisma.OrderCreateManyPosAccountInput | Prisma.OrderCreateManyPosAccountInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type OrderUpsertWithWhereUniqueWithoutPosAccountInput = {
|
||||
where: Prisma.OrderWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.OrderUpdateWithoutPosAccountInput, Prisma.OrderUncheckedUpdateWithoutPosAccountInput>
|
||||
create: Prisma.XOR<Prisma.OrderCreateWithoutPosAccountInput, Prisma.OrderUncheckedCreateWithoutPosAccountInput>
|
||||
}
|
||||
|
||||
export type OrderUpdateWithWhereUniqueWithoutPosAccountInput = {
|
||||
where: Prisma.OrderWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.OrderUpdateWithoutPosAccountInput, Prisma.OrderUncheckedUpdateWithoutPosAccountInput>
|
||||
}
|
||||
|
||||
export type OrderUpdateManyWithWhereWithoutPosAccountInput = {
|
||||
where: Prisma.OrderScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.OrderUpdateManyMutationInput, Prisma.OrderUncheckedUpdateManyWithoutPosAccountInput>
|
||||
}
|
||||
|
||||
export type OrderScalarWhereInput = {
|
||||
AND?: Prisma.OrderScalarWhereInput | Prisma.OrderScalarWhereInput[]
|
||||
OR?: Prisma.OrderScalarWhereInput[]
|
||||
NOT?: Prisma.OrderScalarWhereInput | Prisma.OrderScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"Order"> | number
|
||||
orderNumber?: Prisma.StringFilter<"Order"> | string
|
||||
status?: Prisma.EnumOrderStatusFilter<"Order"> | $Enums.OrderStatus
|
||||
totalAmount?: Prisma.DecimalFilter<"Order"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"Order"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"Order"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Order"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Order"> | Date | string | null
|
||||
customerId?: Prisma.IntNullableFilter<"Order"> | number | null
|
||||
posAccountId?: Prisma.IntFilter<"Order"> | number
|
||||
}
|
||||
|
||||
export type OrderCreateWithoutOrderItemsInput = {
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
@@ -554,6 +716,8 @@ export type OrderCreateWithoutOrderItemsInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutOrdersInput
|
||||
posAccount: Prisma.PosAccountCreateNestedOneWithoutOrdersInput
|
||||
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedCreateWithoutOrderItemsInput = {
|
||||
@@ -566,6 +730,8 @@ export type OrderUncheckedCreateWithoutOrderItemsInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customerId?: number | null
|
||||
posAccountId: number
|
||||
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderCreateOrConnectWithoutOrderItemsInput = {
|
||||
@@ -593,6 +759,8 @@ export type OrderUpdateWithoutOrderItemsInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customer?: Prisma.CustomerUpdateOneWithoutOrdersNestedInput
|
||||
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutOrdersNestedInput
|
||||
stockReservations?: Prisma.StockReservationUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedUpdateWithoutOrderItemsInput = {
|
||||
@@ -605,6 +773,8 @@ export type OrderUncheckedUpdateWithoutOrderItemsInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderCreateWithoutCustomerInput = {
|
||||
@@ -615,7 +785,9 @@ export type OrderCreateWithoutCustomerInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
posAccount: Prisma.PosAccountCreateNestedOneWithoutOrdersInput
|
||||
orderItems?: Prisma.OrderItemCreateNestedManyWithoutOrderInput
|
||||
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedCreateWithoutCustomerInput = {
|
||||
@@ -627,7 +799,9 @@ export type OrderUncheckedCreateWithoutCustomerInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
posAccountId: number
|
||||
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutOrderInput
|
||||
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderCreateOrConnectWithoutCustomerInput = {
|
||||
@@ -656,19 +830,125 @@ export type OrderUpdateManyWithWhereWithoutCustomerInput = {
|
||||
data: Prisma.XOR<Prisma.OrderUpdateManyMutationInput, Prisma.OrderUncheckedUpdateManyWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type OrderScalarWhereInput = {
|
||||
AND?: Prisma.OrderScalarWhereInput | Prisma.OrderScalarWhereInput[]
|
||||
OR?: Prisma.OrderScalarWhereInput[]
|
||||
NOT?: Prisma.OrderScalarWhereInput | Prisma.OrderScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"Order"> | number
|
||||
orderNumber?: Prisma.StringFilter<"Order"> | string
|
||||
status?: Prisma.EnumOrderStatusFilter<"Order"> | $Enums.OrderStatus
|
||||
totalAmount?: Prisma.DecimalFilter<"Order"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"Order"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"Order"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Order"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Order"> | Date | string | null
|
||||
customerId?: Prisma.IntNullableFilter<"Order"> | number | null
|
||||
export type OrderCreateWithoutStockReservationsInput = {
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutOrdersInput
|
||||
posAccount: Prisma.PosAccountCreateNestedOneWithoutOrdersInput
|
||||
orderItems?: Prisma.OrderItemCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedCreateWithoutStockReservationsInput = {
|
||||
id?: number
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customerId?: number | null
|
||||
posAccountId: number
|
||||
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutOrderInput
|
||||
}
|
||||
|
||||
export type OrderCreateOrConnectWithoutStockReservationsInput = {
|
||||
where: Prisma.OrderWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.OrderCreateWithoutStockReservationsInput, Prisma.OrderUncheckedCreateWithoutStockReservationsInput>
|
||||
}
|
||||
|
||||
export type OrderUpsertWithoutStockReservationsInput = {
|
||||
update: Prisma.XOR<Prisma.OrderUpdateWithoutStockReservationsInput, Prisma.OrderUncheckedUpdateWithoutStockReservationsInput>
|
||||
create: Prisma.XOR<Prisma.OrderCreateWithoutStockReservationsInput, Prisma.OrderUncheckedCreateWithoutStockReservationsInput>
|
||||
where?: Prisma.OrderWhereInput
|
||||
}
|
||||
|
||||
export type OrderUpdateToOneWithWhereWithoutStockReservationsInput = {
|
||||
where?: Prisma.OrderWhereInput
|
||||
data: Prisma.XOR<Prisma.OrderUpdateWithoutStockReservationsInput, Prisma.OrderUncheckedUpdateWithoutStockReservationsInput>
|
||||
}
|
||||
|
||||
export type OrderUpdateWithoutStockReservationsInput = {
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customer?: Prisma.CustomerUpdateOneWithoutOrdersNestedInput
|
||||
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutOrdersNestedInput
|
||||
orderItems?: Prisma.OrderItemUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedUpdateWithoutStockReservationsInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderCreateManyPosAccountInput = {
|
||||
id?: number
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
customerId?: number | null
|
||||
}
|
||||
|
||||
export type OrderUpdateWithoutPosAccountInput = {
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customer?: Prisma.CustomerUpdateOneWithoutOrdersNestedInput
|
||||
orderItems?: Prisma.OrderItemUpdateManyWithoutOrderNestedInput
|
||||
stockReservations?: Prisma.StockReservationUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedUpdateWithoutPosAccountInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutOrderNestedInput
|
||||
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedUpdateManyWithoutPosAccountInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type OrderCreateManyCustomerInput = {
|
||||
@@ -680,6 +960,7 @@ export type OrderCreateManyCustomerInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
posAccountId: number
|
||||
}
|
||||
|
||||
export type OrderUpdateWithoutCustomerInput = {
|
||||
@@ -690,7 +971,9 @@ export type OrderUpdateWithoutCustomerInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutOrdersNestedInput
|
||||
orderItems?: Prisma.OrderItemUpdateManyWithoutOrderNestedInput
|
||||
stockReservations?: Prisma.StockReservationUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedUpdateWithoutCustomerInput = {
|
||||
@@ -702,7 +985,9 @@ export type OrderUncheckedUpdateWithoutCustomerInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutOrderNestedInput
|
||||
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutOrderNestedInput
|
||||
}
|
||||
|
||||
export type OrderUncheckedUpdateManyWithoutCustomerInput = {
|
||||
@@ -714,6 +999,7 @@ export type OrderUncheckedUpdateManyWithoutCustomerInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
@@ -723,10 +1009,12 @@ export type OrderUncheckedUpdateManyWithoutCustomerInput = {
|
||||
|
||||
export type OrderCountOutputType = {
|
||||
orderItems: number
|
||||
stockReservations: number
|
||||
}
|
||||
|
||||
export type OrderCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
orderItems?: boolean | OrderCountOutputTypeCountOrderItemsArgs
|
||||
stockReservations?: boolean | OrderCountOutputTypeCountStockReservationsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -746,6 +1034,13 @@ export type OrderCountOutputTypeCountOrderItemsArgs<ExtArgs extends runtime.Type
|
||||
where?: Prisma.OrderItemWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* OrderCountOutputType without action
|
||||
*/
|
||||
export type OrderCountOutputTypeCountStockReservationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.StockReservationWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type OrderSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -757,8 +1052,11 @@ export type OrderSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
customerId?: boolean
|
||||
posAccountId?: boolean
|
||||
customer?: boolean | Prisma.Order$customerArgs<ExtArgs>
|
||||
posAccount?: boolean | Prisma.PosAccountDefaultArgs<ExtArgs>
|
||||
orderItems?: boolean | Prisma.Order$orderItemsArgs<ExtArgs>
|
||||
stockReservations?: boolean | Prisma.Order$stockReservationsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.OrderCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["order"]>
|
||||
|
||||
@@ -774,12 +1072,15 @@ export type OrderSelectScalar = {
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
customerId?: boolean
|
||||
posAccountId?: boolean
|
||||
}
|
||||
|
||||
export type OrderOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "orderNumber" | "status" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "deletedAt" | "customerId", ExtArgs["result"]["order"]>
|
||||
export type OrderOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "orderNumber" | "status" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "deletedAt" | "customerId" | "posAccountId", ExtArgs["result"]["order"]>
|
||||
export type OrderInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
customer?: boolean | Prisma.Order$customerArgs<ExtArgs>
|
||||
posAccount?: boolean | Prisma.PosAccountDefaultArgs<ExtArgs>
|
||||
orderItems?: boolean | Prisma.Order$orderItemsArgs<ExtArgs>
|
||||
stockReservations?: boolean | Prisma.Order$stockReservationsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.OrderCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -787,7 +1088,9 @@ export type $OrderPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
name: "Order"
|
||||
objects: {
|
||||
customer: Prisma.$CustomerPayload<ExtArgs> | null
|
||||
posAccount: Prisma.$PosAccountPayload<ExtArgs>
|
||||
orderItems: Prisma.$OrderItemPayload<ExtArgs>[]
|
||||
stockReservations: Prisma.$StockReservationPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -799,6 +1102,7 @@ export type $OrderPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
customerId: number | null
|
||||
posAccountId: number
|
||||
}, ExtArgs["result"]["order"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -1140,7 +1444,9 @@ readonly fields: OrderFieldRefs;
|
||||
export interface Prisma__OrderClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
customer<T extends Prisma.Order$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Order$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
posAccount<T extends Prisma.PosAccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PosAccountDefaultArgs<ExtArgs>>): Prisma.Prisma__PosAccountClient<runtime.Types.Result.GetResult<Prisma.$PosAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
orderItems<T extends Prisma.Order$orderItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Order$orderItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockReservations<T extends Prisma.Order$stockReservationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Order$stockReservationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockReservationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1179,6 +1485,7 @@ export interface OrderFieldRefs {
|
||||
readonly updatedAt: Prisma.FieldRef<"Order", 'DateTime'>
|
||||
readonly deletedAt: Prisma.FieldRef<"Order", 'DateTime'>
|
||||
readonly customerId: Prisma.FieldRef<"Order", 'Int'>
|
||||
readonly posAccountId: Prisma.FieldRef<"Order", 'Int'>
|
||||
}
|
||||
|
||||
|
||||
@@ -1564,6 +1871,30 @@ export type Order$orderItemsArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
distinct?: Prisma.OrderItemScalarFieldEnum | Prisma.OrderItemScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Order.stockReservations
|
||||
*/
|
||||
export type Order$stockReservationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockReservation
|
||||
*/
|
||||
select?: Prisma.StockReservationSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockReservation
|
||||
*/
|
||||
omit?: Prisma.StockReservationOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockReservationInclude<ExtArgs> | null
|
||||
where?: Prisma.StockReservationWhereInput
|
||||
orderBy?: Prisma.StockReservationOrderByWithRelationInput | Prisma.StockReservationOrderByWithRelationInput[]
|
||||
cursor?: Prisma.StockReservationWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.StockReservationScalarFieldEnum | Prisma.StockReservationScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Order without action
|
||||
*/
|
||||
|
||||
@@ -258,6 +258,7 @@ export type PosAccountWhereInput = {
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"PosAccount"> | Date | string | null
|
||||
inventoryBankAccount?: Prisma.XOR<Prisma.InventoryBankAccountScalarRelationFilter, Prisma.InventoryBankAccountWhereInput>
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
orders?: Prisma.OrderListRelationFilter
|
||||
}
|
||||
|
||||
export type PosAccountOrderByWithRelationInput = {
|
||||
@@ -272,6 +273,7 @@ export type PosAccountOrderByWithRelationInput = {
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
inventoryBankAccount?: Prisma.InventoryBankAccountOrderByWithRelationInput
|
||||
salesInvoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
||||
orders?: Prisma.OrderOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.PosAccountOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -290,6 +292,7 @@ export type PosAccountWhereUniqueInput = Prisma.AtLeast<{
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"PosAccount"> | Date | string | null
|
||||
inventoryBankAccount?: Prisma.XOR<Prisma.InventoryBankAccountScalarRelationFilter, Prisma.InventoryBankAccountWhereInput>
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
orders?: Prisma.OrderListRelationFilter
|
||||
}, "id" | "code">
|
||||
|
||||
export type PosAccountOrderByWithAggregationInput = {
|
||||
@@ -333,6 +336,7 @@ export type PosAccountCreateInput = {
|
||||
deletedAt?: Date | string | null
|
||||
inventoryBankAccount: Prisma.InventoryBankAccountCreateNestedOneWithoutPosAccountsInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosAccountInput
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutPosAccountInput
|
||||
}
|
||||
|
||||
export type PosAccountUncheckedCreateInput = {
|
||||
@@ -346,6 +350,7 @@ export type PosAccountUncheckedCreateInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosAccountInput
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutPosAccountInput
|
||||
}
|
||||
|
||||
export type PosAccountUpdateInput = {
|
||||
@@ -357,6 +362,7 @@ export type PosAccountUpdateInput = {
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
inventoryBankAccount?: Prisma.InventoryBankAccountUpdateOneRequiredWithoutPosAccountsNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutPosAccountNestedInput
|
||||
orders?: Prisma.OrderUpdateManyWithoutPosAccountNestedInput
|
||||
}
|
||||
|
||||
export type PosAccountUncheckedUpdateInput = {
|
||||
@@ -370,6 +376,7 @@ export type PosAccountUncheckedUpdateInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosAccountNestedInput
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutPosAccountNestedInput
|
||||
}
|
||||
|
||||
export type PosAccountCreateManyInput = {
|
||||
@@ -516,6 +523,20 @@ export type PosAccountUncheckedUpdateManyWithoutInventoryBankAccountNestedInput
|
||||
deleteMany?: Prisma.PosAccountScalarWhereInput | Prisma.PosAccountScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type PosAccountCreateNestedOneWithoutOrdersInput = {
|
||||
create?: Prisma.XOR<Prisma.PosAccountCreateWithoutOrdersInput, Prisma.PosAccountUncheckedCreateWithoutOrdersInput>
|
||||
connectOrCreate?: Prisma.PosAccountCreateOrConnectWithoutOrdersInput
|
||||
connect?: Prisma.PosAccountWhereUniqueInput
|
||||
}
|
||||
|
||||
export type PosAccountUpdateOneRequiredWithoutOrdersNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PosAccountCreateWithoutOrdersInput, Prisma.PosAccountUncheckedCreateWithoutOrdersInput>
|
||||
connectOrCreate?: Prisma.PosAccountCreateOrConnectWithoutOrdersInput
|
||||
upsert?: Prisma.PosAccountUpsertWithoutOrdersInput
|
||||
connect?: Prisma.PosAccountWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PosAccountUpdateToOneWithWhereWithoutOrdersInput, Prisma.PosAccountUpdateWithoutOrdersInput>, Prisma.PosAccountUncheckedUpdateWithoutOrdersInput>
|
||||
}
|
||||
|
||||
export type PosAccountCreateNestedOneWithoutSalesInvoicesInput = {
|
||||
create?: Prisma.XOR<Prisma.PosAccountCreateWithoutSalesInvoicesInput, Prisma.PosAccountUncheckedCreateWithoutSalesInvoicesInput>
|
||||
connectOrCreate?: Prisma.PosAccountCreateOrConnectWithoutSalesInvoicesInput
|
||||
@@ -538,6 +559,7 @@ export type PosAccountCreateWithoutInventoryBankAccountInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosAccountInput
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutPosAccountInput
|
||||
}
|
||||
|
||||
export type PosAccountUncheckedCreateWithoutInventoryBankAccountInput = {
|
||||
@@ -549,6 +571,7 @@ export type PosAccountUncheckedCreateWithoutInventoryBankAccountInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosAccountInput
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutPosAccountInput
|
||||
}
|
||||
|
||||
export type PosAccountCreateOrConnectWithoutInventoryBankAccountInput = {
|
||||
@@ -592,6 +615,70 @@ export type PosAccountScalarWhereInput = {
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"PosAccount"> | Date | string | null
|
||||
}
|
||||
|
||||
export type PosAccountCreateWithoutOrdersInput = {
|
||||
name: string
|
||||
code: string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
inventoryBankAccount: Prisma.InventoryBankAccountCreateNestedOneWithoutPosAccountsInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosAccountInput
|
||||
}
|
||||
|
||||
export type PosAccountUncheckedCreateWithoutOrdersInput = {
|
||||
id?: number
|
||||
name: string
|
||||
code: string
|
||||
description?: string | null
|
||||
bankAccountId: number
|
||||
inventoryId: number
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosAccountInput
|
||||
}
|
||||
|
||||
export type PosAccountCreateOrConnectWithoutOrdersInput = {
|
||||
where: Prisma.PosAccountWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PosAccountCreateWithoutOrdersInput, Prisma.PosAccountUncheckedCreateWithoutOrdersInput>
|
||||
}
|
||||
|
||||
export type PosAccountUpsertWithoutOrdersInput = {
|
||||
update: Prisma.XOR<Prisma.PosAccountUpdateWithoutOrdersInput, Prisma.PosAccountUncheckedUpdateWithoutOrdersInput>
|
||||
create: Prisma.XOR<Prisma.PosAccountCreateWithoutOrdersInput, Prisma.PosAccountUncheckedCreateWithoutOrdersInput>
|
||||
where?: Prisma.PosAccountWhereInput
|
||||
}
|
||||
|
||||
export type PosAccountUpdateToOneWithWhereWithoutOrdersInput = {
|
||||
where?: Prisma.PosAccountWhereInput
|
||||
data: Prisma.XOR<Prisma.PosAccountUpdateWithoutOrdersInput, Prisma.PosAccountUncheckedUpdateWithoutOrdersInput>
|
||||
}
|
||||
|
||||
export type PosAccountUpdateWithoutOrdersInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
inventoryBankAccount?: Prisma.InventoryBankAccountUpdateOneRequiredWithoutPosAccountsNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutPosAccountNestedInput
|
||||
}
|
||||
|
||||
export type PosAccountUncheckedUpdateWithoutOrdersInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
bankAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosAccountNestedInput
|
||||
}
|
||||
|
||||
export type PosAccountCreateWithoutSalesInvoicesInput = {
|
||||
name: string
|
||||
code: string
|
||||
@@ -600,6 +687,7 @@ export type PosAccountCreateWithoutSalesInvoicesInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
inventoryBankAccount: Prisma.InventoryBankAccountCreateNestedOneWithoutPosAccountsInput
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutPosAccountInput
|
||||
}
|
||||
|
||||
export type PosAccountUncheckedCreateWithoutSalesInvoicesInput = {
|
||||
@@ -612,6 +700,7 @@ export type PosAccountUncheckedCreateWithoutSalesInvoicesInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutPosAccountInput
|
||||
}
|
||||
|
||||
export type PosAccountCreateOrConnectWithoutSalesInvoicesInput = {
|
||||
@@ -638,6 +727,7 @@ export type PosAccountUpdateWithoutSalesInvoicesInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
inventoryBankAccount?: Prisma.InventoryBankAccountUpdateOneRequiredWithoutPosAccountsNestedInput
|
||||
orders?: Prisma.OrderUpdateManyWithoutPosAccountNestedInput
|
||||
}
|
||||
|
||||
export type PosAccountUncheckedUpdateWithoutSalesInvoicesInput = {
|
||||
@@ -650,6 +740,7 @@ export type PosAccountUncheckedUpdateWithoutSalesInvoicesInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutPosAccountNestedInput
|
||||
}
|
||||
|
||||
export type PosAccountCreateManyInventoryBankAccountInput = {
|
||||
@@ -670,6 +761,7 @@ export type PosAccountUpdateWithoutInventoryBankAccountInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutPosAccountNestedInput
|
||||
orders?: Prisma.OrderUpdateManyWithoutPosAccountNestedInput
|
||||
}
|
||||
|
||||
export type PosAccountUncheckedUpdateWithoutInventoryBankAccountInput = {
|
||||
@@ -681,6 +773,7 @@ export type PosAccountUncheckedUpdateWithoutInventoryBankAccountInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosAccountNestedInput
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutPosAccountNestedInput
|
||||
}
|
||||
|
||||
export type PosAccountUncheckedUpdateManyWithoutInventoryBankAccountInput = {
|
||||
@@ -700,10 +793,12 @@ export type PosAccountUncheckedUpdateManyWithoutInventoryBankAccountInput = {
|
||||
|
||||
export type PosAccountCountOutputType = {
|
||||
salesInvoices: number
|
||||
orders: number
|
||||
}
|
||||
|
||||
export type PosAccountCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
salesInvoices?: boolean | PosAccountCountOutputTypeCountSalesInvoicesArgs
|
||||
orders?: boolean | PosAccountCountOutputTypeCountOrdersArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -723,6 +818,13 @@ export type PosAccountCountOutputTypeCountSalesInvoicesArgs<ExtArgs extends runt
|
||||
where?: Prisma.SalesInvoiceWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* PosAccountCountOutputType without action
|
||||
*/
|
||||
export type PosAccountCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.OrderWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type PosAccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -736,6 +838,7 @@ export type PosAccountSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
deletedAt?: boolean
|
||||
inventoryBankAccount?: boolean | Prisma.InventoryBankAccountDefaultArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.PosAccount$salesInvoicesArgs<ExtArgs>
|
||||
orders?: boolean | Prisma.PosAccount$ordersArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PosAccountCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["posAccount"]>
|
||||
|
||||
@@ -757,6 +860,7 @@ export type PosAccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
export type PosAccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
inventoryBankAccount?: boolean | Prisma.InventoryBankAccountDefaultArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.PosAccount$salesInvoicesArgs<ExtArgs>
|
||||
orders?: boolean | Prisma.PosAccount$ordersArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PosAccountCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -765,6 +869,7 @@ export type $PosAccountPayload<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
objects: {
|
||||
inventoryBankAccount: Prisma.$InventoryBankAccountPayload<ExtArgs>
|
||||
salesInvoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
||||
orders: Prisma.$OrderPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -1118,6 +1223,7 @@ export interface Prisma__PosAccountClient<T, Null = never, ExtArgs extends runti
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
inventoryBankAccount<T extends Prisma.InventoryBankAccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InventoryBankAccountDefaultArgs<ExtArgs>>): Prisma.Prisma__InventoryBankAccountClient<runtime.Types.Result.GetResult<Prisma.$InventoryBankAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
salesInvoices<T extends Prisma.PosAccount$salesInvoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PosAccount$salesInvoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
orders<T extends Prisma.PosAccount$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PosAccount$ordersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1522,6 +1628,30 @@ export type PosAccount$salesInvoicesArgs<ExtArgs extends runtime.Types.Extension
|
||||
distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* PosAccount.orders
|
||||
*/
|
||||
export type PosAccount$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Order
|
||||
*/
|
||||
select?: Prisma.OrderSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Order
|
||||
*/
|
||||
omit?: Prisma.OrderOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.OrderInclude<ExtArgs> | null
|
||||
where?: Prisma.OrderWhereInput
|
||||
orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[]
|
||||
cursor?: Prisma.OrderWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* PosAccount without action
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,719 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports the `StockAvailableView` model and its related types.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
import type * as runtime from "@prisma/client/runtime/client"
|
||||
import type * as $Enums from "../enums.js"
|
||||
import type * as Prisma from "../internal/prismaNamespace.js"
|
||||
|
||||
/**
|
||||
* Model StockAvailableView
|
||||
*
|
||||
*/
|
||||
export type StockAvailableViewModel = runtime.Types.Result.DefaultSelection<Prisma.$StockAvailableViewPayload>
|
||||
|
||||
export type AggregateStockAvailableView = {
|
||||
_count: StockAvailableViewCountAggregateOutputType | null
|
||||
_avg: StockAvailableViewAvgAggregateOutputType | null
|
||||
_sum: StockAvailableViewSumAggregateOutputType | null
|
||||
_min: StockAvailableViewMinAggregateOutputType | null
|
||||
_max: StockAvailableViewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewAvgAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
physicalQuantity: runtime.Decimal | null
|
||||
reservedQuantity: runtime.Decimal | null
|
||||
availableQuantity: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewSumAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
physicalQuantity: runtime.Decimal | null
|
||||
reservedQuantity: runtime.Decimal | null
|
||||
availableQuantity: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewMinAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
physicalQuantity: runtime.Decimal | null
|
||||
reservedQuantity: runtime.Decimal | null
|
||||
availableQuantity: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewMaxAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
physicalQuantity: runtime.Decimal | null
|
||||
reservedQuantity: runtime.Decimal | null
|
||||
availableQuantity: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewCountAggregateOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
physicalQuantity: number
|
||||
reservedQuantity: number
|
||||
availableQuantity: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type StockAvailableViewAvgAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewSumAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewMinAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewMaxAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewCountAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Filter which StockAvailableView to aggregate.
|
||||
*/
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of StockAvailableViews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithRelationInput | Prisma.StockAvailableViewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` StockAvailableViews from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Skip the first `n` StockAvailableViews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Count returned StockAvailableViews
|
||||
**/
|
||||
_count?: true | StockAvailableViewCountAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to average
|
||||
**/
|
||||
_avg?: StockAvailableViewAvgAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to sum
|
||||
**/
|
||||
_sum?: StockAvailableViewSumAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the minimum value
|
||||
**/
|
||||
_min?: StockAvailableViewMinAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the maximum value
|
||||
**/
|
||||
_max?: StockAvailableViewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type GetStockAvailableViewAggregateType<T extends StockAvailableViewAggregateArgs> = {
|
||||
[P in keyof T & keyof AggregateStockAvailableView]: P extends '_count' | 'count'
|
||||
? T[P] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], AggregateStockAvailableView[P]>
|
||||
: Prisma.GetScalarType<T[P], AggregateStockAvailableView[P]>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export type StockAvailableViewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithAggregationInput | Prisma.StockAvailableViewOrderByWithAggregationInput[]
|
||||
by: Prisma.StockAvailableViewScalarFieldEnum[] | Prisma.StockAvailableViewScalarFieldEnum
|
||||
having?: Prisma.StockAvailableViewScalarWhereWithAggregatesInput
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: StockAvailableViewCountAggregateInputType | true
|
||||
_avg?: StockAvailableViewAvgAggregateInputType
|
||||
_sum?: StockAvailableViewSumAggregateInputType
|
||||
_min?: StockAvailableViewMinAggregateInputType
|
||||
_max?: StockAvailableViewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type StockAvailableViewGroupByOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
physicalQuantity: runtime.Decimal
|
||||
reservedQuantity: runtime.Decimal
|
||||
availableQuantity: runtime.Decimal
|
||||
_count: StockAvailableViewCountAggregateOutputType | null
|
||||
_avg: StockAvailableViewAvgAggregateOutputType | null
|
||||
_sum: StockAvailableViewSumAggregateOutputType | null
|
||||
_min: StockAvailableViewMinAggregateOutputType | null
|
||||
_max: StockAvailableViewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
type GetStockAvailableViewGroupByPayload<T extends StockAvailableViewGroupByArgs> = Prisma.PrismaPromise<
|
||||
Array<
|
||||
Prisma.PickEnumerable<StockAvailableViewGroupByOutputType, T['by']> &
|
||||
{
|
||||
[P in ((keyof T) & (keyof StockAvailableViewGroupByOutputType))]: P extends '_count'
|
||||
? T[P] extends boolean
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], StockAvailableViewGroupByOutputType[P]>
|
||||
: Prisma.GetScalarType<T[P], StockAvailableViewGroupByOutputType[P]>
|
||||
}
|
||||
>
|
||||
>
|
||||
|
||||
|
||||
|
||||
export type StockAvailableViewWhereInput = {
|
||||
AND?: Prisma.StockAvailableViewWhereInput | Prisma.StockAvailableViewWhereInput[]
|
||||
OR?: Prisma.StockAvailableViewWhereInput[]
|
||||
NOT?: Prisma.StockAvailableViewWhereInput | Prisma.StockAvailableViewWhereInput[]
|
||||
productId?: Prisma.IntFilter<"StockAvailableView"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockAvailableView"> | number
|
||||
physicalQuantity?: Prisma.DecimalFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
reservedQuantity?: Prisma.DecimalFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
availableQuantity?: Prisma.DecimalFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockAvailableViewOrderByWithRelationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewOrderByWithAggregationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
_count?: Prisma.StockAvailableViewCountOrderByAggregateInput
|
||||
_avg?: Prisma.StockAvailableViewAvgOrderByAggregateInput
|
||||
_max?: Prisma.StockAvailableViewMaxOrderByAggregateInput
|
||||
_min?: Prisma.StockAvailableViewMinOrderByAggregateInput
|
||||
_sum?: Prisma.StockAvailableViewSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type StockAvailableViewScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.StockAvailableViewScalarWhereWithAggregatesInput | Prisma.StockAvailableViewScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.StockAvailableViewScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.StockAvailableViewScalarWhereWithAggregatesInput | Prisma.StockAvailableViewScalarWhereWithAggregatesInput[]
|
||||
productId?: Prisma.IntWithAggregatesFilter<"StockAvailableView"> | number
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"StockAvailableView"> | number
|
||||
physicalQuantity?: Prisma.DecimalWithAggregatesFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
reservedQuantity?: Prisma.DecimalWithAggregatesFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
availableQuantity?: Prisma.DecimalWithAggregatesFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockAvailableViewCountOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewAvgOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewMaxOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewMinOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewSumOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type StockAvailableViewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
physicalQuantity?: boolean
|
||||
reservedQuantity?: boolean
|
||||
availableQuantity?: boolean
|
||||
}, ExtArgs["result"]["stockAvailableView"]>
|
||||
|
||||
|
||||
|
||||
export type StockAvailableViewSelectScalar = {
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
physicalQuantity?: boolean
|
||||
reservedQuantity?: boolean
|
||||
availableQuantity?: boolean
|
||||
}
|
||||
|
||||
export type StockAvailableViewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"productId" | "inventoryId" | "physicalQuantity" | "reservedQuantity" | "availableQuantity", ExtArgs["result"]["stockAvailableView"]>
|
||||
|
||||
export type $StockAvailableViewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "StockAvailableView"
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
productId: number
|
||||
inventoryId: number
|
||||
physicalQuantity: runtime.Decimal
|
||||
reservedQuantity: runtime.Decimal
|
||||
availableQuantity: runtime.Decimal
|
||||
}, ExtArgs["result"]["stockAvailableView"]>
|
||||
composites: {}
|
||||
}
|
||||
|
||||
export type StockAvailableViewGetPayload<S extends boolean | null | undefined | StockAvailableViewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StockAvailableViewPayload, S>
|
||||
|
||||
export type StockAvailableViewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||||
Omit<StockAvailableViewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||||
select?: StockAvailableViewCountAggregateInputType | true
|
||||
}
|
||||
|
||||
export interface StockAvailableViewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||||
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['StockAvailableView'], meta: { name: 'StockAvailableView' } }
|
||||
/**
|
||||
* Find the first StockAvailableView that matches the filter.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewFindFirstArgs} args - Arguments to find a StockAvailableView
|
||||
* @example
|
||||
* // Get one StockAvailableView
|
||||
* const stockAvailableView = await prisma.stockAvailableView.findFirst({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirst<T extends StockAvailableViewFindFirstArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, StockAvailableViewFindFirstArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__StockAvailableViewClient<runtime.Types.Result.GetResult<Prisma.$StockAvailableViewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find the first StockAvailableView that matches the filter or
|
||||
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewFindFirstOrThrowArgs} args - Arguments to find a StockAvailableView
|
||||
* @example
|
||||
* // Get one StockAvailableView
|
||||
* const stockAvailableView = await prisma.stockAvailableView.findFirstOrThrow({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirstOrThrow<T extends StockAvailableViewFindFirstOrThrowArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, StockAvailableViewFindFirstOrThrowArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__StockAvailableViewClient<runtime.Types.Result.GetResult<Prisma.$StockAvailableViewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find zero or more StockAvailableViews that matches the filter.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewFindManyArgs} args - Arguments to filter and select certain fields only.
|
||||
* @example
|
||||
* // Get all StockAvailableViews
|
||||
* const stockAvailableViews = await prisma.stockAvailableView.findMany()
|
||||
*
|
||||
* // Get first 10 StockAvailableViews
|
||||
* const stockAvailableViews = await prisma.stockAvailableView.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `productId`
|
||||
* const stockAvailableViewWithProductIdOnly = await prisma.stockAvailableView.findMany({ select: { productId: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends StockAvailableViewFindManyArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, StockAvailableViewFindManyArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockAvailableViewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
|
||||
|
||||
/**
|
||||
* Count the number of StockAvailableViews.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewCountArgs} args - Arguments to filter StockAvailableViews to count.
|
||||
* @example
|
||||
* // Count the number of StockAvailableViews
|
||||
* const count = await prisma.stockAvailableView.count({
|
||||
* where: {
|
||||
* // ... the filter for the StockAvailableViews we want to count
|
||||
* }
|
||||
* })
|
||||
**/
|
||||
count<T extends StockAvailableViewCountArgs>(
|
||||
args?: Prisma.Subset<T, StockAvailableViewCountArgs>,
|
||||
): Prisma.PrismaPromise<
|
||||
T extends runtime.Types.Utils.Record<'select', any>
|
||||
? T['select'] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T['select'], StockAvailableViewCountAggregateOutputType>
|
||||
: number
|
||||
>
|
||||
|
||||
/**
|
||||
* Allows you to perform aggregations operations on a StockAvailableView.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
||||
* @example
|
||||
* // Ordered by age ascending
|
||||
* // Where email contains prisma.io
|
||||
* // Limited to the 10 users
|
||||
* const aggregations = await prisma.user.aggregate({
|
||||
* _avg: {
|
||||
* age: true,
|
||||
* },
|
||||
* where: {
|
||||
* email: {
|
||||
* contains: "prisma.io",
|
||||
* },
|
||||
* },
|
||||
* orderBy: {
|
||||
* age: "asc",
|
||||
* },
|
||||
* take: 10,
|
||||
* })
|
||||
**/
|
||||
aggregate<T extends StockAvailableViewAggregateArgs>(args: Prisma.Subset<T, StockAvailableViewAggregateArgs>): Prisma.PrismaPromise<GetStockAvailableViewAggregateType<T>>
|
||||
|
||||
/**
|
||||
* Group by StockAvailableView.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewGroupByArgs} args - Group by arguments.
|
||||
* @example
|
||||
* // Group by city, order by createdAt, get count
|
||||
* const result = await prisma.user.groupBy({
|
||||
* by: ['city', 'createdAt'],
|
||||
* orderBy: {
|
||||
* createdAt: true
|
||||
* },
|
||||
* _count: {
|
||||
* _all: true
|
||||
* },
|
||||
* })
|
||||
*
|
||||
**/
|
||||
groupBy<
|
||||
T extends StockAvailableViewGroupByArgs,
|
||||
HasSelectOrTake extends Prisma.Or<
|
||||
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||||
Prisma.Extends<'take', Prisma.Keys<T>>
|
||||
>,
|
||||
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||||
? { orderBy: StockAvailableViewGroupByArgs['orderBy'] }
|
||||
: { orderBy?: StockAvailableViewGroupByArgs['orderBy'] },
|
||||
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
||||
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
||||
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
||||
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
||||
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
||||
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
||||
InputErrors extends ByEmpty extends Prisma.True
|
||||
? `Error: "by" must not be empty.`
|
||||
: HavingValid extends Prisma.False
|
||||
? {
|
||||
[P in HavingFields]: P extends ByFields
|
||||
? never
|
||||
: P extends string
|
||||
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
||||
: [
|
||||
Error,
|
||||
'Field ',
|
||||
P,
|
||||
` in "having" needs to be provided in "by"`,
|
||||
]
|
||||
}[HavingFields]
|
||||
: 'take' extends Prisma.Keys<T>
|
||||
? 'orderBy' extends Prisma.Keys<T>
|
||||
? ByValid extends Prisma.True
|
||||
? {}
|
||||
: {
|
||||
[P in OrderFields]: P extends ByFields
|
||||
? never
|
||||
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
||||
}[OrderFields]
|
||||
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
||||
: 'skip' extends Prisma.Keys<T>
|
||||
? 'orderBy' extends Prisma.Keys<T>
|
||||
? ByValid extends Prisma.True
|
||||
? {}
|
||||
: {
|
||||
[P in OrderFields]: P extends ByFields
|
||||
? never
|
||||
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
||||
}[OrderFields]
|
||||
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
||||
: ByValid extends Prisma.True
|
||||
? {}
|
||||
: {
|
||||
[P in OrderFields]: P extends ByFields
|
||||
? never
|
||||
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
||||
}[OrderFields]
|
||||
>(args: Prisma.SubsetIntersection<T, StockAvailableViewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStockAvailableViewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||||
/**
|
||||
* Fields of the StockAvailableView model
|
||||
*/
|
||||
readonly fields: StockAvailableViewFieldRefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* The delegate class that acts as a "Promise-like" for StockAvailableView.
|
||||
* Why is this prefixed with `Prisma__`?
|
||||
* Because we want to prevent naming conflicts as mentioned in
|
||||
* https://github.com/prisma/prisma-client-js/issues/707
|
||||
*/
|
||||
export interface Prisma__StockAvailableViewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
* @param onrejected The callback to execute when the Promise is rejected.
|
||||
* @returns A Promise for the completion of which ever callback is executed.
|
||||
*/
|
||||
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
||||
/**
|
||||
* Attaches a callback for only the rejection of the Promise.
|
||||
* @param onrejected The callback to execute when the Promise is rejected.
|
||||
* @returns A Promise for the completion of the callback.
|
||||
*/
|
||||
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
||||
/**
|
||||
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
||||
* resolved value cannot be modified from the callback.
|
||||
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
||||
* @returns A Promise for the completion of the callback.
|
||||
*/
|
||||
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Fields of the StockAvailableView model
|
||||
*/
|
||||
export interface StockAvailableViewFieldRefs {
|
||||
readonly productId: Prisma.FieldRef<"StockAvailableView", 'Int'>
|
||||
readonly inventoryId: Prisma.FieldRef<"StockAvailableView", 'Int'>
|
||||
readonly physicalQuantity: Prisma.FieldRef<"StockAvailableView", 'Decimal'>
|
||||
readonly reservedQuantity: Prisma.FieldRef<"StockAvailableView", 'Decimal'>
|
||||
readonly availableQuantity: Prisma.FieldRef<"StockAvailableView", 'Decimal'>
|
||||
}
|
||||
|
||||
|
||||
// Custom InputTypes
|
||||
/**
|
||||
* StockAvailableView findFirst
|
||||
*/
|
||||
export type StockAvailableViewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockAvailableView
|
||||
*/
|
||||
select?: Prisma.StockAvailableViewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockAvailableView
|
||||
*/
|
||||
omit?: Prisma.StockAvailableViewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockAvailableView to fetch.
|
||||
*/
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of StockAvailableViews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithRelationInput | Prisma.StockAvailableViewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` StockAvailableViews from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Skip the first `n` StockAvailableViews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of StockAvailableViews.
|
||||
*/
|
||||
distinct?: Prisma.StockAvailableViewScalarFieldEnum | Prisma.StockAvailableViewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* StockAvailableView findFirstOrThrow
|
||||
*/
|
||||
export type StockAvailableViewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockAvailableView
|
||||
*/
|
||||
select?: Prisma.StockAvailableViewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockAvailableView
|
||||
*/
|
||||
omit?: Prisma.StockAvailableViewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockAvailableView to fetch.
|
||||
*/
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of StockAvailableViews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithRelationInput | Prisma.StockAvailableViewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` StockAvailableViews from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Skip the first `n` StockAvailableViews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of StockAvailableViews.
|
||||
*/
|
||||
distinct?: Prisma.StockAvailableViewScalarFieldEnum | Prisma.StockAvailableViewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* StockAvailableView findMany
|
||||
*/
|
||||
export type StockAvailableViewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockAvailableView
|
||||
*/
|
||||
select?: Prisma.StockAvailableViewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockAvailableView
|
||||
*/
|
||||
omit?: Prisma.StockAvailableViewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockAvailableViews to fetch.
|
||||
*/
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of StockAvailableViews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithRelationInput | Prisma.StockAvailableViewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` StockAvailableViews from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Skip the first `n` StockAvailableViews.
|
||||
*/
|
||||
skip?: number
|
||||
distinct?: Prisma.StockAvailableViewScalarFieldEnum | Prisma.StockAvailableViewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* StockAvailableView without action
|
||||
*/
|
||||
export type StockAvailableViewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockAvailableView
|
||||
*/
|
||||
select?: Prisma.StockAvailableViewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockAvailableView
|
||||
*/
|
||||
omit?: Prisma.StockAvailableViewOmit<ExtArgs> | null
|
||||
}
|
||||
@@ -45,7 +45,6 @@ export type StockReservationSumAggregateOutputType = {
|
||||
export type StockReservationMinAggregateOutputType = {
|
||||
id: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
expiresAt: Date | null
|
||||
createdAt: Date | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
@@ -55,7 +54,6 @@ export type StockReservationMinAggregateOutputType = {
|
||||
export type StockReservationMaxAggregateOutputType = {
|
||||
id: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
expiresAt: Date | null
|
||||
createdAt: Date | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
@@ -65,7 +63,6 @@ export type StockReservationMaxAggregateOutputType = {
|
||||
export type StockReservationCountAggregateOutputType = {
|
||||
id: number
|
||||
quantity: number
|
||||
expiresAt: number
|
||||
createdAt: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
@@ -93,7 +90,6 @@ export type StockReservationSumAggregateInputType = {
|
||||
export type StockReservationMinAggregateInputType = {
|
||||
id?: true
|
||||
quantity?: true
|
||||
expiresAt?: true
|
||||
createdAt?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
@@ -103,7 +99,6 @@ export type StockReservationMinAggregateInputType = {
|
||||
export type StockReservationMaxAggregateInputType = {
|
||||
id?: true
|
||||
quantity?: true
|
||||
expiresAt?: true
|
||||
createdAt?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
@@ -113,7 +108,6 @@ export type StockReservationMaxAggregateInputType = {
|
||||
export type StockReservationCountAggregateInputType = {
|
||||
id?: true
|
||||
quantity?: true
|
||||
expiresAt?: true
|
||||
createdAt?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
@@ -210,7 +204,6 @@ export type StockReservationGroupByArgs<ExtArgs extends runtime.Types.Extensions
|
||||
export type StockReservationGroupByOutputType = {
|
||||
id: number
|
||||
quantity: runtime.Decimal
|
||||
expiresAt: Date
|
||||
createdAt: Date
|
||||
productId: number
|
||||
inventoryId: number
|
||||
@@ -243,25 +236,25 @@ export type StockReservationWhereInput = {
|
||||
NOT?: Prisma.StockReservationWhereInput | Prisma.StockReservationWhereInput[]
|
||||
id?: Prisma.IntFilter<"StockReservation"> | number
|
||||
quantity?: Prisma.DecimalFilter<"StockReservation"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFilter<"StockReservation"> | Date | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockReservation"> | Date | string
|
||||
productId?: Prisma.IntFilter<"StockReservation"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockReservation"> | number
|
||||
orderId?: Prisma.IntFilter<"StockReservation"> | number
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
order?: Prisma.XOR<Prisma.OrderScalarRelationFilter, Prisma.OrderWhereInput>
|
||||
}
|
||||
|
||||
export type StockReservationOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
expiresAt?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
orderId?: Prisma.SortOrder
|
||||
inventory?: Prisma.InventoryOrderByWithRelationInput
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
order?: Prisma.OrderOrderByWithRelationInput
|
||||
}
|
||||
|
||||
export type StockReservationWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -270,19 +263,18 @@ export type StockReservationWhereUniqueInput = Prisma.AtLeast<{
|
||||
OR?: Prisma.StockReservationWhereInput[]
|
||||
NOT?: Prisma.StockReservationWhereInput | Prisma.StockReservationWhereInput[]
|
||||
quantity?: Prisma.DecimalFilter<"StockReservation"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFilter<"StockReservation"> | Date | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockReservation"> | Date | string
|
||||
productId?: Prisma.IntFilter<"StockReservation"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockReservation"> | number
|
||||
orderId?: Prisma.IntFilter<"StockReservation"> | number
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
order?: Prisma.XOR<Prisma.OrderScalarRelationFilter, Prisma.OrderWhereInput>
|
||||
}, "id">
|
||||
|
||||
export type StockReservationOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
expiresAt?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
@@ -300,7 +292,6 @@ export type StockReservationScalarWhereWithAggregatesInput = {
|
||||
NOT?: Prisma.StockReservationScalarWhereWithAggregatesInput | Prisma.StockReservationScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.IntWithAggregatesFilter<"StockReservation"> | number
|
||||
quantity?: Prisma.DecimalWithAggregatesFilter<"StockReservation"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"StockReservation"> | Date | string
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"StockReservation"> | Date | string
|
||||
productId?: Prisma.IntWithAggregatesFilter<"StockReservation"> | number
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"StockReservation"> | number
|
||||
@@ -309,17 +300,15 @@ export type StockReservationScalarWhereWithAggregatesInput = {
|
||||
|
||||
export type StockReservationCreateInput = {
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt: Date | string
|
||||
createdAt?: Date | string
|
||||
orderId: number
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockReservationsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockReservationsInput
|
||||
order: Prisma.OrderCreateNestedOneWithoutStockReservationsInput
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedCreateInput = {
|
||||
id?: number
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt: Date | string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
@@ -328,17 +317,15 @@ export type StockReservationUncheckedCreateInput = {
|
||||
|
||||
export type StockReservationUpdateInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
orderId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockReservationsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockReservationsNestedInput
|
||||
order?: Prisma.OrderUpdateOneRequiredWithoutStockReservationsNestedInput
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedUpdateInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
@@ -348,7 +335,6 @@ export type StockReservationUncheckedUpdateInput = {
|
||||
export type StockReservationCreateManyInput = {
|
||||
id?: number
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt: Date | string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
@@ -357,15 +343,12 @@ export type StockReservationCreateManyInput = {
|
||||
|
||||
export type StockReservationUpdateManyMutationInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
orderId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedUpdateManyInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
@@ -385,7 +368,6 @@ export type StockReservationOrderByRelationAggregateInput = {
|
||||
export type StockReservationCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
expiresAt?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
@@ -403,7 +385,6 @@ export type StockReservationAvgOrderByAggregateInput = {
|
||||
export type StockReservationMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
expiresAt?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
@@ -413,7 +394,6 @@ export type StockReservationMaxOrderByAggregateInput = {
|
||||
export type StockReservationMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
expiresAt?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
@@ -470,6 +450,48 @@ export type StockReservationUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||||
deleteMany?: Prisma.StockReservationScalarWhereInput | Prisma.StockReservationScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockReservationCreateNestedManyWithoutOrderInput = {
|
||||
create?: Prisma.XOR<Prisma.StockReservationCreateWithoutOrderInput, Prisma.StockReservationUncheckedCreateWithoutOrderInput> | Prisma.StockReservationCreateWithoutOrderInput[] | Prisma.StockReservationUncheckedCreateWithoutOrderInput[]
|
||||
connectOrCreate?: Prisma.StockReservationCreateOrConnectWithoutOrderInput | Prisma.StockReservationCreateOrConnectWithoutOrderInput[]
|
||||
createMany?: Prisma.StockReservationCreateManyOrderInputEnvelope
|
||||
connect?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedCreateNestedManyWithoutOrderInput = {
|
||||
create?: Prisma.XOR<Prisma.StockReservationCreateWithoutOrderInput, Prisma.StockReservationUncheckedCreateWithoutOrderInput> | Prisma.StockReservationCreateWithoutOrderInput[] | Prisma.StockReservationUncheckedCreateWithoutOrderInput[]
|
||||
connectOrCreate?: Prisma.StockReservationCreateOrConnectWithoutOrderInput | Prisma.StockReservationCreateOrConnectWithoutOrderInput[]
|
||||
createMany?: Prisma.StockReservationCreateManyOrderInputEnvelope
|
||||
connect?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockReservationUpdateManyWithoutOrderNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockReservationCreateWithoutOrderInput, Prisma.StockReservationUncheckedCreateWithoutOrderInput> | Prisma.StockReservationCreateWithoutOrderInput[] | Prisma.StockReservationUncheckedCreateWithoutOrderInput[]
|
||||
connectOrCreate?: Prisma.StockReservationCreateOrConnectWithoutOrderInput | Prisma.StockReservationCreateOrConnectWithoutOrderInput[]
|
||||
upsert?: Prisma.StockReservationUpsertWithWhereUniqueWithoutOrderInput | Prisma.StockReservationUpsertWithWhereUniqueWithoutOrderInput[]
|
||||
createMany?: Prisma.StockReservationCreateManyOrderInputEnvelope
|
||||
set?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
delete?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
connect?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
update?: Prisma.StockReservationUpdateWithWhereUniqueWithoutOrderInput | Prisma.StockReservationUpdateWithWhereUniqueWithoutOrderInput[]
|
||||
updateMany?: Prisma.StockReservationUpdateManyWithWhereWithoutOrderInput | Prisma.StockReservationUpdateManyWithWhereWithoutOrderInput[]
|
||||
deleteMany?: Prisma.StockReservationScalarWhereInput | Prisma.StockReservationScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedUpdateManyWithoutOrderNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockReservationCreateWithoutOrderInput, Prisma.StockReservationUncheckedCreateWithoutOrderInput> | Prisma.StockReservationCreateWithoutOrderInput[] | Prisma.StockReservationUncheckedCreateWithoutOrderInput[]
|
||||
connectOrCreate?: Prisma.StockReservationCreateOrConnectWithoutOrderInput | Prisma.StockReservationCreateOrConnectWithoutOrderInput[]
|
||||
upsert?: Prisma.StockReservationUpsertWithWhereUniqueWithoutOrderInput | Prisma.StockReservationUpsertWithWhereUniqueWithoutOrderInput[]
|
||||
createMany?: Prisma.StockReservationCreateManyOrderInputEnvelope
|
||||
set?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
delete?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
connect?: Prisma.StockReservationWhereUniqueInput | Prisma.StockReservationWhereUniqueInput[]
|
||||
update?: Prisma.StockReservationUpdateWithWhereUniqueWithoutOrderInput | Prisma.StockReservationUpdateWithWhereUniqueWithoutOrderInput[]
|
||||
updateMany?: Prisma.StockReservationUpdateManyWithWhereWithoutOrderInput | Prisma.StockReservationUpdateManyWithWhereWithoutOrderInput[]
|
||||
deleteMany?: Prisma.StockReservationScalarWhereInput | Prisma.StockReservationScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockReservationCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockReservationCreateWithoutProductInput, Prisma.StockReservationUncheckedCreateWithoutProductInput> | Prisma.StockReservationCreateWithoutProductInput[] | Prisma.StockReservationUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockReservationCreateOrConnectWithoutProductInput | Prisma.StockReservationCreateOrConnectWithoutProductInput[]
|
||||
@@ -514,16 +536,14 @@ export type StockReservationUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
|
||||
export type StockReservationCreateWithoutInventoryInput = {
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt: Date | string
|
||||
createdAt?: Date | string
|
||||
orderId: number
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockReservationsInput
|
||||
order: Prisma.OrderCreateNestedOneWithoutStockReservationsInput
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedCreateWithoutInventoryInput = {
|
||||
id?: number
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt: Date | string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
orderId: number
|
||||
@@ -561,25 +581,63 @@ export type StockReservationScalarWhereInput = {
|
||||
NOT?: Prisma.StockReservationScalarWhereInput | Prisma.StockReservationScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"StockReservation"> | number
|
||||
quantity?: Prisma.DecimalFilter<"StockReservation"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFilter<"StockReservation"> | Date | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockReservation"> | Date | string
|
||||
productId?: Prisma.IntFilter<"StockReservation"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockReservation"> | number
|
||||
orderId?: Prisma.IntFilter<"StockReservation"> | number
|
||||
}
|
||||
|
||||
export type StockReservationCreateWithoutOrderInput = {
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockReservationsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockReservationsInput
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedCreateWithoutOrderInput = {
|
||||
id?: number
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
}
|
||||
|
||||
export type StockReservationCreateOrConnectWithoutOrderInput = {
|
||||
where: Prisma.StockReservationWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockReservationCreateWithoutOrderInput, Prisma.StockReservationUncheckedCreateWithoutOrderInput>
|
||||
}
|
||||
|
||||
export type StockReservationCreateManyOrderInputEnvelope = {
|
||||
data: Prisma.StockReservationCreateManyOrderInput | Prisma.StockReservationCreateManyOrderInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockReservationUpsertWithWhereUniqueWithoutOrderInput = {
|
||||
where: Prisma.StockReservationWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockReservationUpdateWithoutOrderInput, Prisma.StockReservationUncheckedUpdateWithoutOrderInput>
|
||||
create: Prisma.XOR<Prisma.StockReservationCreateWithoutOrderInput, Prisma.StockReservationUncheckedCreateWithoutOrderInput>
|
||||
}
|
||||
|
||||
export type StockReservationUpdateWithWhereUniqueWithoutOrderInput = {
|
||||
where: Prisma.StockReservationWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockReservationUpdateWithoutOrderInput, Prisma.StockReservationUncheckedUpdateWithoutOrderInput>
|
||||
}
|
||||
|
||||
export type StockReservationUpdateManyWithWhereWithoutOrderInput = {
|
||||
where: Prisma.StockReservationScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockReservationUpdateManyMutationInput, Prisma.StockReservationUncheckedUpdateManyWithoutOrderInput>
|
||||
}
|
||||
|
||||
export type StockReservationCreateWithoutProductInput = {
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt: Date | string
|
||||
createdAt?: Date | string
|
||||
orderId: number
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockReservationsInput
|
||||
order: Prisma.OrderCreateNestedOneWithoutStockReservationsInput
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedCreateWithoutProductInput = {
|
||||
id?: number
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt: Date | string
|
||||
createdAt?: Date | string
|
||||
inventoryId: number
|
||||
orderId: number
|
||||
@@ -614,7 +672,6 @@ export type StockReservationUpdateManyWithWhereWithoutProductInput = {
|
||||
export type StockReservationCreateManyInventoryInput = {
|
||||
id?: number
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt: Date | string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
orderId: number
|
||||
@@ -622,16 +679,14 @@ export type StockReservationCreateManyInventoryInput = {
|
||||
|
||||
export type StockReservationUpdateWithoutInventoryInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
orderId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockReservationsNestedInput
|
||||
order?: Prisma.OrderUpdateOneRequiredWithoutStockReservationsNestedInput
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedUpdateWithoutInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
@@ -640,16 +695,45 @@ export type StockReservationUncheckedUpdateWithoutInventoryInput = {
|
||||
export type StockReservationUncheckedUpdateManyWithoutInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockReservationCreateManyOrderInput = {
|
||||
id?: number
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
}
|
||||
|
||||
export type StockReservationUpdateWithoutOrderInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockReservationsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockReservationsNestedInput
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedUpdateWithoutOrderInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedUpdateManyWithoutOrderInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockReservationCreateManyProductInput = {
|
||||
id?: number
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt: Date | string
|
||||
createdAt?: Date | string
|
||||
inventoryId: number
|
||||
orderId: number
|
||||
@@ -657,16 +741,14 @@ export type StockReservationCreateManyProductInput = {
|
||||
|
||||
export type StockReservationUpdateWithoutProductInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
orderId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockReservationsNestedInput
|
||||
order?: Prisma.OrderUpdateOneRequiredWithoutStockReservationsNestedInput
|
||||
}
|
||||
|
||||
export type StockReservationUncheckedUpdateWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
@@ -675,7 +757,6 @@ export type StockReservationUncheckedUpdateWithoutProductInput = {
|
||||
export type StockReservationUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
@@ -686,13 +767,13 @@ export type StockReservationUncheckedUpdateManyWithoutProductInput = {
|
||||
export type StockReservationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
quantity?: boolean
|
||||
expiresAt?: boolean
|
||||
createdAt?: boolean
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
orderId?: boolean
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
order?: boolean | Prisma.OrderDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["stockReservation"]>
|
||||
|
||||
|
||||
@@ -700,17 +781,17 @@ export type StockReservationSelect<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
export type StockReservationSelectScalar = {
|
||||
id?: boolean
|
||||
quantity?: boolean
|
||||
expiresAt?: boolean
|
||||
createdAt?: boolean
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
orderId?: boolean
|
||||
}
|
||||
|
||||
export type StockReservationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "quantity" | "expiresAt" | "createdAt" | "productId" | "inventoryId" | "orderId", ExtArgs["result"]["stockReservation"]>
|
||||
export type StockReservationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "quantity" | "createdAt" | "productId" | "inventoryId" | "orderId", ExtArgs["result"]["stockReservation"]>
|
||||
export type StockReservationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
order?: boolean | Prisma.OrderDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $StockReservationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
@@ -718,11 +799,11 @@ export type $StockReservationPayload<ExtArgs extends runtime.Types.Extensions.In
|
||||
objects: {
|
||||
inventory: Prisma.$InventoryPayload<ExtArgs>
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
order: Prisma.$OrderPayload<ExtArgs>
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
quantity: runtime.Decimal
|
||||
expiresAt: Date
|
||||
createdAt: Date
|
||||
productId: number
|
||||
inventoryId: number
|
||||
@@ -1069,6 +1150,7 @@ export interface Prisma__StockReservationClient<T, Null = never, ExtArgs extends
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
inventory<T extends Prisma.InventoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InventoryDefaultArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
order<T extends Prisma.OrderDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrderDefaultArgs<ExtArgs>>): Prisma.Prisma__OrderClient<runtime.Types.Result.GetResult<Prisma.$OrderPayload<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.
|
||||
@@ -1100,7 +1182,6 @@ export interface Prisma__StockReservationClient<T, Null = never, ExtArgs extends
|
||||
export interface StockReservationFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"StockReservation", 'Int'>
|
||||
readonly quantity: Prisma.FieldRef<"StockReservation", 'Decimal'>
|
||||
readonly expiresAt: Prisma.FieldRef<"StockReservation", 'DateTime'>
|
||||
readonly createdAt: Prisma.FieldRef<"StockReservation", 'DateTime'>
|
||||
readonly productId: Prisma.FieldRef<"StockReservation", 'Int'>
|
||||
readonly inventoryId: Prisma.FieldRef<"StockReservation", 'Int'>
|
||||
|
||||
Reference in New Issue
Block a user