ProductIngredients table
The ProductIngredients table in the FitStack - V2 schema has 7 columns, with 2 foreign keys to Products and Ingredients.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| ProductId | uuid | not null, references Products.Id | |
| IngredientId | uuid | not null, references Ingredients.Id | |
| Position | integer | Order on the label — which matters, since labels list by descending quantity. | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(IngredientId)(IX_ProductIngredients_IngredientId)
Relationships
ProductIngredients.ProductIdreferencesProducts.IdProductIngredients.IngredientIdreferencesIngredients.Id