const Sequelize = require('sequelize');
const db = require('../db.js');

const beacon = db.define('beacon', {
  currentLocation: {
    type: Sequelize.ARRAY(Sequelize.FLOAT),
  },
})

module.exports = beacon;


const Sequelize = require('sequelize');
const db = require('../db.js');

const beacon = db.define('beacon', {
  currentLocation: {
    type: Sequelize.ARRAY(Sequelize.FLOAT),
  },
  OS: {
    type: Sequelize.STRING,
  },
  token: {
    type: Sequelize.STRING,
  },
  lastNotification: {
    type: Sequelize.DATE,
  },
  device: {
    type: Sequelize.STRING,
  }
})

module.exports = beacon;


Add device info to beacon
refactor(database): Add device info to beacon

Add device info to beacon
