text: module.exports = {
    up: (queryInterface, Sequelize) =>
      queryInterface.createTable('variants', {
        id: {
          type: Sequelize.INTEGER,
          primaryKey: true,
          autoIncrement: true
        },
        size: {
          type: Sequelize.STRING,
          allowNull: false
        },
        color: {
          type: Sequelize.STRING
        },
        price: {
          type: Sequelize.INTEGER,
          allowNull: false
        },
        image_url: {
          type: Sequelize.STRING,
          allowNull: false
        },
        product_id: {
          type: Sequelize.INTEGER,
          primaryKey: true,
          references: {
            model: 'products',
            key: 'id'
          },
          allowNull: false
        },
        created_at: {
          type: Sequelize.DATE,
          allowNull: false,
          defaultValue: Sequelize.literal('CURRENT_TIMESTAMP')
        },
        updated_at: {
          type: Sequelize.DATE,
          allowNull: false,
          defaultValue: Sequelize.literal('CURRENT_TIMESTAMP')
        }
      }),
    down: queryInterface => queryInterface.dropTable('variants')
  };
  