Initial Migration

This commit is contained in:
Francesco D'Amico
2025-03-05 17:29:37 +01:00
parent b06e1b27dd
commit 6affee7b8c
14 changed files with 113 additions and 12 deletions
@@ -1,11 +1,16 @@
namespace Francesco.Recipes.World.Models.BackendModels.Ingredient
{
using Francesco.Recipes.World.Models.BackendModels.IngredientShoppingList;
using Francesco.Recipes.World.Models.BackendModels.RecipeIngredient;
using Francesco.Recipes.World.Models.BackendModels.Unit;
public class Ingredient
{
public Guid Id { get; set; }
public string Name { get; set; }
public virtual Unit Unit { get; set; } = new();
public int Quantity { get; set; }
public virtual ICollection<RecipeIngredient> RecipeIngredients { get; set; } = new List<RecipeIngredient>();
public virtual ICollection<IngredientsShoppingList> IngredientShoppingLists { get; set; } = new List<IngredientsShoppingList>();
public virtual Unit Unit { get; set; } = new();
}
}