rename to LICENSE.txt, add CHANGELOG.md, update docs/nt.svg
authorgamesguru <nutratracker@protonmail.com>
Sun, 10 Apr 2022 16:15:00 +0000 (12:15 -0400)
committergamesguru <nutratracker@protonmail.com>
Sun, 10 Apr 2022 19:44:58 +0000 (15:44 -0400)
CHANGELOG.md [new file with mode: 0644]
LICENSE.txt [moved from LICENSE with 100% similarity]
docs/nt.svg
sql/tables.sql

diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644 (file)
index 0000000..12870f4
--- /dev/null
@@ -0,0 +1,63 @@
+# Changelog
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [Unreleased]
+### Changed
+- Replace grams with `msre_id` and `amt` in `food_log` table
+
+## [0.0.4] - 2021-06-17
+### Added
+- Empty `__init__.py` file to make packagable with `cli` repo (as a `git submodule`)
+- Tables `custom_foods` and respective `cf_dat`
+
+### Changed
+- Build with `python sql/__init__.py` (removed root-level script `build.py`)
+- Rename pre-populted `meals` table to `meal_name`
+
+### Fixed
+- Slight bash inconvenience when using `export.sh`
+
+### Removed
+- `food_costs` table
+
+## [0.0.3] - 2021-05-24
+### Added
+- More dummy CSV data (not production ready)
+- `tagname` column to `recipes` table
+
+### Changed
+- `date` column uses `INT` type now, instead of `date`
+- Drop `created` and `updated` fields off of `rda` table, add them to `biometrics`
+
+### Removed
+- `last_sync` column (future release? Feature is planned, but not alloted)
+- `guid` parameter from `functions.sql`
+
+## [0.0.2] - 2021-05-24
+### Added
+`SCRIPT_DIR` in `sql/__init__.py` to help track `cwd`
+
+### Removed
+- `guid` columns (may return in a future release)
+
+## [0.0.1] - 2021-05-21
+### Added
+- Version table
+- Travis CI configuration file `.travis.yml`
+- `functions.sql` for use in Python client
+- [TODO] Placeholder for initial upgrade script (`sql/upgrade_scripts/0.0.1.sql`)
+- `food_costs` table (lone table, functionality not yet implemented)
+
+### Changed
+- Use Python for import script (`build.py` replaced `import.sql`)
+
+## [0.0.0] - 2020-09-22
+### Added
+- Initial release of table schema design
+- Import script `import.sql` (SQL)
+- Export script `export.sh` (Shell)
+- Rudimentary dummy data in CSV files (e.g. `food_log.csv`, `biometric_log.csv`, `profiles.csv`)
+- Database diagram generated via `docs/sqleton.sh`
similarity index 100%
rename from LICENSE
rename to LICENSE.txt
index 3b6a0bafe5771b16dc5b8f8ceeee896bec9a60d3..2b4a91e97fbfd779a5e81945f18153d2835ca26a 100644 (file)
 <!-- Generated by graphviz version 2.43.0 (0)
  -->
 <!-- Title: undefined Pages: 1 -->
-<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)">
+<svg width="1088pt" height="1576pt"
+ viewBox="0.00 0.00 1087.60 1575.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 1525.8)">
 <title>undefined</title>
