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 1038d87.|0.0.141
[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
};