* Extended functionalities
* Added different UIs
This commit is contained in:
34
MealPlan.Api/Models/MealPlanEntry.cs
Normal file
34
MealPlan.Api/Models/MealPlanEntry.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MealPlan.Api.Models;
|
||||
|
||||
[Table("MealPlanEntries")]
|
||||
public class MealPlanEntry
|
||||
{
|
||||
[Column("Id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column("UserId")]
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
[Column("PlanDate")]
|
||||
public DateOnly PlanDate { get; set; }
|
||||
|
||||
[Column("MealCategory")]
|
||||
public int MealCategory { get; set; }
|
||||
|
||||
[Column("RecipeId")]
|
||||
public int RecipeId { get; set; }
|
||||
|
||||
[Column("Portions")]
|
||||
public decimal Portions { get; set; } = 1m;
|
||||
|
||||
[Column("CreatedAt")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[Column("UpdatedAt")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
public ApplicationUser? User { get; set; }
|
||||
public Recipe? Recipe { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user