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 95b01fa.|0.0.70
[motion.git]
/
server
/
models
/
square_project.js
1
'use strict';
2
3
module.exports = function(sequelize, DataTypes) {
4
5
var SquareProject = sequelize.define('SquareProject', {
6
name: {
7
type: DataTypes.STRING,
8
unique: true,
9
allowNull: false,
10
validate: {
11
notEmpty: true
12
}
13
},
14
description: DataTypes.STRING,
15
preproduction: {
16
type: DataTypes.TEXT,
17
length: 'long'
18
},
19
production: {
20
type: DataTypes.TEXT,
21
length: 'long'
22
}
23
}, {
24
tableName: 'square_projects',
25
});
26
27
return SquareProject;
28
29
};