Files
Core_Be/Models/CustomerPlanPlace.cs
T
Dhananjaya99 bffc9b1686 first commit
2026-09-28 11:44:26 +05:30

23 lines
785 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Fitness_core_BE.Models
{
/// <summary>Many-to-many join: which Place(s) a CustomerPlan grants access to. A plan
/// with no rows here is unrestricted (reaches every active device) -- see
/// AccessDeviceService's allowed-device resolution.</summary>
public class CustomerPlanPlace
{
[Key]
public Guid CustomerPlanPlaceId { get; set; }
public Guid FKCustomerPlanId { get; set; }
[ForeignKey(nameof(FKCustomerPlanId))]
public CustomerPlan CustomerPlan { get; set; } = null!;
public Guid FKPlaceId { get; set; }
[ForeignKey(nameof(FKPlaceId))]
public Place Place { get; set; } = null!;
}
}