Correct models unit and recipe and add a new migration

This commit is contained in:
Francesco D'Amico
2025-03-18 16:14:01 +01:00
parent a91ca743ab
commit c498e23a07
6 changed files with 47 additions and 34 deletions
@@ -4,7 +4,7 @@
public class Category
{
public Guid Id { get; set; }
public string? Name { get; set; }
public string Name { get; set; }
public virtual ICollection<Recipe> Recipes { get; set; } = new List<Recipe>();
}
}
@@ -7,8 +7,8 @@ namespace Francesco.Recipes.World.Models.BackendModels.Unit
public class Unit
{
public Guid Id{ get; set; }
public string? Name { get; set; }
public string? Symbol { get; set; }
public string Name { get; set; }
public string Symbol { get; set; }
public virtual ICollection<RecipeIngredient> RecipeIngredient { get; set; } = new List<RecipeIngredient>();
}
}