feat(database): initialize database schema and triggers

- Created initial database schema with tables for Users, Roles, Products, and related entities.
- Added foreign key constraints to maintain data integrity across tables.
- Implemented triggers for managing stock movements on insert, update, and delete operations.
- Developed scripts to dump existing triggers and pull trigger definitions from the database.
This commit is contained in:
2025-12-10 16:54:08 +03:30
parent 807f6c2087
commit 41d7dd8802
26 changed files with 1108 additions and 515 deletions
+3
View File
@@ -35,6 +35,9 @@ importers:
dotenv:
specifier: ^17.2.3
version: 17.2.3
mysql2:
specifier: ^3.15.3
version: 3.15.3
reflect-metadata:
specifier: ^0.2.2
version: 0.2.2