marusoft/Auto-Mart

View on GitHub
server/db/migrations/createTables/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import createUsersTable from './users';
import createCarsTable from './cars';
import createOrderTable from './orders';
import createFlagTable from './flag';
import insertAllToTables from '../seed/seed';


(async () => {
  try {
    await createUsersTable();
    await createCarsTable();
    await createOrderTable();
    await createFlagTable();
    await insertAllToTables();
  } catch (error) {
    // eslint-disable-next-line no-console
    console.log(error);
  }
})();