35 lines
799 B
C#
35 lines
799 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace MealPlan.Api.Models;
|
|
|
|
[Table("UserDailyGoals")]
|
|
public class UserDailyGoal
|
|
{
|
|
[Column("UserId")]
|
|
public Guid UserId { get; set; }
|
|
|
|
[Column("CalorieGoal")]
|
|
public int? CalorieGoal { get; set; }
|
|
|
|
[Column("ProteinGoalG")]
|
|
public decimal? ProteinGoalG { get; set; }
|
|
|
|
[Column("FatGoalG")]
|
|
public decimal? FatGoalG { get; set; }
|
|
|
|
[Column("CarbsGoalG")]
|
|
public decimal? CarbsGoalG { get; set; }
|
|
|
|
[Column("WaterGoalMl")]
|
|
public int? WaterGoalMl { get; set; }
|
|
|
|
[Column("CreatedAt")]
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
[Column("UpdatedAt")]
|
|
public DateTime? UpdatedAt { get; set; }
|
|
|
|
public ApplicationUser? User { get; set; }
|
|
}
|