Prechádzať zdrojové kódy

WIP new domain model and legacy physical model.

Frederic G. MARAND 5 rokov pred
rodič
commit
f673940804
3 zmenil súbory, kde vykonal 89 pridanie a 4 odobranie
  1. 44 4
      doc/domain/domain.dot
  2. 9 0
      doc/domain/legacy.dot
  3. 36 0
      doc/domain/legacy.svg

+ 44 - 4
doc/domain/domain.dot

@@ -1,11 +1,51 @@
 digraph kurz_domain {
-  node [ shape=none];
+  rankdir=LR;
+  node [ shape=record];
+
+  domain [
+    label="<lb>Domain|targetFqdn|vanityFqdn"
+  ];
+
   target_url [
-    label="Target URL"
+    label="<lb>Target URL|url"
   ];
   short_url [
-    label="Short URL"
+    label="<lb>Short URL|url|<target>target"
+  ];
+
+  user_domain_role [
+    label="User domain role|<u>user|<d>domain|<r>role"
+  ];
+  domain_role [
+    label="<lb>Domain role"
+  ];
+  user [
+    label="<lb>User"
   ];
 
-  short_url -> target_url
+  app_role [
+    label="<lb>App role"
+  ];
+  user_app_role [
+    label="User app role|<u>user|<r>role"
+  ];
+
+  /* Does not include hits: see short_url_hit */
+  short_url_event [
+    label="SU Event|<su>shortUrl|created"
+  ]
+  short_url_hit [
+    label="<lb>SU Hit|<su>shortUrl|ts|IP"
+  ];
+
+  short_url:target -> target_url:lb
+  short_url_event:su -> short_url:lb
+  short_url_hit:su -> short_url:lb
+
+  user_app_role:u -> user:lb;
+  user_app_role:r -> app_role:lb
+
+  user_domain_role:d -> domain:lb
+  user_domain_role:r -> domain_role:lb
+  user_domain_role:u -> user:lb
 }

+ 9 - 0
doc/domain/legacy.dot

@@ -0,0 +1,9 @@
+digraph plusviteLegacy {
+  rankdir=LR;
+  node [shape=record];
+  label="Legacy physical model";
+
+  map [
+    label="Map|hash string|url string|date1 datetime\n(creation)|date2 datetime\n(update, unused)|date3 datetime\n(access, unused)|refcount uint64\n(hits, unused)";
+  ]
+}

+ 36 - 0
doc/domain/legacy.svg

@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<!-- Generated by graphviz version 2.40.1 (20161225.0304)
+ -->
+<!-- Title: plusviteLegacy Pages: 1 -->
+<svg width="154pt" height="241pt"
+ viewBox="0.00 0.00 153.84 241.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 237)">
+<title>plusviteLegacy</title>
+<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-237 149.8418,-237 149.8418,4 -4,4"/>
+<text text-anchor="middle" x="72.9209" y="-6.8" font-family="Times,serif" font-size="14.00" fill="#000000">Legacy physical model</text>
+<!-- map -->
+<g id="node1" class="node">
+<title>map</title>
+<polygon fill="none" stroke="#000000" points="18.269,-22.5 18.269,-232.5 127.5728,-232.5 127.5728,-22.5 18.269,-22.5"/>
+<text text-anchor="middle" x="72.9209" y="-217.3" font-family="Times,serif" font-size="14.00" fill="#000000">Map</text>
+<polyline fill="none" stroke="#000000" points="18.269,-210.5 127.5728,-210.5 "/>
+<text text-anchor="middle" x="72.9209" y="-195.3" font-family="Times,serif" font-size="14.00" fill="#000000">hash string</text>
+<polyline fill="none" stroke="#000000" points="18.269,-188.5 127.5728,-188.5 "/>
+<text text-anchor="middle" x="72.9209" y="-173.3" font-family="Times,serif" font-size="14.00" fill="#000000">url string</text>
+<polyline fill="none" stroke="#000000" points="18.269,-166.5 127.5728,-166.5 "/>
+<text text-anchor="middle" x="72.9209" y="-151.3" font-family="Times,serif" font-size="14.00" fill="#000000">date1 datetime</text>
+<text text-anchor="middle" x="72.9209" y="-137.3" font-family="Times,serif" font-size="14.00" fill="#000000">(creation)</text>
+<polyline fill="none" stroke="#000000" points="18.269,-130.5 127.5728,-130.5 "/>
+<text text-anchor="middle" x="72.9209" y="-115.3" font-family="Times,serif" font-size="14.00" fill="#000000">date2 datetime</text>
+<text text-anchor="middle" x="72.9209" y="-101.3" font-family="Times,serif" font-size="14.00" fill="#000000">(update, unused)</text>
+<polyline fill="none" stroke="#000000" points="18.269,-94.5 127.5728,-94.5 "/>
+<text text-anchor="middle" x="72.9209" y="-79.3" font-family="Times,serif" font-size="14.00" fill="#000000">date3 datetime</text>
+<text text-anchor="middle" x="72.9209" y="-65.3" font-family="Times,serif" font-size="14.00" fill="#000000">(access, unused)</text>
+<polyline fill="none" stroke="#000000" points="18.269,-58.5 127.5728,-58.5 "/>
+<text text-anchor="middle" x="72.9209" y="-43.3" font-family="Times,serif" font-size="14.00" fill="#000000">refcount uint64</text>
+<text text-anchor="middle" x="72.9209" y="-29.3" font-family="Times,serif" font-size="14.00" fill="#000000">(hits, unused)</text>
+</g>
+</g>
+</svg>