first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Fitness_core_BE.Models
{
public class MealPlan
{
[Key]
public Guid MealPlanId { get; set; }
public string Name { get; set; }
public string? Description { get; set; }
public bool IsTemplate { get; set; } = false;
public Guid FKMealCategoryId { get; set; }
[ForeignKey("FKMealCategoryId")]
public virtual MealCategory MealCategory { get; set; }
public Guid? FKClientId { get; set; }
[ForeignKey("FKClientId")]
public virtual Client? Client { get; set; }
public bool IsActive { get; set; } = true;
public DateTime CreateDate { get; set; } = DateTime.UtcNow;
public virtual ICollection<Meal> MealItems { get; set; } = new List<Meal>();
public virtual ICollection<CustomerMeal> CustomerMeals { get; set; } = new List<CustomerMeal>();
}
}