text: 'use strict';
  
  module.exports = {
    up: (queryInterface, Sequelize) => {
      return queryInterface.createTable('comments', {
        id: {
          type: Sequelize.INTEGER,
          allowNull: false,
          autoIncrement: true,
          primaryKey: true
        },
        movie_id: {
          type: Sequelize.INTEGER,
          allowNull: false
        },
        content: {
          type: Sequelize.STRING(500),
          allowNull: false
        },
        commenter_ip: {
          type: Sequelize.STRING(20),
          allowNull: false
        },
        created_at: {
          type: Sequelize.DATE(3),
          defaultValue: Sequelize.literal('CURRENT_TIMESTAMP(3)')
        },
        updated_at: Sequelize.DATE(3)
      })
    },
  
    down: (queryInterface, Sequelize) => {
      return queryInterface.dropTable('users')
    }
  };
  