Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / models / tools_action.js
index b44a9b7..5547cca 100644 (file)
@@ -1 +1,34 @@
-var _0x1bf1=["\x65\x78\x70\x6F\x72\x74\x73","\x54\x6F\x6F\x6C\x73\x41\x63\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x74\x6F\x6F\x6C\x73\x5F\x61\x63\x74\x69\x6F\x6E\x73","\x64\x65\x66\x69\x6E\x65"];module[_0x1bf1[0]]=function(_0x1e6fx1,_0x1e6fx2){var _0x1e6fx3=_0x1e6fx1[_0x1bf1[4]](_0x1bf1[1],{action:{type:_0x1e6fx2[_0x1bf1[2]]},data1:{type:_0x1e6fx2[_0x1bf1[2]]},data2:{type:_0x1e6fx2[_0x1bf1[2]]},data3:{type:_0x1e6fx2[_0x1bf1[2]]},data4:{type:_0x1e6fx2[_0x1bf1[2]]},data5:{type:_0x1e6fx2[_0x1bf1[2]]}},{tableName:_0x1bf1[3],associate:function(_0x1e6fx4){}});return _0x1e6fx3}
\ No newline at end of file
+/**
+ * Tools Actions Model
+ */
+
+module.exports = function(sequelize, DataTypes) {
+
+  var ToolsAction = sequelize.define('ToolsAction', {
+    action: {
+      type: DataTypes.STRING
+    },
+    data1: {
+      type: DataTypes.STRING(4096)
+    },
+    data2: {
+      type: DataTypes.STRING(4096)
+    },
+    data3: {
+      type: DataTypes.STRING(4096)
+    },
+    data4: {
+      type: DataTypes.STRING(4096)
+    },
+    data5: {
+      type: DataTypes.STRING(4096)
+    },
+    data6: {
+      type: DataTypes.STRING
+    }
+  }, {
+    tableName: 'tools_actions'
+  });
+
+  return ToolsAction;
+};