feat: implement bank accounts, branches, and banks modules with CRUD operations
- Added BankAccountsController, BankAccountsService, and related DTOs for managing bank accounts. - Implemented BankBranchesController, BankBranchesService, and related DTOs for managing bank branches. - Created BanksController and BanksService for retrieving bank information. - Integrated Prisma for database operations across all modules. - Added response mapping for consistent API responses.
This commit is contained in:
+6
-4
@@ -6,12 +6,14 @@ import { CustomersModule } from './customers/customers.module'
|
||||
import { InventoriesModule } from './inventories/inventories.module'
|
||||
import { InventoryTransferItemsModule } from './inventory-transfer-items/inventory-transfer-items.module'
|
||||
import { InventoryTransfersModule } from './inventory-transfers/inventory-transfers.module'
|
||||
import { BankAccountsModule } from './modules/bank-accounts/bank-accounts.module'
|
||||
import { BankBranchesModule } from './modules/bank-branches/bank-branches.module'
|
||||
import { BanksModule } from './modules/banks/banks.module'
|
||||
import { CardexModule } from './modules/cardex/cardex.module'
|
||||
import { PosModule } from './modules/pos/pos.module'
|
||||
import { PrismaModule } from './prisma/prisma.module'
|
||||
import { ProductBrandsModule } from './product-brands/product-brands.module'
|
||||
import { ProductCategoriesModule } from './product-categories/product-categories.module'
|
||||
import { ProductChargesModule } from './product-charges/product-charges.module'
|
||||
import { ProductVariantsModule } from './product-variants/product-variants.module'
|
||||
import { ProductsModule } from './products/products.module'
|
||||
import { PurchaseReceiptItemsModule } from './purchase-receipt-items/purchase-receipt-items.module'
|
||||
@@ -22,7 +24,6 @@ import { SalesInvoicesModule } from './sales-invoices/sales-invoices.module'
|
||||
import { StockAdjustmentsModule } from './stock-adjustments/stock-adjustments.module'
|
||||
import { StockBalanceModule } from './stock-balance/stock-balance.module'
|
||||
import { StockMovementsModule } from './stock-movements/stock-movements.module'
|
||||
import { StoresModule } from './stores/stores.module'
|
||||
import { SuppliersModule } from './suppliers/suppliers.module'
|
||||
import { UsersModule } from './users/users.module'
|
||||
|
||||
@@ -36,11 +37,9 @@ import { UsersModule } from './users/users.module'
|
||||
ProductVariantsModule,
|
||||
ProductBrandsModule,
|
||||
ProductCategoriesModule,
|
||||
ProductChargesModule,
|
||||
SuppliersModule,
|
||||
CustomersModule,
|
||||
InventoriesModule,
|
||||
StoresModule,
|
||||
PurchaseReceiptsModule,
|
||||
PurchaseReceiptItemsModule,
|
||||
SalesInvoicesModule,
|
||||
@@ -52,6 +51,9 @@ import { UsersModule } from './users/users.module'
|
||||
StockBalanceModule,
|
||||
PosModule,
|
||||
CardexModule,
|
||||
BanksModule,
|
||||
BankBranchesModule,
|
||||
BankAccountsModule,
|
||||
],
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
|
||||
@@ -27,6 +27,91 @@ export type User = Prisma.UserModel
|
||||
*
|
||||
*/
|
||||
export type Role = Prisma.RoleModel
|
||||
/**
|
||||
* Model OtpCode
|
||||
*
|
||||
*/
|
||||
export type OtpCode = Prisma.OtpCodeModel
|
||||
/**
|
||||
* Model RefreshToken
|
||||
*
|
||||
*/
|
||||
export type RefreshToken = Prisma.RefreshTokenModel
|
||||
/**
|
||||
* Model BankBranch
|
||||
*
|
||||
*/
|
||||
export type BankBranch = Prisma.BankBranchModel
|
||||
/**
|
||||
* Model BankAccount
|
||||
*
|
||||
*/
|
||||
export type BankAccount = Prisma.BankAccountModel
|
||||
/**
|
||||
* Model Inventory
|
||||
*
|
||||
*/
|
||||
export type Inventory = Prisma.InventoryModel
|
||||
/**
|
||||
* Model InventoryTransfer
|
||||
*
|
||||
*/
|
||||
export type InventoryTransfer = Prisma.InventoryTransferModel
|
||||
/**
|
||||
* Model InventoryTransferItem
|
||||
*
|
||||
*/
|
||||
export type InventoryTransferItem = Prisma.InventoryTransferItemModel
|
||||
/**
|
||||
* Model InventoryBankAccount
|
||||
*
|
||||
*/
|
||||
export type InventoryBankAccount = Prisma.InventoryBankAccountModel
|
||||
/**
|
||||
* Model PosAccount
|
||||
*
|
||||
*/
|
||||
export type PosAccount = Prisma.PosAccountModel
|
||||
/**
|
||||
* Model Bank
|
||||
*
|
||||
*/
|
||||
export type Bank = Prisma.BankModel
|
||||
/**
|
||||
* Model Supplier
|
||||
*
|
||||
*/
|
||||
export type Supplier = Prisma.SupplierModel
|
||||
/**
|
||||
* Model SupplierLedger
|
||||
*
|
||||
*/
|
||||
export type SupplierLedger = Prisma.SupplierLedgerModel
|
||||
/**
|
||||
* Model Customer
|
||||
*
|
||||
*/
|
||||
export type Customer = Prisma.CustomerModel
|
||||
/**
|
||||
* Model Order
|
||||
*
|
||||
*/
|
||||
export type Order = Prisma.OrderModel
|
||||
/**
|
||||
* Model SalesInvoice
|
||||
*
|
||||
*/
|
||||
export type SalesInvoice = Prisma.SalesInvoiceModel
|
||||
/**
|
||||
* Model SalesInvoiceItem
|
||||
*
|
||||
*/
|
||||
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
||||
/**
|
||||
* Model TriggerLog
|
||||
*
|
||||
*/
|
||||
export type TriggerLog = Prisma.TriggerLogModel
|
||||
/**
|
||||
* Model ProductVariant
|
||||
*
|
||||
@@ -47,36 +132,6 @@ export type ProductBrand = Prisma.ProductBrandModel
|
||||
*
|
||||
*/
|
||||
export type ProductCategory = Prisma.ProductCategoryModel
|
||||
/**
|
||||
* Model Supplier
|
||||
*
|
||||
*/
|
||||
export type Supplier = Prisma.SupplierModel
|
||||
/**
|
||||
* Model Customer
|
||||
*
|
||||
*/
|
||||
export type Customer = Prisma.CustomerModel
|
||||
/**
|
||||
* Model Inventory
|
||||
*
|
||||
*/
|
||||
export type Inventory = Prisma.InventoryModel
|
||||
/**
|
||||
* Model Store
|
||||
*
|
||||
*/
|
||||
export type Store = Prisma.StoreModel
|
||||
/**
|
||||
* Model ProductCharge
|
||||
*
|
||||
*/
|
||||
export type ProductCharge = Prisma.ProductChargeModel
|
||||
/**
|
||||
* Model Order
|
||||
*
|
||||
*/
|
||||
export type Order = Prisma.OrderModel
|
||||
/**
|
||||
* Model PurchaseReceipt
|
||||
*
|
||||
@@ -88,15 +143,10 @@ export type PurchaseReceipt = Prisma.PurchaseReceiptModel
|
||||
*/
|
||||
export type PurchaseReceiptItem = Prisma.PurchaseReceiptItemModel
|
||||
/**
|
||||
* Model SalesInvoice
|
||||
* Model PurchaseReceiptPayments
|
||||
*
|
||||
*/
|
||||
export type SalesInvoice = Prisma.SalesInvoiceModel
|
||||
/**
|
||||
* Model SalesInvoiceItem
|
||||
*
|
||||
*/
|
||||
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
||||
export type PurchaseReceiptPayments = Prisma.PurchaseReceiptPaymentsModel
|
||||
/**
|
||||
* Model StockMovement
|
||||
*
|
||||
@@ -107,48 +157,8 @@ export type StockMovement = Prisma.StockMovementModel
|
||||
*
|
||||
*/
|
||||
export type StockBalance = Prisma.StockBalanceModel
|
||||
/**
|
||||
* Model OtpCode
|
||||
*
|
||||
*/
|
||||
export type OtpCode = Prisma.OtpCodeModel
|
||||
/**
|
||||
* Model RefreshToken
|
||||
*
|
||||
*/
|
||||
export type RefreshToken = Prisma.RefreshTokenModel
|
||||
/**
|
||||
* Model InventoryTransfer
|
||||
*
|
||||
*/
|
||||
export type InventoryTransfer = Prisma.InventoryTransferModel
|
||||
/**
|
||||
* Model InventoryTransferItem
|
||||
*
|
||||
*/
|
||||
export type InventoryTransferItem = Prisma.InventoryTransferItemModel
|
||||
/**
|
||||
* Model StockAdjustment
|
||||
*
|
||||
*/
|
||||
export type StockAdjustment = Prisma.StockAdjustmentModel
|
||||
/**
|
||||
* Model TriggerLog
|
||||
*
|
||||
*/
|
||||
export type TriggerLog = Prisma.TriggerLogModel
|
||||
/**
|
||||
* Model inventory_overview
|
||||
*
|
||||
*/
|
||||
export type inventory_overview = Prisma.inventory_overviewModel
|
||||
/**
|
||||
* Model stock_cardex
|
||||
*
|
||||
*/
|
||||
export type stock_cardex = Prisma.stock_cardexModel
|
||||
/**
|
||||
* Model stock_view
|
||||
*
|
||||
*/
|
||||
export type stock_view = Prisma.stock_viewModel
|
||||
|
||||
@@ -47,6 +47,91 @@ export type User = Prisma.UserModel
|
||||
*
|
||||
*/
|
||||
export type Role = Prisma.RoleModel
|
||||
/**
|
||||
* Model OtpCode
|
||||
*
|
||||
*/
|
||||
export type OtpCode = Prisma.OtpCodeModel
|
||||
/**
|
||||
* Model RefreshToken
|
||||
*
|
||||
*/
|
||||
export type RefreshToken = Prisma.RefreshTokenModel
|
||||
/**
|
||||
* Model BankBranch
|
||||
*
|
||||
*/
|
||||
export type BankBranch = Prisma.BankBranchModel
|
||||
/**
|
||||
* Model BankAccount
|
||||
*
|
||||
*/
|
||||
export type BankAccount = Prisma.BankAccountModel
|
||||
/**
|
||||
* Model Inventory
|
||||
*
|
||||
*/
|
||||
export type Inventory = Prisma.InventoryModel
|
||||
/**
|
||||
* Model InventoryTransfer
|
||||
*
|
||||
*/
|
||||
export type InventoryTransfer = Prisma.InventoryTransferModel
|
||||
/**
|
||||
* Model InventoryTransferItem
|
||||
*
|
||||
*/
|
||||
export type InventoryTransferItem = Prisma.InventoryTransferItemModel
|
||||
/**
|
||||
* Model InventoryBankAccount
|
||||
*
|
||||
*/
|
||||
export type InventoryBankAccount = Prisma.InventoryBankAccountModel
|
||||
/**
|
||||
* Model PosAccount
|
||||
*
|
||||
*/
|
||||
export type PosAccount = Prisma.PosAccountModel
|
||||
/**
|
||||
* Model Bank
|
||||
*
|
||||
*/
|
||||
export type Bank = Prisma.BankModel
|
||||
/**
|
||||
* Model Supplier
|
||||
*
|
||||
*/
|
||||
export type Supplier = Prisma.SupplierModel
|
||||
/**
|
||||
* Model SupplierLedger
|
||||
*
|
||||
*/
|
||||
export type SupplierLedger = Prisma.SupplierLedgerModel
|
||||
/**
|
||||
* Model Customer
|
||||
*
|
||||
*/
|
||||
export type Customer = Prisma.CustomerModel
|
||||
/**
|
||||
* Model Order
|
||||
*
|
||||
*/
|
||||
export type Order = Prisma.OrderModel
|
||||
/**
|
||||
* Model SalesInvoice
|
||||
*
|
||||
*/
|
||||
export type SalesInvoice = Prisma.SalesInvoiceModel
|
||||
/**
|
||||
* Model SalesInvoiceItem
|
||||
*
|
||||
*/
|
||||
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
||||
/**
|
||||
* Model TriggerLog
|
||||
*
|
||||
*/
|
||||
export type TriggerLog = Prisma.TriggerLogModel
|
||||
/**
|
||||
* Model ProductVariant
|
||||
*
|
||||
@@ -67,36 +152,6 @@ export type ProductBrand = Prisma.ProductBrandModel
|
||||
*
|
||||
*/
|
||||
export type ProductCategory = Prisma.ProductCategoryModel
|
||||
/**
|
||||
* Model Supplier
|
||||
*
|
||||
*/
|
||||
export type Supplier = Prisma.SupplierModel
|
||||
/**
|
||||
* Model Customer
|
||||
*
|
||||
*/
|
||||
export type Customer = Prisma.CustomerModel
|
||||
/**
|
||||
* Model Inventory
|
||||
*
|
||||
*/
|
||||
export type Inventory = Prisma.InventoryModel
|
||||
/**
|
||||
* Model Store
|
||||
*
|
||||
*/
|
||||
export type Store = Prisma.StoreModel
|
||||
/**
|
||||
* Model ProductCharge
|
||||
*
|
||||
*/
|
||||
export type ProductCharge = Prisma.ProductChargeModel
|
||||
/**
|
||||
* Model Order
|
||||
*
|
||||
*/
|
||||
export type Order = Prisma.OrderModel
|
||||
/**
|
||||
* Model PurchaseReceipt
|
||||
*
|
||||
@@ -108,15 +163,10 @@ export type PurchaseReceipt = Prisma.PurchaseReceiptModel
|
||||
*/
|
||||
export type PurchaseReceiptItem = Prisma.PurchaseReceiptItemModel
|
||||
/**
|
||||
* Model SalesInvoice
|
||||
* Model PurchaseReceiptPayments
|
||||
*
|
||||
*/
|
||||
export type SalesInvoice = Prisma.SalesInvoiceModel
|
||||
/**
|
||||
* Model SalesInvoiceItem
|
||||
*
|
||||
*/
|
||||
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
||||
export type PurchaseReceiptPayments = Prisma.PurchaseReceiptPaymentsModel
|
||||
/**
|
||||
* Model StockMovement
|
||||
*
|
||||
@@ -127,48 +177,8 @@ export type StockMovement = Prisma.StockMovementModel
|
||||
*
|
||||
*/
|
||||
export type StockBalance = Prisma.StockBalanceModel
|
||||
/**
|
||||
* Model OtpCode
|
||||
*
|
||||
*/
|
||||
export type OtpCode = Prisma.OtpCodeModel
|
||||
/**
|
||||
* Model RefreshToken
|
||||
*
|
||||
*/
|
||||
export type RefreshToken = Prisma.RefreshTokenModel
|
||||
/**
|
||||
* Model InventoryTransfer
|
||||
*
|
||||
*/
|
||||
export type InventoryTransfer = Prisma.InventoryTransferModel
|
||||
/**
|
||||
* Model InventoryTransferItem
|
||||
*
|
||||
*/
|
||||
export type InventoryTransferItem = Prisma.InventoryTransferItemModel
|
||||
/**
|
||||
* Model StockAdjustment
|
||||
*
|
||||
*/
|
||||
export type StockAdjustment = Prisma.StockAdjustmentModel
|
||||
/**
|
||||
* Model TriggerLog
|
||||
*
|
||||
*/
|
||||
export type TriggerLog = Prisma.TriggerLogModel
|
||||
/**
|
||||
* Model inventory_overview
|
||||
*
|
||||
*/
|
||||
export type inventory_overview = Prisma.inventory_overviewModel
|
||||
/**
|
||||
* Model stock_cardex
|
||||
*
|
||||
*/
|
||||
export type stock_cardex = Prisma.stock_cardexModel
|
||||
/**
|
||||
* Model stock_view
|
||||
*
|
||||
*/
|
||||
export type stock_view = Prisma.stock_viewModel
|
||||
|
||||
@@ -213,65 +213,11 @@ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type DecimalFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type DecimalNullableFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
}
|
||||
|
||||
export type BoolFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||
}
|
||||
|
||||
export type DecimalWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||
@@ -307,6 +253,50 @@ export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type DecimalFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type DecimalWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumledgerSourceTypeFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.ledgerSourceType | Prisma.EnumledgerSourceTypeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.ledgerSourceType[]
|
||||
notIn?: $Enums.ledgerSourceType[]
|
||||
not?: Prisma.NestedEnumledgerSourceTypeFilter<$PrismaModel> | $Enums.ledgerSourceType
|
||||
}
|
||||
|
||||
export type EnumledgerSourceTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.ledgerSourceType | Prisma.EnumledgerSourceTypeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.ledgerSourceType[]
|
||||
notIn?: $Enums.ledgerSourceType[]
|
||||
not?: Prisma.NestedEnumledgerSourceTypeWithAggregatesFilter<$PrismaModel> | $Enums.ledgerSourceType
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumledgerSourceTypeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumledgerSourceTypeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumOrderStatusFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.OrderStatus | Prisma.EnumOrderStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.OrderStatus[]
|
||||
@@ -314,11 +304,11 @@ export type EnumOrderStatusFilter<$PrismaModel = never> = {
|
||||
not?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel> | $Enums.OrderStatus
|
||||
}
|
||||
|
||||
export type EnumpaymentMethodFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.paymentMethod | Prisma.EnumpaymentMethodFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.paymentMethod[]
|
||||
notIn?: $Enums.paymentMethod[]
|
||||
not?: Prisma.NestedEnumpaymentMethodFilter<$PrismaModel> | $Enums.paymentMethod
|
||||
export type Enumpayment_method_typeFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.payment_method_type | Prisma.Enumpayment_method_typeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.payment_method_type[]
|
||||
notIn?: $Enums.payment_method_type[]
|
||||
not?: Prisma.NestedEnumpayment_method_typeFilter<$PrismaModel> | $Enums.payment_method_type
|
||||
}
|
||||
|
||||
export type EnumOrderStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
@@ -331,14 +321,41 @@ export type EnumOrderStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
_max?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumpaymentMethodWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.paymentMethod | Prisma.EnumpaymentMethodFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.paymentMethod[]
|
||||
notIn?: $Enums.paymentMethod[]
|
||||
not?: Prisma.NestedEnumpaymentMethodWithAggregatesFilter<$PrismaModel> | $Enums.paymentMethod
|
||||
export type Enumpayment_method_typeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.payment_method_type | Prisma.Enumpayment_method_typeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.payment_method_type[]
|
||||
notIn?: $Enums.payment_method_type[]
|
||||
not?: Prisma.NestedEnumpayment_method_typeWithAggregatesFilter<$PrismaModel> | $Enums.payment_method_type
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumpaymentMethodFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumpaymentMethodFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumpayment_method_typeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumpayment_method_typeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type DecimalNullableFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
}
|
||||
|
||||
export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumMovementTypeFilter<$PrismaModel = never> = {
|
||||
@@ -375,23 +392,6 @@ export type EnumMovementReferenceTypeWithAggregatesFilter<$PrismaModel = never>
|
||||
_max?: Prisma.NestedEnumMovementReferenceTypeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type Enumstock_cardex_typeFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.stock_cardex_type | Prisma.Enumstock_cardex_typeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.stock_cardex_type[]
|
||||
notIn?: $Enums.stock_cardex_type[]
|
||||
not?: Prisma.NestedEnumstock_cardex_typeFilter<$PrismaModel> | $Enums.stock_cardex_type
|
||||
}
|
||||
|
||||
export type Enumstock_cardex_typeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.stock_cardex_type | Prisma.Enumstock_cardex_typeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.stock_cardex_type[]
|
||||
notIn?: $Enums.stock_cardex_type[]
|
||||
not?: Prisma.NestedEnumstock_cardex_typeWithAggregatesFilter<$PrismaModel> | $Enums.stock_cardex_type
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumstock_cardex_typeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumstock_cardex_typeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedIntFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
in?: number[]
|
||||
@@ -581,65 +581,11 @@ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type NestedDecimalFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type NestedDecimalNullableFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
}
|
||||
|
||||
export type NestedBoolFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||
}
|
||||
|
||||
export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||
@@ -675,6 +621,50 @@ export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
||||
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
||||
}
|
||||
|
||||
export type NestedDecimalFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDecimalFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumledgerSourceTypeFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.ledgerSourceType | Prisma.EnumledgerSourceTypeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.ledgerSourceType[]
|
||||
notIn?: $Enums.ledgerSourceType[]
|
||||
not?: Prisma.NestedEnumledgerSourceTypeFilter<$PrismaModel> | $Enums.ledgerSourceType
|
||||
}
|
||||
|
||||
export type NestedEnumledgerSourceTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.ledgerSourceType | Prisma.EnumledgerSourceTypeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.ledgerSourceType[]
|
||||
notIn?: $Enums.ledgerSourceType[]
|
||||
not?: Prisma.NestedEnumledgerSourceTypeWithAggregatesFilter<$PrismaModel> | $Enums.ledgerSourceType
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumledgerSourceTypeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumledgerSourceTypeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumOrderStatusFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.OrderStatus | Prisma.EnumOrderStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.OrderStatus[]
|
||||
@@ -682,11 +672,11 @@ export type NestedEnumOrderStatusFilter<$PrismaModel = never> = {
|
||||
not?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel> | $Enums.OrderStatus
|
||||
}
|
||||
|
||||
export type NestedEnumpaymentMethodFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.paymentMethod | Prisma.EnumpaymentMethodFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.paymentMethod[]
|
||||
notIn?: $Enums.paymentMethod[]
|
||||
not?: Prisma.NestedEnumpaymentMethodFilter<$PrismaModel> | $Enums.paymentMethod
|
||||
export type NestedEnumpayment_method_typeFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.payment_method_type | Prisma.Enumpayment_method_typeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.payment_method_type[]
|
||||
notIn?: $Enums.payment_method_type[]
|
||||
not?: Prisma.NestedEnumpayment_method_typeFilter<$PrismaModel> | $Enums.payment_method_type
|
||||
}
|
||||
|
||||
export type NestedEnumOrderStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
@@ -699,14 +689,41 @@ export type NestedEnumOrderStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
_max?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumpaymentMethodWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.paymentMethod | Prisma.EnumpaymentMethodFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.paymentMethod[]
|
||||
notIn?: $Enums.paymentMethod[]
|
||||
not?: Prisma.NestedEnumpaymentMethodWithAggregatesFilter<$PrismaModel> | $Enums.paymentMethod
|
||||
export type NestedEnumpayment_method_typeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.payment_method_type | Prisma.Enumpayment_method_typeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.payment_method_type[]
|
||||
notIn?: $Enums.payment_method_type[]
|
||||
not?: Prisma.NestedEnumpayment_method_typeWithAggregatesFilter<$PrismaModel> | $Enums.payment_method_type
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumpaymentMethodFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumpaymentMethodFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumpayment_method_typeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumpayment_method_typeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedDecimalNullableFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
}
|
||||
|
||||
export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
|
||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
|
||||
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumMovementTypeFilter<$PrismaModel = never> = {
|
||||
@@ -743,21 +760,4 @@ export type NestedEnumMovementReferenceTypeWithAggregatesFilter<$PrismaModel = n
|
||||
_max?: Prisma.NestedEnumMovementReferenceTypeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumstock_cardex_typeFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.stock_cardex_type | Prisma.Enumstock_cardex_typeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.stock_cardex_type[]
|
||||
notIn?: $Enums.stock_cardex_type[]
|
||||
not?: Prisma.NestedEnumstock_cardex_typeFilter<$PrismaModel> | $Enums.stock_cardex_type
|
||||
}
|
||||
|
||||
export type NestedEnumstock_cardex_typeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.stock_cardex_type | Prisma.Enumstock_cardex_typeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.stock_cardex_type[]
|
||||
notIn?: $Enums.stock_cardex_type[]
|
||||
not?: Prisma.NestedEnumstock_cardex_typeWithAggregatesFilter<$PrismaModel> | $Enums.stock_cardex_type
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumstock_cardex_typeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumstock_cardex_typeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -10,22 +10,14 @@
|
||||
*/
|
||||
|
||||
export const OrderStatus = {
|
||||
pending: 'pending',
|
||||
reject: 'reject',
|
||||
done: 'done'
|
||||
PENDING: 'PENDING',
|
||||
REJECT: 'REJECT',
|
||||
DONE: 'DONE'
|
||||
} as const
|
||||
|
||||
export type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus]
|
||||
|
||||
|
||||
export const paymentMethod = {
|
||||
cash: 'cash',
|
||||
card: 'card'
|
||||
} as const
|
||||
|
||||
export type paymentMethod = (typeof paymentMethod)[keyof typeof paymentMethod]
|
||||
|
||||
|
||||
export const MovementType = {
|
||||
IN: 'IN',
|
||||
OUT: 'OUT',
|
||||
@@ -45,28 +37,22 @@ export const MovementReferenceType = {
|
||||
export type MovementReferenceType = (typeof MovementReferenceType)[keyof typeof MovementReferenceType]
|
||||
|
||||
|
||||
export const stock_cardex_type = {
|
||||
IN: 'IN',
|
||||
OUT: 'OUT',
|
||||
ADJUST: 'ADJUST'
|
||||
export const payment_method_type = {
|
||||
CASH: 'CASH',
|
||||
CARD: 'CARD',
|
||||
BANK: 'BANK',
|
||||
CHECK: 'CHECK',
|
||||
OTHER: 'OTHER'
|
||||
} as const
|
||||
|
||||
export type stock_cardex_type = (typeof stock_cardex_type)[keyof typeof stock_cardex_type]
|
||||
export type payment_method_type = (typeof payment_method_type)[keyof typeof payment_method_type]
|
||||
|
||||
|
||||
export const stock_movements_view_type = {
|
||||
IN: 'IN',
|
||||
OUT: 'OUT',
|
||||
ADJUST: 'ADJUST'
|
||||
} as const
|
||||
|
||||
export type stock_movements_view_type = (typeof stock_movements_view_type)[keyof typeof stock_movements_view_type]
|
||||
|
||||
|
||||
export const stock_movements_view_referenceType = {
|
||||
export const ledgerSourceType = {
|
||||
PURCHASE: 'PURCHASE',
|
||||
SALES: 'SALES',
|
||||
ADJUSTMENT: 'ADJUSTMENT'
|
||||
PAYMENT: 'PAYMENT',
|
||||
ADJUSTMENT: 'ADJUSTMENT',
|
||||
REFUND: 'REFUND'
|
||||
} as const
|
||||
|
||||
export type stock_movements_view_referenceType = (typeof stock_movements_view_referenceType)[keyof typeof stock_movements_view_referenceType]
|
||||
export type ledgerSourceType = (typeof ledgerSourceType)[keyof typeof ledgerSourceType]
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -53,31 +53,33 @@ export const AnyNull = runtime.AnyNull
|
||||
export const ModelName = {
|
||||
User: 'User',
|
||||
Role: 'Role',
|
||||
OtpCode: 'OtpCode',
|
||||
RefreshToken: 'RefreshToken',
|
||||
BankBranch: 'BankBranch',
|
||||
BankAccount: 'BankAccount',
|
||||
Inventory: 'Inventory',
|
||||
InventoryTransfer: 'InventoryTransfer',
|
||||
InventoryTransferItem: 'InventoryTransferItem',
|
||||
InventoryBankAccount: 'InventoryBankAccount',
|
||||
PosAccount: 'PosAccount',
|
||||
Bank: 'Bank',
|
||||
Supplier: 'Supplier',
|
||||
SupplierLedger: 'SupplierLedger',
|
||||
Customer: 'Customer',
|
||||
Order: 'Order',
|
||||
SalesInvoice: 'SalesInvoice',
|
||||
SalesInvoiceItem: 'SalesInvoiceItem',
|
||||
TriggerLog: 'TriggerLog',
|
||||
ProductVariant: 'ProductVariant',
|
||||
Product: 'Product',
|
||||
ProductBrand: 'ProductBrand',
|
||||
ProductCategory: 'ProductCategory',
|
||||
Supplier: 'Supplier',
|
||||
Customer: 'Customer',
|
||||
Inventory: 'Inventory',
|
||||
Store: 'Store',
|
||||
ProductCharge: 'ProductCharge',
|
||||
Order: 'Order',
|
||||
PurchaseReceipt: 'PurchaseReceipt',
|
||||
PurchaseReceiptItem: 'PurchaseReceiptItem',
|
||||
SalesInvoice: 'SalesInvoice',
|
||||
SalesInvoiceItem: 'SalesInvoiceItem',
|
||||
PurchaseReceiptPayments: 'PurchaseReceiptPayments',
|
||||
StockMovement: 'StockMovement',
|
||||
StockBalance: 'StockBalance',
|
||||
OtpCode: 'OtpCode',
|
||||
RefreshToken: 'RefreshToken',
|
||||
InventoryTransfer: 'InventoryTransfer',
|
||||
InventoryTransferItem: 'InventoryTransferItem',
|
||||
StockAdjustment: 'StockAdjustment',
|
||||
TriggerLog: 'TriggerLog',
|
||||
inventory_overview: 'inventory_overview',
|
||||
stock_cardex: 'stock_cardex',
|
||||
stock_view: 'stock_view'
|
||||
StockAdjustment: 'StockAdjustment'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -124,6 +126,237 @@ export const RoleScalarFieldEnum = {
|
||||
export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum]
|
||||
|
||||
|
||||
export const OtpCodeScalarFieldEnum = {
|
||||
id: 'id',
|
||||
mobileNumber: 'mobileNumber',
|
||||
code: 'code',
|
||||
used: 'used',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type OtpCodeScalarFieldEnum = (typeof OtpCodeScalarFieldEnum)[keyof typeof OtpCodeScalarFieldEnum]
|
||||
|
||||
|
||||
export const RefreshTokenScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tokenHash: 'tokenHash',
|
||||
userId: 'userId',
|
||||
revoked: 'revoked',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type RefreshTokenScalarFieldEnum = (typeof RefreshTokenScalarFieldEnum)[keyof typeof RefreshTokenScalarFieldEnum]
|
||||
|
||||
|
||||
export const BankBranchScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
address: 'address',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
bankId: 'bankId'
|
||||
} as const
|
||||
|
||||
export type BankBranchScalarFieldEnum = (typeof BankBranchScalarFieldEnum)[keyof typeof BankBranchScalarFieldEnum]
|
||||
|
||||
|
||||
export const BankAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
accountNumber: 'accountNumber',
|
||||
cardNumber: 'cardNumber',
|
||||
name: 'name',
|
||||
iban: 'iban',
|
||||
branchId: 'branchId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type BankAccountScalarFieldEnum = (typeof BankAccountScalarFieldEnum)[keyof typeof BankAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
location: 'location',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
isPointOfSale: 'isPointOfSale',
|
||||
bankAccountId: 'bankAccountId'
|
||||
} as const
|
||||
|
||||
export type InventoryScalarFieldEnum = (typeof InventoryScalarFieldEnum)[keyof typeof InventoryScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
fromInventoryId: 'fromInventoryId',
|
||||
toInventoryId: 'toInventoryId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferScalarFieldEnum = (typeof InventoryTransferScalarFieldEnum)[keyof typeof InventoryTransferScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
productId: 'productId',
|
||||
transferId: 'transferId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferItemScalarFieldEnum = (typeof InventoryTransferItemScalarFieldEnum)[keyof typeof InventoryTransferItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryBankAccountScalarFieldEnum = {
|
||||
inventoryId: 'inventoryId',
|
||||
bankAccountId: 'bankAccountId'
|
||||
} as const
|
||||
|
||||
export type InventoryBankAccountScalarFieldEnum = (typeof InventoryBankAccountScalarFieldEnum)[keyof typeof InventoryBankAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const PosAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
description: 'description',
|
||||
bankAccountId: 'bankAccountId',
|
||||
inventoryId: 'inventoryId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type PosAccountScalarFieldEnum = (typeof PosAccountScalarFieldEnum)[keyof typeof PosAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const BankScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
shortName: 'shortName',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type BankScalarFieldEnum = (typeof BankScalarFieldEnum)[keyof typeof BankScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type SupplierScalarFieldEnum = (typeof SupplierScalarFieldEnum)[keyof typeof SupplierScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
description: 'description',
|
||||
debit: 'debit',
|
||||
credit: 'credit',
|
||||
balance: 'balance',
|
||||
sourceType: 'sourceType',
|
||||
sourceId: 'sourceId',
|
||||
createdAt: 'createdAt',
|
||||
supplierId: 'supplierId'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerScalarFieldEnum = (typeof SupplierLedgerScalarFieldEnum)[keyof typeof SupplierLedgerScalarFieldEnum]
|
||||
|
||||
|
||||
export const CustomerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
||||
|
||||
|
||||
export const OrderScalarFieldEnum = {
|
||||
id: 'id',
|
||||
orderNumber: 'orderNumber',
|
||||
status: 'status',
|
||||
paymentMethod: 'paymentMethod',
|
||||
totalAmount: 'totalAmount',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
customerId: 'customerId'
|
||||
} as const
|
||||
|
||||
export type OrderScalarFieldEnum = (typeof OrderScalarFieldEnum)[keyof typeof OrderScalarFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoiceScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
totalAmount: 'totalAmount',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
customerId: 'customerId',
|
||||
inventoryId: 'inventoryId'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoiceItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
fee: 'fee',
|
||||
total: 'total',
|
||||
createdAt: 'createdAt',
|
||||
invoiceId: 'invoiceId',
|
||||
productId: 'productId'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const TriggerLogScalarFieldEnum = {
|
||||
id: 'id',
|
||||
message: 'message',
|
||||
createdAt: 'createdAt',
|
||||
name: 'name'
|
||||
} as const
|
||||
|
||||
export type TriggerLogScalarFieldEnum = (typeof TriggerLogScalarFieldEnum)[keyof typeof TriggerLogScalarFieldEnum]
|
||||
|
||||
|
||||
export const ProductVariantScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -155,9 +388,9 @@ export const ProductScalarFieldEnum = {
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
salePrice: 'salePrice',
|
||||
brandId: 'brandId',
|
||||
categoryId: 'categoryId'
|
||||
categoryId: 'categoryId',
|
||||
salePrice: 'salePrice'
|
||||
} as const
|
||||
|
||||
export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum]
|
||||
@@ -189,109 +422,12 @@ export const ProductCategoryScalarFieldEnum = {
|
||||
export type ProductCategoryScalarFieldEnum = (typeof ProductCategoryScalarFieldEnum)[keyof typeof ProductCategoryScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type SupplierScalarFieldEnum = (typeof SupplierScalarFieldEnum)[keyof typeof SupplierScalarFieldEnum]
|
||||
|
||||
|
||||
export const CustomerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
location: 'location',
|
||||
isActive: 'isActive',
|
||||
isPointOfSale: 'isPointOfSale',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type InventoryScalarFieldEnum = (typeof InventoryScalarFieldEnum)[keyof typeof InventoryScalarFieldEnum]
|
||||
|
||||
|
||||
export const StoreScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
location: 'location',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type StoreScalarFieldEnum = (typeof StoreScalarFieldEnum)[keyof typeof StoreScalarFieldEnum]
|
||||
|
||||
|
||||
export const ProductChargeScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
fee: 'fee',
|
||||
totalAmount: 'totalAmount',
|
||||
isSettled: 'isSettled',
|
||||
buyAt: 'buyAt',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
supplierId: 'supplierId'
|
||||
} as const
|
||||
|
||||
export type ProductChargeScalarFieldEnum = (typeof ProductChargeScalarFieldEnum)[keyof typeof ProductChargeScalarFieldEnum]
|
||||
|
||||
|
||||
export const OrderScalarFieldEnum = {
|
||||
id: 'id',
|
||||
orderNumber: 'orderNumber',
|
||||
status: 'status',
|
||||
paymentMethod: 'paymentMethod',
|
||||
totalAmount: 'totalAmount',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
customerId: 'customerId'
|
||||
} as const
|
||||
|
||||
export type OrderScalarFieldEnum = (typeof OrderScalarFieldEnum)[keyof typeof OrderScalarFieldEnum]
|
||||
|
||||
|
||||
export const PurchaseReceiptScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
totalAmount: 'totalAmount',
|
||||
paidAmount: 'paidAmount',
|
||||
isSettled: 'isSettled',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
@@ -316,31 +452,18 @@ export const PurchaseReceiptItemScalarFieldEnum = {
|
||||
export type PurchaseReceiptItemScalarFieldEnum = (typeof PurchaseReceiptItemScalarFieldEnum)[keyof typeof PurchaseReceiptItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoiceScalarFieldEnum = {
|
||||
export const PurchaseReceiptPaymentsScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
totalAmount: 'totalAmount',
|
||||
amount: 'amount',
|
||||
paymentMethod: 'paymentMethod',
|
||||
bankAccountId: 'bankAccountId',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
customerId: 'customerId',
|
||||
inventoryId: 'inventoryId'
|
||||
payedAt: 'payedAt',
|
||||
receiptId: 'receiptId',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoiceItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
fee: 'fee',
|
||||
total: 'total',
|
||||
createdAt: 'createdAt',
|
||||
invoiceId: 'invoiceId',
|
||||
productId: 'productId'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
|
||||
export type PurchaseReceiptPaymentsScalarFieldEnum = (typeof PurchaseReceiptPaymentsScalarFieldEnum)[keyof typeof PurchaseReceiptPaymentsScalarFieldEnum]
|
||||
|
||||
|
||||
export const StockMovementScalarFieldEnum = {
|
||||
@@ -355,75 +478,29 @@ export const StockMovementScalarFieldEnum = {
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
avgCost: 'avgCost',
|
||||
remainedInStock: 'remainedInStock',
|
||||
supplierId: 'supplierId',
|
||||
customerId: 'customerId',
|
||||
counterInventoryId: 'counterInventoryId'
|
||||
remainedInStock: 'remainedInStock',
|
||||
counterInventoryId: 'counterInventoryId',
|
||||
customerId: 'customerId'
|
||||
} as const
|
||||
|
||||
export type StockMovementScalarFieldEnum = (typeof StockMovementScalarFieldEnum)[keyof typeof StockMovementScalarFieldEnum]
|
||||
|
||||
|
||||
export const StockBalanceScalarFieldEnum = {
|
||||
id: 'id',
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
quantity: 'quantity',
|
||||
avgCost: 'avgCost',
|
||||
totalCost: 'totalCost',
|
||||
updatedAt: 'updatedAt',
|
||||
avgCost: 'avgCost',
|
||||
inventoryId: 'inventoryId',
|
||||
productId: 'productId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
id: 'id'
|
||||
} as const
|
||||
|
||||
export type StockBalanceScalarFieldEnum = (typeof StockBalanceScalarFieldEnum)[keyof typeof StockBalanceScalarFieldEnum]
|
||||
|
||||
|
||||
export const OtpCodeScalarFieldEnum = {
|
||||
id: 'id',
|
||||
mobileNumber: 'mobileNumber',
|
||||
code: 'code',
|
||||
used: 'used',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type OtpCodeScalarFieldEnum = (typeof OtpCodeScalarFieldEnum)[keyof typeof OtpCodeScalarFieldEnum]
|
||||
|
||||
|
||||
export const RefreshTokenScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tokenHash: 'tokenHash',
|
||||
userId: 'userId',
|
||||
revoked: 'revoked',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type RefreshTokenScalarFieldEnum = (typeof RefreshTokenScalarFieldEnum)[keyof typeof RefreshTokenScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
fromInventoryId: 'fromInventoryId',
|
||||
toInventoryId: 'toInventoryId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferScalarFieldEnum = (typeof InventoryTransferScalarFieldEnum)[keyof typeof InventoryTransferScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
productId: 'productId',
|
||||
transferId: 'transferId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferItemScalarFieldEnum = (typeof InventoryTransferItemScalarFieldEnum)[keyof typeof InventoryTransferItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const StockAdjustmentScalarFieldEnum = {
|
||||
id: 'id',
|
||||
adjustedQuantity: 'adjustedQuantity',
|
||||
@@ -435,51 +512,6 @@ export const StockAdjustmentScalarFieldEnum = {
|
||||
export type StockAdjustmentScalarFieldEnum = (typeof StockAdjustmentScalarFieldEnum)[keyof typeof StockAdjustmentScalarFieldEnum]
|
||||
|
||||
|
||||
export const TriggerLogScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
message: 'message',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type TriggerLogScalarFieldEnum = (typeof TriggerLogScalarFieldEnum)[keyof typeof TriggerLogScalarFieldEnum]
|
||||
|
||||
|
||||
export const Inventory_overviewScalarFieldEnum = {
|
||||
ProductId: 'ProductId',
|
||||
stock_quantity: 'stock_quantity',
|
||||
avgCost: 'avgCost',
|
||||
totalCost: 'totalCost',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type Inventory_overviewScalarFieldEnum = (typeof Inventory_overviewScalarFieldEnum)[keyof typeof Inventory_overviewScalarFieldEnum]
|
||||
|
||||
|
||||
export const Stock_cardexScalarFieldEnum = {
|
||||
productId: 'productId',
|
||||
movement_id: 'movement_id',
|
||||
type: 'type',
|
||||
quantity: 'quantity',
|
||||
fee: 'fee',
|
||||
totalCost: 'totalCost',
|
||||
balance_quantity: 'balance_quantity',
|
||||
balance_avg_cost: 'balance_avg_cost',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type Stock_cardexScalarFieldEnum = (typeof Stock_cardexScalarFieldEnum)[keyof typeof Stock_cardexScalarFieldEnum]
|
||||
|
||||
|
||||
export const Stock_viewScalarFieldEnum = {
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
stock: 'stock'
|
||||
} as const
|
||||
|
||||
export type Stock_viewScalarFieldEnum = (typeof Stock_viewScalarFieldEnum)[keyof typeof Stock_viewScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -539,6 +571,132 @@ export const RoleOrderByRelevanceFieldEnum = {
|
||||
export type RoleOrderByRelevanceFieldEnum = (typeof RoleOrderByRelevanceFieldEnum)[keyof typeof RoleOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const OtpCodeOrderByRelevanceFieldEnum = {
|
||||
mobileNumber: 'mobileNumber',
|
||||
code: 'code'
|
||||
} as const
|
||||
|
||||
export type OtpCodeOrderByRelevanceFieldEnum = (typeof OtpCodeOrderByRelevanceFieldEnum)[keyof typeof OtpCodeOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const RefreshTokenOrderByRelevanceFieldEnum = {
|
||||
tokenHash: 'tokenHash'
|
||||
} as const
|
||||
|
||||
export type RefreshTokenOrderByRelevanceFieldEnum = (typeof RefreshTokenOrderByRelevanceFieldEnum)[keyof typeof RefreshTokenOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const BankBranchOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
address: 'address'
|
||||
} as const
|
||||
|
||||
export type BankBranchOrderByRelevanceFieldEnum = (typeof BankBranchOrderByRelevanceFieldEnum)[keyof typeof BankBranchOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const BankAccountOrderByRelevanceFieldEnum = {
|
||||
accountNumber: 'accountNumber',
|
||||
cardNumber: 'cardNumber',
|
||||
name: 'name',
|
||||
iban: 'iban'
|
||||
} as const
|
||||
|
||||
export type BankAccountOrderByRelevanceFieldEnum = (typeof BankAccountOrderByRelevanceFieldEnum)[keyof typeof BankAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const InventoryOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
location: 'location'
|
||||
} as const
|
||||
|
||||
export type InventoryOrderByRelevanceFieldEnum = (typeof InventoryOrderByRelevanceFieldEnum)[keyof typeof InventoryOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferOrderByRelevanceFieldEnum = (typeof InventoryTransferOrderByRelevanceFieldEnum)[keyof typeof InventoryTransferOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PosAccountOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type PosAccountOrderByRelevanceFieldEnum = (typeof PosAccountOrderByRelevanceFieldEnum)[keyof typeof PosAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const BankOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
shortName: 'shortName'
|
||||
} as const
|
||||
|
||||
export type BankOrderByRelevanceFieldEnum = (typeof BankOrderByRelevanceFieldEnum)[keyof typeof BankOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country'
|
||||
} as const
|
||||
|
||||
export type SupplierOrderByRelevanceFieldEnum = (typeof SupplierOrderByRelevanceFieldEnum)[keyof typeof SupplierOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerOrderByRelevanceFieldEnum = {
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerOrderByRelevanceFieldEnum = (typeof SupplierLedgerOrderByRelevanceFieldEnum)[keyof typeof SupplierLedgerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const CustomerOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country'
|
||||
} as const
|
||||
|
||||
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const OrderOrderByRelevanceFieldEnum = {
|
||||
orderNumber: 'orderNumber',
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type OrderOrderByRelevanceFieldEnum = (typeof OrderOrderByRelevanceFieldEnum)[keyof typeof OrderOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const TriggerLogOrderByRelevanceFieldEnum = {
|
||||
message: 'message',
|
||||
name: 'name'
|
||||
} as const
|
||||
|
||||
export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelevanceFieldEnum)[keyof typeof TriggerLogOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ProductVariantOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
@@ -578,64 +736,6 @@ export const ProductCategoryOrderByRelevanceFieldEnum = {
|
||||
export type ProductCategoryOrderByRelevanceFieldEnum = (typeof ProductCategoryOrderByRelevanceFieldEnum)[keyof typeof ProductCategoryOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country'
|
||||
} as const
|
||||
|
||||
export type SupplierOrderByRelevanceFieldEnum = (typeof SupplierOrderByRelevanceFieldEnum)[keyof typeof SupplierOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const CustomerOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country'
|
||||
} as const
|
||||
|
||||
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const InventoryOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
location: 'location'
|
||||
} as const
|
||||
|
||||
export type InventoryOrderByRelevanceFieldEnum = (typeof InventoryOrderByRelevanceFieldEnum)[keyof typeof InventoryOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const StoreOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
location: 'location'
|
||||
} as const
|
||||
|
||||
export type StoreOrderByRelevanceFieldEnum = (typeof StoreOrderByRelevanceFieldEnum)[keyof typeof StoreOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ProductChargeOrderByRelevanceFieldEnum = {
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type ProductChargeOrderByRelevanceFieldEnum = (typeof ProductChargeOrderByRelevanceFieldEnum)[keyof typeof ProductChargeOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const OrderOrderByRelevanceFieldEnum = {
|
||||
orderNumber: 'orderNumber'
|
||||
} as const
|
||||
|
||||
export type OrderOrderByRelevanceFieldEnum = (typeof OrderOrderByRelevanceFieldEnum)[keyof typeof OrderOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PurchaseReceiptOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
@@ -651,12 +751,11 @@ export const PurchaseReceiptItemOrderByRelevanceFieldEnum = {
|
||||
export type PurchaseReceiptItemOrderByRelevanceFieldEnum = (typeof PurchaseReceiptItemOrderByRelevanceFieldEnum)[keyof typeof PurchaseReceiptItemOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
export const PurchaseReceiptPaymentsOrderByRelevanceFieldEnum = {
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
|
||||
export type PurchaseReceiptPaymentsOrderByRelevanceFieldEnum = (typeof PurchaseReceiptPaymentsOrderByRelevanceFieldEnum)[keyof typeof PurchaseReceiptPaymentsOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const StockMovementOrderByRelevanceFieldEnum = {
|
||||
@@ -665,34 +764,3 @@ export const StockMovementOrderByRelevanceFieldEnum = {
|
||||
|
||||
export type StockMovementOrderByRelevanceFieldEnum = (typeof StockMovementOrderByRelevanceFieldEnum)[keyof typeof StockMovementOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const OtpCodeOrderByRelevanceFieldEnum = {
|
||||
mobileNumber: 'mobileNumber',
|
||||
code: 'code'
|
||||
} as const
|
||||
|
||||
export type OtpCodeOrderByRelevanceFieldEnum = (typeof OtpCodeOrderByRelevanceFieldEnum)[keyof typeof OtpCodeOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const RefreshTokenOrderByRelevanceFieldEnum = {
|
||||
tokenHash: 'tokenHash'
|
||||
} as const
|
||||
|
||||
export type RefreshTokenOrderByRelevanceFieldEnum = (typeof RefreshTokenOrderByRelevanceFieldEnum)[keyof typeof RefreshTokenOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferOrderByRelevanceFieldEnum = (typeof InventoryTransferOrderByRelevanceFieldEnum)[keyof typeof InventoryTransferOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const TriggerLogOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
message: 'message'
|
||||
} as const
|
||||
|
||||
export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelevanceFieldEnum)[keyof typeof TriggerLogOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
@@ -10,29 +10,31 @@
|
||||
*/
|
||||
export type * from './models/User.js'
|
||||
export type * from './models/Role.js'
|
||||
export type * from './models/OtpCode.js'
|
||||
export type * from './models/RefreshToken.js'
|
||||
export type * from './models/BankBranch.js'
|
||||
export type * from './models/BankAccount.js'
|
||||
export type * from './models/Inventory.js'
|
||||
export type * from './models/InventoryTransfer.js'
|
||||
export type * from './models/InventoryTransferItem.js'
|
||||
export type * from './models/InventoryBankAccount.js'
|
||||
export type * from './models/PosAccount.js'
|
||||
export type * from './models/Bank.js'
|
||||
export type * from './models/Supplier.js'
|
||||
export type * from './models/SupplierLedger.js'
|
||||
export type * from './models/Customer.js'
|
||||
export type * from './models/Order.js'
|
||||
export type * from './models/SalesInvoice.js'
|
||||
export type * from './models/SalesInvoiceItem.js'
|
||||
export type * from './models/TriggerLog.js'
|
||||
export type * from './models/ProductVariant.js'
|
||||
export type * from './models/Product.js'
|
||||
export type * from './models/ProductBrand.js'
|
||||
export type * from './models/ProductCategory.js'
|
||||
export type * from './models/Supplier.js'
|
||||
export type * from './models/Customer.js'
|
||||
export type * from './models/Inventory.js'
|
||||
export type * from './models/Store.js'
|
||||
export type * from './models/ProductCharge.js'
|
||||
export type * from './models/Order.js'
|
||||
export type * from './models/PurchaseReceipt.js'
|
||||
export type * from './models/PurchaseReceiptItem.js'
|
||||
export type * from './models/SalesInvoice.js'
|
||||
export type * from './models/SalesInvoiceItem.js'
|
||||
export type * from './models/PurchaseReceiptPayments.js'
|
||||
export type * from './models/StockMovement.js'
|
||||
export type * from './models/StockBalance.js'
|
||||
export type * from './models/OtpCode.js'
|
||||
export type * from './models/RefreshToken.js'
|
||||
export type * from './models/InventoryTransfer.js'
|
||||
export type * from './models/InventoryTransferItem.js'
|
||||
export type * from './models/StockAdjustment.js'
|
||||
export type * from './models/TriggerLog.js'
|
||||
export type * from './models/inventory_overview.js'
|
||||
export type * from './models/stock_cardex.js'
|
||||
export type * from './models/stock_view.js'
|
||||
export type * from './commonInputTypes.js'
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -356,48 +356,6 @@ export type InventoryTransferItemSumOrderByAggregateInput = {
|
||||
transferId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
|
||||
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
|
||||
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
|
||||
set?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
delete?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
update?: Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput | Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
|
||||
set?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
delete?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
update?: Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput | Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateNestedManyWithoutTransferInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutTransferInput, Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput> | Prisma.InventoryTransferItemCreateWithoutTransferInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput[]
|
||||
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput | Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput[]
|
||||
@@ -440,51 +398,54 @@ export type InventoryTransferItemUncheckedUpdateManyWithoutTransferNestedInput =
|
||||
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateWithoutProductInput = {
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transfer: Prisma.InventoryTransferCreateNestedOneWithoutItemsInput
|
||||
export type DecimalFieldUpdateOperationsInput = {
|
||||
set?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
increment?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
divide?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUncheckedCreateWithoutProductInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transferId: number
|
||||
export type InventoryTransferItemCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
|
||||
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.InventoryTransferItemWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput>
|
||||
export type InventoryTransferItemUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
|
||||
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateManyProductInputEnvelope = {
|
||||
data: Prisma.InventoryTransferItemCreateManyProductInput | Prisma.InventoryTransferItemCreateManyProductInput[]
|
||||
skipDuplicates?: boolean
|
||||
export type InventoryTransferItemUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
|
||||
set?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
delete?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
update?: Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput | Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.InventoryTransferItemWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.InventoryTransferItemUpdateWithoutProductInput, Prisma.InventoryTransferItemUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.InventoryTransferItemWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateWithoutProductInput, Prisma.InventoryTransferItemUncheckedUpdateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUpdateManyWithWhereWithoutProductInput = {
|
||||
where: Prisma.InventoryTransferItemScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateManyMutationInput, Prisma.InventoryTransferItemUncheckedUpdateManyWithoutProductInput>
|
||||
}
|
||||
|
||||
export type InventoryTransferItemScalarWhereInput = {
|
||||
AND?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
OR?: Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
NOT?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"InventoryTransferItem"> | number
|
||||
count?: Prisma.DecimalFilter<"InventoryTransferItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId?: Prisma.IntFilter<"InventoryTransferItem"> | number
|
||||
transferId?: Prisma.IntFilter<"InventoryTransferItem"> | number
|
||||
export type InventoryTransferItemUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
|
||||
set?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
delete?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
|
||||
update?: Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput | Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateWithoutTransferInput = {
|
||||
@@ -524,27 +485,51 @@ export type InventoryTransferItemUpdateManyWithWhereWithoutTransferInput = {
|
||||
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateManyMutationInput, Prisma.InventoryTransferItemUncheckedUpdateManyWithoutTransferInput>
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateManyProductInput = {
|
||||
export type InventoryTransferItemScalarWhereInput = {
|
||||
AND?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
OR?: Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
NOT?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"InventoryTransferItem"> | number
|
||||
count?: Prisma.DecimalFilter<"InventoryTransferItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId?: Prisma.IntFilter<"InventoryTransferItem"> | number
|
||||
transferId?: Prisma.IntFilter<"InventoryTransferItem"> | number
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateWithoutProductInput = {
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transfer: Prisma.InventoryTransferCreateNestedOneWithoutItemsInput
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUncheckedCreateWithoutProductInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transferId: number
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUpdateWithoutProductInput = {
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transfer?: Prisma.InventoryTransferUpdateOneRequiredWithoutItemsNestedInput
|
||||
export type InventoryTransferItemCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.InventoryTransferItemWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUncheckedUpdateWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transferId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
export type InventoryTransferItemCreateManyProductInputEnvelope = {
|
||||
data: Prisma.InventoryTransferItemCreateManyProductInput | Prisma.InventoryTransferItemCreateManyProductInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transferId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
export type InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.InventoryTransferItemWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.InventoryTransferItemUpdateWithoutProductInput, Prisma.InventoryTransferItemUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.InventoryTransferItemWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateWithoutProductInput, Prisma.InventoryTransferItemUncheckedUpdateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUpdateManyWithWhereWithoutProductInput = {
|
||||
where: Prisma.InventoryTransferItemScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateManyMutationInput, Prisma.InventoryTransferItemUncheckedUpdateManyWithoutProductInput>
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateManyTransferInput = {
|
||||
@@ -570,6 +555,29 @@ export type InventoryTransferItemUncheckedUpdateManyWithoutTransferInput = {
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type InventoryTransferItemCreateManyProductInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transferId: number
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUpdateWithoutProductInput = {
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transfer?: Prisma.InventoryTransferUpdateOneRequiredWithoutItemsNestedInput
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUncheckedUpdateWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transferId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type InventoryTransferItemUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
transferId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type InventoryTransferItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
|
||||
@@ -42,8 +42,9 @@ export type OrderMinAggregateOutputType = {
|
||||
id: number | null
|
||||
orderNumber: string | null
|
||||
status: $Enums.OrderStatus | null
|
||||
paymentMethod: $Enums.paymentMethod | null
|
||||
paymentMethod: $Enums.payment_method_type | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
description: string | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
deletedAt: Date | null
|
||||
@@ -54,8 +55,9 @@ export type OrderMaxAggregateOutputType = {
|
||||
id: number | null
|
||||
orderNumber: string | null
|
||||
status: $Enums.OrderStatus | null
|
||||
paymentMethod: $Enums.paymentMethod | null
|
||||
paymentMethod: $Enums.payment_method_type | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
description: string | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
deletedAt: Date | null
|
||||
@@ -68,6 +70,7 @@ export type OrderCountAggregateOutputType = {
|
||||
status: number
|
||||
paymentMethod: number
|
||||
totalAmount: number
|
||||
description: number
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
deletedAt: number
|
||||
@@ -94,6 +97,7 @@ export type OrderMinAggregateInputType = {
|
||||
status?: true
|
||||
paymentMethod?: true
|
||||
totalAmount?: true
|
||||
description?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
@@ -106,6 +110,7 @@ export type OrderMaxAggregateInputType = {
|
||||
status?: true
|
||||
paymentMethod?: true
|
||||
totalAmount?: true
|
||||
description?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
@@ -118,6 +123,7 @@ export type OrderCountAggregateInputType = {
|
||||
status?: true
|
||||
paymentMethod?: true
|
||||
totalAmount?: true
|
||||
description?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
@@ -215,8 +221,9 @@ export type OrderGroupByOutputType = {
|
||||
id: number
|
||||
orderNumber: string
|
||||
status: $Enums.OrderStatus
|
||||
paymentMethod: $Enums.paymentMethod
|
||||
paymentMethod: $Enums.payment_method_type
|
||||
totalAmount: runtime.Decimal
|
||||
description: string | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
@@ -250,8 +257,9 @@ export type OrderWhereInput = {
|
||||
id?: Prisma.IntFilter<"Order"> | number
|
||||
orderNumber?: Prisma.StringFilter<"Order"> | string
|
||||
status?: Prisma.EnumOrderStatusFilter<"Order"> | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFilter<"Order"> | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFilter<"Order"> | $Enums.payment_method_type
|
||||
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
|
||||
@@ -265,6 +273,7 @@ export type OrderOrderByWithRelationInput = {
|
||||
status?: Prisma.SortOrder
|
||||
paymentMethod?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
@@ -280,8 +289,9 @@ export type OrderWhereUniqueInput = Prisma.AtLeast<{
|
||||
OR?: Prisma.OrderWhereInput[]
|
||||
NOT?: Prisma.OrderWhereInput | Prisma.OrderWhereInput[]
|
||||
status?: Prisma.EnumOrderStatusFilter<"Order"> | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFilter<"Order"> | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFilter<"Order"> | $Enums.payment_method_type
|
||||
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
|
||||
@@ -295,6 +305,7 @@ export type OrderOrderByWithAggregationInput = {
|
||||
status?: Prisma.SortOrder
|
||||
paymentMethod?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
@@ -313,8 +324,9 @@ export type OrderScalarWhereWithAggregatesInput = {
|
||||
id?: Prisma.IntWithAggregatesFilter<"Order"> | number
|
||||
orderNumber?: Prisma.StringWithAggregatesFilter<"Order"> | string
|
||||
status?: Prisma.EnumOrderStatusWithAggregatesFilter<"Order"> | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodWithAggregatesFilter<"Order"> | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeWithAggregatesFilter<"Order"> | $Enums.payment_method_type
|
||||
totalAmount?: Prisma.DecimalWithAggregatesFilter<"Order"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableWithAggregatesFilter<"Order"> | string | null
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Order"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Order"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Order"> | Date | string | null
|
||||
@@ -324,8 +336,9 @@ export type OrderScalarWhereWithAggregatesInput = {
|
||||
export type OrderCreateInput = {
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
paymentMethod?: $Enums.paymentMethod
|
||||
paymentMethod?: $Enums.payment_method_type
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -336,8 +349,9 @@ export type OrderUncheckedCreateInput = {
|
||||
id?: number
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
paymentMethod?: $Enums.paymentMethod
|
||||
paymentMethod?: $Enums.payment_method_type
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -347,8 +361,9 @@ export type OrderUncheckedCreateInput = {
|
||||
export type OrderUpdateInput = {
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFieldUpdateOperationsInput | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFieldUpdateOperationsInput | $Enums.payment_method_type
|
||||
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
|
||||
@@ -359,8 +374,9 @@ export type OrderUncheckedUpdateInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFieldUpdateOperationsInput | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFieldUpdateOperationsInput | $Enums.payment_method_type
|
||||
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
|
||||
@@ -371,8 +387,9 @@ export type OrderCreateManyInput = {
|
||||
id?: number
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
paymentMethod?: $Enums.paymentMethod
|
||||
paymentMethod?: $Enums.payment_method_type
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -382,8 +399,9 @@ export type OrderCreateManyInput = {
|
||||
export type OrderUpdateManyMutationInput = {
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFieldUpdateOperationsInput | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFieldUpdateOperationsInput | $Enums.payment_method_type
|
||||
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
|
||||
@@ -393,8 +411,9 @@ export type OrderUncheckedUpdateManyInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFieldUpdateOperationsInput | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFieldUpdateOperationsInput | $Enums.payment_method_type
|
||||
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
|
||||
@@ -423,6 +442,7 @@ export type OrderCountOrderByAggregateInput = {
|
||||
status?: Prisma.SortOrder
|
||||
paymentMethod?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
@@ -441,6 +461,7 @@ export type OrderMaxOrderByAggregateInput = {
|
||||
status?: Prisma.SortOrder
|
||||
paymentMethod?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
@@ -453,6 +474,7 @@ export type OrderMinOrderByAggregateInput = {
|
||||
status?: Prisma.SortOrder
|
||||
paymentMethod?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
@@ -511,15 +533,16 @@ export type EnumOrderStatusFieldUpdateOperationsInput = {
|
||||
set?: $Enums.OrderStatus
|
||||
}
|
||||
|
||||
export type EnumpaymentMethodFieldUpdateOperationsInput = {
|
||||
set?: $Enums.paymentMethod
|
||||
export type Enumpayment_method_typeFieldUpdateOperationsInput = {
|
||||
set?: $Enums.payment_method_type
|
||||
}
|
||||
|
||||
export type OrderCreateWithoutCustomerInput = {
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
paymentMethod?: $Enums.paymentMethod
|
||||
paymentMethod?: $Enums.payment_method_type
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -529,8 +552,9 @@ export type OrderUncheckedCreateWithoutCustomerInput = {
|
||||
id?: number
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
paymentMethod?: $Enums.paymentMethod
|
||||
paymentMethod?: $Enums.payment_method_type
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -569,8 +593,9 @@ export type OrderScalarWhereInput = {
|
||||
id?: Prisma.IntFilter<"Order"> | number
|
||||
orderNumber?: Prisma.StringFilter<"Order"> | string
|
||||
status?: Prisma.EnumOrderStatusFilter<"Order"> | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFilter<"Order"> | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFilter<"Order"> | $Enums.payment_method_type
|
||||
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
|
||||
@@ -581,8 +606,9 @@ export type OrderCreateManyCustomerInput = {
|
||||
id?: number
|
||||
orderNumber: string
|
||||
status?: $Enums.OrderStatus
|
||||
paymentMethod?: $Enums.paymentMethod
|
||||
paymentMethod?: $Enums.payment_method_type
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
@@ -591,8 +617,9 @@ export type OrderCreateManyCustomerInput = {
|
||||
export type OrderUpdateWithoutCustomerInput = {
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFieldUpdateOperationsInput | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFieldUpdateOperationsInput | $Enums.payment_method_type
|
||||
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
|
||||
@@ -602,8 +629,9 @@ export type OrderUncheckedUpdateWithoutCustomerInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFieldUpdateOperationsInput | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFieldUpdateOperationsInput | $Enums.payment_method_type
|
||||
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
|
||||
@@ -613,8 +641,9 @@ export type OrderUncheckedUpdateManyWithoutCustomerInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
|
||||
paymentMethod?: Prisma.EnumpaymentMethodFieldUpdateOperationsInput | $Enums.paymentMethod
|
||||
paymentMethod?: Prisma.Enumpayment_method_typeFieldUpdateOperationsInput | $Enums.payment_method_type
|
||||
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
|
||||
@@ -628,6 +657,7 @@ export type OrderSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
status?: boolean
|
||||
paymentMethod?: boolean
|
||||
totalAmount?: boolean
|
||||
description?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
@@ -643,13 +673,14 @@ export type OrderSelectScalar = {
|
||||
status?: boolean
|
||||
paymentMethod?: boolean
|
||||
totalAmount?: boolean
|
||||
description?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
customerId?: boolean
|
||||
}
|
||||
|
||||
export type OrderOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "orderNumber" | "status" | "paymentMethod" | "totalAmount" | "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" | "paymentMethod" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "deletedAt" | "customerId", ExtArgs["result"]["order"]>
|
||||
export type OrderInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
|
||||
}
|
||||
@@ -663,8 +694,9 @@ export type $OrderPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
id: number
|
||||
orderNumber: string
|
||||
status: $Enums.OrderStatus
|
||||
paymentMethod: $Enums.paymentMethod
|
||||
paymentMethod: $Enums.payment_method_type
|
||||
totalAmount: runtime.Decimal
|
||||
description: string | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
@@ -1042,8 +1074,9 @@ export interface OrderFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"Order", 'Int'>
|
||||
readonly orderNumber: Prisma.FieldRef<"Order", 'String'>
|
||||
readonly status: Prisma.FieldRef<"Order", 'OrderStatus'>
|
||||
readonly paymentMethod: Prisma.FieldRef<"Order", 'paymentMethod'>
|
||||
readonly paymentMethod: Prisma.FieldRef<"Order", 'payment_method_type'>
|
||||
readonly totalAmount: Prisma.FieldRef<"Order", 'Decimal'>
|
||||
readonly description: Prisma.FieldRef<"Order", 'String'>
|
||||
readonly createdAt: Prisma.FieldRef<"Order", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"Order", 'DateTime'>
|
||||
readonly deletedAt: Prisma.FieldRef<"Order", 'DateTime'>
|
||||
|
||||
@@ -375,6 +375,10 @@ export type OtpCodeSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type BoolFieldUpdateOperationsInput = {
|
||||
set?: boolean
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type OtpCodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -637,14 +637,6 @@ export type ProductVariantOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type DecimalFieldUpdateOperationsInput = {
|
||||
set?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
increment?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
divide?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type NullableDecimalFieldUpdateOperationsInput = {
|
||||
set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
increment?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
@@ -653,10 +645,6 @@ export type NullableDecimalFieldUpdateOperationsInput = {
|
||||
divide?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type BoolFieldUpdateOperationsInput = {
|
||||
set?: boolean
|
||||
}
|
||||
|
||||
export type ProductVariantCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductVariantCreateWithoutProductInput, Prisma.ProductVariantUncheckedCreateWithoutProductInput> | Prisma.ProductVariantCreateWithoutProductInput[] | Prisma.ProductVariantUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.ProductVariantCreateOrConnectWithoutProductInput | Prisma.ProductVariantCreateOrConnectWithoutProductInput[]
|
||||
|
||||
@@ -29,6 +29,7 @@ export type AggregatePurchaseReceipt = {
|
||||
export type PurchaseReceiptAvgAggregateOutputType = {
|
||||
id: number | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
paidAmount: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
inventoryId: number | null
|
||||
}
|
||||
@@ -36,6 +37,7 @@ export type PurchaseReceiptAvgAggregateOutputType = {
|
||||
export type PurchaseReceiptSumAggregateOutputType = {
|
||||
id: number | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
paidAmount: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
inventoryId: number | null
|
||||
}
|
||||
@@ -44,6 +46,8 @@ export type PurchaseReceiptMinAggregateOutputType = {
|
||||
id: number | null
|
||||
code: string | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
paidAmount: runtime.Decimal | null
|
||||
isSettled: boolean | null
|
||||
description: string | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
@@ -55,6 +59,8 @@ export type PurchaseReceiptMaxAggregateOutputType = {
|
||||
id: number | null
|
||||
code: string | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
paidAmount: runtime.Decimal | null
|
||||
isSettled: boolean | null
|
||||
description: string | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
@@ -66,6 +72,8 @@ export type PurchaseReceiptCountAggregateOutputType = {
|
||||
id: number
|
||||
code: number
|
||||
totalAmount: number
|
||||
paidAmount: number
|
||||
isSettled: number
|
||||
description: number
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
@@ -78,6 +86,7 @@ export type PurchaseReceiptCountAggregateOutputType = {
|
||||
export type PurchaseReceiptAvgAggregateInputType = {
|
||||
id?: true
|
||||
totalAmount?: true
|
||||
paidAmount?: true
|
||||
supplierId?: true
|
||||
inventoryId?: true
|
||||
}
|
||||
@@ -85,6 +94,7 @@ export type PurchaseReceiptAvgAggregateInputType = {
|
||||
export type PurchaseReceiptSumAggregateInputType = {
|
||||
id?: true
|
||||
totalAmount?: true
|
||||
paidAmount?: true
|
||||
supplierId?: true
|
||||
inventoryId?: true
|
||||
}
|
||||
@@ -93,6 +103,8 @@ export type PurchaseReceiptMinAggregateInputType = {
|
||||
id?: true
|
||||
code?: true
|
||||
totalAmount?: true
|
||||
paidAmount?: true
|
||||
isSettled?: true
|
||||
description?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
@@ -104,6 +116,8 @@ export type PurchaseReceiptMaxAggregateInputType = {
|
||||
id?: true
|
||||
code?: true
|
||||
totalAmount?: true
|
||||
paidAmount?: true
|
||||
isSettled?: true
|
||||
description?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
@@ -115,6 +129,8 @@ export type PurchaseReceiptCountAggregateInputType = {
|
||||
id?: true
|
||||
code?: true
|
||||
totalAmount?: true
|
||||
paidAmount?: true
|
||||
isSettled?: true
|
||||
description?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
@@ -213,6 +229,8 @@ export type PurchaseReceiptGroupByOutputType = {
|
||||
id: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal
|
||||
paidAmount: runtime.Decimal
|
||||
isSettled: boolean
|
||||
description: string | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
@@ -247,6 +265,8 @@ export type PurchaseReceiptWhereInput = {
|
||||
id?: Prisma.IntFilter<"PurchaseReceipt"> | number
|
||||
code?: Prisma.StringFilter<"PurchaseReceipt"> | string
|
||||
totalAmount?: Prisma.DecimalFilter<"PurchaseReceipt"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFilter<"PurchaseReceipt"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFilter<"PurchaseReceipt"> | boolean
|
||||
description?: Prisma.StringNullableFilter<"PurchaseReceipt"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"PurchaseReceipt"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"PurchaseReceipt"> | Date | string
|
||||
@@ -255,12 +275,15 @@ export type PurchaseReceiptWhereInput = {
|
||||
items?: Prisma.PurchaseReceiptItemListRelationFilter
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
supplier?: Prisma.XOR<Prisma.SupplierScalarRelationFilter, Prisma.SupplierWhereInput>
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsListRelationFilter
|
||||
}
|
||||
|
||||
export type PurchaseReceiptOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
paidAmount?: Prisma.SortOrder
|
||||
isSettled?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -269,6 +292,7 @@ export type PurchaseReceiptOrderByWithRelationInput = {
|
||||
items?: Prisma.PurchaseReceiptItemOrderByRelationAggregateInput
|
||||
inventory?: Prisma.InventoryOrderByWithRelationInput
|
||||
supplier?: Prisma.SupplierOrderByWithRelationInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.PurchaseReceiptOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -279,6 +303,8 @@ export type PurchaseReceiptWhereUniqueInput = Prisma.AtLeast<{
|
||||
OR?: Prisma.PurchaseReceiptWhereInput[]
|
||||
NOT?: Prisma.PurchaseReceiptWhereInput | Prisma.PurchaseReceiptWhereInput[]
|
||||
totalAmount?: Prisma.DecimalFilter<"PurchaseReceipt"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFilter<"PurchaseReceipt"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFilter<"PurchaseReceipt"> | boolean
|
||||
description?: Prisma.StringNullableFilter<"PurchaseReceipt"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"PurchaseReceipt"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"PurchaseReceipt"> | Date | string
|
||||
@@ -287,12 +313,15 @@ export type PurchaseReceiptWhereUniqueInput = Prisma.AtLeast<{
|
||||
items?: Prisma.PurchaseReceiptItemListRelationFilter
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
supplier?: Prisma.XOR<Prisma.SupplierScalarRelationFilter, Prisma.SupplierWhereInput>
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsListRelationFilter
|
||||
}, "id" | "code">
|
||||
|
||||
export type PurchaseReceiptOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
paidAmount?: Prisma.SortOrder
|
||||
isSettled?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -312,6 +341,8 @@ export type PurchaseReceiptScalarWhereWithAggregatesInput = {
|
||||
id?: Prisma.IntWithAggregatesFilter<"PurchaseReceipt"> | number
|
||||
code?: Prisma.StringWithAggregatesFilter<"PurchaseReceipt"> | string
|
||||
totalAmount?: Prisma.DecimalWithAggregatesFilter<"PurchaseReceipt"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalWithAggregatesFilter<"PurchaseReceipt"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolWithAggregatesFilter<"PurchaseReceipt"> | boolean
|
||||
description?: Prisma.StringNullableWithAggregatesFilter<"PurchaseReceipt"> | string | null
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"PurchaseReceipt"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PurchaseReceipt"> | Date | string
|
||||
@@ -322,53 +353,67 @@ export type PurchaseReceiptScalarWhereWithAggregatesInput = {
|
||||
export type PurchaseReceiptCreateInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
items?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutReceiptInput
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutPurchaseReceiptsInput
|
||||
supplier: Prisma.SupplierCreateNestedOneWithoutPurchaseReceiptsInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsCreateNestedManyWithoutPurchaseReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedCreateInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
supplierId: number
|
||||
inventoryId: number
|
||||
items?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutReceiptInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedCreateNestedManyWithoutPurchaseReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateInput = {
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
items?: Prisma.PurchaseReceiptItemUpdateManyWithoutReceiptNestedInput
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutPurchaseReceiptsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneRequiredWithoutPurchaseReceiptsNestedInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUpdateManyWithoutPurchaseReceiptNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
items?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutReceiptNestedInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedUpdateManyWithoutPurchaseReceiptNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateManyInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -379,6 +424,8 @@ export type PurchaseReceiptCreateManyInput = {
|
||||
export type PurchaseReceiptUpdateManyMutationInput = {
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -388,6 +435,8 @@ export type PurchaseReceiptUncheckedUpdateManyInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -415,6 +464,8 @@ export type PurchaseReceiptCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
paidAmount?: Prisma.SortOrder
|
||||
isSettled?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -425,6 +476,7 @@ export type PurchaseReceiptCountOrderByAggregateInput = {
|
||||
export type PurchaseReceiptAvgOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
paidAmount?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
}
|
||||
@@ -433,6 +485,8 @@ export type PurchaseReceiptMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
paidAmount?: Prisma.SortOrder
|
||||
isSettled?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -444,6 +498,8 @@ export type PurchaseReceiptMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
paidAmount?: Prisma.SortOrder
|
||||
isSettled?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -454,6 +510,7 @@ export type PurchaseReceiptMinOrderByAggregateInput = {
|
||||
export type PurchaseReceiptSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
paidAmount?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
}
|
||||
@@ -463,48 +520,6 @@ export type PurchaseReceiptScalarRelationFilter = {
|
||||
isNot?: Prisma.PurchaseReceiptWhereInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateNestedManyWithoutSupplierInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput> | Prisma.PurchaseReceiptCreateWithoutSupplierInput[] | Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput | Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput[]
|
||||
createMany?: Prisma.PurchaseReceiptCreateManySupplierInputEnvelope
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedCreateNestedManyWithoutSupplierInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput> | Prisma.PurchaseReceiptCreateWithoutSupplierInput[] | Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput | Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput[]
|
||||
createMany?: Prisma.PurchaseReceiptCreateManySupplierInputEnvelope
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateManyWithoutSupplierNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput> | Prisma.PurchaseReceiptCreateWithoutSupplierInput[] | Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput | Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput[]
|
||||
upsert?: Prisma.PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput | Prisma.PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput[]
|
||||
createMany?: Prisma.PurchaseReceiptCreateManySupplierInputEnvelope
|
||||
set?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
disconnect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
delete?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
update?: Prisma.PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput | Prisma.PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput[]
|
||||
updateMany?: Prisma.PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput | Prisma.PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput[]
|
||||
deleteMany?: Prisma.PurchaseReceiptScalarWhereInput | Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateManyWithoutSupplierNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput> | Prisma.PurchaseReceiptCreateWithoutSupplierInput[] | Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput | Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput[]
|
||||
upsert?: Prisma.PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput | Prisma.PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput[]
|
||||
createMany?: Prisma.PurchaseReceiptCreateManySupplierInputEnvelope
|
||||
set?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
disconnect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
delete?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
update?: Prisma.PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput | Prisma.PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput[]
|
||||
updateMany?: Prisma.PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput | Prisma.PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput[]
|
||||
deleteMany?: Prisma.PurchaseReceiptScalarWhereInput | Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateNestedManyWithoutInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutInventoryInput, Prisma.PurchaseReceiptUncheckedCreateWithoutInventoryInput> | Prisma.PurchaseReceiptCreateWithoutInventoryInput[] | Prisma.PurchaseReceiptUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutInventoryInput | Prisma.PurchaseReceiptCreateOrConnectWithoutInventoryInput[]
|
||||
@@ -547,6 +562,48 @@ export type PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||||
deleteMany?: Prisma.PurchaseReceiptScalarWhereInput | Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateNestedManyWithoutSupplierInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput> | Prisma.PurchaseReceiptCreateWithoutSupplierInput[] | Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput | Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput[]
|
||||
createMany?: Prisma.PurchaseReceiptCreateManySupplierInputEnvelope
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedCreateNestedManyWithoutSupplierInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput> | Prisma.PurchaseReceiptCreateWithoutSupplierInput[] | Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput | Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput[]
|
||||
createMany?: Prisma.PurchaseReceiptCreateManySupplierInputEnvelope
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateManyWithoutSupplierNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput> | Prisma.PurchaseReceiptCreateWithoutSupplierInput[] | Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput | Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput[]
|
||||
upsert?: Prisma.PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput | Prisma.PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput[]
|
||||
createMany?: Prisma.PurchaseReceiptCreateManySupplierInputEnvelope
|
||||
set?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
disconnect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
delete?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
update?: Prisma.PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput | Prisma.PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput[]
|
||||
updateMany?: Prisma.PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput | Prisma.PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput[]
|
||||
deleteMany?: Prisma.PurchaseReceiptScalarWhereInput | Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateManyWithoutSupplierNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput> | Prisma.PurchaseReceiptCreateWithoutSupplierInput[] | Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput[]
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput | Prisma.PurchaseReceiptCreateOrConnectWithoutSupplierInput[]
|
||||
upsert?: Prisma.PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput | Prisma.PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput[]
|
||||
createMany?: Prisma.PurchaseReceiptCreateManySupplierInputEnvelope
|
||||
set?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
disconnect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
delete?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput | Prisma.PurchaseReceiptWhereUniqueInput[]
|
||||
update?: Prisma.PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput | Prisma.PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput[]
|
||||
updateMany?: Prisma.PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput | Prisma.PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput[]
|
||||
deleteMany?: Prisma.PurchaseReceiptScalarWhereInput | Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateNestedOneWithoutItemsInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutItemsInput, Prisma.PurchaseReceiptUncheckedCreateWithoutItemsInput>
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutItemsInput
|
||||
@@ -561,86 +618,45 @@ export type PurchaseReceiptUpdateOneRequiredWithoutItemsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PurchaseReceiptUpdateToOneWithWhereWithoutItemsInput, Prisma.PurchaseReceiptUpdateWithoutItemsInput>, Prisma.PurchaseReceiptUncheckedUpdateWithoutItemsInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateWithoutSupplierInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
items?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutReceiptInput
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutPurchaseReceiptsInput
|
||||
export type PurchaseReceiptCreateNestedOneWithoutPurchaseReceiptPaymentsInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutPurchaseReceiptPaymentsInput, Prisma.PurchaseReceiptUncheckedCreateWithoutPurchaseReceiptPaymentsInput>
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutPurchaseReceiptPaymentsInput
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedCreateWithoutSupplierInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventoryId: number
|
||||
items?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateOrConnectWithoutSupplierInput = {
|
||||
where: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateManySupplierInputEnvelope = {
|
||||
data: Prisma.PurchaseReceiptCreateManySupplierInput | Prisma.PurchaseReceiptCreateManySupplierInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput = {
|
||||
where: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.PurchaseReceiptUpdateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedUpdateWithoutSupplierInput>
|
||||
create: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput = {
|
||||
where: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.PurchaseReceiptUpdateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedUpdateWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput = {
|
||||
where: Prisma.PurchaseReceiptScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.PurchaseReceiptUpdateManyMutationInput, Prisma.PurchaseReceiptUncheckedUpdateManyWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptScalarWhereInput = {
|
||||
AND?: Prisma.PurchaseReceiptScalarWhereInput | Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
OR?: Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
NOT?: Prisma.PurchaseReceiptScalarWhereInput | Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"PurchaseReceipt"> | number
|
||||
code?: Prisma.StringFilter<"PurchaseReceipt"> | string
|
||||
totalAmount?: Prisma.DecimalFilter<"PurchaseReceipt"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"PurchaseReceipt"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"PurchaseReceipt"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"PurchaseReceipt"> | Date | string
|
||||
supplierId?: Prisma.IntFilter<"PurchaseReceipt"> | number
|
||||
inventoryId?: Prisma.IntFilter<"PurchaseReceipt"> | number
|
||||
export type PurchaseReceiptUpdateOneRequiredWithoutPurchaseReceiptPaymentsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutPurchaseReceiptPaymentsInput, Prisma.PurchaseReceiptUncheckedCreateWithoutPurchaseReceiptPaymentsInput>
|
||||
connectOrCreate?: Prisma.PurchaseReceiptCreateOrConnectWithoutPurchaseReceiptPaymentsInput
|
||||
upsert?: Prisma.PurchaseReceiptUpsertWithoutPurchaseReceiptPaymentsInput
|
||||
connect?: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PurchaseReceiptUpdateToOneWithWhereWithoutPurchaseReceiptPaymentsInput, Prisma.PurchaseReceiptUpdateWithoutPurchaseReceiptPaymentsInput>, Prisma.PurchaseReceiptUncheckedUpdateWithoutPurchaseReceiptPaymentsInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateWithoutInventoryInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
items?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutReceiptInput
|
||||
supplier: Prisma.SupplierCreateNestedOneWithoutPurchaseReceiptsInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsCreateNestedManyWithoutPurchaseReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedCreateWithoutInventoryInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
supplierId: number
|
||||
items?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutReceiptInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedCreateNestedManyWithoutPurchaseReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateOrConnectWithoutInventoryInput = {
|
||||
@@ -669,25 +685,100 @@ export type PurchaseReceiptUpdateManyWithWhereWithoutInventoryInput = {
|
||||
data: Prisma.XOR<Prisma.PurchaseReceiptUpdateManyMutationInput, Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptScalarWhereInput = {
|
||||
AND?: Prisma.PurchaseReceiptScalarWhereInput | Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
OR?: Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
NOT?: Prisma.PurchaseReceiptScalarWhereInput | Prisma.PurchaseReceiptScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"PurchaseReceipt"> | number
|
||||
code?: Prisma.StringFilter<"PurchaseReceipt"> | string
|
||||
totalAmount?: Prisma.DecimalFilter<"PurchaseReceipt"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFilter<"PurchaseReceipt"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFilter<"PurchaseReceipt"> | boolean
|
||||
description?: Prisma.StringNullableFilter<"PurchaseReceipt"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"PurchaseReceipt"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"PurchaseReceipt"> | Date | string
|
||||
supplierId?: Prisma.IntFilter<"PurchaseReceipt"> | number
|
||||
inventoryId?: Prisma.IntFilter<"PurchaseReceipt"> | number
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateWithoutSupplierInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
items?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutReceiptInput
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutPurchaseReceiptsInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsCreateNestedManyWithoutPurchaseReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedCreateWithoutSupplierInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventoryId: number
|
||||
items?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutReceiptInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedCreateNestedManyWithoutPurchaseReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateOrConnectWithoutSupplierInput = {
|
||||
where: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateManySupplierInputEnvelope = {
|
||||
data: Prisma.PurchaseReceiptCreateManySupplierInput | Prisma.PurchaseReceiptCreateManySupplierInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpsertWithWhereUniqueWithoutSupplierInput = {
|
||||
where: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.PurchaseReceiptUpdateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedUpdateWithoutSupplierInput>
|
||||
create: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedCreateWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateWithWhereUniqueWithoutSupplierInput = {
|
||||
where: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.PurchaseReceiptUpdateWithoutSupplierInput, Prisma.PurchaseReceiptUncheckedUpdateWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateManyWithWhereWithoutSupplierInput = {
|
||||
where: Prisma.PurchaseReceiptScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.PurchaseReceiptUpdateManyMutationInput, Prisma.PurchaseReceiptUncheckedUpdateManyWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateWithoutItemsInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutPurchaseReceiptsInput
|
||||
supplier: Prisma.SupplierCreateNestedOneWithoutPurchaseReceiptsInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsCreateNestedManyWithoutPurchaseReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedCreateWithoutItemsInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
supplierId: number
|
||||
inventoryId: number
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedCreateNestedManyWithoutPurchaseReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateOrConnectWithoutItemsInput = {
|
||||
@@ -709,69 +800,106 @@ export type PurchaseReceiptUpdateToOneWithWhereWithoutItemsInput = {
|
||||
export type PurchaseReceiptUpdateWithoutItemsInput = {
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutPurchaseReceiptsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneRequiredWithoutPurchaseReceiptsNestedInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUpdateManyWithoutPurchaseReceiptNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateWithoutItemsInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedUpdateManyWithoutPurchaseReceiptNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateManySupplierInput = {
|
||||
id?: number
|
||||
export type PurchaseReceiptCreateWithoutPurchaseReceiptPaymentsInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventoryId: number
|
||||
items?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutReceiptInput
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutPurchaseReceiptsInput
|
||||
supplier: Prisma.SupplierCreateNestedOneWithoutPurchaseReceiptsInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateWithoutSupplierInput = {
|
||||
export type PurchaseReceiptUncheckedCreateWithoutPurchaseReceiptPaymentsInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
supplierId: number
|
||||
inventoryId: number
|
||||
items?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutReceiptInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateOrConnectWithoutPurchaseReceiptPaymentsInput = {
|
||||
where: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutPurchaseReceiptPaymentsInput, Prisma.PurchaseReceiptUncheckedCreateWithoutPurchaseReceiptPaymentsInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpsertWithoutPurchaseReceiptPaymentsInput = {
|
||||
update: Prisma.XOR<Prisma.PurchaseReceiptUpdateWithoutPurchaseReceiptPaymentsInput, Prisma.PurchaseReceiptUncheckedUpdateWithoutPurchaseReceiptPaymentsInput>
|
||||
create: Prisma.XOR<Prisma.PurchaseReceiptCreateWithoutPurchaseReceiptPaymentsInput, Prisma.PurchaseReceiptUncheckedCreateWithoutPurchaseReceiptPaymentsInput>
|
||||
where?: Prisma.PurchaseReceiptWhereInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateToOneWithWhereWithoutPurchaseReceiptPaymentsInput = {
|
||||
where?: Prisma.PurchaseReceiptWhereInput
|
||||
data: Prisma.XOR<Prisma.PurchaseReceiptUpdateWithoutPurchaseReceiptPaymentsInput, Prisma.PurchaseReceiptUncheckedUpdateWithoutPurchaseReceiptPaymentsInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateWithoutPurchaseReceiptPaymentsInput = {
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
items?: Prisma.PurchaseReceiptItemUpdateManyWithoutReceiptNestedInput
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutPurchaseReceiptsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneRequiredWithoutPurchaseReceiptsNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateWithoutSupplierInput = {
|
||||
export type PurchaseReceiptUncheckedUpdateWithoutPurchaseReceiptPaymentsInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
items?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutReceiptNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateManyWithoutSupplierInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateManyInventoryInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -781,34 +909,93 @@ export type PurchaseReceiptCreateManyInventoryInput = {
|
||||
export type PurchaseReceiptUpdateWithoutInventoryInput = {
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
items?: Prisma.PurchaseReceiptItemUpdateManyWithoutReceiptNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneRequiredWithoutPurchaseReceiptsNestedInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUpdateManyWithoutPurchaseReceiptNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateWithoutInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
items?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutReceiptNestedInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedUpdateManyWithoutPurchaseReceiptNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateManyWithoutInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCreateManySupplierInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: boolean
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventoryId: number
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUpdateWithoutSupplierInput = {
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
items?: Prisma.PurchaseReceiptItemUpdateManyWithoutReceiptNestedInput
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutPurchaseReceiptsNestedInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUpdateManyWithoutPurchaseReceiptNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateWithoutSupplierInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
items?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutReceiptNestedInput
|
||||
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedUpdateManyWithoutPurchaseReceiptNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptUncheckedUpdateManyWithoutSupplierInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paidAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Count Type PurchaseReceiptCountOutputType
|
||||
@@ -816,10 +1003,12 @@ export type PurchaseReceiptUncheckedUpdateManyWithoutInventoryInput = {
|
||||
|
||||
export type PurchaseReceiptCountOutputType = {
|
||||
items: number
|
||||
purchaseReceiptPayments: number
|
||||
}
|
||||
|
||||
export type PurchaseReceiptCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
items?: boolean | PurchaseReceiptCountOutputTypeCountItemsArgs
|
||||
purchaseReceiptPayments?: boolean | PurchaseReceiptCountOutputTypeCountPurchaseReceiptPaymentsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -839,11 +1028,20 @@ export type PurchaseReceiptCountOutputTypeCountItemsArgs<ExtArgs extends runtime
|
||||
where?: Prisma.PurchaseReceiptItemWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* PurchaseReceiptCountOutputType without action
|
||||
*/
|
||||
export type PurchaseReceiptCountOutputTypeCountPurchaseReceiptPaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.PurchaseReceiptPaymentsWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type PurchaseReceiptSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
code?: boolean
|
||||
totalAmount?: boolean
|
||||
paidAmount?: boolean
|
||||
isSettled?: boolean
|
||||
description?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
@@ -852,6 +1050,7 @@ export type PurchaseReceiptSelect<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
items?: boolean | Prisma.PurchaseReceipt$itemsArgs<ExtArgs>
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
supplier?: boolean | Prisma.SupplierDefaultArgs<ExtArgs>
|
||||
purchaseReceiptPayments?: boolean | Prisma.PurchaseReceipt$purchaseReceiptPaymentsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PurchaseReceiptCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["purchaseReceipt"]>
|
||||
|
||||
@@ -861,6 +1060,8 @@ export type PurchaseReceiptSelectScalar = {
|
||||
id?: boolean
|
||||
code?: boolean
|
||||
totalAmount?: boolean
|
||||
paidAmount?: boolean
|
||||
isSettled?: boolean
|
||||
description?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
@@ -868,11 +1069,12 @@ export type PurchaseReceiptSelectScalar = {
|
||||
inventoryId?: boolean
|
||||
}
|
||||
|
||||
export type PurchaseReceiptOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "supplierId" | "inventoryId", ExtArgs["result"]["purchaseReceipt"]>
|
||||
export type PurchaseReceiptOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "totalAmount" | "paidAmount" | "isSettled" | "description" | "createdAt" | "updatedAt" | "supplierId" | "inventoryId", ExtArgs["result"]["purchaseReceipt"]>
|
||||
export type PurchaseReceiptInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
items?: boolean | Prisma.PurchaseReceipt$itemsArgs<ExtArgs>
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
supplier?: boolean | Prisma.SupplierDefaultArgs<ExtArgs>
|
||||
purchaseReceiptPayments?: boolean | Prisma.PurchaseReceipt$purchaseReceiptPaymentsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PurchaseReceiptCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -882,11 +1084,14 @@ export type $PurchaseReceiptPayload<ExtArgs extends runtime.Types.Extensions.Int
|
||||
items: Prisma.$PurchaseReceiptItemPayload<ExtArgs>[]
|
||||
inventory: Prisma.$InventoryPayload<ExtArgs>
|
||||
supplier: Prisma.$SupplierPayload<ExtArgs>
|
||||
purchaseReceiptPayments: Prisma.$PurchaseReceiptPaymentsPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal
|
||||
paidAmount: runtime.Decimal
|
||||
isSettled: boolean
|
||||
description: string | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
@@ -1235,6 +1440,7 @@ export interface Prisma__PurchaseReceiptClient<T, Null = never, ExtArgs extends
|
||||
items<T extends Prisma.PurchaseReceipt$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PurchaseReceipt$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
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>
|
||||
supplier<T extends Prisma.SupplierDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SupplierDefaultArgs<ExtArgs>>): Prisma.Prisma__SupplierClient<runtime.Types.Result.GetResult<Prisma.$SupplierPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
purchaseReceiptPayments<T extends Prisma.PurchaseReceipt$purchaseReceiptPaymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PurchaseReceipt$purchaseReceiptPaymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPaymentsPayload<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.
|
||||
@@ -1267,6 +1473,8 @@ export interface PurchaseReceiptFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"PurchaseReceipt", 'Int'>
|
||||
readonly code: Prisma.FieldRef<"PurchaseReceipt", 'String'>
|
||||
readonly totalAmount: Prisma.FieldRef<"PurchaseReceipt", 'Decimal'>
|
||||
readonly paidAmount: Prisma.FieldRef<"PurchaseReceipt", 'Decimal'>
|
||||
readonly isSettled: Prisma.FieldRef<"PurchaseReceipt", 'Boolean'>
|
||||
readonly description: Prisma.FieldRef<"PurchaseReceipt", 'String'>
|
||||
readonly createdAt: Prisma.FieldRef<"PurchaseReceipt", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"PurchaseReceipt", 'DateTime'>
|
||||
@@ -1638,6 +1846,30 @@ export type PurchaseReceipt$itemsArgs<ExtArgs extends runtime.Types.Extensions.I
|
||||
distinct?: Prisma.PurchaseReceiptItemScalarFieldEnum | Prisma.PurchaseReceiptItemScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* PurchaseReceipt.purchaseReceiptPayments
|
||||
*/
|
||||
export type PurchaseReceipt$purchaseReceiptPaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the PurchaseReceiptPayments
|
||||
*/
|
||||
select?: Prisma.PurchaseReceiptPaymentsSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the PurchaseReceiptPayments
|
||||
*/
|
||||
omit?: Prisma.PurchaseReceiptPaymentsOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.PurchaseReceiptPaymentsInclude<ExtArgs> | null
|
||||
where?: Prisma.PurchaseReceiptPaymentsWhereInput
|
||||
orderBy?: Prisma.PurchaseReceiptPaymentsOrderByWithRelationInput | Prisma.PurchaseReceiptPaymentsOrderByWithRelationInput[]
|
||||
cursor?: Prisma.PurchaseReceiptPaymentsWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.PurchaseReceiptPaymentsScalarFieldEnum | Prisma.PurchaseReceiptPaymentsScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* PurchaseReceipt without action
|
||||
*/
|
||||
|
||||
@@ -260,8 +260,8 @@ export type PurchaseReceiptItemWhereInput = {
|
||||
createdAt?: Prisma.DateTimeFilter<"PurchaseReceiptItem"> | Date | string
|
||||
receiptId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
|
||||
productId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
|
||||
receipt?: Prisma.XOR<Prisma.PurchaseReceiptScalarRelationFilter, Prisma.PurchaseReceiptWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
receipt?: Prisma.XOR<Prisma.PurchaseReceiptScalarRelationFilter, Prisma.PurchaseReceiptWhereInput>
|
||||
}
|
||||
|
||||
export type PurchaseReceiptItemOrderByWithRelationInput = {
|
||||
@@ -273,8 +273,8 @@ export type PurchaseReceiptItemOrderByWithRelationInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
receiptId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
receipt?: Prisma.PurchaseReceiptOrderByWithRelationInput
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
receipt?: Prisma.PurchaseReceiptOrderByWithRelationInput
|
||||
_relevance?: Prisma.PurchaseReceiptItemOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -290,8 +290,8 @@ export type PurchaseReceiptItemWhereUniqueInput = Prisma.AtLeast<{
|
||||
createdAt?: Prisma.DateTimeFilter<"PurchaseReceiptItem"> | Date | string
|
||||
receiptId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
|
||||
productId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
|
||||
receipt?: Prisma.XOR<Prisma.PurchaseReceiptScalarRelationFilter, Prisma.PurchaseReceiptWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
receipt?: Prisma.XOR<Prisma.PurchaseReceiptScalarRelationFilter, Prisma.PurchaseReceiptWhereInput>
|
||||
}, "id">
|
||||
|
||||
export type PurchaseReceiptItemOrderByWithAggregationInput = {
|
||||
@@ -330,8 +330,8 @@ export type PurchaseReceiptItemCreateInput = {
|
||||
total: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
receipt: Prisma.PurchaseReceiptCreateNestedOneWithoutItemsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutPurchaseReceiptItemsInput
|
||||
receipt: Prisma.PurchaseReceiptCreateNestedOneWithoutItemsInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptItemUncheckedCreateInput = {
|
||||
@@ -351,8 +351,8 @@ export type PurchaseReceiptItemUpdateInput = {
|
||||
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
receipt?: Prisma.PurchaseReceiptUpdateOneRequiredWithoutItemsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutPurchaseReceiptItemsNestedInput
|
||||
receipt?: Prisma.PurchaseReceiptUpdateOneRequiredWithoutItemsNestedInput
|
||||
}
|
||||
|
||||
export type PurchaseReceiptItemUncheckedUpdateInput = {
|
||||
@@ -740,8 +740,8 @@ export type PurchaseReceiptItemSelect<ExtArgs extends runtime.Types.Extensions.I
|
||||
createdAt?: boolean
|
||||
receiptId?: boolean
|
||||
productId?: boolean
|
||||
receipt?: boolean | Prisma.PurchaseReceiptDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
receipt?: boolean | Prisma.PurchaseReceiptDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["purchaseReceiptItem"]>
|
||||
|
||||
|
||||
@@ -759,15 +759,15 @@ export type PurchaseReceiptItemSelectScalar = {
|
||||
|
||||
export type PurchaseReceiptItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "fee" | "total" | "description" | "createdAt" | "receiptId" | "productId", ExtArgs["result"]["purchaseReceiptItem"]>
|
||||
export type PurchaseReceiptItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
receipt?: boolean | Prisma.PurchaseReceiptDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
receipt?: boolean | Prisma.PurchaseReceiptDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $PurchaseReceiptItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "PurchaseReceiptItem"
|
||||
objects: {
|
||||
receipt: Prisma.$PurchaseReceiptPayload<ExtArgs>
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
receipt: Prisma.$PurchaseReceiptPayload<ExtArgs>
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -1118,8 +1118,8 @@ readonly fields: PurchaseReceiptItemFieldRefs;
|
||||
*/
|
||||
export interface Prisma__PurchaseReceiptItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
receipt<T extends Prisma.PurchaseReceiptDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PurchaseReceiptDefaultArgs<ExtArgs>>): Prisma.Prisma__PurchaseReceiptClient<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPayload<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>
|
||||
receipt<T extends Prisma.PurchaseReceiptDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PurchaseReceiptDefaultArgs<ExtArgs>>): Prisma.Prisma__PurchaseReceiptClient<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPayload<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.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -463,48 +463,6 @@ export type SalesInvoiceScalarRelationFilter = {
|
||||
isNot?: Prisma.SalesInvoiceWhereInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedManyWithoutCustomerInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithoutCustomerNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedManyWithoutInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutInventoryInput, Prisma.SalesInvoiceUncheckedCreateWithoutInventoryInput> | Prisma.SalesInvoiceCreateWithoutInventoryInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutInventoryInput | Prisma.SalesInvoiceCreateOrConnectWithoutInventoryInput[]
|
||||
@@ -547,6 +505,48 @@ export type SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedManyWithoutCustomerInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithoutCustomerNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedOneWithoutItemsInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutItemsInput, Prisma.SalesInvoiceUncheckedCreateWithoutItemsInput>
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutItemsInput
|
||||
@@ -561,67 +561,6 @@ export type SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutItemsInput, Prisma.SalesInvoiceUpdateWithoutItemsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutItemsInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutCustomerInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutSalesInvoicesInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventoryId: number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateOrConnectWithoutCustomerInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyCustomerInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceCreateManyCustomerInput | Prisma.SalesInvoiceCreateManyCustomerInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedUpdateWithoutCustomerInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedUpdateWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithWhereWithoutCustomerInput = {
|
||||
where: Prisma.SalesInvoiceScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateManyMutationInput, Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceScalarWhereInput = {
|
||||
AND?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
OR?: Prisma.SalesInvoiceScalarWhereInput[]
|
||||
NOT?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"SalesInvoice"> | number
|
||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
totalAmount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
|
||||
inventoryId?: Prisma.IntFilter<"SalesInvoice"> | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutInventoryInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
@@ -669,6 +608,67 @@ export type SalesInvoiceUpdateManyWithWhereWithoutInventoryInput = {
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateManyMutationInput, Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceScalarWhereInput = {
|
||||
AND?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
OR?: Prisma.SalesInvoiceScalarWhereInput[]
|
||||
NOT?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"SalesInvoice"> | number
|
||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
totalAmount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
|
||||
inventoryId?: Prisma.IntFilter<"SalesInvoice"> | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutCustomerInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutSalesInvoicesInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventoryId: number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateOrConnectWithoutCustomerInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyCustomerInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceCreateManyCustomerInput | Prisma.SalesInvoiceCreateManyCustomerInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedUpdateWithoutCustomerInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedUpdateWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithWhereWithoutCustomerInput = {
|
||||
where: Prisma.SalesInvoiceScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateManyMutationInput, Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutItemsInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
@@ -727,47 +727,6 @@ export type SalesInvoiceUncheckedUpdateWithoutItemsInput = {
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyCustomerInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventoryId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithoutCustomerInput = {
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyInventoryInput = {
|
||||
id?: number
|
||||
code: string
|
||||
@@ -809,6 +768,47 @@ export type SalesInvoiceUncheckedUpdateManyWithoutInventoryInput = {
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyCustomerInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventoryId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithoutCustomerInput = {
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Count Type SalesInvoiceCountOutputType
|
||||
|
||||
@@ -434,48 +434,6 @@ export type SalesInvoiceItemSumOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateNestedManyWithoutInvoiceInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
|
||||
@@ -518,60 +476,46 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput = {
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateWithoutProductInput = {
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||
export type SalesInvoiceItemCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedCreateWithoutProductInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoiceId: number
|
||||
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput>
|
||||
export type SalesInvoiceItemUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyProductInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceItemCreateManyProductInput | Prisma.SalesInvoiceItemCreateManyProductInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateManyWithWhereWithoutProductInput = {
|
||||
where: Prisma.SalesInvoiceItemScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemScalarWhereInput = {
|
||||
AND?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
OR?: Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
NOT?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
||||
@@ -617,7 +561,28 @@ export type SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput = {
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyProductInput = {
|
||||
export type SalesInvoiceItemScalarWhereInput = {
|
||||
AND?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
OR?: Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
NOT?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateWithoutProductInput = {
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedCreateWithoutProductInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
@@ -626,30 +591,30 @@ export type SalesInvoiceItemCreateManyProductInput = {
|
||||
invoiceId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithoutProductInput = {
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||
export type SalesInvoiceItemCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
export type SalesInvoiceItemCreateManyProductInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceItemCreateManyProductInput | Prisma.SalesInvoiceItemCreateManyProductInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateManyWithWhereWithoutProductInput = {
|
||||
where: Prisma.SalesInvoiceItemScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyInvoiceInput = {
|
||||
@@ -687,6 +652,41 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyProductInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoiceId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithoutProductInput = {
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
|
||||
@@ -378,48 +378,6 @@ export type StockAdjustmentSumOrderByAggregateInput = {
|
||||
inventoryId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput> | Prisma.StockAdjustmentCreateWithoutProductInput[] | Prisma.StockAdjustmentUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockAdjustmentCreateOrConnectWithoutProductInput | Prisma.StockAdjustmentCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockAdjustmentCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockAdjustmentUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput> | Prisma.StockAdjustmentCreateWithoutProductInput[] | Prisma.StockAdjustmentUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockAdjustmentCreateOrConnectWithoutProductInput | Prisma.StockAdjustmentCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockAdjustmentCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockAdjustmentUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput> | Prisma.StockAdjustmentCreateWithoutProductInput[] | Prisma.StockAdjustmentUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockAdjustmentCreateOrConnectWithoutProductInput | Prisma.StockAdjustmentCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockAdjustmentUpsertWithWhereUniqueWithoutProductInput | Prisma.StockAdjustmentUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockAdjustmentCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
delete?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
connect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
update?: Prisma.StockAdjustmentUpdateWithWhereUniqueWithoutProductInput | Prisma.StockAdjustmentUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockAdjustmentUpdateManyWithWhereWithoutProductInput | Prisma.StockAdjustmentUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockAdjustmentScalarWhereInput | Prisma.StockAdjustmentScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput> | Prisma.StockAdjustmentCreateWithoutProductInput[] | Prisma.StockAdjustmentUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockAdjustmentCreateOrConnectWithoutProductInput | Prisma.StockAdjustmentCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockAdjustmentUpsertWithWhereUniqueWithoutProductInput | Prisma.StockAdjustmentUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockAdjustmentCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
delete?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
connect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
update?: Prisma.StockAdjustmentUpdateWithWhereUniqueWithoutProductInput | Prisma.StockAdjustmentUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockAdjustmentUpdateManyWithWhereWithoutProductInput | Prisma.StockAdjustmentUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockAdjustmentScalarWhereInput | Prisma.StockAdjustmentScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateNestedManyWithoutInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutInventoryInput, Prisma.StockAdjustmentUncheckedCreateWithoutInventoryInput> | Prisma.StockAdjustmentCreateWithoutInventoryInput[] | Prisma.StockAdjustmentUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockAdjustmentCreateOrConnectWithoutInventoryInput | Prisma.StockAdjustmentCreateOrConnectWithoutInventoryInput[]
|
||||
@@ -462,54 +420,46 @@ export type StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||||
deleteMany?: Prisma.StockAdjustmentScalarWhereInput | Prisma.StockAdjustmentScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateWithoutProductInput = {
|
||||
adjustedQuantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockAdjustmentsInput
|
||||
export type StockAdjustmentCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput> | Prisma.StockAdjustmentCreateWithoutProductInput[] | Prisma.StockAdjustmentUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockAdjustmentCreateOrConnectWithoutProductInput | Prisma.StockAdjustmentCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockAdjustmentCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockAdjustmentUncheckedCreateWithoutProductInput = {
|
||||
id?: number
|
||||
adjustedQuantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventoryId: number
|
||||
export type StockAdjustmentUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput> | Prisma.StockAdjustmentCreateWithoutProductInput[] | Prisma.StockAdjustmentUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockAdjustmentCreateOrConnectWithoutProductInput | Prisma.StockAdjustmentCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockAdjustmentCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.StockAdjustmentWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput>
|
||||
export type StockAdjustmentUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput> | Prisma.StockAdjustmentCreateWithoutProductInput[] | Prisma.StockAdjustmentUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockAdjustmentCreateOrConnectWithoutProductInput | Prisma.StockAdjustmentCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockAdjustmentUpsertWithWhereUniqueWithoutProductInput | Prisma.StockAdjustmentUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockAdjustmentCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
delete?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
connect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
update?: Prisma.StockAdjustmentUpdateWithWhereUniqueWithoutProductInput | Prisma.StockAdjustmentUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockAdjustmentUpdateManyWithWhereWithoutProductInput | Prisma.StockAdjustmentUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockAdjustmentScalarWhereInput | Prisma.StockAdjustmentScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateManyProductInputEnvelope = {
|
||||
data: Prisma.StockAdjustmentCreateManyProductInput | Prisma.StockAdjustmentCreateManyProductInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockAdjustmentUpsertWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockAdjustmentWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockAdjustmentUpdateWithoutProductInput, Prisma.StockAdjustmentUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockAdjustmentUpdateWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockAdjustmentWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockAdjustmentUpdateWithoutProductInput, Prisma.StockAdjustmentUncheckedUpdateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockAdjustmentUpdateManyWithWhereWithoutProductInput = {
|
||||
where: Prisma.StockAdjustmentScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockAdjustmentUpdateManyMutationInput, Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockAdjustmentScalarWhereInput = {
|
||||
AND?: Prisma.StockAdjustmentScalarWhereInput | Prisma.StockAdjustmentScalarWhereInput[]
|
||||
OR?: Prisma.StockAdjustmentScalarWhereInput[]
|
||||
NOT?: Prisma.StockAdjustmentScalarWhereInput | Prisma.StockAdjustmentScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"StockAdjustment"> | number
|
||||
adjustedQuantity?: Prisma.DecimalFilter<"StockAdjustment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockAdjustment"> | Date | string
|
||||
productId?: Prisma.IntFilter<"StockAdjustment"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockAdjustment"> | number
|
||||
export type StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput> | Prisma.StockAdjustmentCreateWithoutProductInput[] | Prisma.StockAdjustmentUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockAdjustmentCreateOrConnectWithoutProductInput | Prisma.StockAdjustmentCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockAdjustmentUpsertWithWhereUniqueWithoutProductInput | Prisma.StockAdjustmentUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockAdjustmentCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
delete?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
connect?: Prisma.StockAdjustmentWhereUniqueInput | Prisma.StockAdjustmentWhereUniqueInput[]
|
||||
update?: Prisma.StockAdjustmentUpdateWithWhereUniqueWithoutProductInput | Prisma.StockAdjustmentUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockAdjustmentUpdateManyWithWhereWithoutProductInput | Prisma.StockAdjustmentUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockAdjustmentScalarWhereInput | Prisma.StockAdjustmentScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateWithoutInventoryInput = {
|
||||
@@ -551,31 +501,54 @@ export type StockAdjustmentUpdateManyWithWhereWithoutInventoryInput = {
|
||||
data: Prisma.XOR<Prisma.StockAdjustmentUpdateManyMutationInput, Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateManyProductInput = {
|
||||
export type StockAdjustmentScalarWhereInput = {
|
||||
AND?: Prisma.StockAdjustmentScalarWhereInput | Prisma.StockAdjustmentScalarWhereInput[]
|
||||
OR?: Prisma.StockAdjustmentScalarWhereInput[]
|
||||
NOT?: Prisma.StockAdjustmentScalarWhereInput | Prisma.StockAdjustmentScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"StockAdjustment"> | number
|
||||
adjustedQuantity?: Prisma.DecimalFilter<"StockAdjustment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockAdjustment"> | Date | string
|
||||
productId?: Prisma.IntFilter<"StockAdjustment"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockAdjustment"> | number
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateWithoutProductInput = {
|
||||
adjustedQuantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockAdjustmentsInput
|
||||
}
|
||||
|
||||
export type StockAdjustmentUncheckedCreateWithoutProductInput = {
|
||||
id?: number
|
||||
adjustedQuantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventoryId: number
|
||||
}
|
||||
|
||||
export type StockAdjustmentUpdateWithoutProductInput = {
|
||||
adjustedQuantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockAdjustmentsNestedInput
|
||||
export type StockAdjustmentCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.StockAdjustmentWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockAdjustmentUncheckedUpdateWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
adjustedQuantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
export type StockAdjustmentCreateManyProductInputEnvelope = {
|
||||
data: Prisma.StockAdjustmentCreateManyProductInput | Prisma.StockAdjustmentCreateManyProductInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockAdjustmentUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
adjustedQuantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
export type StockAdjustmentUpsertWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockAdjustmentWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockAdjustmentUpdateWithoutProductInput, Prisma.StockAdjustmentUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.StockAdjustmentCreateWithoutProductInput, Prisma.StockAdjustmentUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockAdjustmentUpdateWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockAdjustmentWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockAdjustmentUpdateWithoutProductInput, Prisma.StockAdjustmentUncheckedUpdateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockAdjustmentUpdateManyWithWhereWithoutProductInput = {
|
||||
where: Prisma.StockAdjustmentScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockAdjustmentUpdateManyMutationInput, Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateManyInventoryInput = {
|
||||
@@ -605,6 +578,33 @@ export type StockAdjustmentUncheckedUpdateManyWithoutInventoryInput = {
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockAdjustmentCreateManyProductInput = {
|
||||
id?: number
|
||||
adjustedQuantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventoryId: number
|
||||
}
|
||||
|
||||
export type StockAdjustmentUpdateWithoutProductInput = {
|
||||
adjustedQuantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockAdjustmentsNestedInput
|
||||
}
|
||||
|
||||
export type StockAdjustmentUncheckedUpdateWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
adjustedQuantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockAdjustmentUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
adjustedQuantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type StockAdjustmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
|
||||
@@ -27,107 +27,107 @@ export type AggregateStockBalance = {
|
||||
}
|
||||
|
||||
export type StockBalanceAvgAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
inventoryId: number | null
|
||||
productId: number | null
|
||||
id: number | null
|
||||
}
|
||||
|
||||
export type StockBalanceSumAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
inventoryId: number | null
|
||||
productId: number | null
|
||||
id: number | null
|
||||
}
|
||||
|
||||
export type StockBalanceMinAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
avgCost: runtime.Decimal | null
|
||||
inventoryId: number | null
|
||||
productId: number | null
|
||||
createdAt: Date | null
|
||||
id: number | null
|
||||
}
|
||||
|
||||
export type StockBalanceMaxAggregateOutputType = {
|
||||
id: number | null
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
avgCost: runtime.Decimal | null
|
||||
inventoryId: number | null
|
||||
productId: number | null
|
||||
createdAt: Date | null
|
||||
id: number | null
|
||||
}
|
||||
|
||||
export type StockBalanceCountAggregateOutputType = {
|
||||
id: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity: number
|
||||
avgCost: number
|
||||
totalCost: number
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
avgCost: number
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt: number
|
||||
id: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type StockBalanceAvgAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
id?: true
|
||||
}
|
||||
|
||||
export type StockBalanceSumAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
id?: true
|
||||
}
|
||||
|
||||
export type StockBalanceMinAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
createdAt?: true
|
||||
id?: true
|
||||
}
|
||||
|
||||
export type StockBalanceMaxAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
createdAt?: true
|
||||
id?: true
|
||||
}
|
||||
|
||||
export type StockBalanceCountAggregateInputType = {
|
||||
id?: true
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
avgCost?: true
|
||||
inventoryId?: true
|
||||
productId?: true
|
||||
createdAt?: true
|
||||
id?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -218,14 +218,14 @@ export type StockBalanceGroupByArgs<ExtArgs extends runtime.Types.Extensions.Int
|
||||
}
|
||||
|
||||
export type StockBalanceGroupByOutputType = {
|
||||
id: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity: runtime.Decimal
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
avgCost: runtime.Decimal
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt: Date
|
||||
id: number
|
||||
_count: StockBalanceCountAggregateOutputType | null
|
||||
_avg: StockBalanceAvgAggregateOutputType | null
|
||||
_sum: StockBalanceSumAggregateOutputType | null
|
||||
@@ -252,29 +252,29 @@ export type StockBalanceWhereInput = {
|
||||
AND?: Prisma.StockBalanceWhereInput | Prisma.StockBalanceWhereInput[]
|
||||
OR?: Prisma.StockBalanceWhereInput[]
|
||||
NOT?: Prisma.StockBalanceWhereInput | Prisma.StockBalanceWhereInput[]
|
||||
id?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
quantity?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
id?: Prisma.IntFilter<"StockBalance"> | number
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
}
|
||||
|
||||
export type StockBalanceOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
inventory?: Prisma.InventoryOrderByWithRelationInput
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
}
|
||||
|
||||
export type StockBalanceWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -283,26 +283,26 @@ export type StockBalanceWhereUniqueInput = Prisma.AtLeast<{
|
||||
AND?: Prisma.StockBalanceWhereInput | Prisma.StockBalanceWhereInput[]
|
||||
OR?: Prisma.StockBalanceWhereInput[]
|
||||
NOT?: Prisma.StockBalanceWhereInput | Prisma.StockBalanceWhereInput[]
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
quantity?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
}, "id" | "productId_inventoryId">
|
||||
|
||||
export type StockBalanceOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
_count?: Prisma.StockBalanceCountOrderByAggregateInput
|
||||
_avg?: Prisma.StockBalanceAvgOrderByAggregateInput
|
||||
_max?: Prisma.StockBalanceMaxOrderByAggregateInput
|
||||
@@ -314,86 +314,86 @@ export type StockBalanceScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.StockBalanceScalarWhereWithAggregatesInput | Prisma.StockBalanceScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.StockBalanceScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.StockBalanceScalarWhereWithAggregatesInput | Prisma.StockBalanceScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
quantity?: Prisma.DecimalWithAggregatesFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalWithAggregatesFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalWithAggregatesFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"StockBalance"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StockBalance"> | Date | string
|
||||
avgCost?: Prisma.DecimalWithAggregatesFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"StockBalance"> | Date | string
|
||||
id?: Prisma.IntWithAggregatesFilter<"StockBalance"> | number
|
||||
}
|
||||
|
||||
export type StockBalanceCreateInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockBalancesInput
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockBalancesInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockBalancesInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateInput = {
|
||||
id?: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyInput = {
|
||||
id?: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyMutationInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockBalanceListRelationFilter = {
|
||||
@@ -412,96 +412,54 @@ export type StockBalanceProductIdInventoryIdCompoundUniqueInput = {
|
||||
}
|
||||
|
||||
export type StockBalanceCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceAvgOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
delete?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
update?: Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput | Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
delete?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
update?: Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput | Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
avgCost?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockBalanceCreateNestedManyWithoutInventoryInput = {
|
||||
@@ -546,82 +504,65 @@ export type StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||||
deleteMany?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceCreateWithoutProductInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockBalancesInput
|
||||
export type StockBalanceCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateWithoutProductInput = {
|
||||
id?: number
|
||||
inventoryId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
export type StockBalanceUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput>
|
||||
export type StockBalanceUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
delete?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
update?: Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput | Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyProductInputEnvelope = {
|
||||
data: Prisma.StockBalanceCreateManyProductInput | Prisma.StockBalanceCreateManyProductInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockBalanceUpsertWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockBalanceUpdateWithoutProductInput, Prisma.StockBalanceUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateWithoutProductInput, Prisma.StockBalanceUncheckedUpdateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyWithWhereWithoutProductInput = {
|
||||
where: Prisma.StockBalanceScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateManyMutationInput, Prisma.StockBalanceUncheckedUpdateManyWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceScalarWhereInput = {
|
||||
AND?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
OR?: Prisma.StockBalanceScalarWhereInput[]
|
||||
NOT?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
quantity?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
export type StockBalanceUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput> | Prisma.StockBalanceCreateWithoutProductInput[] | Prisma.StockBalanceUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.StockBalanceCreateOrConnectWithoutProductInput | Prisma.StockBalanceCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.StockBalanceCreateManyProductInputEnvelope
|
||||
set?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
delete?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
connect?: Prisma.StockBalanceWhereUniqueInput | Prisma.StockBalanceWhereUniqueInput[]
|
||||
update?: Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput | Prisma.StockBalanceUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput | Prisma.StockBalanceUpdateManyWithWhereWithoutProductInput[]
|
||||
deleteMany?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockBalanceCreateWithoutInventoryInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockBalancesInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedCreateWithoutInventoryInput = {
|
||||
id?: number
|
||||
productId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceCreateOrConnectWithoutInventoryInput = {
|
||||
@@ -650,133 +591,192 @@ export type StockBalanceUpdateManyWithWhereWithoutInventoryInput = {
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateManyMutationInput, Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyProductInput = {
|
||||
id?: number
|
||||
inventoryId: number
|
||||
export type StockBalanceScalarWhereInput = {
|
||||
AND?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
OR?: Prisma.StockBalanceScalarWhereInput[]
|
||||
NOT?: Prisma.StockBalanceScalarWhereInput | Prisma.StockBalanceScalarWhereInput[]
|
||||
quantity?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
avgCost?: Prisma.DecimalFilter<"StockBalance"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
productId?: Prisma.IntFilter<"StockBalance"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"StockBalance"> | Date | string
|
||||
id?: Prisma.IntFilter<"StockBalance"> | number
|
||||
}
|
||||
|
||||
export type StockBalanceCreateWithoutProductInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockBalancesInput
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithoutProductInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
export type StockBalanceUncheckedCreateWithoutProductInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
export type StockBalanceCreateOrConnectWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
export type StockBalanceCreateManyProductInputEnvelope = {
|
||||
data: Prisma.StockBalanceCreateManyProductInput | Prisma.StockBalanceCreateManyProductInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockBalanceUpsertWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockBalanceUpdateWithoutProductInput, Prisma.StockBalanceUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.StockBalanceCreateWithoutProductInput, Prisma.StockBalanceUncheckedCreateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithWhereUniqueWithoutProductInput = {
|
||||
where: Prisma.StockBalanceWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateWithoutProductInput, Prisma.StockBalanceUncheckedUpdateWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateManyWithWhereWithoutProductInput = {
|
||||
where: Prisma.StockBalanceScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockBalanceUpdateManyMutationInput, Prisma.StockBalanceUncheckedUpdateManyWithoutProductInput>
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyInventoryInput = {
|
||||
id?: number
|
||||
productId: number
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithoutInventoryInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateWithoutInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyWithoutInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockBalanceCreateManyProductInput = {
|
||||
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Date | string
|
||||
avgCost?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId: number
|
||||
createdAt?: Date | string
|
||||
id?: number
|
||||
}
|
||||
|
||||
export type StockBalanceUpdateWithoutProductInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockBalancesNestedInput
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateWithoutProductInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type StockBalanceUncheckedUpdateManyWithoutProductInput = {
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type StockBalanceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
quantity?: boolean
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
avgCost?: boolean
|
||||
inventoryId?: boolean
|
||||
productId?: boolean
|
||||
createdAt?: boolean
|
||||
id?: boolean
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["stockBalance"]>
|
||||
|
||||
|
||||
|
||||
export type StockBalanceSelectScalar = {
|
||||
id?: boolean
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
quantity?: boolean
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
avgCost?: boolean
|
||||
inventoryId?: boolean
|
||||
productId?: boolean
|
||||
createdAt?: boolean
|
||||
id?: boolean
|
||||
}
|
||||
|
||||
export type StockBalanceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "productId" | "inventoryId" | "quantity" | "avgCost" | "totalCost" | "createdAt" | "updatedAt", ExtArgs["result"]["stockBalance"]>
|
||||
export type StockBalanceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"quantity" | "totalCost" | "updatedAt" | "avgCost" | "inventoryId" | "productId" | "createdAt" | "id", ExtArgs["result"]["stockBalance"]>
|
||||
export type StockBalanceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $StockBalancePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "StockBalance"
|
||||
objects: {
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
inventory: Prisma.$InventoryPayload<ExtArgs>
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
productId: number
|
||||
inventoryId: number
|
||||
quantity: runtime.Decimal
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
avgCost: runtime.Decimal
|
||||
inventoryId: number
|
||||
productId: number
|
||||
createdAt: Date
|
||||
id: number
|
||||
}, ExtArgs["result"]["stockBalance"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -860,8 +860,8 @@ export interface StockBalanceDelegate<ExtArgs extends runtime.Types.Extensions.I
|
||||
* // Get first 10 StockBalances
|
||||
* const stockBalances = await prisma.stockBalance.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `id`
|
||||
* const stockBalanceWithIdOnly = await prisma.stockBalance.findMany({ select: { id: true } })
|
||||
* // Only select the `quantity`
|
||||
* const stockBalanceWithQuantityOnly = await prisma.stockBalance.findMany({ select: { quantity: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends StockBalanceFindManyArgs>(args?: Prisma.SelectSubset<T, StockBalanceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockBalancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
@@ -1117,8 +1117,8 @@ readonly fields: StockBalanceFieldRefs;
|
||||
*/
|
||||
export interface Prisma__StockBalanceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
inventory<T extends Prisma.InventoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InventoryDefaultArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1148,14 +1148,14 @@ export interface Prisma__StockBalanceClient<T, Null = never, ExtArgs extends run
|
||||
* Fields of the StockBalance model
|
||||
*/
|
||||
export interface StockBalanceFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly productId: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly inventoryId: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly quantity: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly avgCost: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly totalCost: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly createdAt: Prisma.FieldRef<"StockBalance", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"StockBalance", 'DateTime'>
|
||||
readonly avgCost: Prisma.FieldRef<"StockBalance", 'Decimal'>
|
||||
readonly inventoryId: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly productId: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
readonly createdAt: Prisma.FieldRef<"StockBalance", 'DateTime'>
|
||||
readonly id: Prisma.FieldRef<"StockBalance", 'Int'>
|
||||
}
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -280,9 +280,9 @@ export type SupplierWhereInput = {
|
||||
createdAt?: Prisma.DateTimeFilter<"Supplier"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Supplier"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeListRelationFilter
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
supplierLedgers?: Prisma.SupplierLedgerListRelationFilter
|
||||
}
|
||||
|
||||
export type SupplierOrderByWithRelationInput = {
|
||||
@@ -299,9 +299,9 @@ export type SupplierOrderByWithRelationInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
productCharges?: Prisma.ProductChargeOrderByRelationAggregateInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptOrderByRelationAggregateInput
|
||||
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.SupplierOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -322,9 +322,9 @@ export type SupplierWhereUniqueInput = Prisma.AtLeast<{
|
||||
createdAt?: Prisma.DateTimeFilter<"Supplier"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Supplier"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeListRelationFilter
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
supplierLedgers?: Prisma.SupplierLedgerListRelationFilter
|
||||
}, "id" | "mobileNumber">
|
||||
|
||||
export type SupplierOrderByWithAggregationInput = {
|
||||
@@ -380,9 +380,9 @@ export type SupplierCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutSupplierInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateInput = {
|
||||
@@ -399,9 +399,9 @@ export type SupplierUncheckedCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutSupplierInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateInput = {
|
||||
@@ -417,9 +417,9 @@ export type SupplierUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutSupplierNestedInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateInput = {
|
||||
@@ -436,9 +436,9 @@ export type SupplierUncheckedUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierCreateManyInput = {
|
||||
@@ -560,18 +560,18 @@ export type SupplierNullableScalarRelationFilter = {
|
||||
isNot?: Prisma.SupplierWhereInput | null
|
||||
}
|
||||
|
||||
export type SupplierCreateNestedOneWithoutProductChargesInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutProductChargesInput, Prisma.SupplierUncheckedCreateWithoutProductChargesInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutProductChargesInput
|
||||
export type SupplierCreateNestedOneWithoutSupplierLedgersInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutSupplierLedgersInput, Prisma.SupplierUncheckedCreateWithoutSupplierLedgersInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutSupplierLedgersInput
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateOneRequiredWithoutProductChargesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutProductChargesInput, Prisma.SupplierUncheckedCreateWithoutProductChargesInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutProductChargesInput
|
||||
upsert?: Prisma.SupplierUpsertWithoutProductChargesInput
|
||||
export type SupplierUpdateOneRequiredWithoutSupplierLedgersNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutSupplierLedgersInput, Prisma.SupplierUncheckedCreateWithoutSupplierLedgersInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutSupplierLedgersInput
|
||||
upsert?: Prisma.SupplierUpsertWithoutSupplierLedgersInput
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SupplierUpdateToOneWithWhereWithoutProductChargesInput, Prisma.SupplierUpdateWithoutProductChargesInput>, Prisma.SupplierUncheckedUpdateWithoutProductChargesInput>
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SupplierUpdateToOneWithWhereWithoutSupplierLedgersInput, Prisma.SupplierUpdateWithoutSupplierLedgersInput>, Prisma.SupplierUncheckedUpdateWithoutSupplierLedgersInput>
|
||||
}
|
||||
|
||||
export type SupplierCreateNestedOneWithoutPurchaseReceiptsInput = {
|
||||
@@ -604,7 +604,7 @@ export type SupplierUpdateOneWithoutStockMovementsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SupplierUpdateToOneWithWhereWithoutStockMovementsInput, Prisma.SupplierUpdateWithoutStockMovementsInput>, Prisma.SupplierUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type SupplierCreateWithoutProductChargesInput = {
|
||||
export type SupplierCreateWithoutSupplierLedgersInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
@@ -621,7 +621,7 @@ export type SupplierCreateWithoutProductChargesInput = {
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateWithoutProductChargesInput = {
|
||||
export type SupplierUncheckedCreateWithoutSupplierLedgersInput = {
|
||||
id?: number
|
||||
firstName: string
|
||||
lastName: string
|
||||
@@ -639,23 +639,23 @@ export type SupplierUncheckedCreateWithoutProductChargesInput = {
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierCreateOrConnectWithoutProductChargesInput = {
|
||||
export type SupplierCreateOrConnectWithoutSupplierLedgersInput = {
|
||||
where: Prisma.SupplierWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutProductChargesInput, Prisma.SupplierUncheckedCreateWithoutProductChargesInput>
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutSupplierLedgersInput, Prisma.SupplierUncheckedCreateWithoutSupplierLedgersInput>
|
||||
}
|
||||
|
||||
export type SupplierUpsertWithoutProductChargesInput = {
|
||||
update: Prisma.XOR<Prisma.SupplierUpdateWithoutProductChargesInput, Prisma.SupplierUncheckedUpdateWithoutProductChargesInput>
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutProductChargesInput, Prisma.SupplierUncheckedCreateWithoutProductChargesInput>
|
||||
export type SupplierUpsertWithoutSupplierLedgersInput = {
|
||||
update: Prisma.XOR<Prisma.SupplierUpdateWithoutSupplierLedgersInput, Prisma.SupplierUncheckedUpdateWithoutSupplierLedgersInput>
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutSupplierLedgersInput, Prisma.SupplierUncheckedCreateWithoutSupplierLedgersInput>
|
||||
where?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateToOneWithWhereWithoutProductChargesInput = {
|
||||
export type SupplierUpdateToOneWithWhereWithoutSupplierLedgersInput = {
|
||||
where?: Prisma.SupplierWhereInput
|
||||
data: Prisma.XOR<Prisma.SupplierUpdateWithoutProductChargesInput, Prisma.SupplierUncheckedUpdateWithoutProductChargesInput>
|
||||
data: Prisma.XOR<Prisma.SupplierUpdateWithoutSupplierLedgersInput, Prisma.SupplierUncheckedUpdateWithoutSupplierLedgersInput>
|
||||
}
|
||||
|
||||
export type SupplierUpdateWithoutProductChargesInput = {
|
||||
export type SupplierUpdateWithoutSupplierLedgersInput = {
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -672,7 +672,7 @@ export type SupplierUpdateWithoutProductChargesInput = {
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateWithoutProductChargesInput = {
|
||||
export type SupplierUncheckedUpdateWithoutSupplierLedgersInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -703,8 +703,8 @@ export type SupplierCreateWithoutPurchaseReceiptsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutSupplierInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateWithoutPurchaseReceiptsInput = {
|
||||
@@ -721,8 +721,8 @@ export type SupplierUncheckedCreateWithoutPurchaseReceiptsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutSupplierInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutSupplierInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierCreateOrConnectWithoutPurchaseReceiptsInput = {
|
||||
@@ -754,8 +754,8 @@ export type SupplierUpdateWithoutPurchaseReceiptsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutSupplierNestedInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
@@ -772,8 +772,8 @@ export type SupplierUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierCreateWithoutStockMovementsInput = {
|
||||
@@ -789,8 +789,8 @@ export type SupplierCreateWithoutStockMovementsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutSupplierInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateWithoutStockMovementsInput = {
|
||||
@@ -807,8 +807,8 @@ export type SupplierUncheckedCreateWithoutStockMovementsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutSupplierInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierCreateOrConnectWithoutStockMovementsInput = {
|
||||
@@ -840,8 +840,8 @@ export type SupplierUpdateWithoutStockMovementsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutSupplierNestedInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateWithoutStockMovementsInput = {
|
||||
@@ -858,8 +858,8 @@ export type SupplierUncheckedUpdateWithoutStockMovementsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
supplierLedgers?: Prisma.SupplierLedgerUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -868,15 +868,15 @@ export type SupplierUncheckedUpdateWithoutStockMovementsInput = {
|
||||
*/
|
||||
|
||||
export type SupplierCountOutputType = {
|
||||
productCharges: number
|
||||
purchaseReceipts: number
|
||||
stockMovements: number
|
||||
supplierLedgers: number
|
||||
}
|
||||
|
||||
export type SupplierCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productCharges?: boolean | SupplierCountOutputTypeCountProductChargesArgs
|
||||
purchaseReceipts?: boolean | SupplierCountOutputTypeCountPurchaseReceiptsArgs
|
||||
stockMovements?: boolean | SupplierCountOutputTypeCountStockMovementsArgs
|
||||
supplierLedgers?: boolean | SupplierCountOutputTypeCountSupplierLedgersArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -889,13 +889,6 @@ export type SupplierCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Ext
|
||||
select?: Prisma.SupplierCountOutputTypeSelect<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
* SupplierCountOutputType without action
|
||||
*/
|
||||
export type SupplierCountOutputTypeCountProductChargesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ProductChargeWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* SupplierCountOutputType without action
|
||||
*/
|
||||
@@ -910,6 +903,13 @@ export type SupplierCountOutputTypeCountStockMovementsArgs<ExtArgs extends runti
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* SupplierCountOutputType without action
|
||||
*/
|
||||
export type SupplierCountOutputTypeCountSupplierLedgersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.SupplierLedgerWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type SupplierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -925,9 +925,9 @@ export type SupplierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
productCharges?: boolean | Prisma.Supplier$productChargesArgs<ExtArgs>
|
||||
purchaseReceipts?: boolean | Prisma.Supplier$purchaseReceiptsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Supplier$stockMovementsArgs<ExtArgs>
|
||||
supplierLedgers?: boolean | Prisma.Supplier$supplierLedgersArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SupplierCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["supplier"]>
|
||||
|
||||
@@ -951,18 +951,18 @@ export type SupplierSelectScalar = {
|
||||
|
||||
export type SupplierOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "firstName" | "lastName" | "email" | "mobileNumber" | "address" | "city" | "state" | "country" | "isActive" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["supplier"]>
|
||||
export type SupplierInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productCharges?: boolean | Prisma.Supplier$productChargesArgs<ExtArgs>
|
||||
purchaseReceipts?: boolean | Prisma.Supplier$purchaseReceiptsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Supplier$stockMovementsArgs<ExtArgs>
|
||||
supplierLedgers?: boolean | Prisma.Supplier$supplierLedgersArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SupplierCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $SupplierPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Supplier"
|
||||
objects: {
|
||||
productCharges: Prisma.$ProductChargePayload<ExtArgs>[]
|
||||
purchaseReceipts: Prisma.$PurchaseReceiptPayload<ExtArgs>[]
|
||||
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
|
||||
supplierLedgers: Prisma.$SupplierLedgerPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -1318,9 +1318,9 @@ readonly fields: SupplierFieldRefs;
|
||||
*/
|
||||
export interface Prisma__SupplierClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
productCharges<T extends Prisma.Supplier$productChargesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$productChargesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
purchaseReceipts<T extends Prisma.Supplier$purchaseReceiptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$purchaseReceiptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockMovements<T extends Prisma.Supplier$stockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$stockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
supplierLedgers<T extends Prisma.Supplier$supplierLedgersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$supplierLedgersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<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.
|
||||
@@ -1705,30 +1705,6 @@ export type SupplierDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier.productCharges
|
||||
*/
|
||||
export type Supplier$productChargesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the ProductCharge
|
||||
*/
|
||||
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the ProductCharge
|
||||
*/
|
||||
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||||
where?: Prisma.ProductChargeWhereInput
|
||||
orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ProductChargeWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier.purchaseReceipts
|
||||
*/
|
||||
@@ -1777,6 +1753,30 @@ export type Supplier$stockMovementsArgs<ExtArgs extends runtime.Types.Extensions
|
||||
distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier.supplierLedgers
|
||||
*/
|
||||
export type Supplier$supplierLedgersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the SupplierLedger
|
||||
*/
|
||||
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the SupplierLedger
|
||||
*/
|
||||
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
|
||||
where?: Prisma.SupplierLedgerWhereInput
|
||||
orderBy?: Prisma.SupplierLedgerOrderByWithRelationInput | Prisma.SupplierLedgerOrderByWithRelationInput[]
|
||||
cursor?: Prisma.SupplierLedgerWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.SupplierLedgerScalarFieldEnum | Prisma.SupplierLedgerScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier without action
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -36,23 +36,23 @@ export type TriggerLogSumAggregateOutputType = {
|
||||
|
||||
export type TriggerLogMinAggregateOutputType = {
|
||||
id: number | null
|
||||
name: string | null
|
||||
message: string | null
|
||||
createdAt: Date | null
|
||||
name: string | null
|
||||
}
|
||||
|
||||
export type TriggerLogMaxAggregateOutputType = {
|
||||
id: number | null
|
||||
name: string | null
|
||||
message: string | null
|
||||
createdAt: Date | null
|
||||
name: string | null
|
||||
}
|
||||
|
||||
export type TriggerLogCountAggregateOutputType = {
|
||||
id: number
|
||||
name: number
|
||||
message: number
|
||||
createdAt: number
|
||||
name: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -67,23 +67,23 @@ export type TriggerLogSumAggregateInputType = {
|
||||
|
||||
export type TriggerLogMinAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
message?: true
|
||||
createdAt?: true
|
||||
name?: true
|
||||
}
|
||||
|
||||
export type TriggerLogMaxAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
message?: true
|
||||
createdAt?: true
|
||||
name?: true
|
||||
}
|
||||
|
||||
export type TriggerLogCountAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
message?: true
|
||||
createdAt?: true
|
||||
name?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -175,9 +175,9 @@ export type TriggerLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
|
||||
export type TriggerLogGroupByOutputType = {
|
||||
id: number
|
||||
name: string
|
||||
message: string
|
||||
createdAt: Date
|
||||
name: string
|
||||
_count: TriggerLogCountAggregateOutputType | null
|
||||
_avg: TriggerLogAvgAggregateOutputType | null
|
||||
_sum: TriggerLogSumAggregateOutputType | null
|
||||
@@ -205,16 +205,16 @@ export type TriggerLogWhereInput = {
|
||||
OR?: Prisma.TriggerLogWhereInput[]
|
||||
NOT?: Prisma.TriggerLogWhereInput | Prisma.TriggerLogWhereInput[]
|
||||
id?: Prisma.IntFilter<"TriggerLog"> | number
|
||||
name?: Prisma.StringFilter<"TriggerLog"> | string
|
||||
message?: Prisma.StringFilter<"TriggerLog"> | string
|
||||
createdAt?: Prisma.DateTimeFilter<"TriggerLog"> | Date | string
|
||||
name?: Prisma.StringFilter<"TriggerLog"> | string
|
||||
}
|
||||
|
||||
export type TriggerLogOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
message?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
_relevance?: Prisma.TriggerLogOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -223,16 +223,16 @@ export type TriggerLogWhereUniqueInput = Prisma.AtLeast<{
|
||||
AND?: Prisma.TriggerLogWhereInput | Prisma.TriggerLogWhereInput[]
|
||||
OR?: Prisma.TriggerLogWhereInput[]
|
||||
NOT?: Prisma.TriggerLogWhereInput | Prisma.TriggerLogWhereInput[]
|
||||
name?: Prisma.StringFilter<"TriggerLog"> | string
|
||||
message?: Prisma.StringFilter<"TriggerLog"> | string
|
||||
createdAt?: Prisma.DateTimeFilter<"TriggerLog"> | Date | string
|
||||
name?: Prisma.StringFilter<"TriggerLog"> | string
|
||||
}, "id">
|
||||
|
||||
export type TriggerLogOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
message?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
_count?: Prisma.TriggerLogCountOrderByAggregateInput
|
||||
_avg?: Prisma.TriggerLogAvgOrderByAggregateInput
|
||||
_max?: Prisma.TriggerLogMaxOrderByAggregateInput
|
||||
@@ -245,55 +245,55 @@ export type TriggerLogScalarWhereWithAggregatesInput = {
|
||||
OR?: Prisma.TriggerLogScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.TriggerLogScalarWhereWithAggregatesInput | Prisma.TriggerLogScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.IntWithAggregatesFilter<"TriggerLog"> | number
|
||||
name?: Prisma.StringWithAggregatesFilter<"TriggerLog"> | string
|
||||
message?: Prisma.StringWithAggregatesFilter<"TriggerLog"> | string
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"TriggerLog"> | Date | string
|
||||
name?: Prisma.StringWithAggregatesFilter<"TriggerLog"> | string
|
||||
}
|
||||
|
||||
export type TriggerLogCreateInput = {
|
||||
name: string
|
||||
message: string
|
||||
createdAt?: Date | string
|
||||
name: string
|
||||
}
|
||||
|
||||
export type TriggerLogUncheckedCreateInput = {
|
||||
id?: number
|
||||
name: string
|
||||
message: string
|
||||
createdAt?: Date | string
|
||||
name: string
|
||||
}
|
||||
|
||||
export type TriggerLogUpdateInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
message?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type TriggerLogUncheckedUpdateInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
message?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type TriggerLogCreateManyInput = {
|
||||
id?: number
|
||||
name: string
|
||||
message: string
|
||||
createdAt?: Date | string
|
||||
name: string
|
||||
}
|
||||
|
||||
export type TriggerLogUpdateManyMutationInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
message?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type TriggerLogUncheckedUpdateManyInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
message?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type TriggerLogOrderByRelevanceInput = {
|
||||
@@ -304,9 +304,9 @@ export type TriggerLogOrderByRelevanceInput = {
|
||||
|
||||
export type TriggerLogCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
message?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type TriggerLogAvgOrderByAggregateInput = {
|
||||
@@ -315,16 +315,16 @@ export type TriggerLogAvgOrderByAggregateInput = {
|
||||
|
||||
export type TriggerLogMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
message?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type TriggerLogMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
message?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type TriggerLogSumOrderByAggregateInput = {
|
||||
@@ -335,30 +335,30 @@ export type TriggerLogSumOrderByAggregateInput = {
|
||||
|
||||
export type TriggerLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
message?: boolean
|
||||
createdAt?: boolean
|
||||
name?: boolean
|
||||
}, ExtArgs["result"]["triggerLog"]>
|
||||
|
||||
|
||||
|
||||
export type TriggerLogSelectScalar = {
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
message?: boolean
|
||||
createdAt?: boolean
|
||||
name?: boolean
|
||||
}
|
||||
|
||||
export type TriggerLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "message" | "createdAt", ExtArgs["result"]["triggerLog"]>
|
||||
export type TriggerLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "message" | "createdAt" | "name", ExtArgs["result"]["triggerLog"]>
|
||||
|
||||
export type $TriggerLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "TriggerLog"
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
name: string
|
||||
message: string
|
||||
createdAt: Date
|
||||
name: string
|
||||
}, ExtArgs["result"]["triggerLog"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -729,9 +729,9 @@ export interface Prisma__TriggerLogClient<T, Null = never, ExtArgs extends runti
|
||||
*/
|
||||
export interface TriggerLogFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"TriggerLog", 'Int'>
|
||||
readonly name: Prisma.FieldRef<"TriggerLog", 'String'>
|
||||
readonly message: Prisma.FieldRef<"TriggerLog", 'String'>
|
||||
readonly createdAt: Prisma.FieldRef<"TriggerLog", 'DateTime'>
|
||||
readonly name: Prisma.FieldRef<"TriggerLog", 'String'>
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -252,8 +252,8 @@ export type UserWhereInput = {
|
||||
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>
|
||||
refreshTokens?: Prisma.RefreshTokenListRelationFilter
|
||||
role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>
|
||||
}
|
||||
|
||||
export type UserOrderByWithRelationInput = {
|
||||
@@ -266,8 +266,8 @@ export type UserOrderByWithRelationInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
role?: Prisma.RoleOrderByWithRelationInput
|
||||
refreshTokens?: Prisma.RefreshTokenOrderByRelationAggregateInput
|
||||
role?: Prisma.RoleOrderByWithRelationInput
|
||||
_relevance?: Prisma.UserOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -284,8 +284,8 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
|
||||
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>
|
||||
refreshTokens?: Prisma.RefreshTokenListRelationFilter
|
||||
role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>
|
||||
}, "id" | "mobileNumber">
|
||||
|
||||
export type UserOrderByWithAggregationInput = {
|
||||
@@ -328,8 +328,8 @@ export type UserCreateInput = {
|
||||
createdAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
updatedAt?: Date | string
|
||||
role: Prisma.RoleCreateNestedOneWithoutUsersInput
|
||||
refreshTokens?: Prisma.RefreshTokenCreateNestedManyWithoutUserInput
|
||||
role: Prisma.RoleCreateNestedOneWithoutUsersInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateInput = {
|
||||
@@ -353,8 +353,8 @@ export type UserUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
role?: Prisma.RoleUpdateOneRequiredWithoutUsersNestedInput
|
||||
refreshTokens?: Prisma.RefreshTokenUpdateManyWithoutUserNestedInput
|
||||
role?: Prisma.RoleUpdateOneRequiredWithoutUsersNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateInput = {
|
||||
@@ -759,8 +759,8 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
||||
createdAt?: boolean
|
||||
deletedAt?: boolean
|
||||
updatedAt?: boolean
|
||||
role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
|
||||
refreshTokens?: boolean | Prisma.User$refreshTokensArgs<ExtArgs>
|
||||
role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["user"]>
|
||||
|
||||
@@ -780,16 +780,16 @@ export type UserSelectScalar = {
|
||||
|
||||
export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "mobileNumber" | "password" | "firstName" | "lastName" | "roleId" | "createdAt" | "deletedAt" | "updatedAt", ExtArgs["result"]["user"]>
|
||||
export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
|
||||
refreshTokens?: boolean | Prisma.User$refreshTokensArgs<ExtArgs>
|
||||
role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "User"
|
||||
objects: {
|
||||
role: Prisma.$RolePayload<ExtArgs>
|
||||
refreshTokens: Prisma.$RefreshTokenPayload<ExtArgs>[]
|
||||
role: Prisma.$RolePayload<ExtArgs>
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -1141,8 +1141,8 @@ readonly fields: UserFieldRefs;
|
||||
*/
|
||||
export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
role<T extends Prisma.RoleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RoleDefaultArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
refreshTokens<T extends Prisma.User$refreshTokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$refreshTokensArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
role<T extends Prisma.RoleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RoleDefaultArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<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.
|
||||
|
||||
@@ -1,713 +0,0 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports the `inventory_overview` model and its related types.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
import type * as runtime from "@prisma/client/runtime/client"
|
||||
import type * as $Enums from "../enums.js"
|
||||
import type * as Prisma from "../internal/prismaNamespace.js"
|
||||
|
||||
/**
|
||||
* Model inventory_overview
|
||||
*
|
||||
*/
|
||||
export type inventory_overviewModel = runtime.Types.Result.DefaultSelection<Prisma.$inventory_overviewPayload>
|
||||
|
||||
export type AggregateInventory_overview = {
|
||||
_count: Inventory_overviewCountAggregateOutputType | null
|
||||
_avg: Inventory_overviewAvgAggregateOutputType | null
|
||||
_sum: Inventory_overviewSumAggregateOutputType | null
|
||||
_min: Inventory_overviewMinAggregateOutputType | null
|
||||
_max: Inventory_overviewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewAvgAggregateOutputType = {
|
||||
ProductId: number | null
|
||||
stock_quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewSumAggregateOutputType = {
|
||||
ProductId: number | null
|
||||
stock_quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewMinAggregateOutputType = {
|
||||
ProductId: number | null
|
||||
stock_quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
updatedAt: Date | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewMaxAggregateOutputType = {
|
||||
ProductId: number | null
|
||||
stock_quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
updatedAt: Date | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewCountAggregateOutputType = {
|
||||
ProductId: number
|
||||
stock_quantity: number
|
||||
avgCost: number
|
||||
totalCost: number
|
||||
updatedAt: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type Inventory_overviewAvgAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewSumAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewMinAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
updatedAt?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewMaxAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
updatedAt?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewCountAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
updatedAt?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Filter which inventory_overview to aggregate.
|
||||
*/
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of inventory_overviews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithRelationInput | Prisma.inventory_overviewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` inventory_overviews 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` inventory_overviews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Count returned inventory_overviews
|
||||
**/
|
||||
_count?: true | Inventory_overviewCountAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to average
|
||||
**/
|
||||
_avg?: Inventory_overviewAvgAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to sum
|
||||
**/
|
||||
_sum?: Inventory_overviewSumAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the minimum value
|
||||
**/
|
||||
_min?: Inventory_overviewMinAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the maximum value
|
||||
**/
|
||||
_max?: Inventory_overviewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type GetInventory_overviewAggregateType<T extends Inventory_overviewAggregateArgs> = {
|
||||
[P in keyof T & keyof AggregateInventory_overview]: P extends '_count' | 'count'
|
||||
? T[P] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], AggregateInventory_overview[P]>
|
||||
: Prisma.GetScalarType<T[P], AggregateInventory_overview[P]>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export type inventory_overviewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithAggregationInput | Prisma.inventory_overviewOrderByWithAggregationInput[]
|
||||
by: Prisma.Inventory_overviewScalarFieldEnum[] | Prisma.Inventory_overviewScalarFieldEnum
|
||||
having?: Prisma.inventory_overviewScalarWhereWithAggregatesInput
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: Inventory_overviewCountAggregateInputType | true
|
||||
_avg?: Inventory_overviewAvgAggregateInputType
|
||||
_sum?: Inventory_overviewSumAggregateInputType
|
||||
_min?: Inventory_overviewMinAggregateInputType
|
||||
_max?: Inventory_overviewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type Inventory_overviewGroupByOutputType = {
|
||||
ProductId: number
|
||||
stock_quantity: runtime.Decimal
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
updatedAt: Date
|
||||
_count: Inventory_overviewCountAggregateOutputType | null
|
||||
_avg: Inventory_overviewAvgAggregateOutputType | null
|
||||
_sum: Inventory_overviewSumAggregateOutputType | null
|
||||
_min: Inventory_overviewMinAggregateOutputType | null
|
||||
_max: Inventory_overviewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
type GetInventory_overviewGroupByPayload<T extends inventory_overviewGroupByArgs> = Prisma.PrismaPromise<
|
||||
Array<
|
||||
Prisma.PickEnumerable<Inventory_overviewGroupByOutputType, T['by']> &
|
||||
{
|
||||
[P in ((keyof T) & (keyof Inventory_overviewGroupByOutputType))]: P extends '_count'
|
||||
? T[P] extends boolean
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], Inventory_overviewGroupByOutputType[P]>
|
||||
: Prisma.GetScalarType<T[P], Inventory_overviewGroupByOutputType[P]>
|
||||
}
|
||||
>
|
||||
>
|
||||
|
||||
|
||||
|
||||
export type inventory_overviewWhereInput = {
|
||||
AND?: Prisma.inventory_overviewWhereInput | Prisma.inventory_overviewWhereInput[]
|
||||
OR?: Prisma.inventory_overviewWhereInput[]
|
||||
NOT?: Prisma.inventory_overviewWhereInput | Prisma.inventory_overviewWhereInput[]
|
||||
ProductId?: Prisma.IntFilter<"inventory_overview"> | number
|
||||
stock_quantity?: Prisma.DecimalFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"inventory_overview"> | Date | string
|
||||
}
|
||||
|
||||
export type inventory_overviewOrderByWithRelationInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewOrderByWithAggregationInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
_count?: Prisma.inventory_overviewCountOrderByAggregateInput
|
||||
_avg?: Prisma.inventory_overviewAvgOrderByAggregateInput
|
||||
_max?: Prisma.inventory_overviewMaxOrderByAggregateInput
|
||||
_min?: Prisma.inventory_overviewMinOrderByAggregateInput
|
||||
_sum?: Prisma.inventory_overviewSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type inventory_overviewScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.inventory_overviewScalarWhereWithAggregatesInput | Prisma.inventory_overviewScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.inventory_overviewScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.inventory_overviewScalarWhereWithAggregatesInput | Prisma.inventory_overviewScalarWhereWithAggregatesInput[]
|
||||
ProductId?: Prisma.IntWithAggregatesFilter<"inventory_overview"> | number
|
||||
stock_quantity?: Prisma.DecimalWithAggregatesFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalWithAggregatesFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalWithAggregatesFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"inventory_overview"> | Date | string
|
||||
}
|
||||
|
||||
export type inventory_overviewCountOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewAvgOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewMaxOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewMinOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewSumOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type inventory_overviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
ProductId?: boolean
|
||||
stock_quantity?: boolean
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
updatedAt?: boolean
|
||||
}, ExtArgs["result"]["inventory_overview"]>
|
||||
|
||||
|
||||
|
||||
export type inventory_overviewSelectScalar = {
|
||||
ProductId?: boolean
|
||||
stock_quantity?: boolean
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
updatedAt?: boolean
|
||||
}
|
||||
|
||||
export type inventory_overviewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"ProductId" | "stock_quantity" | "avgCost" | "totalCost" | "updatedAt", ExtArgs["result"]["inventory_overview"]>
|
||||
|
||||
export type $inventory_overviewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "inventory_overview"
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
ProductId: number
|
||||
stock_quantity: runtime.Decimal
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
updatedAt: Date
|
||||
}, ExtArgs["result"]["inventory_overview"]>
|
||||
composites: {}
|
||||
}
|
||||
|
||||
export type inventory_overviewGetPayload<S extends boolean | null | undefined | inventory_overviewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$inventory_overviewPayload, S>
|
||||
|
||||
export type inventory_overviewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||||
Omit<inventory_overviewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||||
select?: Inventory_overviewCountAggregateInputType | true
|
||||
}
|
||||
|
||||
export interface inventory_overviewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||||
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['inventory_overview'], meta: { name: 'inventory_overview' } }
|
||||
/**
|
||||
* Find the first Inventory_overview 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 {inventory_overviewFindFirstArgs} args - Arguments to find a Inventory_overview
|
||||
* @example
|
||||
* // Get one Inventory_overview
|
||||
* const inventory_overview = await prisma.inventory_overview.findFirst({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirst<T extends inventory_overviewFindFirstArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, inventory_overviewFindFirstArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__inventory_overviewClient<runtime.Types.Result.GetResult<Prisma.$inventory_overviewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find the first Inventory_overview 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 {inventory_overviewFindFirstOrThrowArgs} args - Arguments to find a Inventory_overview
|
||||
* @example
|
||||
* // Get one Inventory_overview
|
||||
* const inventory_overview = await prisma.inventory_overview.findFirstOrThrow({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirstOrThrow<T extends inventory_overviewFindFirstOrThrowArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, inventory_overviewFindFirstOrThrowArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__inventory_overviewClient<runtime.Types.Result.GetResult<Prisma.$inventory_overviewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find zero or more Inventory_overviews 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 {inventory_overviewFindManyArgs} args - Arguments to filter and select certain fields only.
|
||||
* @example
|
||||
* // Get all Inventory_overviews
|
||||
* const inventory_overviews = await prisma.inventory_overview.findMany()
|
||||
*
|
||||
* // Get first 10 Inventory_overviews
|
||||
* const inventory_overviews = await prisma.inventory_overview.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `ProductId`
|
||||
* const inventory_overviewWithProductIdOnly = await prisma.inventory_overview.findMany({ select: { ProductId: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends inventory_overviewFindManyArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, inventory_overviewFindManyArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$inventory_overviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
|
||||
|
||||
/**
|
||||
* Count the number of Inventory_overviews.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {inventory_overviewCountArgs} args - Arguments to filter Inventory_overviews to count.
|
||||
* @example
|
||||
* // Count the number of Inventory_overviews
|
||||
* const count = await prisma.inventory_overview.count({
|
||||
* where: {
|
||||
* // ... the filter for the Inventory_overviews we want to count
|
||||
* }
|
||||
* })
|
||||
**/
|
||||
count<T extends inventory_overviewCountArgs>(
|
||||
args?: Prisma.Subset<T, inventory_overviewCountArgs>,
|
||||
): Prisma.PrismaPromise<
|
||||
T extends runtime.Types.Utils.Record<'select', any>
|
||||
? T['select'] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T['select'], Inventory_overviewCountAggregateOutputType>
|
||||
: number
|
||||
>
|
||||
|
||||
/**
|
||||
* Allows you to perform aggregations operations on a Inventory_overview.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {Inventory_overviewAggregateArgs} 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 Inventory_overviewAggregateArgs>(args: Prisma.Subset<T, Inventory_overviewAggregateArgs>): Prisma.PrismaPromise<GetInventory_overviewAggregateType<T>>
|
||||
|
||||
/**
|
||||
* Group by Inventory_overview.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {inventory_overviewGroupByArgs} 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 inventory_overviewGroupByArgs,
|
||||
HasSelectOrTake extends Prisma.Or<
|
||||
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||||
Prisma.Extends<'take', Prisma.Keys<T>>
|
||||
>,
|
||||
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||||
? { orderBy: inventory_overviewGroupByArgs['orderBy'] }
|
||||
: { orderBy?: inventory_overviewGroupByArgs['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, inventory_overviewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInventory_overviewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||||
/**
|
||||
* Fields of the inventory_overview model
|
||||
*/
|
||||
readonly fields: inventory_overviewFieldRefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* The delegate class that acts as a "Promise-like" for inventory_overview.
|
||||
* 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__inventory_overviewClient<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 inventory_overview model
|
||||
*/
|
||||
export interface inventory_overviewFieldRefs {
|
||||
readonly ProductId: Prisma.FieldRef<"inventory_overview", 'Int'>
|
||||
readonly stock_quantity: Prisma.FieldRef<"inventory_overview", 'Decimal'>
|
||||
readonly avgCost: Prisma.FieldRef<"inventory_overview", 'Decimal'>
|
||||
readonly totalCost: Prisma.FieldRef<"inventory_overview", 'Decimal'>
|
||||
readonly updatedAt: Prisma.FieldRef<"inventory_overview", 'DateTime'>
|
||||
}
|
||||
|
||||
|
||||
// Custom InputTypes
|
||||
/**
|
||||
* inventory_overview findFirst
|
||||
*/
|
||||
export type inventory_overviewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the inventory_overview
|
||||
*/
|
||||
select?: Prisma.inventory_overviewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the inventory_overview
|
||||
*/
|
||||
omit?: Prisma.inventory_overviewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which inventory_overview to fetch.
|
||||
*/
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of inventory_overviews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithRelationInput | Prisma.inventory_overviewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` inventory_overviews 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` inventory_overviews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of inventory_overviews.
|
||||
*/
|
||||
distinct?: Prisma.Inventory_overviewScalarFieldEnum | Prisma.Inventory_overviewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* inventory_overview findFirstOrThrow
|
||||
*/
|
||||
export type inventory_overviewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the inventory_overview
|
||||
*/
|
||||
select?: Prisma.inventory_overviewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the inventory_overview
|
||||
*/
|
||||
omit?: Prisma.inventory_overviewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which inventory_overview to fetch.
|
||||
*/
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of inventory_overviews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithRelationInput | Prisma.inventory_overviewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` inventory_overviews 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` inventory_overviews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of inventory_overviews.
|
||||
*/
|
||||
distinct?: Prisma.Inventory_overviewScalarFieldEnum | Prisma.Inventory_overviewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* inventory_overview findMany
|
||||
*/
|
||||
export type inventory_overviewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the inventory_overview
|
||||
*/
|
||||
select?: Prisma.inventory_overviewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the inventory_overview
|
||||
*/
|
||||
omit?: Prisma.inventory_overviewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which inventory_overviews to fetch.
|
||||
*/
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of inventory_overviews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithRelationInput | Prisma.inventory_overviewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` inventory_overviews 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` inventory_overviews.
|
||||
*/
|
||||
skip?: number
|
||||
distinct?: Prisma.Inventory_overviewScalarFieldEnum | Prisma.Inventory_overviewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* inventory_overview without action
|
||||
*/
|
||||
export type inventory_overviewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the inventory_overview
|
||||
*/
|
||||
select?: Prisma.inventory_overviewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the inventory_overview
|
||||
*/
|
||||
omit?: Prisma.inventory_overviewOmit<ExtArgs> | null
|
||||
}
|
||||
@@ -1,803 +0,0 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports the `stock_cardex` 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 stock_cardex
|
||||
*
|
||||
*/
|
||||
export type stock_cardexModel = runtime.Types.Result.DefaultSelection<Prisma.$stock_cardexPayload>
|
||||
|
||||
export type AggregateStock_cardex = {
|
||||
_count: Stock_cardexCountAggregateOutputType | null
|
||||
_avg: Stock_cardexAvgAggregateOutputType | null
|
||||
_sum: Stock_cardexSumAggregateOutputType | null
|
||||
_min: Stock_cardexMinAggregateOutputType | null
|
||||
_max: Stock_cardexMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
export type Stock_cardexAvgAggregateOutputType = {
|
||||
productId: number | null
|
||||
movement_id: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
fee: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_cardexSumAggregateOutputType = {
|
||||
productId: number | null
|
||||
movement_id: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
fee: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_cardexMinAggregateOutputType = {
|
||||
productId: number | null
|
||||
movement_id: number | null
|
||||
type: $Enums.stock_cardex_type | null
|
||||
quantity: runtime.Decimal | null
|
||||
fee: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
}
|
||||
|
||||
export type Stock_cardexMaxAggregateOutputType = {
|
||||
productId: number | null
|
||||
movement_id: number | null
|
||||
type: $Enums.stock_cardex_type | null
|
||||
quantity: runtime.Decimal | null
|
||||
fee: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
}
|
||||
|
||||
export type Stock_cardexCountAggregateOutputType = {
|
||||
productId: number
|
||||
movement_id: number
|
||||
type: number
|
||||
quantity: number
|
||||
fee: number
|
||||
totalCost: number
|
||||
balance_quantity: number
|
||||
balance_avg_cost: number
|
||||
createdAt: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type Stock_cardexAvgAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexSumAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexMinAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
type?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
createdAt?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexMaxAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
type?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
createdAt?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexCountAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
type?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
createdAt?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Filter which stock_cardex to aggregate.
|
||||
*/
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_cardexes to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_cardexOrderByWithRelationInput | Prisma.stock_cardexOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_cardexes 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` stock_cardexes.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Count returned stock_cardexes
|
||||
**/
|
||||
_count?: true | Stock_cardexCountAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to average
|
||||
**/
|
||||
_avg?: Stock_cardexAvgAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to sum
|
||||
**/
|
||||
_sum?: Stock_cardexSumAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the minimum value
|
||||
**/
|
||||
_min?: Stock_cardexMinAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the maximum value
|
||||
**/
|
||||
_max?: Stock_cardexMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type GetStock_cardexAggregateType<T extends Stock_cardexAggregateArgs> = {
|
||||
[P in keyof T & keyof AggregateStock_cardex]: P extends '_count' | 'count'
|
||||
? T[P] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], AggregateStock_cardex[P]>
|
||||
: Prisma.GetScalarType<T[P], AggregateStock_cardex[P]>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export type stock_cardexGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
orderBy?: Prisma.stock_cardexOrderByWithAggregationInput | Prisma.stock_cardexOrderByWithAggregationInput[]
|
||||
by: Prisma.Stock_cardexScalarFieldEnum[] | Prisma.Stock_cardexScalarFieldEnum
|
||||
having?: Prisma.stock_cardexScalarWhereWithAggregatesInput
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: Stock_cardexCountAggregateInputType | true
|
||||
_avg?: Stock_cardexAvgAggregateInputType
|
||||
_sum?: Stock_cardexSumAggregateInputType
|
||||
_min?: Stock_cardexMinAggregateInputType
|
||||
_max?: Stock_cardexMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type Stock_cardexGroupByOutputType = {
|
||||
productId: number
|
||||
movement_id: number
|
||||
type: $Enums.stock_cardex_type
|
||||
quantity: runtime.Decimal
|
||||
fee: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
createdAt: Date
|
||||
_count: Stock_cardexCountAggregateOutputType | null
|
||||
_avg: Stock_cardexAvgAggregateOutputType | null
|
||||
_sum: Stock_cardexSumAggregateOutputType | null
|
||||
_min: Stock_cardexMinAggregateOutputType | null
|
||||
_max: Stock_cardexMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
type GetStock_cardexGroupByPayload<T extends stock_cardexGroupByArgs> = Prisma.PrismaPromise<
|
||||
Array<
|
||||
Prisma.PickEnumerable<Stock_cardexGroupByOutputType, T['by']> &
|
||||
{
|
||||
[P in ((keyof T) & (keyof Stock_cardexGroupByOutputType))]: P extends '_count'
|
||||
? T[P] extends boolean
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], Stock_cardexGroupByOutputType[P]>
|
||||
: Prisma.GetScalarType<T[P], Stock_cardexGroupByOutputType[P]>
|
||||
}
|
||||
>
|
||||
>
|
||||
|
||||
|
||||
|
||||
export type stock_cardexWhereInput = {
|
||||
AND?: Prisma.stock_cardexWhereInput | Prisma.stock_cardexWhereInput[]
|
||||
OR?: Prisma.stock_cardexWhereInput[]
|
||||
NOT?: Prisma.stock_cardexWhereInput | Prisma.stock_cardexWhereInput[]
|
||||
productId?: Prisma.IntFilter<"stock_cardex"> | number
|
||||
movement_id?: Prisma.IntFilter<"stock_cardex"> | number
|
||||
type?: Prisma.Enumstock_cardex_typeFilter<"stock_cardex"> | $Enums.stock_cardex_type
|
||||
quantity?: Prisma.DecimalFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
balance_quantity?: Prisma.DecimalNullableFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
balance_avg_cost?: Prisma.DecimalNullableFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"stock_cardex"> | Date | string
|
||||
}
|
||||
|
||||
export type stock_cardexOrderByWithRelationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexOrderByWithAggregationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
_count?: Prisma.stock_cardexCountOrderByAggregateInput
|
||||
_avg?: Prisma.stock_cardexAvgOrderByAggregateInput
|
||||
_max?: Prisma.stock_cardexMaxOrderByAggregateInput
|
||||
_min?: Prisma.stock_cardexMinOrderByAggregateInput
|
||||
_sum?: Prisma.stock_cardexSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type stock_cardexScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.stock_cardexScalarWhereWithAggregatesInput | Prisma.stock_cardexScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.stock_cardexScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.stock_cardexScalarWhereWithAggregatesInput | Prisma.stock_cardexScalarWhereWithAggregatesInput[]
|
||||
productId?: Prisma.IntWithAggregatesFilter<"stock_cardex"> | number
|
||||
movement_id?: Prisma.IntWithAggregatesFilter<"stock_cardex"> | number
|
||||
type?: Prisma.Enumstock_cardex_typeWithAggregatesFilter<"stock_cardex"> | $Enums.stock_cardex_type
|
||||
quantity?: Prisma.DecimalWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
balance_quantity?: Prisma.DecimalNullableWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
balance_avg_cost?: Prisma.DecimalNullableWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"stock_cardex"> | Date | string
|
||||
}
|
||||
|
||||
export type stock_cardexCountOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexAvgOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexMaxOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexMinOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexSumOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type stock_cardexSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
productId?: boolean
|
||||
movement_id?: boolean
|
||||
type?: boolean
|
||||
quantity?: boolean
|
||||
fee?: boolean
|
||||
totalCost?: boolean
|
||||
balance_quantity?: boolean
|
||||
balance_avg_cost?: boolean
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["stock_cardex"]>
|
||||
|
||||
|
||||
|
||||
export type stock_cardexSelectScalar = {
|
||||
productId?: boolean
|
||||
movement_id?: boolean
|
||||
type?: boolean
|
||||
quantity?: boolean
|
||||
fee?: boolean
|
||||
totalCost?: boolean
|
||||
balance_quantity?: boolean
|
||||
balance_avg_cost?: boolean
|
||||
createdAt?: boolean
|
||||
}
|
||||
|
||||
export type stock_cardexOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"productId" | "movement_id" | "type" | "quantity" | "fee" | "totalCost" | "balance_quantity" | "balance_avg_cost" | "createdAt", ExtArgs["result"]["stock_cardex"]>
|
||||
|
||||
export type $stock_cardexPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "stock_cardex"
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
productId: number
|
||||
movement_id: number
|
||||
type: $Enums.stock_cardex_type
|
||||
quantity: runtime.Decimal
|
||||
fee: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
createdAt: Date
|
||||
}, ExtArgs["result"]["stock_cardex"]>
|
||||
composites: {}
|
||||
}
|
||||
|
||||
export type stock_cardexGetPayload<S extends boolean | null | undefined | stock_cardexDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$stock_cardexPayload, S>
|
||||
|
||||
export type stock_cardexCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||||
Omit<stock_cardexFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||||
select?: Stock_cardexCountAggregateInputType | true
|
||||
}
|
||||
|
||||
export interface stock_cardexDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||||
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['stock_cardex'], meta: { name: 'stock_cardex' } }
|
||||
/**
|
||||
* Find the first Stock_cardex 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 {stock_cardexFindFirstArgs} args - Arguments to find a Stock_cardex
|
||||
* @example
|
||||
* // Get one Stock_cardex
|
||||
* const stock_cardex = await prisma.stock_cardex.findFirst({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirst<T extends stock_cardexFindFirstArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_cardexFindFirstArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__stock_cardexClient<runtime.Types.Result.GetResult<Prisma.$stock_cardexPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find the first Stock_cardex 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 {stock_cardexFindFirstOrThrowArgs} args - Arguments to find a Stock_cardex
|
||||
* @example
|
||||
* // Get one Stock_cardex
|
||||
* const stock_cardex = await prisma.stock_cardex.findFirstOrThrow({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirstOrThrow<T extends stock_cardexFindFirstOrThrowArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_cardexFindFirstOrThrowArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__stock_cardexClient<runtime.Types.Result.GetResult<Prisma.$stock_cardexPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find zero or more Stock_cardexes 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 {stock_cardexFindManyArgs} args - Arguments to filter and select certain fields only.
|
||||
* @example
|
||||
* // Get all Stock_cardexes
|
||||
* const stock_cardexes = await prisma.stock_cardex.findMany()
|
||||
*
|
||||
* // Get first 10 Stock_cardexes
|
||||
* const stock_cardexes = await prisma.stock_cardex.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `productId`
|
||||
* const stock_cardexWithProductIdOnly = await prisma.stock_cardex.findMany({ select: { productId: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends stock_cardexFindManyArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_cardexFindManyArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$stock_cardexPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
|
||||
|
||||
/**
|
||||
* Count the number of Stock_cardexes.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {stock_cardexCountArgs} args - Arguments to filter Stock_cardexes to count.
|
||||
* @example
|
||||
* // Count the number of Stock_cardexes
|
||||
* const count = await prisma.stock_cardex.count({
|
||||
* where: {
|
||||
* // ... the filter for the Stock_cardexes we want to count
|
||||
* }
|
||||
* })
|
||||
**/
|
||||
count<T extends stock_cardexCountArgs>(
|
||||
args?: Prisma.Subset<T, stock_cardexCountArgs>,
|
||||
): Prisma.PrismaPromise<
|
||||
T extends runtime.Types.Utils.Record<'select', any>
|
||||
? T['select'] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T['select'], Stock_cardexCountAggregateOutputType>
|
||||
: number
|
||||
>
|
||||
|
||||
/**
|
||||
* Allows you to perform aggregations operations on a Stock_cardex.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {Stock_cardexAggregateArgs} 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 Stock_cardexAggregateArgs>(args: Prisma.Subset<T, Stock_cardexAggregateArgs>): Prisma.PrismaPromise<GetStock_cardexAggregateType<T>>
|
||||
|
||||
/**
|
||||
* Group by Stock_cardex.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {stock_cardexGroupByArgs} 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 stock_cardexGroupByArgs,
|
||||
HasSelectOrTake extends Prisma.Or<
|
||||
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||||
Prisma.Extends<'take', Prisma.Keys<T>>
|
||||
>,
|
||||
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||||
? { orderBy: stock_cardexGroupByArgs['orderBy'] }
|
||||
: { orderBy?: stock_cardexGroupByArgs['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, stock_cardexGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStock_cardexGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||||
/**
|
||||
* Fields of the stock_cardex model
|
||||
*/
|
||||
readonly fields: stock_cardexFieldRefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* The delegate class that acts as a "Promise-like" for stock_cardex.
|
||||
* 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__stock_cardexClient<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 stock_cardex model
|
||||
*/
|
||||
export interface stock_cardexFieldRefs {
|
||||
readonly productId: Prisma.FieldRef<"stock_cardex", 'Int'>
|
||||
readonly movement_id: Prisma.FieldRef<"stock_cardex", 'Int'>
|
||||
readonly type: Prisma.FieldRef<"stock_cardex", 'stock_cardex_type'>
|
||||
readonly quantity: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly fee: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly totalCost: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly balance_quantity: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly balance_avg_cost: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly createdAt: Prisma.FieldRef<"stock_cardex", 'DateTime'>
|
||||
}
|
||||
|
||||
|
||||
// Custom InputTypes
|
||||
/**
|
||||
* stock_cardex findFirst
|
||||
*/
|
||||
export type stock_cardexFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_cardex
|
||||
*/
|
||||
select?: Prisma.stock_cardexSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_cardex
|
||||
*/
|
||||
omit?: Prisma.stock_cardexOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_cardex to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_cardexes to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_cardexOrderByWithRelationInput | Prisma.stock_cardexOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_cardexes 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` stock_cardexes.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of stock_cardexes.
|
||||
*/
|
||||
distinct?: Prisma.Stock_cardexScalarFieldEnum | Prisma.Stock_cardexScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_cardex findFirstOrThrow
|
||||
*/
|
||||
export type stock_cardexFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_cardex
|
||||
*/
|
||||
select?: Prisma.stock_cardexSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_cardex
|
||||
*/
|
||||
omit?: Prisma.stock_cardexOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_cardex to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_cardexes to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_cardexOrderByWithRelationInput | Prisma.stock_cardexOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_cardexes 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` stock_cardexes.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of stock_cardexes.
|
||||
*/
|
||||
distinct?: Prisma.Stock_cardexScalarFieldEnum | Prisma.Stock_cardexScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_cardex findMany
|
||||
*/
|
||||
export type stock_cardexFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_cardex
|
||||
*/
|
||||
select?: Prisma.stock_cardexSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_cardex
|
||||
*/
|
||||
omit?: Prisma.stock_cardexOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_cardexes to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_cardexes to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_cardexOrderByWithRelationInput | Prisma.stock_cardexOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_cardexes 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` stock_cardexes.
|
||||
*/
|
||||
skip?: number
|
||||
distinct?: Prisma.Stock_cardexScalarFieldEnum | Prisma.Stock_cardexScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_cardex without action
|
||||
*/
|
||||
export type stock_cardexDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_cardex
|
||||
*/
|
||||
select?: Prisma.stock_cardexSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_cardex
|
||||
*/
|
||||
omit?: Prisma.stock_cardexOmit<ExtArgs> | null
|
||||
}
|
||||
@@ -1,671 +0,0 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports the `stock_view` 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 stock_view
|
||||
*
|
||||
*/
|
||||
export type stock_viewModel = runtime.Types.Result.DefaultSelection<Prisma.$stock_viewPayload>
|
||||
|
||||
export type AggregateStock_view = {
|
||||
_count: Stock_viewCountAggregateOutputType | null
|
||||
_avg: Stock_viewAvgAggregateOutputType | null
|
||||
_sum: Stock_viewSumAggregateOutputType | null
|
||||
_min: Stock_viewMinAggregateOutputType | null
|
||||
_max: Stock_viewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
export type Stock_viewAvgAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
stock: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_viewSumAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
stock: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_viewMinAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
stock: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_viewMaxAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
stock: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_viewCountAggregateOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
stock: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type Stock_viewAvgAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
}
|
||||
|
||||
export type Stock_viewSumAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
}
|
||||
|
||||
export type Stock_viewMinAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
}
|
||||
|
||||
export type Stock_viewMaxAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
}
|
||||
|
||||
export type Stock_viewCountAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
export type Stock_viewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Filter which stock_view to aggregate.
|
||||
*/
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_views to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_viewOrderByWithRelationInput | Prisma.stock_viewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_views 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` stock_views.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Count returned stock_views
|
||||
**/
|
||||
_count?: true | Stock_viewCountAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to average
|
||||
**/
|
||||
_avg?: Stock_viewAvgAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to sum
|
||||
**/
|
||||
_sum?: Stock_viewSumAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the minimum value
|
||||
**/
|
||||
_min?: Stock_viewMinAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the maximum value
|
||||
**/
|
||||
_max?: Stock_viewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type GetStock_viewAggregateType<T extends Stock_viewAggregateArgs> = {
|
||||
[P in keyof T & keyof AggregateStock_view]: P extends '_count' | 'count'
|
||||
? T[P] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], AggregateStock_view[P]>
|
||||
: Prisma.GetScalarType<T[P], AggregateStock_view[P]>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export type stock_viewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
orderBy?: Prisma.stock_viewOrderByWithAggregationInput | Prisma.stock_viewOrderByWithAggregationInput[]
|
||||
by: Prisma.Stock_viewScalarFieldEnum[] | Prisma.Stock_viewScalarFieldEnum
|
||||
having?: Prisma.stock_viewScalarWhereWithAggregatesInput
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: Stock_viewCountAggregateInputType | true
|
||||
_avg?: Stock_viewAvgAggregateInputType
|
||||
_sum?: Stock_viewSumAggregateInputType
|
||||
_min?: Stock_viewMinAggregateInputType
|
||||
_max?: Stock_viewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type Stock_viewGroupByOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
stock: runtime.Decimal | null
|
||||
_count: Stock_viewCountAggregateOutputType | null
|
||||
_avg: Stock_viewAvgAggregateOutputType | null
|
||||
_sum: Stock_viewSumAggregateOutputType | null
|
||||
_min: Stock_viewMinAggregateOutputType | null
|
||||
_max: Stock_viewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
type GetStock_viewGroupByPayload<T extends stock_viewGroupByArgs> = Prisma.PrismaPromise<
|
||||
Array<
|
||||
Prisma.PickEnumerable<Stock_viewGroupByOutputType, T['by']> &
|
||||
{
|
||||
[P in ((keyof T) & (keyof Stock_viewGroupByOutputType))]: P extends '_count'
|
||||
? T[P] extends boolean
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], Stock_viewGroupByOutputType[P]>
|
||||
: Prisma.GetScalarType<T[P], Stock_viewGroupByOutputType[P]>
|
||||
}
|
||||
>
|
||||
>
|
||||
|
||||
|
||||
|
||||
export type stock_viewWhereInput = {
|
||||
AND?: Prisma.stock_viewWhereInput | Prisma.stock_viewWhereInput[]
|
||||
OR?: Prisma.stock_viewWhereInput[]
|
||||
NOT?: Prisma.stock_viewWhereInput | Prisma.stock_viewWhereInput[]
|
||||
productId?: Prisma.IntFilter<"stock_view"> | number
|
||||
inventoryId?: Prisma.IntFilter<"stock_view"> | number
|
||||
stock?: Prisma.DecimalNullableFilter<"stock_view"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
}
|
||||
|
||||
export type stock_viewOrderByWithRelationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewOrderByWithAggregationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.stock_viewCountOrderByAggregateInput
|
||||
_avg?: Prisma.stock_viewAvgOrderByAggregateInput
|
||||
_max?: Prisma.stock_viewMaxOrderByAggregateInput
|
||||
_min?: Prisma.stock_viewMinOrderByAggregateInput
|
||||
_sum?: Prisma.stock_viewSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type stock_viewScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.stock_viewScalarWhereWithAggregatesInput | Prisma.stock_viewScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.stock_viewScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.stock_viewScalarWhereWithAggregatesInput | Prisma.stock_viewScalarWhereWithAggregatesInput[]
|
||||
productId?: Prisma.IntWithAggregatesFilter<"stock_view"> | number
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"stock_view"> | number
|
||||
stock?: Prisma.DecimalNullableWithAggregatesFilter<"stock_view"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
}
|
||||
|
||||
export type stock_viewCountOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewAvgOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewMaxOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewMinOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewSumOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type stock_viewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
stock?: boolean
|
||||
}, ExtArgs["result"]["stock_view"]>
|
||||
|
||||
|
||||
|
||||
export type stock_viewSelectScalar = {
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
stock?: boolean
|
||||
}
|
||||
|
||||
export type stock_viewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"productId" | "inventoryId" | "stock", ExtArgs["result"]["stock_view"]>
|
||||
|
||||
export type $stock_viewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "stock_view"
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
productId: number
|
||||
inventoryId: number
|
||||
stock: runtime.Decimal | null
|
||||
}, ExtArgs["result"]["stock_view"]>
|
||||
composites: {}
|
||||
}
|
||||
|
||||
export type stock_viewGetPayload<S extends boolean | null | undefined | stock_viewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$stock_viewPayload, S>
|
||||
|
||||
export type stock_viewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||||
Omit<stock_viewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||||
select?: Stock_viewCountAggregateInputType | true
|
||||
}
|
||||
|
||||
export interface stock_viewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||||
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['stock_view'], meta: { name: 'stock_view' } }
|
||||
/**
|
||||
* Find the first Stock_view 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 {stock_viewFindFirstArgs} args - Arguments to find a Stock_view
|
||||
* @example
|
||||
* // Get one Stock_view
|
||||
* const stock_view = await prisma.stock_view.findFirst({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirst<T extends stock_viewFindFirstArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_viewFindFirstArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__stock_viewClient<runtime.Types.Result.GetResult<Prisma.$stock_viewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find the first Stock_view 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 {stock_viewFindFirstOrThrowArgs} args - Arguments to find a Stock_view
|
||||
* @example
|
||||
* // Get one Stock_view
|
||||
* const stock_view = await prisma.stock_view.findFirstOrThrow({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirstOrThrow<T extends stock_viewFindFirstOrThrowArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_viewFindFirstOrThrowArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__stock_viewClient<runtime.Types.Result.GetResult<Prisma.$stock_viewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find zero or more Stock_views 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 {stock_viewFindManyArgs} args - Arguments to filter and select certain fields only.
|
||||
* @example
|
||||
* // Get all Stock_views
|
||||
* const stock_views = await prisma.stock_view.findMany()
|
||||
*
|
||||
* // Get first 10 Stock_views
|
||||
* const stock_views = await prisma.stock_view.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `productId`
|
||||
* const stock_viewWithProductIdOnly = await prisma.stock_view.findMany({ select: { productId: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends stock_viewFindManyArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_viewFindManyArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$stock_viewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
|
||||
|
||||
/**
|
||||
* Count the number of Stock_views.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {stock_viewCountArgs} args - Arguments to filter Stock_views to count.
|
||||
* @example
|
||||
* // Count the number of Stock_views
|
||||
* const count = await prisma.stock_view.count({
|
||||
* where: {
|
||||
* // ... the filter for the Stock_views we want to count
|
||||
* }
|
||||
* })
|
||||
**/
|
||||
count<T extends stock_viewCountArgs>(
|
||||
args?: Prisma.Subset<T, stock_viewCountArgs>,
|
||||
): Prisma.PrismaPromise<
|
||||
T extends runtime.Types.Utils.Record<'select', any>
|
||||
? T['select'] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T['select'], Stock_viewCountAggregateOutputType>
|
||||
: number
|
||||
>
|
||||
|
||||
/**
|
||||
* Allows you to perform aggregations operations on a Stock_view.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {Stock_viewAggregateArgs} 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 Stock_viewAggregateArgs>(args: Prisma.Subset<T, Stock_viewAggregateArgs>): Prisma.PrismaPromise<GetStock_viewAggregateType<T>>
|
||||
|
||||
/**
|
||||
* Group by Stock_view.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {stock_viewGroupByArgs} 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 stock_viewGroupByArgs,
|
||||
HasSelectOrTake extends Prisma.Or<
|
||||
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||||
Prisma.Extends<'take', Prisma.Keys<T>>
|
||||
>,
|
||||
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||||
? { orderBy: stock_viewGroupByArgs['orderBy'] }
|
||||
: { orderBy?: stock_viewGroupByArgs['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, stock_viewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStock_viewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||||
/**
|
||||
* Fields of the stock_view model
|
||||
*/
|
||||
readonly fields: stock_viewFieldRefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* The delegate class that acts as a "Promise-like" for stock_view.
|
||||
* 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__stock_viewClient<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 stock_view model
|
||||
*/
|
||||
export interface stock_viewFieldRefs {
|
||||
readonly productId: Prisma.FieldRef<"stock_view", 'Int'>
|
||||
readonly inventoryId: Prisma.FieldRef<"stock_view", 'Int'>
|
||||
readonly stock: Prisma.FieldRef<"stock_view", 'Decimal'>
|
||||
}
|
||||
|
||||
|
||||
// Custom InputTypes
|
||||
/**
|
||||
* stock_view findFirst
|
||||
*/
|
||||
export type stock_viewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_view
|
||||
*/
|
||||
select?: Prisma.stock_viewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_view
|
||||
*/
|
||||
omit?: Prisma.stock_viewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_view to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_views to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_viewOrderByWithRelationInput | Prisma.stock_viewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_views 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` stock_views.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of stock_views.
|
||||
*/
|
||||
distinct?: Prisma.Stock_viewScalarFieldEnum | Prisma.Stock_viewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_view findFirstOrThrow
|
||||
*/
|
||||
export type stock_viewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_view
|
||||
*/
|
||||
select?: Prisma.stock_viewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_view
|
||||
*/
|
||||
omit?: Prisma.stock_viewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_view to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_views to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_viewOrderByWithRelationInput | Prisma.stock_viewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_views 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` stock_views.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of stock_views.
|
||||
*/
|
||||
distinct?: Prisma.Stock_viewScalarFieldEnum | Prisma.Stock_viewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_view findMany
|
||||
*/
|
||||
export type stock_viewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_view
|
||||
*/
|
||||
select?: Prisma.stock_viewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_view
|
||||
*/
|
||||
omit?: Prisma.stock_viewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_views to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_views to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_viewOrderByWithRelationInput | Prisma.stock_viewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_views 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` stock_views.
|
||||
*/
|
||||
skip?: number
|
||||
distinct?: Prisma.Stock_viewScalarFieldEnum | Prisma.Stock_viewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_view without action
|
||||
*/
|
||||
export type stock_viewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_view
|
||||
*/
|
||||
select?: Prisma.stock_viewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_view
|
||||
*/
|
||||
omit?: Prisma.stock_viewOmit<ExtArgs> | null
|
||||
}
|
||||
@@ -179,4 +179,11 @@ export class InventoriesService {
|
||||
|
||||
return ResponseMapper.list(mapped)
|
||||
}
|
||||
|
||||
async getInventoryBankAccounts(inventoryId: number) {
|
||||
const items = await this.prisma.bankAccount.findMany({
|
||||
where: { inventoryBankAccounts: { some: { inventoryId } } },
|
||||
})
|
||||
return ResponseMapper.list(items)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common'
|
||||
import { BankAccountsService } from './bank-accounts.service'
|
||||
import { CreateBankAccountDto } from './dto/create-bank-account.dto'
|
||||
import { UpdateBankAccountDto } from './dto/update-bank-account.dto'
|
||||
|
||||
@Controller('bank-accounts')
|
||||
export class BankAccountsController {
|
||||
constructor(private readonly bankAccountsService: BankAccountsService) {}
|
||||
|
||||
@Post()
|
||||
create(@Body() dto: CreateBankAccountDto) {
|
||||
return this.bankAccountsService.create(dto)
|
||||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.bankAccountsService.findAll()
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.bankAccountsService.findOne(Number(id))
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() dto: UpdateBankAccountDto) {
|
||||
return this.bankAccountsService.update(Number(id), dto)
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.bankAccountsService.remove(Number(id))
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Module } from '@nestjs/common'
|
||||
import { PrismaModule } from '../../prisma/prisma.module'
|
||||
import { BankAccountsController } from './bank-accounts.controller'
|
||||
import { BankAccountsService } from './bank-accounts.service'
|
||||
|
||||
@Module({
|
||||
imports: [PrismaModule],
|
||||
controllers: [BankAccountsController],
|
||||
providers: [BankAccountsService],
|
||||
})
|
||||
export class BankAccountsModule {}
|
||||
@@ -0,0 +1,49 @@
|
||||
import { Injectable } from '@nestjs/common'
|
||||
import { ResponseMapper } from '../../common/response/response-mapper'
|
||||
import { PrismaService } from '../../prisma/prisma.service'
|
||||
|
||||
@Injectable()
|
||||
export class BankAccountsService {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
async create(data: any) {
|
||||
const item = await this.prisma.bankAccount.create({ data })
|
||||
return ResponseMapper.create(item)
|
||||
}
|
||||
|
||||
async findAll() {
|
||||
const items = await this.prisma.bankAccount.findMany({
|
||||
include: {
|
||||
branch: {
|
||||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
code: true,
|
||||
bank: {
|
||||
select: { id: true, name: true, shortName: true },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
omit: {
|
||||
branchId: true,
|
||||
},
|
||||
})
|
||||
return ResponseMapper.list(items)
|
||||
}
|
||||
|
||||
async findOne(id: number) {
|
||||
const item = await this.prisma.bankAccount.findUnique({ where: { id } })
|
||||
if (!item) return null
|
||||
return ResponseMapper.single(item)
|
||||
}
|
||||
|
||||
async update(id: number, data: any) {
|
||||
const item = await this.prisma.bankAccount.update({ where: { id }, data })
|
||||
return ResponseMapper.update(item)
|
||||
}
|
||||
|
||||
async remove(id: number) {
|
||||
const item = await this.prisma.bankAccount.delete({ where: { id } })
|
||||
return ResponseMapper.single(item)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { IsInt, IsOptional, IsString } from 'class-validator'
|
||||
|
||||
export class CreateBankAccountDto {
|
||||
@IsString()
|
||||
accountNumber: string
|
||||
|
||||
@IsString()
|
||||
name: string
|
||||
|
||||
@IsString()
|
||||
iban: string
|
||||
|
||||
@IsInt()
|
||||
branchId: number
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
createdAt?: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
updatedAt?: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
deletedAt?: string
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import { PartialType } from '@nestjs/swagger'
|
||||
import { CreateBankAccountDto } from './create-bank-account.dto'
|
||||
|
||||
export class UpdateBankAccountDto extends PartialType(CreateBankAccountDto) {}
|
||||
@@ -0,0 +1,34 @@
|
||||
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common'
|
||||
import { BankBranchesService } from './bank-branches.service'
|
||||
import { CreateBankBranchDto } from './dto/create-bank-branches.dto'
|
||||
import { UpdateBankBranchDto } from './dto/update-bank-branches.dto'
|
||||
|
||||
@Controller('bank-branches')
|
||||
export class BankBranchesController {
|
||||
constructor(private readonly bankBranchesService: BankBranchesService) {}
|
||||
|
||||
@Post()
|
||||
create(@Body() dto: CreateBankBranchDto) {
|
||||
return this.bankBranchesService.create(dto)
|
||||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.bankBranchesService.findAll()
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.bankBranchesService.findOne(Number(id))
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() dto: UpdateBankBranchDto) {
|
||||
return this.bankBranchesService.update(Number(id), dto)
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.bankBranchesService.remove(Number(id))
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Module } from '@nestjs/common'
|
||||
import { PrismaModule } from '../../prisma/prisma.module'
|
||||
import { BankBranchesController } from './bank-branches.controller'
|
||||
import { BankBranchesService } from './bank-branches.service'
|
||||
|
||||
@Module({
|
||||
imports: [PrismaModule],
|
||||
controllers: [BankBranchesController],
|
||||
providers: [BankBranchesService],
|
||||
})
|
||||
export class BankBranchesModule {}
|
||||
@@ -0,0 +1,39 @@
|
||||
import { Injectable } from '@nestjs/common'
|
||||
import { ResponseMapper } from '../../common/response/response-mapper'
|
||||
import { PrismaService } from '../../prisma/prisma.service'
|
||||
|
||||
@Injectable()
|
||||
export class BankBranchesService {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
async create(data: any) {
|
||||
const item = await this.prisma.bankBranch.create({ data })
|
||||
return ResponseMapper.create(item)
|
||||
}
|
||||
|
||||
async findAll() {
|
||||
const items = await this.prisma.bankBranch.findMany({
|
||||
include: {
|
||||
bank: {
|
||||
select: { id: true, name: true, shortName: true },
|
||||
},
|
||||
},
|
||||
})
|
||||
return ResponseMapper.list(items)
|
||||
}
|
||||
|
||||
async findOne(id: number) {
|
||||
const item = await this.prisma.bankBranch.findUnique({ where: { id } })
|
||||
if (!item) return null
|
||||
return ResponseMapper.single(item)
|
||||
}
|
||||
|
||||
async update(id: number, data: any) {
|
||||
const item = await this.prisma.bankBranch.update({ where: { id }, data })
|
||||
return ResponseMapper.update(item)
|
||||
}
|
||||
|
||||
async remove(id: number) {
|
||||
const item = await this.prisma.bankBranch.delete({ where: { id } })
|
||||
return ResponseMapper.single(item)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { IsInt, IsString } from 'class-validator'
|
||||
|
||||
export class CreateBankBranchDto {
|
||||
@IsString()
|
||||
name: string
|
||||
|
||||
@IsString()
|
||||
code: string
|
||||
|
||||
@IsInt()
|
||||
bankId: number
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsOptional, IsString } from 'class-validator'
|
||||
|
||||
export class UpdateBankBranchDto {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name?: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
description?: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
imageUrl?: string
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Controller, Get } from '@nestjs/common'
|
||||
import { BanksService } from './banks.service'
|
||||
|
||||
@Controller('banks')
|
||||
export class BanksController {
|
||||
constructor(private readonly banksService: BanksService) {}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.banksService.findAll()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Module } from '@nestjs/common'
|
||||
import { PrismaModule } from '../../prisma/prisma.module'
|
||||
import { BanksController } from './banks.controller'
|
||||
import { BanksService } from './banks.service'
|
||||
|
||||
@Module({
|
||||
imports: [PrismaModule],
|
||||
controllers: [BanksController],
|
||||
providers: [BanksService],
|
||||
})
|
||||
export class BanksModule {}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Injectable } from '@nestjs/common'
|
||||
import { ResponseMapper } from '../../common/response/response-mapper'
|
||||
import { PrismaService } from '../../prisma/prisma.service'
|
||||
|
||||
@Injectable()
|
||||
export class BanksService {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
|
||||
async findAll() {
|
||||
const items = await this.prisma.bank.findMany({
|
||||
select: { id: true, name: true, shortName: true },
|
||||
})
|
||||
return ResponseMapper.list(items)
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ import dayjs from 'dayjs'
|
||||
import { ResponseMapper } from '../../common/response/response-mapper'
|
||||
import { Prisma } from '../../generated/prisma/client'
|
||||
import { PrismaService } from '../../prisma/prisma.service'
|
||||
import { ReadCardexDto } from './dto/read-pos.dto'
|
||||
import { ReadCardexDto } from './dto/read-cardex.dto'
|
||||
|
||||
@Injectable()
|
||||
export class CardexService {
|
||||
|
||||
@@ -29,47 +29,4 @@ export class PosController {
|
||||
|
||||
return this.posService.createOrder(dto, inventoryId!)
|
||||
}
|
||||
|
||||
// @Post()
|
||||
// create(@Body() dto: CreateInventoryDto) {
|
||||
// return this.inventoriesService.create(dto)
|
||||
// }
|
||||
|
||||
// @Get()
|
||||
// @ApiQuery({ name: 'isPointOfSale', required: false, type: Boolean })
|
||||
// findAll(@Query('isPointOfSale') isPointOfSale?: boolean) {
|
||||
// return this.inventoriesService.findAll(isPointOfSale)
|
||||
// }
|
||||
|
||||
// @Get(':id')
|
||||
// findOne(@Param('id') id: string) {
|
||||
// return this.inventoriesService.findOne(Number(id))
|
||||
// }
|
||||
|
||||
// @Patch(':id')
|
||||
// update(@Param('id') id: string, @Body() dto: UpdateInventoryDto) {
|
||||
// return this.inventoriesService.update(Number(id), dto)
|
||||
// }
|
||||
|
||||
// @Delete(':id')
|
||||
// remove(@Param('id') id: string) {
|
||||
// return this.inventoriesService.remove(Number(id))
|
||||
// }
|
||||
|
||||
// @Get(':id/movements')
|
||||
// @ApiQuery({ name: 'type', required: false, enum: MovementType })
|
||||
// findInventoryMovements(@Param('id') id: string, @Query('type') type?: MovementType) {
|
||||
// return this.inventoriesService.findInventoryMovements(Number(id), type ?? undefined)
|
||||
// }
|
||||
|
||||
// @Get(':id/stock')
|
||||
// @ApiQuery({ name: 'isAvailable', required: false, type: Boolean })
|
||||
// getStock(@Param('id') id: string, @Query('isAvailable') isAvailable?: boolean) {
|
||||
// return this.inventoriesService.getStock(Number(id), isAvailable ?? undefined)
|
||||
// }
|
||||
|
||||
// @Get(':id/products/:productId/cardex')
|
||||
// getProductCardex(@Param('id') id: string, @Param('productId') productId: string) {
|
||||
// return this.inventoriesService.getProductCardex(Number(id), Number(productId))
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
import { Type } from 'class-transformer'
|
||||
import {
|
||||
IsBoolean,
|
||||
IsDateString,
|
||||
IsInt,
|
||||
IsNumber,
|
||||
IsOptional,
|
||||
IsString,
|
||||
} from 'class-validator'
|
||||
|
||||
export class CreateProductChargeDto {
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
count: number
|
||||
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
fee: number
|
||||
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
totalAmount: number
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
@Type(() => Boolean)
|
||||
isSettled?: boolean
|
||||
|
||||
@IsDateString()
|
||||
buyAt: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
description?: string
|
||||
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
productId: number
|
||||
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
inventoryId: number
|
||||
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
supplierId: number
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
import { Type } from 'class-transformer'
|
||||
import {
|
||||
IsBoolean,
|
||||
IsDateString,
|
||||
IsInt,
|
||||
IsNumber,
|
||||
IsOptional,
|
||||
IsString,
|
||||
} from 'class-validator'
|
||||
|
||||
export class UpdateProductChargeDto {
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
count?: number
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
fee?: number
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
totalAmount?: number
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Boolean)
|
||||
@IsBoolean()
|
||||
isSettled?: boolean
|
||||
|
||||
@IsOptional()
|
||||
@IsDateString()
|
||||
buyAt?: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
description?: string
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
productId?: number
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
inventoryId?: number
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
supplierId?: number
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common'
|
||||
import { CreateProductChargeDto } from './dto/create-product-charge.dto'
|
||||
import { UpdateProductChargeDto } from './dto/update-product-charge.dto'
|
||||
import { ProductChargesService } from './product-charges.service'
|
||||
|
||||
@Controller('product-charges')
|
||||
export class ProductChargesController {
|
||||
constructor(private readonly service: ProductChargesService) {}
|
||||
|
||||
@Post()
|
||||
create(@Body() dto: CreateProductChargeDto) {
|
||||
return this.service.create(dto)
|
||||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.service.findAll()
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.service.findOne(Number(id))
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() dto: UpdateProductChargeDto) {
|
||||
return this.service.update(Number(id), dto)
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.service.remove(Number(id))
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
import { Module } from '@nestjs/common'
|
||||
import { PrismaModule } from '../prisma/prisma.module'
|
||||
import { ProductChargesController } from './product-charges.controller'
|
||||
import { ProductChargesService } from './product-charges.service'
|
||||
|
||||
@Module({
|
||||
imports: [PrismaModule],
|
||||
controllers: [ProductChargesController],
|
||||
providers: [ProductChargesService],
|
||||
})
|
||||
export class ProductChargesModule {}
|
||||
@@ -1,104 +0,0 @@
|
||||
import { Injectable } from '@nestjs/common'
|
||||
import { ResponseMapper } from '../common/response/response-mapper'
|
||||
import { PrismaService } from '../prisma/prisma.service'
|
||||
import { CreateProductChargeDto } from './dto/create-product-charge.dto'
|
||||
|
||||
@Injectable()
|
||||
export class ProductChargesService {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
|
||||
async create(data: CreateProductChargeDto) {
|
||||
const payload: any = { ...data }
|
||||
|
||||
// transform relation id scalars into nested connect objects
|
||||
if (Object.prototype.hasOwnProperty.call(payload, 'productId')) {
|
||||
if (payload.productId !== undefined && payload.productId !== null) {
|
||||
payload.product = { connect: { id: Number(payload.productId) } }
|
||||
}
|
||||
delete payload.productId
|
||||
}
|
||||
|
||||
if (Object.prototype.hasOwnProperty.call(payload, 'inventoryId')) {
|
||||
if (payload.inventoryId !== undefined && payload.inventoryId !== null) {
|
||||
payload.inventory = { connect: { id: Number(payload.inventoryId) } }
|
||||
}
|
||||
delete payload.inventoryId
|
||||
}
|
||||
|
||||
if (Object.prototype.hasOwnProperty.call(payload, 'supplierId')) {
|
||||
if (payload.supplierId !== undefined && payload.supplierId !== null) {
|
||||
payload.supplier = { connect: { id: Number(payload.supplierId) } }
|
||||
}
|
||||
delete payload.supplierId
|
||||
}
|
||||
|
||||
// Convert buyAt to Date if it's a string
|
||||
if (typeof payload.buyAt === 'string') {
|
||||
payload.buyAt = new Date(payload.buyAt)
|
||||
}
|
||||
|
||||
// Remove explicit nulls for optional fields to avoid Prisma complaining
|
||||
Object.keys(payload).forEach(k => {
|
||||
if (payload[k] === null) delete payload[k]
|
||||
})
|
||||
|
||||
const item = await this.prisma.productCharge.create({ data: payload })
|
||||
return ResponseMapper.create(item)
|
||||
}
|
||||
|
||||
async findAll() {
|
||||
const items = await this.prisma.productCharge.findMany()
|
||||
return ResponseMapper.list(items)
|
||||
}
|
||||
|
||||
async findOne(id: number) {
|
||||
const item = await this.prisma.productCharge.findUnique({ where: { id } })
|
||||
if (!item) return null
|
||||
return ResponseMapper.single(item)
|
||||
}
|
||||
|
||||
async update(id: number, data: any) {
|
||||
const payload: any = { ...data }
|
||||
|
||||
if (Object.prototype.hasOwnProperty.call(payload, 'productId')) {
|
||||
if (payload.productId === null) {
|
||||
payload.product = { disconnect: true }
|
||||
} else {
|
||||
payload.product = { connect: { id: Number(payload.productId) } }
|
||||
}
|
||||
delete payload.productId
|
||||
}
|
||||
|
||||
if (Object.prototype.hasOwnProperty.call(payload, 'inventoryId')) {
|
||||
if (payload.inventoryId === null) {
|
||||
payload.inventory = { disconnect: true }
|
||||
} else {
|
||||
payload.inventory = { connect: { id: Number(payload.inventoryId) } }
|
||||
}
|
||||
delete payload.inventoryId
|
||||
}
|
||||
|
||||
if (Object.prototype.hasOwnProperty.call(payload, 'supplierId')) {
|
||||
if (payload.supplierId === null) {
|
||||
payload.supplier = { disconnect: true }
|
||||
} else {
|
||||
payload.supplier = { connect: { id: Number(payload.supplierId) } }
|
||||
}
|
||||
delete payload.supplierId
|
||||
}
|
||||
|
||||
if (typeof payload.buyAt === 'string') payload.buyAt = new Date(payload.buyAt)
|
||||
|
||||
Object.keys(payload).forEach(k => {
|
||||
if (payload[k] === null) delete payload[k]
|
||||
})
|
||||
|
||||
const item = await this.prisma.productCharge.update({ where: { id }, data: payload })
|
||||
return ResponseMapper.update(item)
|
||||
}
|
||||
|
||||
async remove(id: number) {
|
||||
const item = await this.prisma.productCharge.delete({ where: { id } })
|
||||
return ResponseMapper.single(item)
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,12 @@
|
||||
import { Type } from 'class-transformer'
|
||||
import { ArrayMinSize, IsInt, IsNumber, IsOptional, IsString } from 'class-validator'
|
||||
import {
|
||||
ArrayMinSize,
|
||||
IsBoolean,
|
||||
IsInt,
|
||||
IsNumber,
|
||||
IsOptional,
|
||||
IsString,
|
||||
} from 'class-validator'
|
||||
import { CreatePurchaseReceiptItemDto } from '../../purchase-receipt-items/dto/create-purchase-receipt-item.dto'
|
||||
|
||||
export class CreatePurchaseReceiptDto {
|
||||
@@ -10,6 +17,14 @@ export class CreatePurchaseReceiptDto {
|
||||
@IsNumber()
|
||||
totalAmount: number
|
||||
|
||||
@IsBoolean()
|
||||
@IsOptional()
|
||||
isSettled?: boolean
|
||||
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
paidAmount: number
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
description?: string
|
||||
|
||||
@@ -15,6 +15,7 @@ export class PurchaseReceiptsService {
|
||||
description: dto.description ?? null,
|
||||
supplier: { connect: { id: dto.supplierId } },
|
||||
inventory: { connect: { id: dto.inventoryId } },
|
||||
|
||||
items: dto.items?.length
|
||||
? {
|
||||
create: dto.items.map((item, idx) => {
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
import { IsOptional, IsString } from 'class-validator'
|
||||
|
||||
export class CreateStoreDto {
|
||||
@IsString()
|
||||
name: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
location?: string
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
import { Type } from 'class-transformer'
|
||||
import { IsBoolean, IsOptional, IsString } from 'class-validator'
|
||||
|
||||
export class UpdateStoreDto {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name?: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
location?: string
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Boolean)
|
||||
@IsBoolean()
|
||||
isActive?: boolean
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common'
|
||||
import { CreateStoreDto } from './dto/create-store.dto'
|
||||
import { UpdateStoreDto } from './dto/update-store.dto'
|
||||
import { StoresService } from './stores.service'
|
||||
|
||||
@Controller('stores')
|
||||
export class StoresController {
|
||||
constructor(private readonly storesService: StoresService) {}
|
||||
|
||||
@Post()
|
||||
create(@Body() dto: CreateStoreDto) {
|
||||
return this.storesService.create(dto)
|
||||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.storesService.findAll()
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.storesService.findOne(Number(id))
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() dto: UpdateStoreDto) {
|
||||
return this.storesService.update(Number(id), dto)
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.storesService.remove(Number(id))
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
import { Module } from '@nestjs/common'
|
||||
import { PrismaModule } from '../prisma/prisma.module'
|
||||
import { StoresController } from './stores.controller'
|
||||
import { StoresService } from './stores.service'
|
||||
|
||||
@Module({
|
||||
imports: [PrismaModule],
|
||||
controllers: [StoresController],
|
||||
providers: [StoresService],
|
||||
})
|
||||
export class StoresModule {}
|
||||
@@ -1,33 +0,0 @@
|
||||
import { Injectable } from '@nestjs/common'
|
||||
import { ResponseMapper } from '../common/response/response-mapper'
|
||||
import { PrismaService } from '../prisma/prisma.service'
|
||||
|
||||
@Injectable()
|
||||
export class StoresService {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
async create(data: any) {
|
||||
const item = await this.prisma.store.create({ data })
|
||||
return ResponseMapper.create(item)
|
||||
}
|
||||
|
||||
async findAll() {
|
||||
const items = await this.prisma.store.findMany()
|
||||
return ResponseMapper.list(items)
|
||||
}
|
||||
|
||||
async findOne(id: number) {
|
||||
const item = await this.prisma.store.findUnique({ where: { id } })
|
||||
if (!item) return null
|
||||
return ResponseMapper.single(item)
|
||||
}
|
||||
|
||||
async update(id: number, data: any) {
|
||||
const item = await this.prisma.store.update({ where: { id }, data })
|
||||
return ResponseMapper.update(item)
|
||||
}
|
||||
|
||||
async remove(id: number) {
|
||||
const item = await this.prisma.store.delete({ where: { id } })
|
||||
return ResponseMapper.single(item)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user