stuff
authorgamesguru <mathmuncher11@gmail.com>
Sun, 11 Oct 2020 17:57:03 +0000 (13:57 -0400)
committergamesguru <mathmuncher11@gmail.com>
Mon, 12 Oct 2020 09:18:40 +0000 (05:18 -0400)
docs/nt.svg
sql/data/profiles.csv
sql/functions.sql

index caa15210e87a2912336415d7aa1f4954e2f6cae6..d37a306c418dfa60ee8bbe6b360929b1c21f8f44 100644 (file)
 <!-- Generated by graphviz version 2.43.0 (0)
  -->
 <!-- Title: undefined Pages: 1 -->
-<svg width="787pt" height="1516pt"
- viewBox="0.00 0.00 786.60 1515.60" 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(28.8 1465.8)">
+<svg width="854pt" height="1681pt"
+ viewBox="0.00 0.00 853.60 1680.60" 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(28.8 1630.8)">
 <title>undefined</title>
-<polygon fill="white" stroke="transparent" points="-28.8,49.8 -28.8,-1465.8 757.8,-1465.8 757.8,49.8 -28.8,49.8"/>
-<text text-anchor="start" x="336" y="12.6" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">nt.sqlite</text>
+<polygon fill="white" stroke="transparent" points="-28.8,49.8 -28.8,-1630.8 824.8,-1630.8 824.8,49.8 -28.8,49.8"/>
+<text text-anchor="start" x="369.5" y="12.6" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">nt.sqlite</text>
 <!-- version -->
 <g id="node1" class="node">
 <title>version</title>
-<path fill="none" stroke="black" d="M597.24,-715.64C597.24,-715.64 717.24,-715.64 717.24,-715.64 723.24,-715.64 729.24,-721.64 729.24,-727.64 729.24,-727.64 729.24,-807.64 729.24,-807.64 729.24,-813.64 723.24,-819.64 717.24,-819.64 717.24,-819.64 597.24,-819.64 597.24,-819.64 591.24,-819.64 585.24,-813.64 585.24,-807.64 585.24,-807.64 585.24,-727.64 585.24,-727.64 585.24,-721.64 591.24,-715.64 597.24,-715.64"/>
-<text text-anchor="start" x="630.24" y="-799.24" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">version</text>
-<polyline fill="none" stroke="black" points="585.24,-789.64 729.24,-789.64 "/>
-<text text-anchor="start" x="592.24" y="-776.04" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="613.24" y="-776.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="592.24" y="-759.04" font-family="Helvetica,sans-Serif" font-size="12.00">version </text>
-<text text-anchor="start" x="640.24" y="-759.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="592.24" y="-742.04" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
-<text text-anchor="start" x="642.24" y="-742.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
-<text text-anchor="start" x="592.24" y="-725.04" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
-<text text-anchor="start" x="629.24" y="-725.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<path fill="none" stroke="black" d="M100.24,-1144.64C100.24,-1144.64 220.24,-1144.64 220.24,-1144.64 226.24,-1144.64 232.24,-1150.64 232.24,-1156.64 232.24,-1156.64 232.24,-1236.64 232.24,-1236.64 232.24,-1242.64 226.24,-1248.64 220.24,-1248.64 220.24,-1248.64 100.24,-1248.64 100.24,-1248.64 94.24,-1248.64 88.24,-1242.64 88.24,-1236.64 88.24,-1236.64 88.24,-1156.64 88.24,-1156.64 88.24,-1150.64 94.24,-1144.64 100.24,-1144.64"/>
+<text text-anchor="start" x="133.24" y="-1228.24" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">version</text>
+<polyline fill="none" stroke="black" points="88.24,-1218.64 232.24,-1218.64 "/>
+<text text-anchor="start" x="95.24" y="-1205.04" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="116.24" y="-1205.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="95.24" y="-1188.04" font-family="Helvetica,sans-Serif" font-size="12.00">version </text>
+<text text-anchor="start" x="143.24" y="-1188.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="95.24" y="-1171.04" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="145.24" y="-1171.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
+<text text-anchor="start" x="95.24" y="-1154.04" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="132.24" y="-1154.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- bmr_eqs -->
 <g id="node2" class="node">
 <title>bmr_eqs</title>
-<path fill="none" stroke="black" d="M12.26,-812.54C12.26,-812.54 132.26,-812.54 132.26,-812.54 138.26,-812.54 144.26,-818.54 144.26,-824.54 144.26,-824.54 144.26,-870.54 144.26,-870.54 144.26,-876.54 138.26,-882.54 132.26,-882.54 132.26,-882.54 12.26,-882.54 12.26,-882.54 6.26,-882.54 0.26,-876.54 0.26,-870.54 0.26,-870.54 0.26,-824.54 0.26,-824.54 0.26,-818.54 6.26,-812.54 12.26,-812.54"/>
-<text text-anchor="start" x="41.26" y="-862.14" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bmr_eqs</text>
-<polyline fill="none" stroke="black" points="0.26,-852.54 144.26,-852.54 "/>
-<text text-anchor="start" x="7.26" y="-838.94" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="28.26" y="-838.94" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="7.26" y="-821.94" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
-<text text-anchor="start" x="46.26" y="-821.94" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<path fill="none" stroke="black" d="M12.13,-911.39C12.13,-911.39 132.13,-911.39 132.13,-911.39 138.13,-911.39 144.13,-917.39 144.13,-923.39 144.13,-923.39 144.13,-969.39 144.13,-969.39 144.13,-975.39 138.13,-981.39 132.13,-981.39 132.13,-981.39 12.13,-981.39 12.13,-981.39 6.13,-981.39 0.13,-975.39 0.13,-969.39 0.13,-969.39 0.13,-923.39 0.13,-923.39 0.13,-917.39 6.13,-911.39 12.13,-911.39"/>
+<text text-anchor="start" x="41.13" y="-960.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bmr_eqs</text>
+<polyline fill="none" stroke="black" points="0.13,-951.39 144.13,-951.39 "/>
+<text text-anchor="start" x="7.13" y="-937.79" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="28.13" y="-937.79" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="7.13" y="-920.79" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="46.13" y="-920.79" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- bf_eqs -->
 <g id="node3" class="node">
 <title>bf_eqs</title>
