Built motion from commit 1038d87.|0.0.141
[motion.git] / server / models / square_project.js
index 9e68d35..7834e00 100644 (file)
@@ -1,16 +1,19 @@
 'use strict';
 
+
 module.exports = function(sequelize, DataTypes) {
 
   var SquareProject = sequelize.define('SquareProject', {
     name: {
       type: DataTypes.STRING,
       unique: true,
+      allowNull: false,
       validate: {
         notEmpty: true
       }
     },
     description: DataTypes.STRING,
+    notes: DataTypes.TEXT,
     preproduction: {
       type: DataTypes.TEXT,
       length: 'long'
@@ -20,7 +23,7 @@ module.exports = function(sequelize, DataTypes) {
       length: 'long'
     }
   }, {
-    tableName: 'square_projects',
+    tableName: 'square_projects'
   });
 
   return SquareProject;