]> Nutra Git (v2) - nutratech/nt-sqlite.git/commitdiff
rename meals -> meal_name
authorgamesguru <mathmuncher11@gmail.com>
Fri, 28 May 2021 01:50:25 +0000 (21:50 -0400)
committergamesguru <mathmuncher11@gmail.com>
Fri, 28 May 2021 01:50:26 +0000 (21:50 -0400)
docs/nt.svg
sql/data/meal_name.csv [moved from sql/data/meals.csv with 100% similarity]
sql/tables.sql

index d37a306c418dfa60ee8bbe6b360929b1c21f8f44..3b6a0bafe5771b16dc5b8f8ceeee896bec9a60d3 100644 (file)
 <!-- Generated by graphviz version 2.43.0 (0)
  -->
 <!-- Title: undefined Pages: 1 -->
-<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)">
+<svg width="1457pt" height="1653pt"
+ viewBox="0.00 0.00 1456.60 1652.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 1602.8)">
 <title>undefined</title>
-<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>
+<polygon fill="white" stroke="transparent" points="-28.8,49.8 -28.8,-1602.8 1427.8,-1602.8 1427.8,49.8 -28.8,49.8"/>
+<text text-anchor="start" x="671" 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="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>
+<path fill="none" stroke="black" d="M1038.24,-912.64C1038.24,-912.64 1158.24,-912.64 1158.24,-912.64 1164.24,-912.64 1170.24,-918.64 1170.24,-924.64 1170.24,-924.64 1170.24,-1004.64 1170.24,-1004.64 1170.24,-1010.64 1164.24,-1016.64 1158.24,-1016.64 1158.24,-1016.64 1038.24,-1016.64 1038.24,-1016.64 1032.24,-1016.64 1026.24,-1010.64 1026.24,-1004.64 1026.24,-1004.64 1026.24,-924.64 1026.24,-924.64 1026.24,-918.64 1032.24,-912.64 1038.24,-912.64"/>
+<text text-anchor="start" x="1071.24" y="-996.24" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">version</text>
+<polyline fill="none" stroke="black" points="1026.24,-986.64 1170.24,-986.64 "/>
+<text text-anchor="start" x="1033.24" y="-973.04" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="1054.24" y="-973.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="1033.24" y="-956.04" font-family="Helvetica,sans-Serif" font-size="12.00">version </text>
+<text text-anchor="start" x="1081.24" y="-956.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="1033.24" y="-939.04" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="1083.24" y="-939.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
+<text text-anchor="start" x="1033.24" y="-922.04" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="1070.24" y="-922.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.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>
+<path fill="none" stroke="black" d="M154.16,-350.4C154.16,-350.4 274.16,-350.4 274.16,-350.4 280.16,-350.4 286.16,-356.4 286.16,-362.4 286.16,-362.4 286.16,-408.4 286.16,-408.4 286.16,-414.4 280.16,-420.4 274.16,-420.4 274.16,-420.4 154.16,-420.4 154.16,-420.4 148.16,-420.4 142.16,-414.4 142.16,-408.4 142.16,-408.4 142.16,-362.4 142.16,-362.4 142.16,-356.4 148.16,-350.4 154.16,-350.4"/>
+<text text-anchor="start" x="183.16" y="-400" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bmr_eqs</text>
+<polyline fill="none" stroke="black" points="142.16,-390.4 286.16,-390.4 "/>
+<text text-anchor="start" x="149.16" y="-376.8" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="170.16" y="-376.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="149.16" y="-359.8" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="188.16" y="-359.8" 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="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>
+<path fill="none" stroke="black" d="M734.07,-1000.19C734.07,-1000.19 854.07,-1000.19 854.07,-1000.19 860.07,-1000.19 866.07,-1006.19 866.07,-1012.19 866.07,-1012.19 866.07,-1058.19 866.07,-1058.19 866.07,-1064.19 860.07,-1070.19 854.07,-1070.19 854.07,-1070.19 734.07,-1070.19 734.07,-1070.19 728.07,-1070.19 722.07,-1064.19 722.07,-1058.19 722.07,-1058.19 722.07,-1012.19 722.07,-1012.19 722.07,-1006.19 728.07,-1000.19 734.07,-1000.19"/>
+<text text-anchor="start" x="770.07" y="-1049.79" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bf_eqs</text>
+<polyline fill="none" stroke="black" points="722.07,-1040.19 866.07,-1040.19 "/>
+<text text-anchor="start" x="729.07" y="-1026.59" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="750.07" y="-1026.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="729.07" y="-1009.59" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="768.07" y="-1009.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- profiles -->
 <g id="node4" class="node">
 <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>
