package ru.soune.nocopy.dto.file;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ProtectionLimitsDto {
    private Long userId;
    private String userName;
    private String userEmail;
    private LocalDate lastResetDate;
    private Integer totalChecksAllTime;
    private Integer periodChecksCount;
    private Map<String, Integer> checksByFileType;
    private LocalDate periodStartDate;
    private LocalDate periodEndDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastCheckAt;
}
