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

Domain event indicating that country data has changed. More...

#include <country_changed_event.hpp>

Collaboration diagram for country_changed_event:
Collaboration graph

Public Attributes

std::chrono::system_clock::time_point timestamp
 The timestamp of when the change occurred (in UTC).
 
std::vector< std::string > alpha2_codes
 Alpha-2 codes of countries that changed.
 

Detailed Description

Domain event indicating that country data has changed.

This event is published when any country entity is created, updated, or deleted in the database. Subscribers can use the timestamp to query for changes since that point.

Member Data Documentation

◆ timestamp

std::chrono::system_clock::time_point timestamp

The timestamp of when the change occurred (in UTC).

Clients can use this timestamp to query the database for entities that have changed since this point.

◆ alpha2_codes

std::vector<std::string> alpha2_codes

Alpha-2 codes of countries that changed.

Contains the ISO 3166-1 alpha-2 codes (e.g., "US", "GB") of countries that were created, updated, or deleted. May contain multiple codes for batch operations.