text: // module.exports = {
  //   up: function(queryInterface, Sequelize) {
  //     return queryInterface.createTable('Todos', {
  //       id: {
  //         allowNull: false,
  //         autoIncrement: true,
  //         primaryKey: true,
  //         type: Sequelize.INTEGER
  //       },
  //       title: {
  //         type: Sequelize.STRING
  //       },
  //       createdAt: {
  //         allowNull: false,
  //         type: Sequelize.DATE
  //       },
  //       updatedAt: {
  //         allowNull: false,
  //         type: Sequelize.DATE
  //       }
  //     });
  //   },
  //   down: function(queryInterface, Sequelize) {
  //     return queryInterface.dropTable('Todos');
  //   }
  // };
  
  // ES5=>ES6
  
  module.exports = {
    up: (queryInterface, Sequelize) => queryInterface.createTable('Todos', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER,
      },
      title: {
        type: Sequelize.STRING,
        allowNull: false,
      },
      createdAt: {
        allowNull: false,
        type: Sequelize.DATE,
      },
      updatedAt: {
        allowNull: false,
        type: Sequelize.DATE,
      },
    }),
    down: queryInterface => queryInterface.dropTable('Todos'),
  };
  