-<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>
+<polygon fill="white" stroke="transparent" points="-28.8,49.8 -28.8,-1525.8 1058.8,-1525.8 1058.8,49.8 -28.8,49.8"/>
+<text text-anchor="start" x="486.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="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>
+<path fill="none" stroke="black" d="M651.24,-355.64C651.24,-355.64 771.24,-355.64 771.24,-355.64 777.24,-355.64 783.24,-361.64 783.24,-367.64 783.24,-367.64 783.24,-447.64 783.24,-447.64 783.24,-453.64 777.24,-459.64 771.24,-459.64 771.24,-459.64 651.24,-459.64 651.24,-459.64 645.24,-459.64 639.24,-453.64 639.24,-447.64 639.24,-447.64 639.24,-367.64 639.24,-367.64 639.24,-361.64 645.24,-355.64 651.24,-355.64"/>
+<text text-anchor="start" x="684.24" y="-439.24" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">version</text>
+<polyline fill="none" stroke="black" points="639.24,-429.64 783.24,-429.64 "/>
+<text text-anchor="start" x="646.24" y="-416.04" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="667.24" y="-416.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="646.24" y="-399.04" font-family="Helvetica,sans-Serif" font-size="12.00">version </text>
+<text text-anchor="start" x="694.24" y="-399.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="646.24" y="-382.04" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="696.24" y="-382.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
+<text text-anchor="start" x="646.24" y="-365.04" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="683.24" y="-365.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="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>
+<path fill="none" stroke="black" d="M11.55,-739.03C11.55,-739.03 131.55,-739.03 131.55,-739.03 137.55,-739.03 143.55,-745.03 143.55,-751.03 143.55,-751.03 143.55,-797.03 143.55,-797.03 143.55,-803.03 137.55,-809.03 131.55,-809.03 131.55,-809.03 11.55,-809.03 11.55,-809.03 5.55,-809.03 -0.45,-803.03 -0.45,-797.03 -0.45,-797.03 -0.45,-751.03 -0.45,-751.03 -0.45,-745.03 5.55,-739.03 11.55,-739.03"/>
+<text text-anchor="start" x="40.55" y="-788.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bmr_eqs</text>
+<polyline fill="none" stroke="black" points="-0.45,-779.03 143.55,-779.03 "/>
+<text text-anchor="start" x="6.55" y="-765.43" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="27.55" y="-765.43" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="6.55" y="-748.43" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="45.55" y="-748.43" 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="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>
+<path fill="none" stroke="black" d="M688.81,-821.99C688.81,-821.99 808.81,-821.99 808.81,-821.99 814.81,-821.99 820.81,-827.99 820.81,-833.99 820.81,-833.99 820.81,-879.99 820.81,-879.99 820.81,-885.99 814.81,-891.99 808.81,-891.99 808.81,-891.99 688.81,-891.99 688.81,-891.99 682.81,-891.99 676.81,-885.99 676.81,-879.99 676.81,-879.99 676.81,-833.99 676.81,-833.99 676.81,-827.99 682.81,-821.99 688.81,-821.99"/>
+<text text-anchor="start" x="724.81" y="-871.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bf_eqs</text>
+<polyline fill="none" stroke="black" points="676.81,-861.99 820.81,-861.99 "/>
+<text text-anchor="start" x="683.81" y="-848.39" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="704.81" y="-848.39" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="683.81" y="-831.39" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="722.81" y="-831.39" 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="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>
+<path fill="none" stroke="black" d="M413.74,-642.17C413.74,-642.17 533.74,-642.17 533.74,-642.17 539.74,-642.17 545.74,-648.17 545.74,-654.17 545.74,-654.17 545.74,-870.17 545.74,-870.17 545.74,-876.17 539.74,-882.17 533.74,-882.17 533.74,-882.17 413.74,-882.17 413.74,-882.17 407.74,-882.17 401.74,-876.17 401.74,-870.17 401.74,-870.17 401.74,-654.17 401.74,-654.17 401.74,-648.17 407.74,-642.17 413.74,-642.17"/>
+<text text-anchor="start" x="445.74" y="-861.77" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">profiles</text>
+<polyline fill="none" stroke="black" points="401.74,-852.17 545.74,-852.17 "/>
+<text text-anchor="start" x="408.74" y="-838.57" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="429.74" y="-838.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="408.74" y="-821.57" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="447.74" y="-821.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="408.74" y="-804.57" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="458.74" y="-804.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="408.74" y="-787.57" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="462.74" y="-787.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="408.74" y="-770.57" font-family="Helvetica,sans-Serif" font-size="12.00">eula </text>
+<text text-anchor="start" x="438.74" y="-770.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="408.74" y="-753.57" font-family="Helvetica,sans-Serif" font-size="12.00">gender </text>
+<text text-anchor="start" x="455.74" y="-753.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="408.74" y="-736.57" font-family="Helvetica,sans-Serif" font-size="12.00">dob </text>
+<text text-anchor="start" x="435.74" y="-736.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">date</text>
+<text text-anchor="start" x="408.74" y="-719.57" font-family="Helvetica,sans-Serif" font-size="12.00">act_lvl </text>
+<text text-anchor="start" x="450.74" y="-719.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="408.74" y="-702.57" font-family="Helvetica,sans-Serif" font-size="12.00">goal_wt </text>
+<text text-anchor="start" x="458.74" y="-702.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="408.74" y="-685.57" font-family="Helvetica,sans-Serif" font-size="12.00">goal_bf </text>
+<text text-anchor="start" x="456.74" y="-685.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="408.74" y="-668.57" font-family="Helvetica,sans-Serif" font-size="12.00">bmr_eq_id </text>
+<text text-anchor="start" x="475.74" y="-668.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="408.74" y="-651.57" font-family="Helvetica,sans-Serif" font-size="12.00">bf_eq_id </text>
+<text text-anchor="start" x="462.74" y="-651.57" 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="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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M401.37,-764.3C331.14,-766.37 224.78,-769.51 151.95,-771.66"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="151.59,-768.86 143.68,-771.9 151.76,-774.46 151.59,-768.86"/>
 </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="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>
