{"size": 1483, "ext": "js", "max_stars_repo_path": "finalchallenge/backend/src/database/seeders/20220202235150-products.js", "max_stars_repo_name": "Raymw1/gostack6", "max_stars_repo_stars_event_min_datetime": "2021-10-19T17:57:01.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-28T13:05:50.000Z", "max_issues_repo_path": "finalchallenge/backend/src/database/seeders/20220202235150-products.js", "max_issues_repo_name": "Raymw1/gostack6", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "finalchallenge/backend/src/database/seeders/20220202235150-products.js", "max_forks_repo_name": "Raymw1/gostack6", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.4821428571, "max_line_length": 78, "alphanum_fraction": 0.5488873904}
"use strict";

module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.bulkInsert("products", [
      {
        title: "Bebidas não alcoólicas",
        file_id: 1,
        description: "Refrigerantes, sucos, chá gelado, energéticos e água.",
        preparation_time: 5,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        title: "Bebidas",
        file_id: 2,
        description: "Cervejas artesanais, vinhos e destilados.",
        preparation_time: 5,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        title: "Calzones",
        file_id: 3,
        description:
          "Calzones super recheados com mais de 50 sabores diferentes.",
        preparation_time: 15,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        title: "Massas",
        file_id: 4,
        description:
          "10 tipos de massas com diferentes molhos para te satisfazer.",
        preparation_time: 25,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        title: "Pizzas",
        file_id: 5,
        description:
          "Mais de 50 sabores de pizza em até 4 tamanhos diferentes de fome.",
        preparation_time: 30,
        created_at: new Date(),
        updated_at: new Date(),
      },
    ]);
  },

  down: async (queryInterface, Sequelize) => {
    return queryInterface.bulkDelete("products", null, {});
  },
};
