MealLogIngredients table

The MealLogIngredients table in the FitStack - V2 schema has 13 columns, keyed by Id, with 2 foreign keys to MealLogs and Products.

Crosses into the `product` schema — the NutriScan side of the product.

Columns (13)

Columns of the MealLogIngredients table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
MealLogIduuidnot null, references MealLogs.Id
ProductIduuidreferences Products.Id
ProductNameSnapshottextnot null
BrandNameSnapshottext
PrimaryUpctext
Quantitynumericnot null
Unitcharacter varying(32)not null`IngredientUnit` as TEXT.
SortOrderintegernot null
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Relationships