-<!-- 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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M546.01,-787.08C583.76,-800.1 630.06,-816.06 668.88,-829.44"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="668.07,-832.12 676.54,-832.08 669.89,-826.83 668.07,-832.12"/>
 </g>
 <!-- biometrics -->
-<g id="node6" class="node">
+<g id="node5" class="node">
 <title>biometrics</title>
-<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>
+<path fill="none" stroke="black" d="M133.64,-1375.11C133.64,-1375.11 253.64,-1375.11 253.64,-1375.11 259.64,-1375.11 265.64,-1381.11 265.64,-1387.11 265.64,-1387.11 265.64,-1484.11 265.64,-1484.11 265.64,-1490.11 259.64,-1496.11 253.64,-1496.11 253.64,-1496.11 133.64,-1496.11 133.64,-1496.11 127.64,-1496.11 121.64,-1490.11 121.64,-1484.11 121.64,-1484.11 121.64,-1387.11 121.64,-1387.11 121.64,-1381.11 127.64,-1375.11 133.64,-1375.11"/>
+<text text-anchor="start" x="154.64" y="-1475.71" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">biometrics</text>
+<polyline fill="none" stroke="black" points="121.64,-1466.11 265.64,-1466.11 "/>
+<text text-anchor="start" x="128.64" y="-1452.01" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="149.64" y="-1452.01" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="128.64" y="-1435.01" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="178.64" y="-1435.01" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="128.64" y="-1418.01" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="182.64" y="-1418.01" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="128.64" y="-1401.01" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="167.64" y="-1401.01" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="128.64" y="-1384.01" font-family="Helvetica,sans-Serif" font-size="12.00">unit </text>
+<text text-anchor="start" x="155.64" y="-1384.01" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- biometric_log -->
-<g id="node7" class="node">
+<g id="node6" class="node">
 <title>biometric_log</title>
-<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>
+<path fill="none" stroke="black" d="M500.43,-1029.99C500.43,-1029.99 620.43,-1029.99 620.43,-1029.99 626.43,-1029.99 632.43,-1035.99 632.43,-1041.99 632.43,-1041.99 632.43,-1172.99 632.43,-1172.99 632.43,-1178.99 626.43,-1184.99 620.43,-1184.99 620.43,-1184.99 500.43,-1184.99 500.43,-1184.99 494.43,-1184.99 488.43,-1178.99 488.43,-1172.99 488.43,-1172.99 488.43,-1041.99 488.43,-1041.99 488.43,-1035.99 494.43,-1029.99 500.43,-1029.99"/>
+<text text-anchor="start" x="510.43" y="-1164.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">biometric_log</text>
+<polyline fill="none" stroke="black" points="488.43,-1154.99 632.43,-1154.99 "/>
+<text text-anchor="start" x="495.43" y="-1140.89" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="516.43" y="-1140.89" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="495.43" y="-1123.89" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id </text>
+<text text-anchor="start" x="553.43" y="-1123.89" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="495.43" y="-1106.89" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="545.43" y="-1106.89" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="495.43" y="-1089.89" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="549.43" y="-1089.89" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="495.43" y="-1072.89" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
+<text text-anchor="start" x="526.43" y="-1072.89" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="495.43" y="-1055.89" font-family="Helvetica,sans-Serif" font-size="12.00">tags </text>
+<text text-anchor="start" x="525.43" y="-1055.89" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="495.43" y="-1038.89" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="532.43" y="-1038.89" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- biometric_log&#45;&gt;profiles -->
-<g id="edge4" class="edge">
+<g id="edge3" class="edge">
 <title>biometric_log&#45;&gt;profiles</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M540.86,-1029.56C530.53,-988.39 517.58,-936.81 505.82,-889.96"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="508.53,-889.26 503.86,-882.18 503.1,-890.62 508.53,-889.26"/>
 </g>
 <!-- bio_log_entry -->
