use erp_core::events::EventBus;
use sea_orm::DatabaseConnection;

/// Config-specific state extracted from the server's AppState via `FromRef`.
///
/// Contains the database connection and event bus needed by config handlers.
#[derive(Clone)]
pub struct ConfigState {
    pub db: DatabaseConnection,
    pub event_bus: EventBus,
}
