package dev.lions.unionflow.server.api.dto.backup.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * Response contenant la configuration des sauvegardes automatiques
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BackupConfigResponse {

    private Boolean autoBackupEnabled;
    private String frequency; // HOURLY, DAILY, WEEKLY
    private String retention; // "7 jours", "30 jours", etc.
    private Integer retentionDays;
    private String backupTime; // HH:mm
    private Boolean includeDatabase;
    private Boolean includeFiles;
    private Boolean includeConfiguration;

    private LocalDateTime lastBackup;
    private LocalDateTime nextScheduledBackup;
    private Integer totalBackups;
    private Long totalSizeBytes;
    private String totalSizeFormatted;
}
