use chrono::{DateTime, Utc};
use serde_json::Value;
use sqlx::FromRow;
#[derive(Debug, Clone, FromRow)]
pub struct BackgroundJob {
pub id: i64,
pub job_type: String,
pub data: Value,
pub retries: i32,
pub last_retry: DateTime<Utc>,
pub created_at: DateTime<Utc>,
pub priority: i16,
}