UserCredentials Model
Overview
Stores user credentials associated with each user, including their password and associated metadata.
Fields
| Field | Type | Description | Required |
|---|---|---|---|
| id | string | A unique identifier for the user credentials. Could be useful if the system supports multiple credentials per user. | ❌ |
| password | string | The hashed password associated with the user. Should be combined with Salt (may be stored separately), Iteration count, if not embedded in the hash. | ✅ |
| created_at | date | The timestamp when the credentials were created. Useful for tracking when a user last changed or set their password. | ❌ |
| modified_at | date | The timestamp when the credentials were last updated. Helpful for enforcing password aging policies or detecting unusual changes. | ❌ |
| userId | string | The 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"
}