'use strict';

module.exports = function Tessel(sequelize, DataTypes) {
  var Tessel = sequelize.define('Tessel', {
    id: { type: DataTypes.INTEGER, autoIncrement: true, unique: true, primaryKey: true },
    device_id: { type: DataTypes.STRING, unique: true, allowNull: false },
    lastPush: DataTypes.DATE,
    lastPushChecksum: DataTypes.STRING
  }, {
    classMethods: {
      associate: function(models) {
        Tessel.hasMany(models.User)
      }
    }
  });

  return Tessel;
};

@@ -282,54 +282,304 @@
     
-lastPush: DataTypes.DATE,%0A    lastPushChecksum
+deviceName: DataTypes.STRING,%0A    owner: %7B type: DataTypes.INTEGER, allowNull: false %7D,%0A    connected: %7B type: DataTypes.BOOLEAN, defaultValue: false, allowNull: false %7D,%0A    lastPush: DataTypes.DATE,%0A    lastPushChecksum: DataTypes.STRING,%0A    lastPushUser: DataTypes.INTEGER,%0A    lastPushScript
 : Da

Add new comlumns to tessel model