-<path fill="none" stroke="black" d="M592.22,-535.74C592.22,-535.74 712.22,-535.74 712.22,-535.74 718.22,-535.74 724.22,-541.74 724.22,-547.74 724.22,-547.74 724.22,-593.74 724.22,-593.74 724.22,-599.74 718.22,-605.74 712.22,-605.74 712.22,-605.74 592.22,-605.74 592.22,-605.74 586.22,-605.74 580.22,-599.74 580.22,-593.74 580.22,-593.74 580.22,-547.74 580.22,-547.74 580.22,-541.74 586.22,-535.74 592.22,-535.74"/>
-<text text-anchor="start" x="628.22" y="-585.34" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bf_eqs</text>
-<polyline fill="none" stroke="black" points="580.22,-575.74 724.22,-575.74 "/>
-<text text-anchor="start" x="587.22" y="-562.14" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="608.22" y="-562.14" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="587.22" y="-545.14" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
-<text text-anchor="start" x="626.22" y="-545.14" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<path fill="none" stroke="black" d="M664.05,-600.24C664.05,-600.24 784.05,-600.24 784.05,-600.24 790.05,-600.24 796.05,-606.24 796.05,-612.24 796.05,-612.24 796.05,-658.24 796.05,-658.24 796.05,-664.24 790.05,-670.24 784.05,-670.24 784.05,-670.24 664.05,-670.24 664.05,-670.24 658.05,-670.24 652.05,-664.24 652.05,-658.24 652.05,-658.24 652.05,-612.24 652.05,-612.24 652.05,-606.24 658.05,-600.24 664.05,-600.24"/>
+<text text-anchor="start" x="700.05" y="-649.84" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bf_eqs</text>
+<polyline fill="none" stroke="black" points="652.05,-640.24 796.05,-640.24 "/>
+<text text-anchor="start" x="659.05" y="-626.64" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="680.05" y="-626.64" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="659.05" y="-609.64" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="698.05" y="-609.64" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
-<!-- users -->
+<!-- profiles -->
 <g id="node4" class="node">
-<title>users</title>
-<path fill="none" stroke="black" d="M279.12,-619.16C279.12,-619.16 399.12,-619.16 399.12,-619.16 405.12,-619.16 411.12,-625.16 411.12,-631.16 411.12,-631.16 411.12,-847.16 411.12,-847.16 411.12,-853.16 405.12,-859.16 399.12,-859.16 399.12,-859.16 279.12,-859.16 279.12,-859.16 273.12,-859.16 267.12,-853.16 267.12,-847.16 267.12,-847.16 267.12,-631.16 267.12,-631.16 267.12,-625.16 273.12,-619.16 279.12,-619.16"/>
-<text text-anchor="start" x="319.12" y="-838.76" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">users</text>
-<polyline fill="none" stroke="black" points="267.12,-829.16 411.12,-829.16 "/>
-<text text-anchor="start" x="274.12" y="-815.56" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="295.12" y="-815.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="274.12" y="-798.56" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
-<text text-anchor="start" x="313.12" y="-798.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="274.12" y="-781.56" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
-<text text-anchor="start" x="304.12" y="-781.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="274.12" y="-764.56" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
-<text text-anchor="start" x="324.12" y="-764.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="274.12" y="-747.56" font-family="Helvetica,sans-Serif" font-size="12.00">eula </text>
-<text text-anchor="start" x="304.12" y="-747.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="274.12" y="-730.56" font-family="Helvetica,sans-Serif" font-size="12.00">gender </text>
-<text text-anchor="start" x="321.12" y="-730.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="274.12" y="-713.56" font-family="Helvetica,sans-Serif" font-size="12.00">dob </text>
-<text text-anchor="start" x="301.12" y="-713.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
-<text text-anchor="start" x="274.12" y="-696.56" font-family="Helvetica,sans-Serif" font-size="12.00">act_lvl </text>
-<text text-anchor="start" x="316.12" y="-696.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="274.12" y="-679.56" font-family="Helvetica,sans-Serif" font-size="12.00">goal_wt </text>
-<text text-anchor="start" x="324.12" y="-679.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
-<text text-anchor="start" x="274.12" y="-662.56" font-family="Helvetica,sans-Serif" font-size="12.00">goal_bf </text>
-<text text-anchor="start" x="322.12" y="-662.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
-<text text-anchor="start" x="274.12" y="-645.56" font-family="Helvetica,sans-Serif" font-size="12.00">bmr_eq_id </text>
-<text text-anchor="start" x="341.12" y="-645.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="274.12" y="-628.56" font-family="Helvetica,sans-Serif" font-size="12.00">bf_eq_id </text>
-<text text-anchor="start" x="328.12" y="-628.56" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<title>profiles</title>
+<path fill="none" stroke="black" d="M312.11,-687.57C312.11,-687.57 432.11,-687.57 432.11,-687.57 438.11,-687.57 444.11,-693.57 444.11,-699.57 444.11,-699.57 444.11,-949.57 444.11,-949.57 444.11,-955.57 438.11,-961.57 432.11,-961.57 432.11,-961.57 312.11,-961.57 312.11,-961.57 306.11,-961.57 300.11,-955.57 300.11,-949.57 300.11,-949.57 300.11,-699.57 300.11,-699.57 300.11,-693.57 306.11,-687.57 312.11,-687.57"/>
+<text text-anchor="start" x="344.11" y="-941.17" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">profiles</text>
+<polyline fill="none" stroke="black" points="300.11,-931.57 444.11,-931.57 "/>
+<text text-anchor="start" x="307.11" y="-917.97" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="328.11" y="-917.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="307.11" y="-900.97" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="346.11" y="-900.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="307.11" y="-883.97" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
+<text text-anchor="start" x="337.11" y="-883.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="307.11" y="-866.97" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="357.11" y="-866.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="307.11" y="-849.97" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="361.11" y="-849.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="307.11" y="-832.97" font-family="Helvetica,sans-Serif" font-size="12.00">last_sync </text>
+<text text-anchor="start" x="365.11" y="-832.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="307.11" y="-815.97" font-family="Helvetica,sans-Serif" font-size="12.00">eula </text>
+<text text-anchor="start" x="337.11" y="-815.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="307.11" y="-798.97" font-family="Helvetica,sans-Serif" font-size="12.00">gender </text>
+<text text-anchor="start" x="354.11" y="-798.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="307.11" y="-781.97" font-family="Helvetica,sans-Serif" font-size="12.00">dob </text>
+<text text-anchor="start" x="334.11" y="-781.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
+<text text-anchor="start" x="307.11" y="-764.97" font-family="Helvetica,sans-Serif" font-size="12.00">act_lvl </text>
+<text text-anchor="start" x="349.11" y="-764.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="307.11" y="-747.97" font-family="Helvetica,sans-Serif" font-size="12.00">goal_wt </text>
+<text text-anchor="start" x="357.11" y="-747.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="307.11" y="-730.97" font-family="Helvetica,sans-Serif" font-size="12.00">goal_bf </text>
+<text text-anchor="start" x="355.11" y="-730.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="307.11" y="-713.97" font-family="Helvetica,sans-Serif" font-size="12.00">bmr_eq_id </text>
+<text text-anchor="start" x="374.11" y="-713.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="307.11" y="-696.97" font-family="Helvetica,sans-Serif" font-size="12.00">bf_eq_id </text>
+<text text-anchor="start" x="361.11" y="-696.97" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
 </g>
