package com.ga.core.vo.upload;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * upload_template 목록/상세 응답 VO.
 * 상세 조회 시 columns 가 채워진다.
 */
@Data
public class UploadTemplateResp {

    private Long templateId;
    private String templateCode;
    private String templateName;
    private String category;
    private String targetTable;
    private String companyCode;
    private Integer headerRow;
    private Integer dataStartRow;
    private Integer sheetIndex;
    private String sheetName;
    private String fileEncoding;
    private String delimiter;
    private String skipEmptyRow;
    private Integer maxErrorCount;
    private Integer batchSize;
    private String description;
    private String isActive;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    /** 상세 조회 시 포함 (목록에서는 null) */
    private List<UploadTemplateColumnVO> columns;
}