-<g id="node8" class="node">
+<g id="node7" class="node">
 <title>bio_log_entry</title>
-<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>
+<path fill="none" stroke="black" d="M452.04,-1302.14C452.04,-1302.14 572.04,-1302.14 572.04,-1302.14 578.04,-1302.14 584.04,-1308.14 584.04,-1314.14 584.04,-1314.14 584.04,-1377.14 584.04,-1377.14 584.04,-1383.14 578.04,-1389.14 572.04,-1389.14 572.04,-1389.14 452.04,-1389.14 452.04,-1389.14 446.04,-1389.14 440.04,-1383.14 440.04,-1377.14 440.04,-1377.14 440.04,-1314.14 440.04,-1314.14 440.04,-1308.14 446.04,-1302.14 452.04,-1302.14"/>
+<text text-anchor="start" x="463.04" y="-1368.74" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">bio_log_entry</text>
+<polyline fill="none" stroke="black" points="440.04,-1359.14 584.04,-1359.14 "/>
+<text text-anchor="start" x="447.04" y="-1345.04" font-family="Helvetica,sans-Serif" font-size="12.00">log_id* </text>
+<text text-anchor="start" x="492.04" y="-1345.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="447.04" y="-1328.04" font-family="Helvetica,sans-Serif" font-size="12.00">biometric_id* </text>
+<text text-anchor="start" x="531.04" y="-1328.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="447.04" y="-1311.04" font-family="Helvetica,sans-Serif" font-size="12.00">value </text>
+<text text-anchor="start" x="484.04" y="-1311.04" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
 <!-- bio_log_entry&#45;&gt;biometrics -->
-<g id="edge5" class="edge">
+<g id="edge4" class="edge">
 <title>bio_log_entry&#45;&gt;biometrics</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M439.79,-1366.06C390.31,-1380.04 324.67,-1398.59 273.62,-1413.01"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="272.82,-1410.33 265.88,-1415.2 274.34,-1415.72 272.82,-1410.33"/>
 </g>
 <!-- bio_log_entry&#45;&gt;biometric_log -->
-<g id="edge6" class="edge">
+<g id="edge5" class="edge">
 <title>bio_log_entry&#45;&gt;biometric_log</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M520.92,-1301.96C527.08,-1271.63 535.5,-1230.2 542.98,-1193.37"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="545.81,-1193.5 544.66,-1185.1 540.32,-1192.39 545.81,-1193.5"/>
 </g>
 <!-- recipes -->
-<g id="node9" class="node">
+<g id="node8" class="node">
 <title>recipes</title>
-<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>
+<path fill="none" stroke="black" d="M223.92,-104.97C223.92,-104.97 343.92,-104.97 343.92,-104.97 349.92,-104.97 355.92,-110.97 355.92,-116.97 355.92,-116.97 355.92,-213.97 355.92,-213.97 355.92,-219.97 349.92,-225.97 343.92,-225.97 343.92,-225.97 223.92,-225.97 223.92,-225.97 217.92,-225.97 211.92,-219.97 211.92,-213.97 211.92,-213.97 211.92,-116.97 211.92,-116.97 211.92,-110.97 217.92,-104.97 223.92,-104.97"/>
+<text text-anchor="start" x="256.92" y="-205.57" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipes</text>
+<polyline fill="none" stroke="black" points="211.92,-195.97 355.92,-195.97 "/>
+<text text-anchor="start" x="218.92" y="-181.87" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="239.92" y="-181.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="218.92" y="-164.87" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="268.92" y="-164.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="218.92" y="-147.87" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="272.92" y="-147.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="218.92" y="-130.87" font-family="Helvetica,sans-Serif" font-size="12.00">tagname </text>
+<text text-anchor="start" x="276.92" y="-130.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="218.92" y="-113.87" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="257.92" y="-113.87" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- recipe_dat -->
-<g id="node10" class="node">
+<g id="node9" class="node">
 <title>recipe_dat</title>