-<!-- users&#45;&gt;bmr_eqs -->
+<!-- profiles&#45;&gt;bmr_eqs -->
 <g id="edge2" class="edge">
-<title>users&#45;&gt;bmr_eqs</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M266.91,-768.49C231.46,-782.89 188.64,-800.27 152.21,-815.07"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="150.89,-812.58 144.53,-818.19 153,-817.77 150.89,-812.58"/>
+<title>profiles&#45;&gt;bmr_eqs</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M299.88,-853.9C255.21,-872.04 197.82,-895.35 151.83,-914.03"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="150.62,-911.5 144.26,-917.1 152.72,-916.69 150.62,-911.5"/>
 </g>
-<!-- users&#45;&gt;bf_eqs -->
+<!-- profiles&#45;&gt;bf_eqs -->
 <g id="edge1" class="edge">
-<title>users&#45;&gt;bf_eqs</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M411.35,-700.31C461.87,-673.13 529.09,-636.97 579.68,-609.76"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="581.3,-612.07 587.02,-605.81 578.64,-607.13 581.3,-612.07"/>
+<title>profiles&#45;&gt;bf_eqs</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M444.18,-785.8C504.76,-753.21 590.95,-706.85 651.63,-674.2"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="653.18,-676.55 658.9,-670.29 650.53,-671.62 653.18,-676.55"/>
 </g>
 <!-- biometrics -->
 <g id="node5" class="node">
 <title>biometrics</title>
-<path fill="none" stroke="black" d="M357.21,-1332.17C357.21,-1332.17 477.21,-1332.17 477.21,-1332.17 483.21,-1332.17 489.21,-1338.17 489.21,-1344.17 489.21,-1344.17 489.21,-1424.17 489.21,-1424.17 489.21,-1430.17 483.21,-1436.17 477.21,-1436.17 477.21,-1436.17 357.21,-1436.17 357.21,-1436.17 351.21,-1436.17 345.21,-1430.17 345.21,-1424.17 345.21,-1424.17 345.21,-1344.17 345.21,-1344.17 345.21,-1338.17 351.21,-1332.17 357.21,-1332.17"/>
-<text text-anchor="start" x="378.21" y="-1415.77" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">biometrics</text>
-<polyline fill="none" stroke="black" points="345.21,-1406.17 489.21,-1406.17 "/>
-<text text-anchor="start" x="352.21" y="-1392.57" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="373.21" y="-1392.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="352.21" y="-1375.57" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
-<text text-anchor="start" x="391.21" y="-1375.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="352.21" y="-1358.57" font-family="Helvetica,sans-Serif" font-size="12.00">unit </text>
-<text text-anchor="start" x="379.21" y="-1358.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="352.21" y="-1341.57" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
-<text text-anchor="start" x="402.21" y="-1341.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<path fill="none" stroke="black" d="M399.89,-1497.61C399.89,-1497.61 519.89,-1497.61 519.89,-1497.61 525.89,-1497.61 531.89,-1503.61 531.89,-1509.61 531.89,-1509.61 531.89,-1589.61 531.89,-1589.61 531.89,-1595.61 525.89,-1601.61 519.89,-1601.61 519.89,-1601.61 399.89,-1601.61 399.89,-1601.61 393.89,-1601.61 387.89,-1595.61 387.89,-1589.61 387.89,-1589.61 387.89,-1509.61 387.89,-1509.61 387.89,-1503.61 393.89,-1497.61 399.89,-1497.61"/>
+<text text-anchor="start" x="420.89" y="-1581.21" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">biometrics</text>
+<polyline fill="none" stroke="black" points="387.89,-1571.61 531.89,-1571.61 "/>
+<text text-anchor="start" x="394.89" y="-1558.01" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="415.89" y="-1558.01" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="394.89" y="-1541.01" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="433.89" y="-1541.01" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="394.89" y="-1524.01" font-family="Helvetica,sans-Serif" font-size="12.00">unit </text>
+<text text-anchor="start" x="421.89" y="-1524.01" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="394.89" y="-1507.01" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="444.89" y="-1507.01" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
 </g>
 <!-- biometric_log -->
 <g id="node6" class="node">
 <title>biometric_log</title>
-<path fill="none" stroke="black" d="M539.76,-877.93C539.76,-877.93 659.76,-877.93 659.76,-877.93 665.76,-877.93 671.76,-883.93 671.76,-889.93 671.76,-889.93 671.76,-1003.93 671.76,-1003.93 671.76,-1009.93 665.76,-1015.93 659.76,-1015.93 659.76,-1015.93 539.76,-1015.93 539.76,-1015.93 533.76,-1015.93 527.76,-1009.93 527.76,-1003.93 527.76,-1003.93 527.76,-889.93 527.76,-889.93 527.76,-883.93 533.76,-877.93 539.76,-877.93"/>
-<text text-anchor="start" x="549.76" y="-995.53" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">biometric_log</text>
-<polyline fill="none" stroke="black" points="527.76,-985.93 671.76,-985.93 "/>
-<text text-anchor="start" x="534.76" y="-972.33" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="555.76" y="-972.33" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="534.76" y="-955.33" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
-<text text-anchor="start" x="564.76" y="-955.33" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="534.76" y="-938.33" font-family="Helvetica,sans-Serif" font-size="12.00">user_id </text>
-<text text-anchor="start" x="581.76" y="-938.33" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="534.76" y="-921.33" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
-<text text-anchor="start" x="565.76" y="-921.33" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="534.76" y="-904.33" font-family="Helvetica,sans-Serif" font-size="12.00">tags </text>
-<text text-anchor="start" x="564.76" y="-904.33" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="534.76" y="-887.33" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
-<text text-anchor="start" x="571.76" y="-887.33" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<path fill="none" stroke="black" d="M605.09,-963.62C605.09,-963.62 725.09,-963.62 725.09,-963.62 731.09,-963.62 737.09,-969.62 737.09,-975.62 737.09,-975.62 737.09,-1140.62 737.09,-1140.62 737.09,-1146.62 731.09,-1152.62 725.09,-1152.62 725.09,-1152.62 605.09,-1152.62 605.09,-1152.62 599.09,-1152.62 593.09,-1146.62 593.09,-1140.62 593.09,-1140.62 593.09,-975.62 593.09,-975.62 593.09,-969.62 599.09,-963.62 605.09,-963.62"/>
+<text text-anchor="start" x="615.09" y="-1132.22" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">biometric_log</text>
+<polyline fill="none" stroke="black" points="593.09,-1122.62 737.09,-1122.62 "/>
+<text text-anchor="start" x="600.09" y="-1108.52" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="621.09" y="-1108.52" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="600.09" y="-1091.52" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
+<text text-anchor="start" x="630.09" y="-1091.52" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="600.09" y="-1074.52" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id </text>
+<text text-anchor="start" x="658.09" y="-1074.52" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="600.09" y="-1057.52" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="650.09" y="-1057.52" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="600.09" y="-1040.52" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="654.09" y="-1040.52" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="600.09" y="-1023.52" font-family="Helvetica,sans-Serif" font-size="12.00">last_sync </text>
+<text text-anchor="start" x="658.09" y="-1023.52" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="600.09" y="-1006.52" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
+<text text-anchor="start" x="631.09" y="-1006.52" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="600.09" y="-989.52" font-family="Helvetica,sans-Serif" font-size="12.00">tags </text>
+<text text-anchor="start" x="630.09" y="-989.52" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="600.09" y="-972.52" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="637.09" y="-972.52" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
-<!-- biometric_log&#45;&gt;users -->
+<!-- biometric_log&#45;&gt;profiles -->
 <g id="edge3" class="edge">
