Files
hristudio/src/db/seed.ts
Sean O'Connor 8405a49d45 refactor(db): Improve table dropping and seeding logic
- Updated the dropAllTables function to drop tables in a specific order, considering foreign key dependencies, ensuring data integrity during the drop process.
- Refactored the seed function to utilize role and permission data objects for cleaner insertion logic, enhancing readability and maintainability of the code.
2024-12-05 13:23:47 -05:00

4.8 KiB