ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | Static Public Attributes | List of all members
auth_event_entity Struct Reference

Entity for a single authentication event in the auth events hypertable. More...

#include <session_entity.hpp>

Collaboration diagram for auth_event_entity:
Collaboration graph

Public Attributes

sqlgen::PrimaryKey< std::string > id
 UUID for this event — part of composite primary key.
 
sqlgen::PrimaryKey< sqlgen::Timestamp<"%Y-%m-%d %H:%M:%S"> > event_time
 Event timestamp — part of composite primary key and partition column.
 
std::string tenant_id
 Tenant identifier. Empty string if unknown (e.g. failed login before tenant resolution).
 
std::string account_id
 Account identifier. Empty string if unknown.
 
std::string event_type
 Event type: login_success, login_failure, logout, token_refresh, max_session_exceeded, signup_success, signup_failure.
 
std::string username
 Username associated with the event. May be empty for events without a resolved account.
 
std::string session_id
 Session UUID. Empty string if no session was established.
 
std::string party_id
 Party UUID. Empty string if no party was selected.
 
std::string error_detail
 Error detail for failure events. Empty string for success events.
 

Static Public Attributes

static constexpr const char * schema = "public"
 
static constexpr const char * tablename = "ores_iam_auth_events_tbl"
 

Detailed Description

Entity for a single authentication event in the auth events hypertable.

Records logins, logouts, token refreshes, and related outcomes. No RLS — this is a system-level audit log.