home / nutrition

meal_foods

2 rows where food_id = 18

✎ View and edit SQL

This data as json, CSV (advanced)

id ▼ meal_id food_id servings
13 10 10 Glazed Donut (1 donut) 18 0.5
15 11 11 Glazed Donut (1 donut) 18 0.5

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE meal_foods (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    meal_id INTEGER NOT NULL REFERENCES meals(id) ON DELETE CASCADE,
    food_id INTEGER NOT NULL REFERENCES foods(id),
    servings REAL NOT NULL DEFAULT 1.0
  );
Powered by Datasette · Queries took 6.474ms