+<path fill="none" stroke="black" d="M464.07,-510.85C464.07,-510.85 584.07,-510.85 584.07,-510.85 590.07,-510.85 596.07,-516.85 596.07,-522.85 596.07,-522.85 596.07,-738.85 596.07,-738.85 596.07,-744.85 590.07,-750.85 584.07,-750.85 584.07,-750.85 464.07,-750.85 464.07,-750.85 458.07,-750.85 452.07,-744.85 452.07,-738.85 452.07,-738.85 452.07,-522.85 452.07,-522.85 452.07,-516.85 458.07,-510.85 464.07,-510.85"/>
+<text text-anchor="start" x="496.07" y="-730.45" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">profiles</text>
+<polyline fill="none" stroke="black" points="452.07,-720.85 596.07,-720.85 "/>
+<text text-anchor="start" x="459.07" y="-707.25" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="480.07" y="-707.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="459.07" y="-690.25" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="498.07" y="-690.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="459.07" y="-673.25" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="509.07" y="-673.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="459.07" y="-656.25" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="513.07" y="-656.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="459.07" y="-639.25" font-family="Helvetica,sans-Serif" font-size="12.00">eula </text>
+<text text-anchor="start" x="489.07" y="-639.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="459.07" y="-622.25" font-family="Helvetica,sans-Serif" font-size="12.00">gender </text>
+<text text-anchor="start" x="506.07" y="-622.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="459.07" y="-605.25" font-family="Helvetica,sans-Serif" font-size="12.00">dob </text>
+<text text-anchor="start" x="486.07" y="-605.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
+<text text-anchor="start" x="459.07" y="-588.25" font-family="Helvetica,sans-Serif" font-size="12.00">act_lvl </text>
+<text text-anchor="start" x="501.07" y="-588.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="459.07" y="-571.25" font-family="Helvetica,sans-Serif" font-size="12.00">goal_wt </text>
+<text text-anchor="start" x="509.07" y="-571.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="459.07" y="-554.25" font-family="Helvetica,sans-Serif" font-size="12.00">goal_bf </text>
+<text text-anchor="start" x="507.07" y="-554.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="459.07" y="-537.25" font-family="Helvetica,sans-Serif" font-size="12.00">bmr_eq_id </text>
+<text text-anchor="start" x="526.07" y="-537.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="459.07" y="-520.25" font-family="Helvetica,sans-Serif" font-size="12.00">bf_eq_id </text>
+<text text-anchor="start" x="513.07" y="-520.25" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
 </g>
 <!-- profiles&#45;&gt;bmr_eqs -->
 <g id="edge2" class="edge">
 <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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M451.8,-573.61C394.52,-528.24 315.9,-465.98 265.07,-425.71"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="266.71,-423.44 258.7,-420.67 263.23,-427.83 266.71,-423.44"/>
 </g>
 <!-- profiles&#45;&gt;bf_eqs -->
 <g id="edge1" class="edge">
 <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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M596.07,-738.67C651.88,-822.24 726.2,-933.54 766.03,-993.19"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="763.71,-994.76 770.48,-999.86 768.37,-991.65 763.71,-994.76"/>
 </g>
-<!-- biometrics -->
+<!-- food_costs -->
 <g id="node5" class="node">