-<title>biometric_log&#45;&gt;users</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M527.51,-889.33C493.47,-862.2 452.79,-829.77 417.95,-802"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="419.52,-799.67 411.52,-796.87 416.03,-804.05 419.52,-799.67"/>
+<title>biometric_log&#45;&gt;profiles</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M593.04,-1000.69C549.85,-966.25 494.88,-922.44 450.59,-887.13"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="452.13,-884.78 444.13,-881.98 448.64,-889.16 452.13,-884.78"/>
 </g>
 <!-- bio_log_entry -->
 <g id="node7" class="node">
 <title>bio_log_entry</title>
-<path fill="none" stroke="black" d="M553.35,-1148.21C553.35,-1148.21 673.35,-1148.21 673.35,-1148.21 679.35,-1148.21 685.35,-1154.21 685.35,-1160.21 685.35,-1160.21 685.35,-1223.21 685.35,-1223.21 685.35,-1229.21 679.35,-1235.21 673.35,-1235.21 673.35,-1235.21 553.35,-1235.21 553.35,-1235.21 547.35,-1235.21 541.35,-1229.21 541.35,-1223.21 541.35,-1223.21 541.35,-1160.21 541.35,-1160.21 541.35,-1154.21 547.35,-1148.21 553.35,-1148.21"/>
-<text text-anchor="start" x="564.35" y="-1214.81" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bio_log_entry</text>
-<polyline fill="none" stroke="black" points="541.35,-1205.21 685.35,-1205.21 "/>
-<text text-anchor="start" x="548.35" y="-1191.11" font-family="Helvetica,sans-Serif" font-size="12.00">log_id* </text>
-<text text-anchor="start" x="593.35" y="-1191.11" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="548.35" y="-1174.11" font-family="Helvetica,sans-Serif" font-size="12.00">biometric_id* </text>
-<text text-anchor="start" x="632.35" y="-1174.11" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="548.35" y="-1157.11" font-family="Helvetica,sans-Serif" font-size="12.00">value </text>
-<text text-anchor="start" x="585.35" y="-1157.11" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<path fill="none" stroke="black" d="M620.36,-1289.78C620.36,-1289.78 740.36,-1289.78 740.36,-1289.78 746.36,-1289.78 752.36,-1295.78 752.36,-1301.78 752.36,-1301.78 752.36,-1364.78 752.36,-1364.78 752.36,-1370.78 746.36,-1376.78 740.36,-1376.78 740.36,-1376.78 620.36,-1376.78 620.36,-1376.78 614.36,-1376.78 608.36,-1370.78 608.36,-1364.78 608.36,-1364.78 608.36,-1301.78 608.36,-1301.78 608.36,-1295.78 614.36,-1289.78 620.36,-1289.78"/>
+<text text-anchor="start" x="631.36" y="-1356.38" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bio_log_entry</text>
+<polyline fill="none" stroke="black" points="608.36,-1346.78 752.36,-1346.78 "/>
+<text text-anchor="start" x="615.36" y="-1332.68" font-family="Helvetica,sans-Serif" font-size="12.00">log_id* </text>
+<text text-anchor="start" x="660.36" y="-1332.68" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="615.36" y="-1315.68" font-family="Helvetica,sans-Serif" font-size="12.00">biometric_id* </text>
+<text text-anchor="start" x="699.36" y="-1315.68" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="615.36" y="-1298.68" font-family="Helvetica,sans-Serif" font-size="12.00">value </text>
+<text text-anchor="start" x="652.36" y="-1298.68" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
 <!-- bio_log_entry&#45;&gt;biometrics -->
 <g id="edge4" class="edge">
 <title>bio_log_entry&#45;&gt;biometrics</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M568.84,-1235.39C541.4,-1262.31 505.88,-1297.16 476.12,-1326.36"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="474,-1324.52 470.25,-1332.12 477.92,-1328.52 474,-1324.52"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M636.01,-1376.8C602.35,-1409.82 555.75,-1455.55 518.94,-1491.67"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="516.86,-1489.78 513.11,-1497.39 520.79,-1493.78 516.86,-1489.78"/>
 </g>
 <!-- bio_log_entry&#45;&gt;biometric_log -->
 <g id="edge5" class="edge">
 <title>bio_log_entry&#45;&gt;biometric_log</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M610.92,-1147.95C609.02,-1113.66 606.32,-1065.08 604.06,-1024.27"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="606.85,-1024.05 603.61,-1016.22 601.26,-1024.36 606.85,-1024.05"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M677.94,-1289.68C676.03,-1255.15 673.27,-1205.51 670.8,-1161.03"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="673.59,-1160.62 670.35,-1152.79 667.99,-1160.93 673.59,-1160.62"/>
 </g>
 <!-- recipes -->
 <g id="node8" class="node">
 <title>recipes</title>
