21 lines
703 B
C#
21 lines
703 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class CusWeightLossProgress
|
|
{
|
|
[Key]
|
|
public Guid WeeklyProgressId { get; set; }
|
|
public decimal? Weight { get; set; }
|
|
public DateTime RecordedAt { get; set; } = DateTime.UtcNow;
|
|
public Guid FKCusId { get; set; }
|
|
[ForeignKey("FKCusId")]
|
|
public virtual Customer Customer { get; set; }
|
|
public Guid CustomerTargetId { get; set; }
|
|
[ForeignKey("CustomerTargetId")]
|
|
public virtual CustomerTarget CustomerTarget { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
}
|