+<title>food_costs</title>
+<path fill="none" stroke="black" d="M33.96,-732.4C33.96,-732.4 153.96,-732.4 153.96,-732.4 159.96,-732.4 165.96,-738.4 165.96,-744.4 165.96,-744.4 165.96,-807.4 165.96,-807.4 165.96,-813.4 159.96,-819.4 153.96,-819.4 153.96,-819.4 33.96,-819.4 33.96,-819.4 27.96,-819.4 21.96,-813.4 21.96,-807.4 21.96,-807.4 21.96,-744.4 21.96,-744.4 21.96,-738.4 27.96,-732.4 33.96,-732.4"/>
+<text text-anchor="start" x="54.96" y="-799" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">food_costs</text>
+<polyline fill="none" stroke="black" points="21.96,-789.4 165.96,-789.4 "/>
+<text text-anchor="start" x="28.96" y="-775.3" font-family="Helvetica,sans-Serif" font-size="12.00">food_id* </text>
+<text text-anchor="start" x="82.96" y="-775.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="28.96" y="-758.3" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id* </text>
+<text text-anchor="start" x="92.96" y="-758.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="28.96" y="-741.3" font-family="Helvetica,sans-Serif" font-size="12.00">cost </text>
+<text text-anchor="start" x="57.96" y="-741.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+</g>
+<!-- food_costs&#45;&gt;profiles -->
+<g id="edge3" class="edge">
+<title>food_costs&#45;&gt;profiles</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M166.44,-751.46C243.28,-725.54 364.33,-684.72 443.96,-657.86"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="445.33,-660.36 452.02,-655.15 443.54,-655.05 445.33,-660.36"/>
+</g>
+<!-- biometrics -->
+<g id="node6" class="node">
 <title>biometrics</title>
-<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>
+<path fill="none" stroke="black" d="M226.86,-1452.22C226.86,-1452.22 346.86,-1452.22 346.86,-1452.22 352.86,-1452.22 358.86,-1458.22 358.86,-1464.22 358.86,-1464.22 358.86,-1561.22 358.86,-1561.22 358.86,-1567.22 352.86,-1573.22 346.86,-1573.22 346.86,-1573.22 226.86,-1573.22 226.86,-1573.22 220.86,-1573.22 214.86,-1567.22 214.86,-1561.22 214.86,-1561.22 214.86,-1464.22 214.86,-1464.22 214.86,-1458.22 220.86,-1452.22 226.86,-1452.22"/>
+<text text-anchor="start" x="247.86" y="-1552.82" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">biometrics</text>
+<polyline fill="none" stroke="black" points="214.86,-1543.22 358.86,-1543.22 "/>
+<text text-anchor="start" x="221.86" y="-1529.12" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="242.86" y="-1529.12" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="221.86" y="-1512.12" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="271.86" y="-1512.12" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="221.86" y="-1495.12" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="275.86" y="-1495.12" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="221.86" y="-1478.12" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="260.86" y="-1478.12" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="221.86" y="-1461.12" font-family="Helvetica,sans-Serif" font-size="12.00">unit </text>
+<text text-anchor="start" x="248.86" y="-1461.12" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- biometric_log -->
-<g id="node6" class="node">
+<g id="node7" class="node">
 <title>biometric_log</title>
-<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>
+<path fill="none" stroke="black" d="M294.08,-972.3C294.08,-972.3 414.08,-972.3 414.08,-972.3 420.08,-972.3 426.08,-978.3 426.08,-984.3 426.08,-984.3 426.08,-1115.3 426.08,-1115.3 426.08,-1121.3 420.08,-1127.3 414.08,-1127.3 414.08,-1127.3 294.08,-1127.3 294.08,-1127.3 288.08,-1127.3 282.08,-1121.3 282.08,-1115.3 282.08,-1115.3 282.08,-984.3 282.08,-984.3 282.08,-978.3 288.08,-972.3 294.08,-972.3"/>
+<text text-anchor="start" x="304.08" y="-1106.9" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">biometric_log</text>
+<polyline fill="none" stroke="black" points="282.08,-1097.3 426.08,-1097.3 "/>
+<text text-anchor="start" x="289.08" y="-1083.2" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="310.08" y="-1083.2" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="289.08" y="-1066.2" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id </text>
+<text text-anchor="start" x="347.08" y="-1066.2" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="289.08" y="-1049.2" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="339.08" y="-1049.2" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="289.08" y="-1032.2" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="343.08" y="-1032.2" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="289.08" y="-1015.2" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
+<text text-anchor="start" x="320.08" y="-1015.2" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="289.08" y="-998.2" font-family="Helvetica,sans-Serif" font-size="12.00">tags </text>
+<text text-anchor="start" x="319.08" y="-998.2" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="289.08" y="-981.2" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="326.08" y="-981.2" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- biometric_log&#45;&gt;profiles -->
-<g id="edge3" class="edge">
+<g id="edge4" class="edge">
 <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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M385.66,-971.98C409.93,-912.16 443.98,-828.25 472.23,-758.63"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="474.88,-759.54 475.29,-751.07 469.69,-757.43 474.88,-759.54"/>
 </g>
 <!-- bio_log_entry -->
