Built motion from commit 1038d87.|0.0.141
[motion.git] / server / models / square_project.js
index 6c72acc..7834e00 100644 (file)
@@ -1 +1,31 @@
-var _0xf4b1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x6C\x6F\x6E\x67","\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x64\x65\x66\x69\x6E\x65"];_0xf4b1[0];module[_0xf4b1[1]]=function(_0x30f3x1,_0x30f3x2){var _0x30f3x3=_0x30f3x1[_0xf4b1[7]](_0xf4b1[2],{name:{type:_0x30f3x2[_0xf4b1[3]],unique:true,allowNull:false,validate:{notEmpty:true}},description:_0x30f3x2[_0xf4b1[3]],preproduction:{type:_0x30f3x2[_0xf4b1[4]],length:_0xf4b1[5]},production:{type:_0x30f3x2[_0xf4b1[4]],length:_0xf4b1[5]}},{tableName:_0xf4b1[6]});return _0x30f3x3}
\ No newline at end of file
+'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'
+    },
+    production: {
+      type: DataTypes.TEXT,
+      length: 'long'
+    }
+  }, {
+    tableName: 'square_projects'
+  });
+
+  return SquareProject;
+
+};