* Extended functionalities
* Added different UIs
This commit is contained in:
34
MealPlan.Api/Models/DietGeneratorDraftMealIngredient.cs
Normal file
34
MealPlan.Api/Models/DietGeneratorDraftMealIngredient.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MealPlan.Api.Models;
|
||||
|
||||
[Table("DietGeneratorDraftMealIngredients")]
|
||||
public class DietGeneratorDraftMealIngredient
|
||||
{
|
||||
[Column("Id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column("DraftMealId")]
|
||||
public int DraftMealId { get; set; }
|
||||
|
||||
[Column("SourceIngredientId")]
|
||||
public int? SourceIngredientId { get; set; }
|
||||
|
||||
[Column("Name")]
|
||||
[MaxLength(255)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column("AmountGrams")]
|
||||
public decimal? AmountGrams { get; set; }
|
||||
|
||||
[Column("Unit")]
|
||||
[MaxLength(50)]
|
||||
public string? Unit { get; set; }
|
||||
|
||||
[Column("SortOrder")]
|
||||
public int SortOrder { get; set; }
|
||||
|
||||
public DietGeneratorDraftMeal? DraftMeal { get; set; }
|
||||
public Ingredient? SourceIngredient { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user