Skip to main content

UserCredentials Model

Overview​

Stores user credentials associated with each user, including their password and associated metadata.

Fields​

FieldTypeDescriptionRequired
idstringA unique identifier for the user credentials. Could be useful if the system supports multiple credentials per user.❌
passwordstringThe hashed password associated with the user. Should be combined with Salt (may be stored separately), Iteration count, if not embedded in the hash.✅
created_atdateThe timestamp when the credentials were created. Useful for tracking when a user last changed or set their password.❌
modified_atdateThe timestamp when the credentials were last updated. Helpful for enforcing password aging policies or detecting unusual changes.❌
userIdstringThe identifier of the user to whom the credentials belong.✅

Sample JSON​

{
"id": "example_value",
"password": "example_value",
"created_at": "example_value",
"modified_at": "example_value",
"userId": "example_value"
}