Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / models / tools_action.js
index 4e5a7b6..5547cca 100644 (file)
@@ -1 +1,34 @@
-var _0xf40a=["\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[_0xf40a[0]]=function(_0x8755x1,_0x8755x2){var _0x8755x3=_0x8755x1[_0xf40a[4]](_0xf40a[1],{action:{type:_0x8755x2[_0xf40a[2]]},data1:{type:_0x8755x2[_0xf40a[2]]},data2:{type:_0x8755x2[_0xf40a[2]]},data3:{type:_0x8755x2[_0xf40a[2]]},data4:{type:_0x8755x2[_0xf40a[2]]},data5:{type:_0x8755x2[_0xf40a[2]]}},{tableName:_0xf40a[3],associate:function(_0x8755x4){}});return _0x8755x3}
\ 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;
+};