git://repos.xcallymotion.com
/
motion.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
634103095b6eb5734b2703e690484fbcc3aabd1b
[motion.git]
/
server
/
models
/
metric.js
1
'use strict';
2
3
module.exports = function(sequelize, DataTypes) {
4
5
var Metric = sequelize.define('Metric', {
6
name: {
7
type: DataTypes.STRING,
8
unique: true,
9
validate: {
10
notEmpty: true
11
},
12
},
13
metric: DataTypes.TEXT,
14
description: DataTypes.STRING
15
}, {
16
tableName: 'metrics'
17
});
18
19
return Metric;
20
21
};