Table of Contents

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

DateTime

Id

Unique identifier - same as the associated profile's Id (shared identity).

public Guid Id { get; init; }

Property Value

Guid

LastLoginAt

Last successful login time.

public DateTime? LastLoginAt { get; set; }

Property Value

DateTime?

PasswordHash

Hashed password (never store plaintext).

public string PasswordHash { get; set; }

Property Value

string

Role

User role: "Patient", "Physician", or "Administrator".

public string Role { get; init; }

Property Value

string

Username

Username for login (must be unique across all users).

public string Username { get; init; }

Property Value

string