package com.ga.core.vo.org;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDate;

@Data
public class OrganizationSaveReq {

    @NotBlank(message = "조직명은 필수입니다")
    @Size(max = 100)
    private String orgName;

    // null이면 최상위 조직
    private Long parentOrgId;

    @NotBlank(message = "조직유형은 필수입니다")
    @Size(max = 10)
    private String orgType;          // HQ / BR / TM

    @NotNull(message = "조직레벨은 필수입니다")
    private Integer orgLevel;

    @Size(max = 50)
    private String region;

    @NotNull(message = "유효시작일은 필수입니다")
    private LocalDate effectiveFrom;

    private LocalDate effectiveTo;

    @Size(max = 1)
    private String isActive = "Y";
}