-<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>
+<path fill="none" stroke="black" d="M525.58,-0.32C525.58,-0.32 645.58,-0.32 645.58,-0.32 651.58,-0.32 657.58,-6.32 657.58,-12.32 657.58,-12.32 657.58,-92.32 657.58,-92.32 657.58,-98.32 651.58,-104.32 645.58,-104.32 645.58,-104.32 525.58,-104.32 525.58,-104.32 519.58,-104.32 513.58,-98.32 513.58,-92.32 513.58,-92.32 513.58,-12.32 513.58,-12.32 513.58,-6.32 519.58,-0.32 525.58,-0.32"/>
+<text text-anchor="start" x="547.58" y="-83.92" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipe_dat</text>
+<polyline fill="none" stroke="black" points="513.58,-74.32 657.58,-74.32 "/>
+<text text-anchor="start" x="520.58" y="-60.72" font-family="Helvetica,sans-Serif" font-size="12.00">recipe_id* </text>
+<text text-anchor="start" x="584.58" y="-60.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="520.58" y="-43.72" font-family="Helvetica,sans-Serif" font-size="12.00">food_id* </text>
+<text text-anchor="start" x="574.58" y="-43.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="520.58" y="-26.72" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
+<text text-anchor="start" x="563.58" y="-26.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="520.58" y="-9.72" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="557.58" y="-9.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- recipe_dat&#45;&gt;recipes -->
-<g id="edge7" class="edge">
+<g id="edge6" class="edge">
 <title>recipe_dat&#45;&gt;recipes</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M513.32,-79.42C468.25,-96.33 410.18,-118.11 363.75,-135.52"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="362.61,-132.96 356.11,-138.39 364.58,-138.2 362.61,-132.96"/>
 </g>
-<!-- meal_name -->
+<!-- custom_foods -->
+<g id="node10" class="node">
+<title>custom_foods</title>
+<path fill="none" stroke="black" d="M722.24,-941.03C722.24,-941.03 842.24,-941.03 842.24,-941.03 848.24,-941.03 854.24,-947.03 854.24,-953.03 854.24,-953.03 854.24,-1050.03 854.24,-1050.03 854.24,-1056.03 848.24,-1062.03 842.24,-1062.03 842.24,-1062.03 722.24,-1062.03 722.24,-1062.03 716.24,-1062.03 710.24,-1056.03 710.24,-1050.03 710.24,-1050.03 710.24,-953.03 710.24,-953.03 710.24,-947.03 716.24,-941.03 722.24,-941.03"/>
+<text text-anchor="start" x="732.24" y="-1041.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">custom_foods</text>
+<polyline fill="none" stroke="black" points="710.24,-1032.03 854.24,-1032.03 "/>
+<text text-anchor="start" x="717.24" y="-1017.93" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="738.24" y="-1017.93" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="717.24" y="-1000.93" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="767.24" y="-1000.93" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="717.24" y="-983.93" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="771.24" y="-983.93" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="717.24" y="-966.93" font-family="Helvetica,sans-Serif" font-size="12.00">tagname </text>
+<text text-anchor="start" x="775.24" y="-966.93" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+<text text-anchor="start" x="717.24" y="-949.93" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="756.24" y="-949.93" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+</g>
+<!-- cf_dat -->
 <g id="node11" class="node">
