AttestoMCP.Server.SessionStore.Ecto.Session (attesto_mcp_server v0.14.0)

Copy Markdown View Source

Ecto schema for durable MCP session records.

The session namespace is part of the primary key. This lets multiple named MCP servers share one table without allowing a session id issued by one server to be loaded by another. The complete versioned record is kept in :record; the integer expiry columns are a denormalized index used for bounded SQL-side filtering and cleanup.

Summary

Types

t()

@type t() :: %AttestoMCP.Server.SessionStore.Ecto.Session{
  __meta__: term(),
  absolute_timeout_ms: term(),
  created_at_ms: term(),
  expires_at_ms: term(),
  idle_timeout_ms: term(),
  inserted_at: term(),
  last_seen_ms: term(),
  namespace: term(),
  record: term(),
  session_id: term(),
  updated_at: term()
}