-<g id="node7" class="node">
+<g id="node8" class="node">
 <title>bio_log_entry</title>
-<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>
+<path fill="none" stroke="black" d="M11.78,-1139.51C11.78,-1139.51 131.78,-1139.51 131.78,-1139.51 137.78,-1139.51 143.78,-1145.51 143.78,-1151.51 143.78,-1151.51 143.78,-1214.51 143.78,-1214.51 143.78,-1220.51 137.78,-1226.51 131.78,-1226.51 131.78,-1226.51 11.78,-1226.51 11.78,-1226.51 5.78,-1226.51 -0.22,-1220.51 -0.22,-1214.51 -0.22,-1214.51 -0.22,-1151.51 -0.22,-1151.51 -0.22,-1145.51 5.78,-1139.51 11.78,-1139.51"/>
+<text text-anchor="start" x="22.78" y="-1206.11" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bio_log_entry</text>
+<polyline fill="none" stroke="black" points="-0.22,-1196.51 143.78,-1196.51 "/>
+<text text-anchor="start" x="6.78" y="-1182.41" font-family="Helvetica,sans-Serif" font-size="12.00">log_id* </text>
+<text text-anchor="start" x="51.78" y="-1182.41" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="6.78" y="-1165.41" font-family="Helvetica,sans-Serif" font-size="12.00">biometric_id* </text>
+<text text-anchor="start" x="90.78" y="-1165.41" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="6.78" y="-1148.41" font-family="Helvetica,sans-Serif" font-size="12.00">value </text>
+<text text-anchor="start" x="43.78" y="-1148.41" 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">
+<g id="edge5" class="edge">
 <title>bio_log_entry&#45;&gt;biometrics</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M100.34,-1226.8C136.73,-1282.57 199.99,-1379.55 242.63,-1444.91"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="240.49,-1446.76 247.2,-1451.93 245.18,-1443.7 240.49,-1446.76"/>
 </g>
 <!-- bio_log_entry&#45;&gt;biometric_log -->
-<g id="edge5" class="edge">
+<g id="edge6" class="edge">
 <title>bio_log_entry&#45;&gt;biometric_log</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M144.12,-1148.88C184.03,-1130.05 233.67,-1106.62 274.65,-1087.28"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="275.9,-1089.79 281.94,-1083.85 273.51,-1084.73 275.9,-1089.79"/>
 </g>
 <!-- recipes -->
-<g id="node8" class="node">
+<g id="node9" class="node">
 <title>recipes</title>
-<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>
+<path fill="none" stroke="black" d="M1007.81,-172.93C1007.81,-172.93 1127.81,-172.93 1127.81,-172.93 1133.81,-172.93 1139.81,-178.93 1139.81,-184.93 1139.81,-184.93 1139.81,-281.93 1139.81,-281.93 1139.81,-287.93 1133.81,-293.93 1127.81,-293.93 1127.81,-293.93 1007.81,-293.93 1007.81,-293.93 1001.81,-293.93 995.81,-287.93 995.81,-281.93 995.81,-281.93 995.81,-184.93 995.81,-184.93 995.81,-178.93 1001.81,-172.93 1007.81,-172.93"/>
+<text text-anchor="start" x="1040.81" y="-273.53" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipes</text>
+<polyline fill="none" stroke="black" points="995.81,-263.93 1139.81,-263.93 "/>
+<text text-anchor="start" x="1002.81" y="-249.83" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="1023.81" y="-249.83" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="1002.81" y="-232.83" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="1052.81" y="-232.83" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="1002.81" y="-215.83" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="1056.81" y="-215.83" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="1002.81" y="-198.83" font-family="Helvetica,sans-Serif" font-size="12.00">tagname </text>
+<text text-anchor="start" x="1060.81" y="-198.83" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="1002.81" y="-181.83" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="1041.81" y="-181.83" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- recipe_dat -->
-<g id="node9" class="node">
+<g id="node10" class="node">
 <title>recipe_dat</title>