-<path fill="none" stroke="black" d="M367.25,-137.08C367.25,-137.08 487.25,-137.08 487.25,-137.08 493.25,-137.08 499.25,-143.08 499.25,-149.08 499.25,-149.08 499.25,-229.08 499.25,-229.08 499.25,-235.08 493.25,-241.08 487.25,-241.08 487.25,-241.08 367.25,-241.08 367.25,-241.08 361.25,-241.08 355.25,-235.08 355.25,-229.08 355.25,-229.08 355.25,-149.08 355.25,-149.08 355.25,-143.08 361.25,-137.08 367.25,-137.08"/>
-<text text-anchor="start" x="400.25" y="-220.68" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipes</text>
-<polyline fill="none" stroke="black" points="355.25,-211.08 499.25,-211.08 "/>
-<text text-anchor="start" x="362.25" y="-197.48" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="383.25" y="-197.48" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="362.25" y="-180.48" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
-<text text-anchor="start" x="392.25" y="-180.48" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="362.25" y="-163.48" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
-<text text-anchor="start" x="412.25" y="-163.48" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="362.25" y="-146.48" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
-<text text-anchor="start" x="401.25" y="-146.48" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<path fill="none" stroke="black" d="M411.17,-137.23C411.17,-137.23 531.17,-137.23 531.17,-137.23 537.17,-137.23 543.17,-143.23 543.17,-149.23 543.17,-149.23 543.17,-263.23 543.17,-263.23 543.17,-269.23 537.17,-275.23 531.17,-275.23 531.17,-275.23 411.17,-275.23 411.17,-275.23 405.17,-275.23 399.17,-269.23 399.17,-263.23 399.17,-263.23 399.17,-149.23 399.17,-149.23 399.17,-143.23 405.17,-137.23 411.17,-137.23"/>
+<text text-anchor="start" x="444.17" y="-254.83" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipes</text>
+<polyline fill="none" stroke="black" points="399.17,-245.23 543.17,-245.23 "/>
+<text text-anchor="start" x="406.17" y="-231.63" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="427.17" y="-231.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="406.17" y="-214.63" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
+<text text-anchor="start" x="436.17" y="-214.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="406.17" y="-197.63" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="456.17" y="-197.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="406.17" y="-180.63" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="460.17" y="-180.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="406.17" y="-163.63" font-family="Helvetica,sans-Serif" font-size="12.00">last_sync </text>
+<text text-anchor="start" x="464.17" y="-163.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="406.17" y="-146.63" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="445.17" y="-146.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- recipe_dat -->
 <g id="node9" class="node">
 <title>recipe_dat</title>
-<path fill="none" stroke="black" d="M520.17,-0.07C520.17,-0.07 640.17,-0.07 640.17,-0.07 646.17,-0.07 652.17,-6.07 652.17,-12.07 652.17,-12.07 652.17,-92.07 652.17,-92.07 652.17,-98.07 646.17,-104.07 640.17,-104.07 640.17,-104.07 520.17,-104.07 520.17,-104.07 514.17,-104.07 508.17,-98.07 508.17,-92.07 508.17,-92.07 508.17,-12.07 508.17,-12.07 508.17,-6.07 514.17,-0.07 520.17,-0.07"/>
-<text text-anchor="start" x="542.17" y="-83.67" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipe_dat</text>
-<polyline fill="none" stroke="black" points="508.17,-74.07 652.17,-74.07 "/>
-<text text-anchor="start" x="515.17" y="-60.47" font-family="Helvetica,sans-Serif" font-size="12.00">recipe_id* </text>
-<text text-anchor="start" x="579.17" y="-60.47" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="515.17" y="-43.47" font-family="Helvetica,sans-Serif" font-size="12.00">food_id* </text>
-<text text-anchor="start" x="569.17" y="-43.47" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="515.17" y="-26.47" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
-<text text-anchor="start" x="558.17" y="-26.47" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
-<text text-anchor="start" x="515.17" y="-9.47" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
-<text text-anchor="start" x="552.17" y="-9.47" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<path fill="none" stroke="black" d="M583.06,-0.21C583.06,-0.21 703.06,-0.21 703.06,-0.21 709.06,-0.21 715.06,-6.21 715.06,-12.21 715.06,-12.21 715.06,-92.21 715.06,-92.21 715.06,-98.21 709.06,-104.21 703.06,-104.21 703.06,-104.21 583.06,-104.21 583.06,-104.21 577.06,-104.21 571.06,-98.21 571.06,-92.21 571.06,-92.21 571.06,-12.21 571.06,-12.21 571.06,-6.21 577.06,-0.21 583.06,-0.21"/>
+<text text-anchor="start" x="605.06" y="-83.81" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipe_dat</text>
+<polyline fill="none" stroke="black" points="571.06,-74.21 715.06,-74.21 "/>
+<text text-anchor="start" x="578.06" y="-60.61" font-family="Helvetica,sans-Serif" font-size="12.00">recipe_id* </text>
+<text text-anchor="start" x="642.06" y="-60.61" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="578.06" y="-43.61" font-family="Helvetica,sans-Serif" font-size="12.00">food_id* </text>
+<text text-anchor="start" x="632.06" y="-43.61" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="578.06" y="-26.61" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
+<text text-anchor="start" x="621.06" y="-26.61" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="578.06" y="-9.61" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="615.06" y="-9.61" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- recipe_dat&#45;&gt;recipes -->
 <g id="edge6" class="edge">
 <title>recipe_dat&#45;&gt;recipes</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M521.92,-104.26C511.99,-113.15 501.63,-122.43 491.56,-131.46"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="489.43,-129.61 485.34,-137.04 493.16,-133.78 489.43,-129.61"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M584.87,-104.36C573.51,-114.54 561.42,-125.37 549.53,-136.02"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="547.42,-134.15 543.33,-141.58 551.16,-138.32 547.42,-134.15"/>
 </g>
 <!-- meals -->
 <g id="node10" class="node">
 <title>meals</title>
