server/db/migrations/createTables/index.js
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);
}
})();