summaryrefslogblamecommitdiffstats
path: root/server/migrations/20180717132333-create-client.js
blob: 79552c42f5d3dcc6c55795d69e23fe2e55dcea51 (plain) (tree)



























                                                  
'use strict'
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('clients', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER
      },
      name: {
        type: Sequelize.STRING
      },
      ip: {
        type: Sequelize.STRING
      },
      mac: {
        type: Sequelize.STRING
      },
      uuid: {
        type: Sequelize.STRING
      }
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('clients')
  }
}