first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Fitness_core_BE.Models
{
/// <summary>A physical access zone within the club (e.g. "Pool Area", "Indoor Gym"),
/// each fitted with its own fingerprint/face terminal. CustomerPlan grants access to
/// one or more Places via CustomerPlanPlace; AccessDevice.FKPlaceId says which Place a
/// terminal sits in. Deliberately separate from Facility, which models capacity-limited
/// bookable sessions (pool/court/class bookings) -- Places are about which physical
/// machine a member's access profile should reach, not about booking a time slot.</summary>
public class Place
{
[Key]
public Guid PlaceId { get; set; }
public Guid FKClientId { get; set; }
[ForeignKey(nameof(FKClientId))]
public Client Client { get; set; }
[MaxLength(128)]
public string Name { get; set; } = string.Empty;
[MaxLength(500)]
public string? Description { get; set; }
public bool IsActive { get; set; } = true;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
}