text: 'use strict';
  const faker = require('faker/locale/zh_TW');
  
  module.exports = {
    up: (queryInterface, Sequelize) => {
      let now = new Date();
      return queryInterface.bulkInsert('products', [{
        name: faker.name.title(),
        price: faker.random.number({min:200, max:3000}),
        image: 'https://i.imgur.com/PzYWjaY.jpg',
        startTime: now,
        endTime: now,
        createdAt: now,
        updatedAt: now
      },
      {
        name: faker.name.title(),
        price: faker.random.number({min:200, max:3000}),
        image: 'https://i.imgur.com/PzYWjaY.jpg',
        startTime: now,
        endTime: now,
        createdAt: now,
        updatedAt: now
      },
      {
        name: faker.name.title(),
        price: faker.random.number({min:200, max:3000}),
        image: 'https://i.imgur.com/PzYWjaY.jpg',
        startTime: now,
        endTime: now,
        createdAt: now,
        updatedAt: now
      },
      {
        name: faker.name.title(),
        price: faker.random.number({min:200, max:3000}),
        image: 'https://i.imgur.com/PzYWjaY.jpg',
        startTime: now,
        endTime: now,
        createdAt: now,
        updatedAt: now
      },
      {
        name: faker.name.title(),
        price: faker.random.number({min:200, max:3000}),
        image: 'https://i.imgur.com/PzYWjaY.jpg',
        startTime: now,
        endTime: now,
        createdAt: now,
        updatedAt: now
      },
      {
        name: faker.name.title(),
        price: faker.random.number({min:200, max:3000}),
        image: 'https://i.imgur.com/PzYWjaY.jpg',
        startTime: now,
        endTime: now,
        createdAt: now,
        updatedAt: now
      },
      {
        name: faker.name.title(),
        price: faker.random.number({min:200, max:3000}),
        image: 'https://i.imgur.com/PzYWjaY.jpg',
        startTime: now,
        endTime: now,
        createdAt: now,
        updatedAt: now
      }]);
      /*
        Add altering commands here.
        Return a promise to correctly handle asynchronicity.
  
        Example:
        return queryInterface.bulkInsert('People', [{
          name: 'John Doe',
          isBetaMember: false
        }], {});
      */
    },
  
    down: (queryInterface, Sequelize) => {
      return queryInterface.bulkDelete('products', null, {});
      /*
        Add reverting commands here.
        Return a promise to correctly handle asynchronicity.
  
        Example:
        return queryInterface.bulkDelete('People', null, {});
      */
    }
  };
  