26 lines
568 B
JavaScript
26 lines
568 B
JavaScript
/**
|
|
* 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 = {
|
|
tableName: 'config',
|
|
attributes: {
|
|
id: {
|
|
type: 'integer',
|
|
unique: true,
|
|
autoIncrement: true,
|
|
primaryKey: true
|
|
},
|
|
parameter: {
|
|
type: 'string',
|
|
unique: true
|
|
},
|
|
val: {
|
|
type: 'string'
|
|
}
|
|
}
|
|
};
|