text: 'use strict'
  
  module.exports = {
    up: (queryInterface, Sequelize) => {
      return queryInterface.createTable('users', {
        id: {
          allowNull: false,
          autoIncrement: true,
          primaryKey: true,
          type: Sequelize.INTEGER
        },
        name: {
          allowNull: false,
          type: Sequelize.STRING
        },
        email: {
          allowNull: false,
          unique: true,
          type: Sequelize.STRING
        },
        avatar: {
          allowNull: false,
          type: Sequelize.STRING
        },
        password_has: {
          allowNull: false,
          type: Sequelize.STRING
        },
        provider: {
          allowNull: false,
          defaultValue: false,
          type: Sequelize.BOOLEAN
        },
        created_at: {
          allowNull: false,
          type: Sequelize.DATE
        },
        update_at: {
          allowNull: false,
          type: Sequelize.DATE
        }
      })
    },
  
    down: (queryInterface, Sequelize) => {
      return queryInterface.dropTable('users')
    }
  }
  