git://repos.xcallymotion.com
/
motion.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7834e00af9c3428f87faa4bcf3bf0b59eea3f4ae
[motion.git]
/
server
/
models
/
square_project.js
1
'use strict';
2
3
4
module.exports = function(sequelize, DataTypes) {
5
6
var SquareProject = sequelize.define('SquareProject', {
7
name: {
8
type: DataTypes.STRING,
9
unique: true,
10
allowNull: false,
11
validate: {
12
notEmpty: true
13
}
14
},
15
description: DataTypes.STRING,
16
notes: DataTypes.TEXT,
17
preproduction: {
18
type: DataTypes.TEXT,
19
length: 'long'
20
},
21
production: {
22
type: DataTypes.TEXT,
23
length: 'long'
24
}
25
}, {
26
tableName: 'square_projects'
27
});
28
29
return SquareProject;
30
31
};