git://repos.xcallymotion.com
/
motion.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Built motion from commit b33b832.|1.0.17
[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: 'name',
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
};