use erp_core::events::EventBus; use sea_orm::DatabaseConnection; /// Workflow-specific state extracted from the server's AppState via `FromRef`. /// /// Contains the database connection and event bus needed by workflow handlers. #[derive(Clone)] pub struct WorkflowState { pub db: DatabaseConnection, pub event_bus: EventBus, }