package io.gisbi.extensions.datafilling.dto;

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

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ExtIndexField implements Serializable {
    @Serial
    private static final long serialVersionUID = -3169849285437114316L;

    private String name;

    private List<ColumnSetting> columns;

    private boolean removed;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class ColumnSetting {
        private String column;
        private String order;
    }
}
