Skip to main content

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​

FieldTypeDescriptionRequired
idstringA unique identifier for the session state.Ensures each entry is uniquely identifiable.❌
timestampstringRepresents the time the session state was recorded.✅
objectIdstringThe identifier of the object related to the session state.✅
stateobjectStores the actual state data. This could be JSON or serialized data representing the state of the object at the given timestamp.✅
created_atdateThe date and time when the session state was created. Useful for auditing and historical analysis.❌
modified_atdateThe date and time when the session state was last modified. Could help in deduplication or conflict resolution.❌
userIdstringThe 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"
}