Skip to main content

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​

FieldTypeDescriptionRequired
idstringA unique identifier for the access token record (UUID). This is used to identify and manage individual token entries.❌
tokenstringThe actual token that is issued to the user (e.g., JWT ). It is used to authenticate and authorize requests made by the user.✅
user_idstringUser 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_atdateCreation Timestamp. Records the exact date and time when the token was generated. Useful for expiry validation or audit purposes.❌
modified_atdateModification 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"
}