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

Represents an account-role assignment in the database. More...

#include <account_role_entity.hpp>

Collaboration diagram for account_role_entity:
Collaboration graph

Public Attributes

std::string account_id
 
std::string role_id
 
std::string assigned_by
 
sqlgen::Timestamp<"%Y-%m-%d %H:%M:%S"> assigned_at = "9999-12-31 23:59:59"
 
sqlgen::Timestamp<"%Y-%m-%d %H:%M:%S"> valid_from = "9999-12-31 23:59:59"
 
sqlgen::Timestamp<"%Y-%m-%d %H:%M:%S"> valid_to = "9999-12-31 23:59:59"
 

Static Public Attributes

static constexpr const char * schema = "oresdb"
 
static constexpr const char * tablename = "account_roles"
 

Detailed Description

Represents an account-role assignment in the database.

This is a junction table linking accounts to roles. Note: The composite primary key (account_id, role_id, valid_from) is defined at the database schema level since sqlgen doesn't support composite keys.