* Extended functionalities
* Added different UIs
This commit is contained in:
49
MealPlan.Api/Models/DietUserProfile.cs
Normal file
49
MealPlan.Api/Models/DietUserProfile.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MealPlan.Api.Models;
|
||||
|
||||
[Table("DietUserProfiles")]
|
||||
public class DietUserProfile
|
||||
{
|
||||
[Column("UserId")]
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
[Column("HeightCm")]
|
||||
public decimal HeightCm { get; set; }
|
||||
|
||||
[Column("WeightKg")]
|
||||
public decimal WeightKg { get; set; }
|
||||
|
||||
[Column("Age")]
|
||||
public int Age { get; set; }
|
||||
|
||||
[Column("Sex")]
|
||||
[MaxLength(16)]
|
||||
public string Sex { get; set; } = "male";
|
||||
|
||||
[Column("ActivityLevel")]
|
||||
[MaxLength(32)]
|
||||
public string ActivityLevel { get; set; } = "moderate";
|
||||
|
||||
[Column("Goal")]
|
||||
[MaxLength(32)]
|
||||
public string Goal { get; set; } = "maintain";
|
||||
|
||||
[Column("AllergiesNotes")]
|
||||
public string? AllergiesNotes { get; set; }
|
||||
|
||||
[Column("DislikedFoods")]
|
||||
public string? DislikedFoods { get; set; }
|
||||
|
||||
[Column("MealsPerDayMask")]
|
||||
public int MealsPerDayMask { get; set; } = 15;
|
||||
|
||||
[Column("CreatedAt")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[Column("UpdatedAt")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
public ApplicationUser? User { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user