1use chrono::{DateTime, Utc};
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Serialize, Deserialize)]
6pub struct BackupRecord {
7 pub id: i64,
8 pub file_path: String,
9 pub service_version: String,
10 pub backup_type: String,
11 pub status: String,
12 pub created_at: DateTime<Utc>,
13}
14
15#[derive(Debug, Clone, Serialize, Deserialize)]
17pub struct ScheduledTask {
18 pub id: i64,
19 pub task_type: String,
20 pub target_version: String,
21 pub scheduled_at: DateTime<Utc>,
22 pub status: String,
23 pub details: Option<String>,
24 pub created_at: DateTime<Utc>,
25 pub completed_at: Option<DateTime<Utc>>,
26}