namespace Domain.Entities; /// /// Represents an issued authentication credential (refresh token) for a . /// Maps to the UserCredential table. Credentials are deleted automatically when the owning user account is /// deleted. /// public class UserCredential { /// /// Primary key identifying this credential. Maps to UserCredentialID. /// public Guid UserCredentialId { get; set; } /// /// Foreign key referencing the owning . Maps to UserAccountID. /// public Guid UserAccountId { get; set; } /// /// The date and time the credential was issued. /// public DateTime CreatedAt { get; set; } /// /// The date and time after which the credential is no longer valid. /// public DateTime Expiry { get; set; } /// /// The Argon2 hash of the credential's secret value. The plaintext secret is never persisted. /// public string Hash { get; set; } = string.Empty; /// /// SQL Server ROWVERSION concurrency token used to detect concurrent updates. null until the row has /// been read from the database. /// public byte[]? Timer { get; set; } }