23 lines
785 B
C#
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!;
|
|
}
|
|
}
|