-<path fill="none" stroke="black" d="M15.94,-277.55C15.94,-277.55 135.94,-277.55 135.94,-277.55 141.94,-277.55 147.94,-283.55 147.94,-289.55 147.94,-289.55 147.94,-335.55 147.94,-335.55 147.94,-341.55 141.94,-347.55 135.94,-347.55 135.94,-347.55 15.94,-347.55 15.94,-347.55 9.94,-347.55 3.94,-341.55 3.94,-335.55 3.94,-335.55 3.94,-289.55 3.94,-289.55 3.94,-283.55 9.94,-277.55 15.94,-277.55"/>
-<text text-anchor="start" x="53.94" y="-327.15" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">meals</text>
-<polyline fill="none" stroke="black" points="3.94,-317.55 147.94,-317.55 "/>
-<text text-anchor="start" x="10.94" y="-303.95" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="31.94" y="-303.95" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="10.94" y="-286.95" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
-<text text-anchor="start" x="49.94" y="-286.95" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<path fill="none" stroke="black" d="M16.27,-310.02C16.27,-310.02 136.27,-310.02 136.27,-310.02 142.27,-310.02 148.27,-316.02 148.27,-322.02 148.27,-322.02 148.27,-368.02 148.27,-368.02 148.27,-374.02 142.27,-380.02 136.27,-380.02 136.27,-380.02 16.27,-380.02 16.27,-380.02 10.27,-380.02 4.27,-374.02 4.27,-368.02 4.27,-368.02 4.27,-322.02 4.27,-322.02 4.27,-316.02 10.27,-310.02 16.27,-310.02"/>
+<text text-anchor="start" x="54.27" y="-359.62" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">meals</text>
+<polyline fill="none" stroke="black" points="4.27,-350.02 148.27,-350.02 "/>
+<text text-anchor="start" x="11.27" y="-336.42" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="32.27" y="-336.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="11.27" y="-319.42" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="50.27" y="-319.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- food_log -->
 <g id="node11" class="node">
 <title>food_log</title>
-<path fill="none" stroke="black" d="M31.32,-459.08C31.32,-459.08 151.32,-459.08 151.32,-459.08 157.32,-459.08 163.32,-465.08 163.32,-471.08 163.32,-471.08 163.32,-602.08 163.32,-602.08 163.32,-608.08 157.32,-614.08 151.32,-614.08 151.32,-614.08 31.32,-614.08 31.32,-614.08 25.32,-614.08 19.32,-608.08 19.32,-602.08 19.32,-602.08 19.32,-471.08 19.32,-471.08 19.32,-465.08 25.32,-459.08 31.32,-459.08"/>
-<text text-anchor="start" x="60.32" y="-593.68" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">food_log</text>
-<polyline fill="none" stroke="black" points="19.32,-584.08 163.32,-584.08 "/>
-<text text-anchor="start" x="26.32" y="-569.98" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="47.32" y="-569.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="26.32" y="-552.98" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
-<text text-anchor="start" x="56.32" y="-552.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="26.32" y="-535.98" font-family="Helvetica,sans-Serif" font-size="12.00">user_id </text>
-<text text-anchor="start" x="73.32" y="-535.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="26.32" y="-518.98" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
-<text text-anchor="start" x="57.32" y="-518.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
-<text text-anchor="start" x="26.32" y="-501.98" font-family="Helvetica,sans-Serif" font-size="12.00">meal_id </text>
-<text text-anchor="start" x="77.32" y="-501.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="26.32" y="-484.98" font-family="Helvetica,sans-Serif" font-size="12.00">food_id </text>
-<text text-anchor="start" x="74.32" y="-484.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="26.32" y="-467.98" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
-<text text-anchor="start" x="69.32" y="-467.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<path fill="none" stroke="black" d="M33.55,-493.85C33.55,-493.85 153.55,-493.85 153.55,-493.85 159.55,-493.85 165.55,-499.85 165.55,-505.85 165.55,-505.85 165.55,-687.85 165.55,-687.85 165.55,-693.85 159.55,-699.85 153.55,-699.85 153.55,-699.85 33.55,-699.85 33.55,-699.85 27.55,-699.85 21.55,-693.85 21.55,-687.85 21.55,-687.85 21.55,-505.85 21.55,-505.85 21.55,-499.85 27.55,-493.85 33.55,-493.85"/>
+<text text-anchor="start" x="62.55" y="-679.45" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">food_log</text>
+<polyline fill="none" stroke="black" points="21.55,-669.85 165.55,-669.85 "/>
+<text text-anchor="start" x="28.55" y="-656.25" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="49.55" y="-656.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="28.55" y="-639.25" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
+<text text-anchor="start" x="58.55" y="-639.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="28.55" y="-622.25" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id </text>
+<text text-anchor="start" x="86.55" y="-622.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="28.55" y="-605.25" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="78.55" y="-605.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="28.55" y="-588.25" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="82.55" y="-588.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="28.55" y="-571.25" font-family="Helvetica,sans-Serif" font-size="12.00">last_sync </text>
+<text text-anchor="start" x="86.55" y="-571.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="28.55" y="-554.25" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
+<text text-anchor="start" x="59.55" y="-554.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
+<text text-anchor="start" x="28.55" y="-537.25" font-family="Helvetica,sans-Serif" font-size="12.00">meal_id </text>
+<text text-anchor="start" x="79.55" y="-537.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="28.55" y="-520.25" font-family="Helvetica,sans-Serif" font-size="12.00">food_id </text>
+<text text-anchor="start" x="76.55" y="-520.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="28.55" y="-503.25" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
+<text text-anchor="start" x="71.55" y="-503.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
-<!-- food_log&#45;&gt;users -->
+<!-- food_log&#45;&gt;profiles -->
 <g id="edge8" class="edge">
-<title>food_log&#45;&gt;users</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M163.33,-595.45C193.74,-620.31 229.25,-649.34 260.37,-674.78"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="258.97,-677.25 266.93,-680.15 262.51,-672.92 258.97,-677.25"/>
+<title>food_log&#45;&gt;profiles</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M165.65,-655.79C204.82,-687.81 253.32,-727.46 293.46,-760.27"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="291.86,-762.58 299.83,-765.48 295.41,-758.25 291.86,-762.58"/>
 </g>
 <!-- food_log&#45;&gt;meals -->
 <g id="edge7" class="edge">
 <title>food_log&#45;&gt;meals</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M85.98,-458.85C83.62,-424.46 80.93,-385.3 78.93,-356.15"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="81.7,-355.61 78.36,-347.82 76.12,-356 81.7,-355.61"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M86.47,-493.69C83.95,-456.98 81.25,-417.59 79.26,-388.58"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="82.03,-388.1 78.69,-380.31 76.44,-388.48 82.03,-388.1"/>
 </g>
 <!-- recipe_log -->
 <g id="node12" class="node">
 <title>recipe_log</title>
