Create all Models

This commit is contained in:
Francesco D'Amico
2025-03-18 12:02:01 +01:00
parent 6affee7b8c
commit 449533cf0b
18 changed files with 1182 additions and 495 deletions
@@ -3,11 +3,12 @@
namespace Francesco.Recipes.World.Models.BackendModels.Unit
{
using Francesco.Recipes.World.Models.BackendModels.Ingredient;
using Francesco.Recipes.World.Models.BackendModels.RecipeIngredient;
public class Unit
{
public Guid Id{ get; set; }
public string Name{ get; set; }
public string Symbol { get; set; }
public virtual ICollection<Ingredient> Ingredients { get; set; } = new List<Ingredient>();
public string? Name { get; set; }
public string? Symbol { get; set; }
public virtual ICollection<RecipeIngredient> RecipeIngredient { get; set; } = new List<RecipeIngredient>();
}
}