Class UserCredential
- Namespace
- Core.CliniCore.Domain.Authentication.Representation
- Assembly
- Core.CliniCore.dll
Domain model representing user authentication credentials. Implements IIdentifiable with Id equal to the associated profile's Id (1:1 relationship).
public class UserCredential : IIdentifiable
- Inheritance
-
UserCredential
- Implements
- Inherited Members
- Extension Methods
Properties
CreatedAt
When the credential was created.
public DateTime CreatedAt { get; init; }
Property Value
Id
Unique identifier - same as the associated profile's Id (shared identity).
public Guid Id { get; init; }
Property Value
LastLoginAt
Last successful login time.
public DateTime? LastLoginAt { get; set; }
Property Value
PasswordHash
Hashed password (never store plaintext).
public string PasswordHash { get; set; }
Property Value
Role
User role: "Patient", "Physician", or "Administrator".
public string Role { get; init; }
Property Value
Username
Username for login (must be unique across all users).
public string Username { get; init; }