use crate::models::json_types::{AgentSchedulePayload, TypedJson}; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use uuid::Uuid; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)] pub struct AgentSchedule { pub id: Uuid, pub agent_id: Uuid, pub workspace_id: Option, pub repo_id: Option, pub name: String, pub cron_expr: String, pub timezone: String, pub payload: Option>, pub enabled: bool, pub last_run_at: Option>, pub next_run_at: Option>, pub created_by: Uuid, pub created_at: DateTime, pub updated_at: DateTime, }