use crate::models::common::{JsonValue, Status, TriggerType}; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use uuid::Uuid; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)] pub struct AgentExecution { pub id: Uuid, pub agent_id: Uuid, pub agent_version_id: Option, pub workspace_id: Option, pub repo_id: Option, pub issue_id: Option, pub pull_request_id: Option, pub triggered_by: Option, pub trigger_type: TriggerType, pub status: Status, pub input: Option, pub output: Option, pub error_message: Option, pub started_at: Option>, pub finished_at: Option>, pub created_at: DateTime, pub updated_at: DateTime, }