-<path fill="none" stroke="black" d="M246.24,-347.65C246.24,-347.65 366.24,-347.65 366.24,-347.65 372.24,-347.65 378.24,-353.65 378.24,-359.65 378.24,-359.65 378.24,-490.65 378.24,-490.65 378.24,-496.65 372.24,-502.65 366.24,-502.65 366.24,-502.65 246.24,-502.65 246.24,-502.65 240.24,-502.65 234.24,-496.65 234.24,-490.65 234.24,-490.65 234.24,-359.65 234.24,-359.65 234.24,-353.65 240.24,-347.65 246.24,-347.65"/>
-<text text-anchor="start" x="268.24" y="-482.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipe_log</text>
-<polyline fill="none" stroke="black" points="234.24,-472.65 378.24,-472.65 "/>
-<text text-anchor="start" x="241.24" y="-458.55" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="262.24" y="-458.55" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="241.24" y="-441.55" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
-<text text-anchor="start" x="271.24" y="-441.55" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="241.24" y="-424.55" font-family="Helvetica,sans-Serif" font-size="12.00">user_id </text>
-<text text-anchor="start" x="288.24" y="-424.55" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="241.24" y="-407.55" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
-<text text-anchor="start" x="272.24" y="-407.55" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
-<text text-anchor="start" x="241.24" y="-390.55" font-family="Helvetica,sans-Serif" font-size="12.00">meal_id </text>
-<text text-anchor="start" x="292.24" y="-390.55" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="241.24" y="-373.55" font-family="Helvetica,sans-Serif" font-size="12.00">recipe_id </text>
-<text text-anchor="start" x="299.24" y="-373.55" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="241.24" y="-356.55" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
-<text text-anchor="start" x="284.24" y="-356.55" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<path fill="none" stroke="black" d="M275.14,-368.59C275.14,-368.59 395.14,-368.59 395.14,-368.59 401.14,-368.59 407.14,-374.59 407.14,-380.59 407.14,-380.59 407.14,-562.59 407.14,-562.59 407.14,-568.59 401.14,-574.59 395.14,-574.59 395.14,-574.59 275.14,-574.59 275.14,-574.59 269.14,-574.59 263.14,-568.59 263.14,-562.59 263.14,-562.59 263.14,-380.59 263.14,-380.59 263.14,-374.59 269.14,-368.59 275.14,-368.59"/>
+<text text-anchor="start" x="297.14" y="-554.19" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipe_log</text>
+<polyline fill="none" stroke="black" points="263.14,-544.59 407.14,-544.59 "/>
+<text text-anchor="start" x="270.14" y="-530.99" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="291.14" y="-530.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="270.14" y="-513.99" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
+<text text-anchor="start" x="300.14" y="-513.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="270.14" y="-496.99" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id </text>
+<text text-anchor="start" x="328.14" y="-496.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="270.14" y="-479.99" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="320.14" y="-479.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="270.14" y="-462.99" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="324.14" y="-462.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="270.14" y="-445.99" font-family="Helvetica,sans-Serif" font-size="12.00">last_sync </text>
+<text text-anchor="start" x="328.14" y="-445.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="270.14" y="-428.99" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
+<text text-anchor="start" x="301.14" y="-428.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
+<text text-anchor="start" x="270.14" y="-411.99" font-family="Helvetica,sans-Serif" font-size="12.00">meal_id </text>
+<text text-anchor="start" x="321.14" y="-411.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="270.14" y="-394.99" font-family="Helvetica,sans-Serif" font-size="12.00">recipe_id </text>
+<text text-anchor="start" x="328.14" y="-394.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="270.14" y="-377.99" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
+<text text-anchor="start" x="313.14" y="-377.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
-<!-- recipe_log&#45;&gt;users -->
+<!-- recipe_log&#45;&gt;profiles -->
 <g id="edge11" class="edge">
-<title>recipe_log&#45;&gt;users</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M314.37,-502.77C317.78,-535.36 321.84,-574.13 325.68,-610.76"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="322.92,-611.37 326.54,-619.03 328.49,-610.79 322.92,-611.37"/>
+<title>recipe_log&#45;&gt;profiles</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M345.93,-574.63C349.35,-607.22 353.19,-643.88 356.85,-678.87"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="354.11,-679.59 357.73,-687.25 359.68,-679 354.11,-679.59"/>
 </g>
 <!-- recipe_log&#45;&gt;recipes -->
 <g id="edge9" class="edge">
 <title>recipe_log&#45;&gt;recipes</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M346.03,-347.52C362.48,-315.44 381.25,-278.82 396.6,-248.88"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="399.27,-249.81 400.42,-241.41 394.28,-247.26 399.27,-249.81"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M388.12,-368.23C402.72,-339.77 418.28,-309.41 431.94,-282.75"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="434.59,-283.73 435.75,-275.34 429.6,-281.18 434.59,-283.73"/>
 </g>
 <!-- recipe_log&#45;&gt;meals -->
 <g id="edge10" class="edge">
 <title>recipe_log&#45;&gt;meals</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M234,-389.83C209.03,-377.62 180.91,-363.87 155.39,-351.4"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="156.34,-348.74 147.92,-347.74 153.88,-353.77 156.34,-348.74"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M263.03,-436.33C229.51,-419.94 189.56,-400.41 155.23,-383.62"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="156.41,-381.08 147.99,-380.09 153.95,-386.12 156.41,-381.08"/>
 </g>
 <!-- rda -->
 <g id="node13" class="node">
 <title>rda</title>
