Lightweight 0.20260213.0
Loading...
Searching...
No Matches
LargeDb_ActivityLog Struct Reference

ActivityLog for tracking user actions - high volume table. Estimated: 50,000 rows × 2.5KB = 125MB. More...

#include <Entities.hpp>

Public Attributes

Light::Field< uint64_t, Light::PrimaryKey::ServerSideAutoIncrement > id
 
Light::Field< Light::SqlAnsiString< 50 > > action_type
 
Light::Field< Light::SqlAnsiString< 100 > > entity_type
 
Light::Field< std::optional< uint64_t > > entity_id
 
Light::Field< std::optional< Light::SqlText > > old_values_json
 
Light::Field< std::optional< Light::SqlText > > new_values_json
 
Light::Field< std::optional< Light::SqlAnsiString< 45 > > > ip_address
 
Light::Field< std::optional< Light::SqlAnsiString< 500 > > > user_agent
 
Light::Field< Light::SqlDateTimecreated_at
 
Light::BelongsTo< Member(LargeDb_User::id), Light::SqlRealName { "user_id" }, Light::SqlNullable::Null > user {}
 

Detailed Description

ActivityLog for tracking user actions - high volume table. Estimated: 50,000 rows × 2.5KB = 125MB.

Definition at line 175 of file Entities.hpp.

Member Data Documentation

◆ id

Light::Field<uint64_t, Light::PrimaryKey::ServerSideAutoIncrement> LargeDb_ActivityLog::id

Definition at line 177 of file Entities.hpp.

◆ action_type

Light::Field<Light::SqlAnsiString<50> > LargeDb_ActivityLog::action_type

Definition at line 178 of file Entities.hpp.

◆ entity_type

Light::Field<Light::SqlAnsiString<100> > LargeDb_ActivityLog::entity_type

Definition at line 179 of file Entities.hpp.

◆ entity_id

Light::Field<std::optional<uint64_t> > LargeDb_ActivityLog::entity_id

Definition at line 180 of file Entities.hpp.

◆ old_values_json

Light::Field<std::optional<Light::SqlText> > LargeDb_ActivityLog::old_values_json

Definition at line 181 of file Entities.hpp.

◆ new_values_json

Light::Field<std::optional<Light::SqlText> > LargeDb_ActivityLog::new_values_json

Definition at line 182 of file Entities.hpp.

◆ ip_address

Light::Field<std::optional<Light::SqlAnsiString<45> > > LargeDb_ActivityLog::ip_address

Definition at line 183 of file Entities.hpp.

◆ user_agent

Light::Field<std::optional<Light::SqlAnsiString<500> > > LargeDb_ActivityLog::user_agent

Definition at line 184 of file Entities.hpp.

◆ created_at

Light::Field<Light::SqlDateTime> LargeDb_ActivityLog::created_at

Definition at line 185 of file Entities.hpp.

◆ user

Light::BelongsTo<Member(LargeDb_User::id), Light::SqlRealName { "user_id" }, Light::SqlNullable::Null> LargeDb_ActivityLog::user {}

Definition at line 187 of file Entities.hpp.


The documentation for this struct was generated from the following file: