{"size": 495, "ext": "js", "max_stars_repo_path": "seeds/index.js", "max_stars_repo_name": "NIASKAA/Tech-Blog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "seeds/index.js", "max_issues_repo_name": "NIASKAA/Tech-Blog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "seeds/index.js", "max_forks_repo_name": "NIASKAA/Tech-Blog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.5, "max_line_length": 50, "alphanum_fraction": 0.6565656566}
const userSeed = require('./userSeed');
const postSeed = require('./postSeed');
const commentSeed = require('./commentSeed');
const sequelize = require('../config/connection');

const seedAll = async () => {
    await sequelize.sync({force: true});
    console.log("Data Sync Successfully");
    await userSeed();
    console.log("user seeded");
    await postSeed();
    console.log("Post seeded");
    await commentSeed();
    console.log("Comment seeded");
    process.exit(0);
};

seedAll();