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

19 lines
606 B
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace Fitness_core_BE.Models
{
public class CustomerAccess
{
public int Id { get; set; }
public string Name { get; set; }
public Guid FKDeviceId { get; set; }
[ForeignKey("FKDeviceId")]
public AccessDevice AccessDevice { get; set; }
public Guid FKCustomerId { get; set; }
[ForeignKey(nameof(FKCustomerId))]
public Customer Customer { get; set; }
public bool IsActive { get; set; } = true;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
}