import { initializeDatabase } from './sequelize.js'; import initializeTypes from './initializeTypes.js'; import initializeSettings from './initializeSettings.js'; import initializeUserRights from './initializeUserRights.js'; const syncDatabase = async () => { try { await initializeDatabase(); await initializeSettings(); await initializeTypes(); await initializeUserRights(); console.log('All models were synchronized successfully.'); } catch (error) { console.error('Unable to synchronize the database:', error); } }; export { syncDatabase };