git://repos.xcallymotion.com
/
motion.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
28a10ef4e8473ce9fa437df510e386d551ac0a6f
[motion.git]
/
server
/
models
/
tools_pause.js
1
/**
2
* tag Model
3
*/
4
5
module.exports = function(sequelize, DataTypes) {
6
7
var Pause = sequelize.define('Pause', {
8
name: {
9
type: DataTypes.STRING,
10
unique: true,
11
allowNull: false,
12
validate: {
13
notEmpty: true,
14
}
15
},
16
description: {
17
type: DataTypes.STRING
18
}
19
}, {
20
tableName: 'tools_pauses',
21
associate: function(models) {}
22
});
23
24
return Pause;
25
};