first commit
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user