SessionState Model
Overview
The sessionstate table is designed to store information about the state of various objects within a user session. It includes details like the state of a specific object, the user who initiated the session, and timestamps to track when the session was created and modified.
Fields
| Field | Type | Description | Required |
|---|---|---|---|
| id | string | A unique identifier for the session state.Ensures each entry is uniquely identifiable. | ❌ |
| timestamp | string | Represents the time the session state was recorded. | ✅ |
| objectId | string | The identifier of the object related to the session state. | ✅ |
| state | object | Stores the actual state data. This could be JSON or serialized data representing the state of the object at the given timestamp. | ✅ |
| created_at | date | The date and time when the session state was created. Useful for auditing and historical analysis. | ❌ |
| modified_at | date | The date and time when the session state was last modified. Could help in deduplication or conflict resolution. | ❌ |
| userId | string | The identifier of the user associated with the session state. This links the state to a specific user's session or activity. | ✅ |
Sample JSON
{
"id": "example_value",
"timestamp": "example_value",
"objectId": "example_value",
"state": "example_value",
"created_at": "example_value",
"modified_at": "example_value",
"userId": "example_value"
}