+<title>cf_dat</title>
+<path fill="none" stroke="black" d="M898.26,-923.23C898.26,-923.23 1018.26,-923.23 1018.26,-923.23 1024.26,-923.23 1030.26,-929.23 1030.26,-935.23 1030.26,-935.23 1030.26,-1015.23 1030.26,-1015.23 1030.26,-1021.23 1024.26,-1027.23 1018.26,-1027.23 1018.26,-1027.23 898.26,-1027.23 898.26,-1027.23 892.26,-1027.23 886.26,-1021.23 886.26,-1015.23 886.26,-1015.23 886.26,-935.23 886.26,-935.23 886.26,-929.23 892.26,-923.23 898.26,-923.23"/>
+<text text-anchor="start" x="936.26" y="-1006.83" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">cf_dat</text>
+<polyline fill="none" stroke="black" points="886.26,-997.23 1030.26,-997.23 "/>
+<text text-anchor="start" x="893.26" y="-983.63" font-family="Helvetica,sans-Serif" font-size="12.00">cf_id* </text>
+<text text-anchor="start" x="931.26" y="-983.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="893.26" y="-966.63" font-family="Helvetica,sans-Serif" font-size="12.00">nutr_id* </text>
+<text text-anchor="start" x="945.26" y="-966.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="893.26" y="-949.63" font-family="Helvetica,sans-Serif" font-size="12.00">nutr_val </text>
+<text text-anchor="start" x="945.26" y="-949.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+<text text-anchor="start" x="893.26" y="-932.63" font-family="Helvetica,sans-Serif" font-size="12.00">notes </text>
+<text text-anchor="start" x="930.26" y="-932.63" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
+</g>
+<!-- cf_dat&#45;&gt;custom_foods -->
+<g id="edge7" class="edge">
+<title>cf_dat&#45;&gt;custom_foods</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M886.16,-986C878.49,-987.15 870.65,-988.32 862.89,-989.48"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="862.02,-986.78 854.52,-990.73 862.84,-992.32 862.02,-986.78"/>
+</g>
+<!-- meal_name -->
+<g id="node12" 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>
+<path fill="none" stroke="black" d="M16.38,-369.66C16.38,-369.66 136.38,-369.66 136.38,-369.66 142.38,-369.66 148.38,-375.66 148.38,-381.66 148.38,-381.66 148.38,-427.66 148.38,-427.66 148.38,-433.66 142.38,-439.66 136.38,-439.66 136.38,-439.66 16.38,-439.66 16.38,-439.66 10.38,-439.66 4.38,-433.66 4.38,-427.66 4.38,-427.66 4.38,-381.66 4.38,-381.66 4.38,-375.66 10.38,-369.66 16.38,-369.66"/>
+<text text-anchor="start" x="34.38" y="-419.26" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">meal_name</text>
+<polyline fill="none" stroke="black" points="4.38,-409.66 148.38,-409.66 "/>
+<text text-anchor="start" x="11.38" y="-396.06" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="32.38" y="-396.06" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="11.38" y="-379.06" font-family="Helvetica,sans-Serif" font-size="12.00">name </text>
+<text text-anchor="start" x="50.38" y="-379.06" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">text</text>
 </g>
 <!-- food_log -->
-<g id="node12" class="node">
+<g id="node13" class="node">
 <title>food_log</title>
-<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>
+<path fill="none" stroke="black" d="M371.22,-362.39C371.22,-362.39 491.22,-362.39 491.22,-362.39 497.22,-362.39 503.22,-368.39 503.22,-374.39 503.22,-374.39 503.22,-539.39 503.22,-539.39 503.22,-545.39 497.22,-551.39 491.22,-551.39 491.22,-551.39 371.22,-551.39 371.22,-551.39 365.22,-551.39 359.22,-545.39 359.22,-539.39 359.22,-539.39 359.22,-374.39 359.22,-374.39 359.22,-368.39 365.22,-362.39 371.22,-362.39"/>
+<text text-anchor="start" x="400.22" y="-530.99" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">food_log</text>
+<polyline fill="none" stroke="black" points="359.22,-521.39 503.22,-521.39 "/>
+<text text-anchor="start" x="366.22" y="-507.29" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="387.22" y="-507.29" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="366.22" y="-490.29" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id </text>
+<text text-anchor="start" x="424.22" y="-490.29" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="366.22" y="-473.29" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="416.22" y="-473.29" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="366.22" y="-456.29" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="420.22" y="-456.29" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="366.22" y="-439.29" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
+<text text-anchor="start" x="397.22" y="-439.29" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="366.22" y="-422.29" font-family="Helvetica,sans-Serif" font-size="12.00">meal_id </text>
+<text text-anchor="start" x="417.22" y="-422.29" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="366.22" y="-405.29" font-family="Helvetica,sans-Serif" font-size="12.00">food_id </text>
+<text text-anchor="start" x="414.22" y="-405.29" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="366.22" y="-388.29" font-family="Helvetica,sans-Serif" font-size="12.00">msre_id </text>
+<text text-anchor="start" x="417.22" y="-388.29" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="366.22" y="-371.29" font-family="Helvetica,sans-Serif" font-size="12.00">amt </text>
+<text text-anchor="start" x="394.22" y="-371.29" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
 <!-- food_log&#45;&gt;profiles -->
 <g id="edge9" class="edge">
 <title>food_log&#45;&gt;profiles</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M444.38,-551.39C448.01,-577.45 452.01,-606.17 455.86,-633.8"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="453.12,-634.4 456.99,-641.94 458.66,-633.63 453.12,-634.4"/>
 </g>
 <!-- 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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M359.01,-396.54C348.95,-390.66 338.36,-385.6 327.59,-382.12 272.22,-364.23 206.64,-370.99 156.37,-381.63"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="155.66,-378.92 148.44,-383.36 156.85,-384.39 155.66,-378.92"/>
 </g>
 <!-- recipe_log -->