-<path fill="none" stroke="black" d="M252.93,-960.97C252.93,-960.97 372.93,-960.97 372.93,-960.97 378.93,-960.97 384.93,-966.97 384.93,-972.97 384.93,-972.97 384.93,-1052.97 384.93,-1052.97 384.93,-1058.97 378.93,-1064.97 372.93,-1064.97 372.93,-1064.97 252.93,-1064.97 252.93,-1064.97 246.93,-1064.97 240.93,-1058.97 240.93,-1052.97 240.93,-1052.97 240.93,-972.97 240.93,-972.97 240.93,-966.97 246.93,-960.97 252.93,-960.97"/>
-<text text-anchor="start" x="300.93" y="-1044.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">rda</text>
-<polyline fill="none" stroke="black" points="240.93,-1034.97 384.93,-1034.97 "/>
-<text text-anchor="start" x="247.93" y="-1021.37" font-family="Helvetica,sans-Serif" font-size="12.00">user_id* </text>
-<text text-anchor="start" x="300.93" y="-1021.37" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="247.93" y="-1004.37" font-family="Helvetica,sans-Serif" font-size="12.00">nutr_id* </text>
-<text text-anchor="start" x="299.93" y="-1004.37" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
-<text text-anchor="start" x="247.93" y="-987.37" font-family="Helvetica,sans-Serif" font-size="12.00">rda </text>
-<text text-anchor="start" x="271.93" y="-987.37" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
-<text text-anchor="start" x="247.93" y="-970.37" font-family="Helvetica,sans-Serif" font-size="12.00">synced </text>
-<text text-anchor="start" x="293.93" y="-970.37" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<path fill="none" stroke="black" d="M282.67,-1063.35C282.67,-1063.35 402.67,-1063.35 402.67,-1063.35 408.67,-1063.35 414.67,-1069.35 414.67,-1075.35 414.67,-1075.35 414.67,-1189.35 414.67,-1189.35 414.67,-1195.35 408.67,-1201.35 402.67,-1201.35 402.67,-1201.35 282.67,-1201.35 282.67,-1201.35 276.67,-1201.35 270.67,-1195.35 270.67,-1189.35 270.67,-1189.35 270.67,-1075.35 270.67,-1075.35 270.67,-1069.35 276.67,-1063.35 282.67,-1063.35"/>
+<text text-anchor="start" x="330.67" y="-1180.95" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">rda</text>
+<polyline fill="none" stroke="black" points="270.67,-1171.35 414.67,-1171.35 "/>
+<text text-anchor="start" x="277.67" y="-1157.75" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id* </text>
+<text text-anchor="start" x="341.67" y="-1157.75" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="277.67" y="-1140.75" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="327.67" y="-1140.75" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="277.67" y="-1123.75" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="331.67" y="-1123.75" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="277.67" y="-1106.75" font-family="Helvetica,sans-Serif" font-size="12.00">last_sync </text>
+<text text-anchor="start" x="335.67" y="-1106.75" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="277.67" y="-1089.75" font-family="Helvetica,sans-Serif" font-size="12.00">nutr_id* </text>
+<text text-anchor="start" x="329.67" y="-1089.75" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="277.67" y="-1072.75" font-family="Helvetica,sans-Serif" font-size="12.00">rda </text>
+<text text-anchor="start" x="301.67" y="-1072.75" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
-<!-- rda&#45;&gt;users -->
+<!-- rda&#45;&gt;profiles -->
 <g id="edge12" class="edge">
-<title>rda&#45;&gt;users</title>
-<path fill="none" stroke="black" stroke-width="0.9" d="M317.92,-960.82C320.46,-934.22 323.68,-900.57 326.84,-867.58"/>
-<polygon fill="black" stroke="black" stroke-width="0.9" points="329.66,-867.45 327.64,-859.22 324.09,-866.91 329.66,-867.45"/>
-</g>
-<!-- sync_data -->
-<g id="node14" class="node">
-<title>sync_data</title>
-<path fill="none" stroke="black" d="M467.24,-390.14C467.24,-390.14 587.24,-390.14 587.24,-390.14 593.24,-390.14 599.24,-396.14 599.24,-402.14 599.24,-402.14 599.24,-499.14 599.24,-499.14 599.24,-505.14 593.24,-511.14 587.24,-511.14 587.24,-511.14 467.24,-511.14 467.24,-511.14 461.24,-511.14 455.24,-505.14 455.24,-499.14 455.24,-499.14 455.24,-402.14 455.24,-402.14 455.24,-396.14 461.24,-390.14 467.24,-390.14"/>
-<text text-anchor="start" x="491.24" y="-490.74" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">sync_data</text>
-<polyline fill="none" stroke="black" points="455.24,-481.14 599.24,-481.14 "/>
-<text text-anchor="start" x="462.24" y="-467.04" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
-<text text-anchor="start" x="483.24" y="-467.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
-<text text-anchor="start" x="462.24" y="-450.04" font-family="Helvetica,sans-Serif" font-size="12.00">tablename </text>
-<text text-anchor="start" x="531.24" y="-450.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="462.24" y="-433.04" font-family="Helvetica,sans-Serif" font-size="12.00">guid </text>
-<text text-anchor="start" x="492.24" y="-433.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="462.24" y="-416.04" font-family="Helvetica,sans-Serif" font-size="12.00">constraint </text>
-<text text-anchor="start" x="526.24" y="-416.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
-<text text-anchor="start" x="462.24" y="-399.04" font-family="Helvetica,sans-Serif" font-size="12.00">action </text>
-<text text-anchor="start" x="503.24" y="-399.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<title>rda&#45;&gt;profiles</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M349.27,-1063.28C351.92,-1035.58 355.08,-1002.56 358.19,-970.04"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="361.01,-970.02 358.98,-961.79 355.43,-969.48 361.01,-970.02"/>
 </g>
 </g>
 </svg>
index 4bd3da46c96e3dc08cb3deb934ba9c6549c58364..ffb4b0310c78681b818bf044f7cdb1a98b2aef57 100644 (file)
@@ -1,4 +1,4 @@
 id,name,guid,created,updated,last_sync,eula,gender,dob,act_lvl,goal_wt,goal_bf,bmr_id,bf_id
-1,Shane,a0fdac7ab369de43f029a460879c854f,1601067725,1601067725,-1,1,MALE,1993-01-01,2,78,0.12,1,1
-2,Mark,7abf05c84beb849628a44336acfe7a5b,1601068574,1601068574,-1,1,MALE,1957-01-01,2,72,0.14,1,1
-3,Rocky,2454c8ab7c575cd2610f9977ed3b2b61,1601068718,1601068718,-1,1,DOG,2007-08-01,2,7.3,,1,1
+1,Shane,a0fdac7ab369de43f029a460879c854f,1601067725,1601067725,-1,,MALE,1993-01-01,2,78,0.12,1,1
+2,Mark,7abf05c84beb849628a44336acfe7a5b,1601068574,1601068574,-1,,MALE,1957-01-01,2,72,0.14,1,1
+3,Rocky,2454c8ab7c575cd2610f9977ed3b2b61,1601068718,1601068718,-1,,DOG,2007-08-01,2,7.3,,1,1
index cd375c1fecb60422a734b2948129c67e4e2be630..851a70400f716d2744356a89918bf82f84a68699 100644 (file)
@@ -172,8 +172,16 @@ GROUP BY
 
 SELECT
   max((
+    SELECT
+      last_sync FROM profiles), (
     SELECT
       last_sync FROM biometric_log), (
     SELECT
-      last_sync FROM biometric_log));
+      last_sync FROM recipes), (
+    SELECT
+      last_sync FROM food_log), (
+    SELECT
+      last_sync FROM recipe_log), (
+    SELECT
+      last_sync FROM rda)) AS last_sync;