Files
DataLogger-Generic/www/api/models/Device.js
Patrick McDonagh 3755db5cad Removed old files
2016-05-02 18:09:30 -05:00

26 lines
594 B
JavaScript

/**
* Device.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
module.exports = {
tableName: 'devices',
attributes: {
id: {
type: 'integer',
unique: true,
autoIncrement: true,
primaryKey: true
},
device_type: {
model: 'device_type',
columnName: 'device_type'
},
address: {
type: 'string'
}
}
};