28 lines
999 B
C#
28 lines
999 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class CustomerMeal
|
|
{
|
|
[Key]
|
|
public Guid CustomerMealId { get; set; }
|
|
|
|
// Tenant-bucket entity: this FK holds a TenantCustomerLinkId (not the central
|
|
// Customer.CusId directly) -- see Models/TenantCustomerLink.cs.
|
|
public Guid FKCustomerId { get; set; }
|
|
[ForeignKey("FKCustomerId")]
|
|
public virtual TenantCustomerLink? TenantCustomerLink { get; set; }
|
|
|
|
public Guid FKMealPlanId { get; set; }
|
|
[ForeignKey("FKMealPlanId")]
|
|
public virtual MealPlan? MealPlan { get; set; }
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
public DateTime AssignedDate { get; set; } = DateTime.UtcNow;
|
|
public DateTime? CompletedDate { get; set; }
|
|
public bool IsFollowing { get; set; } = false;
|
|
public string? Notes { get; set; }
|
|
}
|
|
}
|