-<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>
+<path fill="none" stroke="black" d="M1266.69,-329.7C1266.69,-329.7 1386.69,-329.7 1386.69,-329.7 1392.69,-329.7 1398.69,-335.7 1398.69,-341.7 1398.69,-341.7 1398.69,-421.7 1398.69,-421.7 1398.69,-427.7 1392.69,-433.7 1386.69,-433.7 1386.69,-433.7 1266.69,-433.7 1266.69,-433.7 1260.69,-433.7 1254.69,-427.7 1254.69,-421.7 1254.69,-421.7 1254.69,-341.7 1254.69,-341.7 1254.69,-335.7 1260.69,-329.7 1266.69,-329.7"/>
+<text text-anchor="start" x="1288.69" y="-413.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipe_dat</text>
+<polyline fill="none" stroke="black" points="1254.69,-403.7 1398.69,-403.7 "/>
+<text text-anchor="start" x="1261.69" y="-390.1" font-family="Helvetica,sans-Serif" font-size="12.00">recipe_id* </text>
+<text text-anchor="start" x="1325.69" y="-390.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="1261.69" y="-373.1" font-family="Helvetica,sans-Serif" font-size="12.00">food_id* </text>
+<text text-anchor="start" x="1315.69" y="-373.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="1261.69" y="-356.1" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
+<text text-anchor="start" x="1304.69" y="-356.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="1261.69" y="-339.1" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="1298.69" y="-339.1" 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">
+<g id="edge7" class="edge">
 <title>recipe_dat&#45;&gt;recipes</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M1254.57,-340.4C1221.19,-321.28 1181.43,-298.51 1147.2,-278.9"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="1148.31,-276.31 1139.98,-274.77 1145.53,-281.17 1148.31,-276.31"/>
 </g>
-<!-- meals -->
-<g id="node10" class="node">
-<title>meals</title>
-<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>
+<!-- meal_name -->
+<g id="node11" class="node">
+<title>meal_name</title>
+<path fill="none" stroke="black" d="M315.02,-0.17C315.02,-0.17 435.02,-0.17 435.02,-0.17 441.02,-0.17 447.02,-6.17 447.02,-12.17 447.02,-12.17 447.02,-58.17 447.02,-58.17 447.02,-64.17 441.02,-70.17 435.02,-70.17 435.02,-70.17 315.02,-70.17 315.02,-70.17 309.02,-70.17 303.02,-64.17 303.02,-58.17 303.02,-58.17 303.02,-12.17 303.02,-12.17 303.02,-6.17 309.02,-0.17 315.02,-0.17"/>
+<text text-anchor="start" x="333.02" y="-49.77" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">meal_name</text>
+<polyline fill="none" stroke="black" points="303.02,-40.17 447.02,-40.17 "/>
+<text text-anchor="start" x="310.02" y="-26.57" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="331.02" y="-26.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="310.02" y="-9.57" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="349.02" y="-9.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- food_log -->
-<g id="node11" class="node">
+<g id="node12" class="node">
 <title>food_log</title>
