Fixed some properties on models

This commit is contained in:
Francesco D'Amico
2025-03-18 13:15:08 +01:00
parent 449533cf0b
commit 36e107d48e
4 changed files with 8 additions and 7 deletions
@@ -6,10 +6,10 @@
using Francesco.Recipes.World.Models.BackendModels.MediaFile;
using Francesco.Recipes.World.Models.BackendModels.RecipeIngredient;
public class Recipe
public class Recipe : ITimeStampedEntity
{
public Guid Id { get; set; }
public string? Name { get; set; }
public string Name { get; set; }
public string? Description { get; set; }
public Difficulty Difficulty { get; set; }
public int Servings { get; set; }
@@ -17,9 +17,9 @@
public TimeSpan CookingTime { get; set; }
public bool IsFavorite { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? ModifiedAt { get; set; }
public virtual ICollection<RecipeIngredient> RecipeIngredients { get; set; } = new List<RecipeIngredient>();
public virtual ICollection<Instruction> Instructions { get; set; } = new List<Instruction>();
public virtual ICollection<MediaFile> MediaFiles { get; set; } = new List<MediaFile>();
public virtual Favorit Favorit { get; set; } = new();
}
}