use crate::models::common::EventType; use crate::models::json_types::{AgentEventFilters, TypedJson}; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use uuid::Uuid; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)] pub struct AgentEventSubscription { pub id: Uuid, pub agent_id: Uuid, pub workspace_id: Option, pub repo_id: Option, pub event_type: EventType, pub filters: Option>, pub enabled: bool, pub created_by: Uuid, pub created_at: DateTime, pub updated_at: DateTime, }