-<g id="node13" class="node">
+<g id="node14" class="node">
 <title>recipe_log</title>
-<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>
+<path fill="none" stroke="black" d="M192.39,-385.32C192.39,-385.32 312.39,-385.32 312.39,-385.32 318.39,-385.32 324.39,-391.32 324.39,-397.32 324.39,-397.32 324.39,-545.32 324.39,-545.32 324.39,-551.32 318.39,-557.32 312.39,-557.32 312.39,-557.32 192.39,-557.32 192.39,-557.32 186.39,-557.32 180.39,-551.32 180.39,-545.32 180.39,-545.32 180.39,-397.32 180.39,-397.32 180.39,-391.32 186.39,-385.32 192.39,-385.32"/>
+<text text-anchor="start" x="214.39" y="-536.92" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">recipe_log</text>
+<polyline fill="none" stroke="black" points="180.39,-527.32 324.39,-527.32 "/>
+<text text-anchor="start" x="187.39" y="-513.72" font-family="Helvetica,sans-Serif" font-size="12.00">id* </text>
+<text text-anchor="start" x="208.39" y="-513.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="187.39" y="-496.72" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id </text>
+<text text-anchor="start" x="245.39" y="-496.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="187.39" y="-479.72" font-family="Helvetica,sans-Serif" font-size="12.00">created </text>
+<text text-anchor="start" x="237.39" y="-479.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="187.39" y="-462.72" font-family="Helvetica,sans-Serif" font-size="12.00">updated </text>
+<text text-anchor="start" x="241.39" y="-462.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="187.39" y="-445.72" font-family="Helvetica,sans-Serif" font-size="12.00">date </text>
+<text text-anchor="start" x="218.39" y="-445.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="187.39" y="-428.72" font-family="Helvetica,sans-Serif" font-size="12.00">meal_id </text>
+<text text-anchor="start" x="238.39" y="-428.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="187.39" y="-411.72" font-family="Helvetica,sans-Serif" font-size="12.00">recipe_id </text>
+<text text-anchor="start" x="245.39" y="-411.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="187.39" y="-394.72" font-family="Helvetica,sans-Serif" font-size="12.00">grams </text>
+<text text-anchor="start" x="230.39" y="-394.72" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
 <!-- recipe_log&#45;&gt;profiles -->
 <g id="edge12" class="edge">
 <title>recipe_log&#45;&gt;profiles</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M317.91,-557.41C342.58,-589.83 370.88,-627.01 396.53,-660.72"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="394.55,-662.74 401.62,-667.41 399,-659.35 394.55,-662.74"/>
 </g>
 <!-- recipe_log&#45;&gt;recipes -->
 <g id="edge10" class="edge">
 <title>recipe_log&#45;&gt;recipes</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M261.26,-385.31C266.18,-337.57 272.22,-279 276.82,-234.32"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="279.63,-234.39 277.67,-226.14 274.06,-233.81 279.63,-234.39"/>
 </g>
 <!-- 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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M180.29,-444.02C172.46,-441.05 164.45,-438.02 156.53,-435.02"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="157.12,-432.25 148.65,-432.03 155.14,-437.49 157.12,-432.25"/>
 </g>
 <!-- rda -->
-<g id="node14" class="node">
+<g id="node15" class="node">
 <title>rda</title>
