Market Data Service is a high-performance financial data API that provides comprehensive Symbol prices of different markets through both RESTful endpoints and real-time WebSocket connections.

sync-models.js 356B

1234567891011121314
  1. // Script to sync Sequelize models before running migrations
  2. const { sequelize } = require('../src/models');
  3. sequelize.sync({ alter: true, force: false })
  4. .then(() => {
  5. console.log('Database models synced successfully.');
  6. process.exit(0);
  7. })
  8. .catch((error) => {
  9. console.error('Error syncing models:', error);
  10. process.exit(1);
  11. });