AccessToken Model
Overview
The accesstoken table stores access tokens for authenticated users, enabling session management and allowing users to remain logged in and perform authorized actions without re-entering credentials.
Fields
| Field | Type | Description | Required |
|---|---|---|---|
| id | string | A unique identifier for the access token record (UUID). This is used to identify and manage individual token entries. | ❌ |
| token | string | The actual token that is issued to the user (e.g., JWT ). It is used to authenticate and authorize requests made by the user. | ✅ |
| user_id | string | User Identifier. Refers to the user to whom this token is issued. It could be a foreign key pointing to a users table (not enforced here but logically related). | ✅ |
| created_at | date | Creation Timestamp. Records the exact date and time when the token was generated. Useful for expiry validation or audit purposes. | ❌ |
| modified_at | date | Modification Timestamp. Records the date and time when the token was last updated. Can help track refreshes or changes to token metadata. | ❌ |
Relationships
- Belongsto Unknown
Sample JSON
{
"id": "example_value",
"token": "example_value",
"user_id": "example_value",
"created_at": "example_value",
"modified_at": "example_value"
}