summaryrefslogblamecommitdiffstats
path: root/server/migrations/20180717132333-create-client.js
blob: 955f2f9ee41d5897e69fc37a9eac64fbfd2d4f37 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                  


                              














                                              
'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
      },
      description: {
        type: Sequelize.STRING
      },
      ip: {
        type: Sequelize.STRING
      },
      mac: {
        type: Sequelize.STRING
      },
      uuid: {
        type: Sequelize.STRING
      }
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('clients')
  }
}