ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
currency Struct Referencefinal

Represents a currency with its metadata and formatting rules. More...

#include <currency.hpp>

Collaboration diagram for currency:
Collaboration graph

Public Attributes

int version = 0
 Version number for optimistic locking and change tracking.
 
std::string iso_code
 ISO 4217 alphabetic code (e.g., "USD").
 
std::string name
 Full name of the currency (e.g., "United States Dollar").
 
std::string numeric_code
 ISO 4217 numeric code (e.g., "840").
 
std::string symbol
 Currency symbol (e.g., "$").
 
std::string fraction_symbol
 Symbol for fractional unit (e.g., "cent").
 
int fractions_per_unit
 Number of fractional units per whole unit (e.g., 100 for cents).
 
std::string rounding_type
 Rounding method for fractional amounts.
 
int rounding_precision
 Decimal places to round to during formatting.
 
std::string format
 Format string for display.
 
std::string currency_type
 Type classification (e.g., fiat, crypto, major, minor, etc.).
 
std::optional< boost::uuids::uuid > image_id
 Optional reference to a flag image in the images table.
 
std::string recorded_by
 Username of the person who recorded this version in the system.
 
std::string change_reason_code
 Code identifying the reason for the change.
 
std::string change_commentary
 Free-text commentary explaining the change.
 
std::chrono::system_clock::time_point recorded_at
 Timestamp when this version of the record was recorded in the system.
 

Detailed Description

Represents a currency with its metadata and formatting rules.

Member Data Documentation

◆ change_reason_code

std::string change_reason_code

Code identifying the reason for the change.

References change_reasons table (soft FK).