using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Fitness_core_BE.Models { /// 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. 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!; } }