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:
@@ -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`;
|
||||
Reference in New Issue
Block a user