-<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>
+<path fill="none" stroke="black" d="M525.1,-50.47C525.1,-50.47 645.1,-50.47 645.1,-50.47 651.1,-50.47 657.1,-56.47 657.1,-62.47 657.1,-62.47 657.1,-210.47 657.1,-210.47 657.1,-216.47 651.1,-222.47 645.1,-222.47 645.1,-222.47 525.1,-222.47 525.1,-222.47 519.1,-222.47 513.1,-216.47 513.1,-210.47 513.1,-210.47 513.1,-62.47 513.1,-62.47 513.1,-56.47 519.1,-50.47 525.1,-50.47"/>
+<text text-anchor="start" x="554.1" y="-202.07" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">food_log</text>
+<polyline fill="none" stroke="black" points="513.1,-192.47 657.1,-192.47 "/>
+<text text-anchor="start" x="520.1" y="-178.87" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="541.1" y="-178.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="520.1" y="-161.87" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id </text>
+<text text-anchor="start" x="578.1" y="-161.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="520.1" y="-144.87" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="570.1" y="-144.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="520.1" y="-127.87" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="574.1" y="-127.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="520.1" y="-110.87" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
+<text text-anchor="start" x="551.1" y="-110.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="520.1" y="-93.87" font-family="Helvetica,sans-Serif" font-size="12.00">meal_id </text>
+<text text-anchor="start" x="571.1" y="-93.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="520.1" y="-76.87" font-family="Helvetica,sans-Serif" font-size="12.00">food_id </text>
+<text text-anchor="start" x="568.1" y="-76.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="520.1" y="-59.87" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
+<text text-anchor="start" x="563.1" y="-59.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
 <!-- food_log&#45;&gt;profiles -->
-<g id="edge8" class="edge">
+<g id="edge9" class="edge">
 <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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M572.33,-222.65C568.64,-248.35 564.72,-276.61 561.39,-302.62 552.94,-368.5 544.5,-441.93 537.79,-502.62"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="534.99,-502.45 536.9,-510.71 540.56,-503.07 534.99,-502.45"/>
 </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="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"/>
+<!-- food_log&#45;&gt;meal_name -->
+<g id="edge8" class="edge">
+<title>food_log&#45;&gt;meal_name</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M513.1,-101.75C494.25,-92.66 473.81,-82.81 454.59,-73.54"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="455.71,-70.97 447.29,-70.02 453.28,-76.01 455.71,-70.97"/>
 </g>
 <!-- recipe_log -->
-<g id="node12" class="node">
+<g id="node13" class="node">
 <title>recipe_log</title>
-<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>
+<path fill="none" stroke="black" d="M576.59,-305.82C576.59,-305.82 696.59,-305.82 696.59,-305.82 702.59,-305.82 708.59,-311.82 708.59,-317.82 708.59,-317.82 708.59,-465.82 708.59,-465.82 708.59,-471.82 702.59,-477.82 696.59,-477.82 696.59,-477.82 576.59,-477.82 576.59,-477.82 570.59,-477.82 564.59,-471.82 564.59,-465.82 564.59,-465.82 564.59,-317.82 564.59,-317.82 564.59,-311.82 570.59,-305.82 576.59,-305.82"/>
+<text text-anchor="start" x="598.59" y="-457.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipe_log</text>
+<polyline fill="none" stroke="black" points="564.59,-447.82 708.59,-447.82 "/>
+<text text-anchor="start" x="571.59" y="-434.22" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="592.59" y="-434.22" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="571.59" y="-417.22" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id </text>
+<text text-anchor="start" x="629.59" y="-417.22" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="571.59" y="-400.22" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="621.59" y="-400.22" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="571.59" y="-383.22" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="625.59" y="-383.22" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="571.59" y="-366.22" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
+<text text-anchor="start" x="602.59" y="-366.22" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="571.59" y="-349.22" font-family="Helvetica,sans-Serif" font-size="12.00">meal_id </text>
+<text text-anchor="start" x="622.59" y="-349.22" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="571.59" y="-332.22" font-family="Helvetica,sans-Serif" font-size="12.00">recipe_id </text>
+<text text-anchor="start" x="629.59" y="-332.22" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="571.59" y="-315.22" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
+<text text-anchor="start" x="614.59" y="-315.22" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
 <!-- recipe_log&#45;&gt;profiles -->
-<g id="edge11" class="edge">
+<g id="edge12" class="edge">
 <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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M595.97,-478.12C592.12,-486.29 588.17,-494.68 584.19,-503.13"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="581.57,-502.14 580.69,-510.57 586.63,-504.52 581.57,-502.14"/>
 </g>
 <!-- recipe_log&#45;&gt;recipes -->
