using SurrealDb.Net.Models;

namespace RelayCore.Models;

public class Sessions : Record
{
    public required string UserId { get; set; }
    public required string TokenHash { get; set; }
    public required DateTime IssuedAt { get; set; }
    public required DateTime ExpiresAt { get; set; }
    public DateTime? LastUsedAt { get; set; }
    public bool Revoked { get; set; }
    public required string DeviceName { get; set; }
    public required string IpAddress { get; set; }
    public required string UserAgent { get; set; }
}