'use strict'
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('Users', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize. INTEGER
      },
      lastLogin: {
        allowNull: true,
        type: Sequelize. DATE
      },
      walletPublicKey: {
        allowNull: false,
        type: Sequelize. TEXT,
        unique: true
      },
      createdAt: {
        allowNull: false,
        type: Sequelize. DATE
      },
      updatedAt: {
        allowNull: false,
        type: Sequelize. DATE
      }
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('Users')
  }
}
