From: gamesguru Date: Wed, 21 Apr 2021 15:30:23 +0000 (-0400) Subject: add food_costs table X-Git-Tag: 0.0.1~2 X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=e2f3393ba41e4e151e52f48e1672488cedacf7bb;p=nutratech%2Fnt-sqlite.git add food_costs table --- diff --git a/sql/data/food_costs.csv b/sql/data/food_costs.csv new file mode 100644 index 0000000..e69de29 diff --git a/sql/tables.sql b/sql/tables.sql index 8414f5c..550930b 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -56,6 +56,18 @@ CREATE TABLE profiles ( FOREIGN KEY (bf_eq_id) REFERENCES bf_eqs (id) ON UPDATE CASCADE ); +-- +-------------------------------- +-- Food costs +-------------------------------- + +CREATE TABLE food_costs ( + id integer PRIMARY KEY AUTOINCREMENT, + profile_id integer NOT NULL, + food_id integer NOT NULL, + cost real NOT NULL +); + -- -------------------------------- -- Biometrics