56d26915cea069e1311e2e32d991d5f45dd7b17d
[motion.git] / server / models / voice_context.js
1 /**
2  * Context Model
3  */
4
5 module.exports = function(sequelize, DataTypes) {
6
7   var VoiceContext = sequelize.define('VoiceContext', {
8     name: {
9       type: DataTypes.STRING,
10       unique: true
11     },
12     description: {
13       type: DataTypes.STRING,
14       allowNull: true,
15     },
16     defaultEntry: {
17       type: DataTypes.BOOLEAN,
18       defaultValue: 0
19     }
20   }, {
21     tableName: 'voice_contexts'
22   });
23
24   return VoiceContext;
25 };