first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Fitness_core_BE.Models
|
||||
{
|
||||
public class Agent
|
||||
{
|
||||
[Key]
|
||||
public Guid AgentId { get; set; }
|
||||
public Guid FKClientId { get; set; }
|
||||
[ForeignKey("FKClientId")]
|
||||
public Client Client { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string ApiKeyHash { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
public DateTime? LastSeenAt { get; set; }
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user