refactor(inventories): restructure inventory and pos account modules, remove deprecated DTOs and controllers
- Removed create and update DTOs for inventory. - Deleted inventories controller and service. - Introduced new inventory bank accounts module with controller and service. - Added new pos accounts module with controller and service. - Updated Prisma models to reflect changes in bank account relationships. - Adjusted PosAccount and SalesInvoice models for stricter type definitions. - Implemented new response mapping for inventory and pos account services.
This commit is contained in:
@@ -19,14 +19,13 @@ model BankAccount {
|
||||
accountNumber String? @unique @db.VarChar(20)
|
||||
cardNumber String? @unique @db.VarChar(16)
|
||||
name String @db.VarChar(255)
|
||||
iban String? @db.VarChar(34)
|
||||
iban String? @unique @db.VarChar(34)
|
||||
branchId Int
|
||||
createdAt DateTime @default(now()) @db.Timestamp(0)
|
||||
updatedAt DateTime @updatedAt @db.Timestamp(0)
|
||||
deletedAt DateTime? @db.Timestamp(0)
|
||||
|
||||
branch BankBranch @relation("Bank_Accounts_branchId_fkey", fields: [branchId], references: [id])
|
||||
inventories Inventory[] @relation("Bank_Accounts_inventoryId_fkey")
|
||||
purchaseReceiptPayments PurchaseReceiptPayments[]
|
||||
posAccounts PosAccount[]
|
||||
inventoryBankAccounts InventoryBankAccount[] @relation("Inventory_Bank_Accounts_bankAccountId_fkey")
|
||||
|
||||
Reference in New Issue
Block a user