Revert "Correct Models Unit and Category"

This reverts commit 45702aa4f2.
This commit is contained in:
Francesco D'Amico
2025-03-18 15:45:14 +01:00
parent dfd2d2ee3f
commit a91ca743ab
3 changed files with 21 additions and 6 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>();
}
}