Init Git
This commit is contained in:
20
AMREZ.EOP.Domain/Entities/Authentications/UserSession.cs
Normal file
20
AMREZ.EOP.Domain/Entities/Authentications/UserSession.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using AMREZ.EOP.Domain.Entities.Common;
|
||||
|
||||
namespace AMREZ.EOP.Domain.Entities.Authentications;
|
||||
|
||||
public sealed class UserSession : BaseEntity
|
||||
{
|
||||
public Guid TenantId { get; set; }
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
public string RefreshTokenHash { get; set; } = default!;
|
||||
public DateTimeOffset IssuedAt { get; set; } = DateTimeOffset.UtcNow;
|
||||
public DateTimeOffset? ExpiresAt { get; set; }
|
||||
public DateTimeOffset? RevokedAt { get; set; }
|
||||
|
||||
public string? DeviceId { get; set; }
|
||||
public string? UserAgent { get; set; }
|
||||
public string? IpAddress { get; set; }
|
||||
|
||||
public User User { get; set; } = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user