Files
www-POC/sails/api/models/Event_config.js
2016-05-06 16:37:59 -05:00

35 lines
787 B
JavaScript

/**
* Event_config.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 = {
// id int(11) NOT NULL AUTO_INCREMENT,
// name varchar(64),
// class int(11),
// tag varchar(128),
// cond varchar(64),
attributes: {
id: {
type: 'integer',
unique: true,
autoIncrement: true,
primaryKey: true
},
name: {
type: 'string'
},
event_class: {
model:'event_class'
},
tag:{
type: 'string'
},
event_condition:{
type: 'string'
}
}
};