* Extended functionalities
* Added different UIs
This commit is contained in:
39
MealPlan.Api/Models/DrinkConsumption.cs
Normal file
39
MealPlan.Api/Models/DrinkConsumption.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MealPlan.Api.Models;
|
||||
|
||||
[Table("DrinkConsumptions")]
|
||||
public class DrinkConsumption
|
||||
{
|
||||
[Column("Id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column("UserId")]
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
[Column("DrinkCatalogId")]
|
||||
public int? DrinkCatalogId { get; set; }
|
||||
|
||||
[Column("LogDate")]
|
||||
public DateOnly LogDate { get; set; }
|
||||
|
||||
[Column("ConsumedAt")]
|
||||
public DateTime ConsumedAt { get; set; }
|
||||
|
||||
[Column("Name")]
|
||||
[MaxLength(255)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column("VolumeMl")]
|
||||
public int VolumeMl { get; set; }
|
||||
|
||||
[Column("Calories")]
|
||||
public int? Calories { get; set; }
|
||||
|
||||
[Column("CreatedAt")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
public ApplicationUser? User { get; set; }
|
||||
public DrinkCatalogItem? DrinkCatalog { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user