namespace Domain.Entities;
///
/// Represents a registered user of the application. Maps to the UserAccount table, the root entity
/// referenced by , , brewery posts, and other user-owned data.
///
public class UserAccount
{
///
/// Primary key identifying this user account. Maps to UserAccountID.
///
public Guid UserAccountId { get; set; }
///
/// The user's unique username, used for login and display. Enforced unique at the database level.
///
public string Username { get; set; } = string.Empty;
///
/// The user's first name.
///
public string FirstName { get; set; } = string.Empty;
///
/// The user's last name.
///
public string LastName { get; set; } = string.Empty;
///
/// The user's email address. Enforced unique at the database level.
///
public string Email { get; set; } = string.Empty;
///
/// The date and time the account was created.
///
public DateTime CreatedAt { get; set; }
///
/// The date and time the account was last updated, or null if it has never been updated.
///
public DateTime? UpdatedAt { get; set; }
///
/// The user's date of birth.
///
public DateTime DateOfBirth { get; set; }
///
/// 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; }
}