using MongoDB.Entities; namespace PrivaPub.Models.User { public class EmailRecovery : Entity { public string RootUserId { get; set; } public string RecoveryCode { get; set; }//plaintext codes before 2026-10-04; migration _011 removed them, never written now public string CodeHash { get; set; }//sha-256 of the code, hex; the code itself exists only in the email public DateTime ExpiresAt { get; set; } public string RequestIP { get; set; } public DateTime CreationDate { get; set; } = DateTime.UtcNow; } }