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