first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user