AppTokens Model
Overview
The apptokens table is used to store authentication tokens related to applications. These tokens can be used for API authentication, session management, or secure communication between applications.
Fields
| Field | Type | Description | Required |
|---|---|---|---|
| id | string | Primary Key – Unique identifier for each token (UUID). | ❌ |
| label | string | A descriptive label or name for the token (e.g., "API Token for App X"). | ✅ |
| jwt | string | The JSON Web Token (JWT) string that is used for authenticating and authorizing requests. | ❌ |
| created_at | date | Timestamp indicating when the token was created. | ❌ |
| modified_at | date | Timestamp indicating when the token was last modified. | ❌ |
| expirationDate | date | The date and time when the token will expire, after which it will no longer be valid. | ❌ |
| sites_id | string | The site associated with this token (likely referencing a sites table). | ✅ |
| app_id | string | The application that owns this token (likely referencing an apps table). | ✅ |
| org_id | string | The organization that this token belongs to (likely referencing an organizations table). | ✅ |
| application_id | string | Another reference to an application, possibly linked to the applications table. | ❌ |
Sample JSON
{
"id": "example_value",
"label": "example_value",
"jwt": "example_value",
"created_at": "example_value",
"modified_at": "example_value",
"expirationDate": "example_value",
"sites_id": "example_value",
"app_id": "example_value",
"org_id": "example_value",
"application_id": "example_value"
}