35 lines
787 B
JavaScript
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'
|
|
}
|
|
}
|
|
};
|