Implement download entity and related stuff. Will build things like user quota on...
[rock.divinelegy.git] / config / DataMaps.php
index e9a4a7d..532f940 100644 (file)
@@ -149,5 +149,16 @@ return [
             'uri' => DataAccess\Varchar('uri'),\r
             'source' => DataAccess\Varchar('source')\r
         ]\r
+    ],\r
+    \r
+    'Download' => [\r
+        'class' => 'Domain\Entities\Download',\r
+        'table' => 'downloads',\r
+        'maps' => [\r
+            'user' => DataAccess\Entity('User'),\r
+            'file' => DataAccess\Entity('File'),\r
+            'timestamp' => DataAccess\Int('timestamp'),\r
+            'ip' => DataAccess\Varchar('ip')\r
+        ]\r
     ]\r
 ];\r