-<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>
+<path fill="none" stroke="black" d="M195.19,-1017.08C195.19,-1017.08 315.19,-1017.08 315.19,-1017.08 321.19,-1017.08 327.19,-1023.08 327.19,-1029.08 327.19,-1029.08 327.19,-1092.08 327.19,-1092.08 327.19,-1098.08 321.19,-1104.08 315.19,-1104.08 315.19,-1104.08 195.19,-1104.08 195.19,-1104.08 189.19,-1104.08 183.19,-1098.08 183.19,-1092.08 183.19,-1092.08 183.19,-1029.08 183.19,-1029.08 183.19,-1023.08 189.19,-1017.08 195.19,-1017.08"/>
+<text text-anchor="start" x="243.19" y="-1083.68" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">rda</text>
+<polyline fill="none" stroke="black" points="183.19,-1074.08 327.19,-1074.08 "/>
+<text text-anchor="start" x="190.19" y="-1059.98" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id* </text>
+<text text-anchor="start" x="254.19" y="-1059.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="190.19" y="-1042.98" font-family="Helvetica,sans-Serif" font-size="12.00">nutr_id* </text>
+<text text-anchor="start" x="242.19" y="-1042.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">int</text>
+<text text-anchor="start" x="190.19" y="-1025.98" font-family="Helvetica,sans-Serif" font-size="12.00">rda </text>
+<text text-anchor="start" x="214.19" y="-1025.98" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
 </g>
 <!-- rda&#45;&gt;profiles -->
 <g id="edge13" class="edge">
 <title>rda&#45;&gt;profiles</title>
-<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"/>
+<path fill="none" stroke="black" stroke-width="0.9" d="M287.2,-1016.87C315.91,-977.67 359.19,-918.58 396.83,-867.18"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="399.16,-868.74 401.63,-860.63 394.64,-865.43 399.16,-868.74"/>
+</g>
+<!-- food_costs -->
+<g id="node16" class="node">
+<title>food_costs</title>
+<path fill="none" stroke="black" d="M652.07,-538.94C652.07,-538.94 772.07,-538.94 772.07,-538.94 778.07,-538.94 784.07,-544.94 784.07,-550.94 784.07,-550.94 784.07,-613.94 784.07,-613.94 784.07,-619.94 778.07,-625.94 772.07,-625.94 772.07,-625.94 652.07,-625.94 652.07,-625.94 646.07,-625.94 640.07,-619.94 640.07,-613.94 640.07,-613.94 640.07,-550.94 640.07,-550.94 640.07,-544.94 646.07,-538.94 652.07,-538.94"/>
+<text text-anchor="start" x="673.07" y="-605.54" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">food_costs</text>
+<polyline fill="none" stroke="black" points="640.07,-595.94 784.07,-595.94 "/>
+<text text-anchor="start" x="647.07" y="-581.84" font-family="Helvetica,sans-Serif" font-size="12.00">food_id* </text>
+<text text-anchor="start" x="701.07" y="-581.84" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="647.07" y="-564.84" font-family="Helvetica,sans-Serif" font-size="12.00">profile_id* </text>
+<text text-anchor="start" x="711.07" y="-564.84" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">integer</text>
+<text text-anchor="start" x="647.07" y="-547.84" font-family="Helvetica,sans-Serif" font-size="12.00">cost </text>
+<text text-anchor="start" x="676.07" y="-547.84" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">real</text>
+</g>
+<!-- food_costs&#45;&gt;profiles -->
+<g id="edge14" class="edge">
+<title>food_costs&#45;&gt;profiles</title>
+<path fill="none" stroke="black" stroke-width="0.9" d="M654.38,-625.95C623.77,-649.03 585.71,-677.73 552.42,-702.83"/>
+<polygon fill="black" stroke="black" stroke-width="0.9" points="550.54,-700.75 545.84,-707.8 553.91,-705.22 550.54,-700.75"/>
 </g>
 </g>
 </svg>
index 668302dec412442d81729da7e374b7621371802d..4008c25fb84ba398889976b18f0380c7b345946a 100644 (file)
@@ -1,4 +1,4 @@
--- ntsqlite, an sqlite3 database for nutratracker clients
+-- nt-sqlite, an sqlite3 database for nutratracker clients
 -- Copyright (C) 2018-2022  Shane Jaroch <nutratracker@gmail.com>
 --
 -- This program is free software: you can redistribute it and/or modify