ProductIngredients table

The ProductIngredients table in the FitStack - V2 schema has 7 columns, with 2 foreign keys to Products and Ingredients.

Columns (7)

Columns of the ProductIngredients table
ColumnTypeConstraintsDescription
ProductIduuidnot null, references Products.Id
IngredientIduuidnot null, references Ingredients.Id
PositionintegerOrder on the label — which matters, since labels list by descending quantity.
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (IngredientId) (IX_ProductIngredients_IngredientId)

Relationships