git://repos.xcallymotion.com
/
motion.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
dc3a856479a0eaebd8360fbaa3f0962e258b4831
[motion.git]
/
server
/
models
/
network.js
1
'use strict';
2
3
module.exports = function(sequelize, DataTypes) {
4
return sequelize.define('Network', {
5
type: DataTypes.ENUM('localnet', 'externip'),
6
value: DataTypes.STRING
7
}, {
8
tableName: 'network',
9
scopes: {
10
localnet: {
11
where: {
12
type: 'localnet'
13
}
14
},
15
externip: {
16
where: {
17
type: 'externip'
18
}
19
}
20
}
21
});
22
};