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:
2025-12-26 01:20:03 +03:30
parent cbe51b9343
commit b4f226fb3a
29 changed files with 466 additions and 637 deletions
@@ -0,0 +1,18 @@
/*
Warnings:
- You are about to drop the column `bankAccountId` on the `Inventories` table. All the data in the column will be lost.
- You are about to drop the `_Bank_Accounts_inventoryId_fkey` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropForeignKey
ALTER TABLE `_Bank_Accounts_inventoryId_fkey` DROP FOREIGN KEY `_Bank_Accounts_inventoryId_fkey_A_fkey`;
-- DropForeignKey
ALTER TABLE `_Bank_Accounts_inventoryId_fkey` DROP FOREIGN KEY `_Bank_Accounts_inventoryId_fkey_B_fkey`;
-- AlterTable
ALTER TABLE `Inventories` DROP COLUMN `bankAccountId`;
-- DropTable
DROP TABLE `_Bank_Accounts_inventoryId_fkey`;