-<g id="edge9" class="edge">
+<g id="edge10" class="edge">
 <title>recipe_log&#45;&gt;recipes</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M708.76,-365.31C785.99,-336.94 908.16,-292.07 988.15,-262.69"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="989.21,-265.28 995.75,-259.89 987.28,-260.02 989.21,-265.28"/>
 </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="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"/>
+<!-- recipe_log&#45;&gt;meal_name -->
+<g id="edge11" class="edge">
+<title>recipe_log&#45;&gt;meal_name</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M569.92,-305.6C550.39,-280.01 529.13,-251.83 509.9,-225.67 472.74,-175.1 431.18,-116 404.14,-77.2"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="406.14,-75.16 399.27,-70.19 401.54,-78.36 406.14,-75.16"/>
 </g>
 <!-- rda -->
-<g id="node13" class="node">
+<g id="node14" class="node">
 <title>rda</title>
-<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>
+<path fill="none" stroke="black" d="M879.76,-657.73C879.76,-657.73 999.76,-657.73 999.76,-657.73 1005.76,-657.73 1011.76,-663.73 1011.76,-669.73 1011.76,-669.73 1011.76,-732.73 1011.76,-732.73 1011.76,-738.73 1005.76,-744.73 999.76,-744.73 999.76,-744.73 879.76,-744.73 879.76,-744.73 873.76,-744.73 867.76,-738.73 867.76,-732.73 867.76,-732.73 867.76,-669.73 867.76,-669.73 867.76,-663.73 873.76,-657.73 879.76,-657.73"/>
+<text text-anchor="start" x="927.76" y="-724.33" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">rda</text>
+<polyline fill="none" stroke="black" points="867.76,-714.73 1011.76,-714.73 "/>
+<text text-anchor="start" x="874.76" y="-700.63" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id* </text>
+<text text-anchor="start" x="938.76" y="-700.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="874.76" y="-683.63" font-family="Helvetica,sans-Serif" font-size="12.00">nutr_id* </text>
+<text text-anchor="start" x="926.76" y="-683.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="874.76" y="-666.63" font-family="Helvetica,sans-Serif" font-size="12.00">rda </text>
+<text text-anchor="start" x="898.76" y="-666.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
 <!-- rda&#45;&gt;profiles -->
-<g id="edge12" class="edge">
+<g id="edge13" class="edge">
 <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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M867.35,-688.97C793.96,-676.54 680.67,-657.36 604.52,-644.47"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="604.7,-641.66 596.35,-643.08 603.77,-647.18 604.7,-641.66"/>
 </g>
 </g>
 </svg>
similarity index 100%
rename from sql/data/meals.csv
rename to sql/data/meal_name.csv
index 24ddab4cd7be842d2c7dcb930af51c2b6b4cb1cc..b16bdc9c328c75be267dda7f0a3fda28fe3474b6 100644 (file)
@@ -130,7 +130,7 @@ CREATE TABLE recipe_dat (
 -- Food (and recipe) logs
 --------------------------------
 
-CREATE TABLE meals (
+CREATE TABLE meal_name (
   -- predefined, includes standard three, snacks, brunch, and 3 optional/extra meals
   id integer PRIMARY KEY AUTOINCREMENT,
   name text NOT NULL
@@ -146,7 +146,7 @@ CREATE TABLE food_log (
   food_id int NOT NULL,
   grams real NOT NULL,
   FOREIGN KEY (profile_id) REFERENCES profiles (id) ON UPDATE CASCADE,
-  FOREIGN KEY (meal_id) REFERENCES meals (id) ON UPDATE CASCADE
+  FOREIGN KEY (meal_id) REFERENCES meal_name (id) ON UPDATE CASCADE
 );
 
 CREATE TABLE recipe_log (
@@ -159,7 +159,7 @@ CREATE TABLE recipe_log (
   recipe_id int NOT NULL,
   grams real NOT NULL,
   FOREIGN KEY (profile_id) REFERENCES profiles (id) ON UPDATE CASCADE,
-  FOREIGN KEY (meal_id) REFERENCES meals (id) ON UPDATE CASCADE,
+  FOREIGN KEY (meal_id) REFERENCES meal_name (id) ON UPDATE CASCADE,
   FOREIGN KEY (recipe_id) REFERENCES recipes (id) ON UPDATE CASCADE
 );