first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user