package cokr.xit.ens.modules.ktsigntalk.direct.domain;

import cokr.xit.ens.modules.common.ctgy.sys.mng.domain.TmpltMng;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.persistence.*;

@Entity
@Getter
@ToString
@SuperBuilder
@EqualsAndHashCode
@NoArgsConstructor
@Table(name = "ens_tmplt_mng_kt_st", schema = "", catalog = "")
@Schema(name = "TmpltMngKtSigntalk")
@DiscriminatorValue("ktst")
public class TmpltMngKtSigntalk extends TmpltMng {

    @Schema(required = false, title = "우선순위 메시지", example = "우선순위 메시지 입니다.")
    @Column(name = "pryMessage", nullable = true, length = 2000)
    @Setter
    private String pryMessage;

//    @Schema(required = true, title = "문서코드", example = " ")
//    @Column(name = "msg_cd", nullable = false, length = 5)
//    private String msgCd;

    @Schema(required = false, title = "발신번호", example = "0212345678")
    @Column(name = "sndTelNo", nullable = true, length = 20)
    @Setter
    private String sndTelNo;

    @Schema(required = false, title = "기관발송번호", example = "0212345678")
    @Column(name = "send_tel", nullable = true, length = 20)
    @Setter
    private String sendTel;

//    @Schema(required = false, title = "문서종류", example = "sms")
//    @Column(name = "send_tel", nullable = true, length = 3)
//    @Enumerated(EnumType.STRING)
//    private MTypeCd mType;

    @Schema(required = true, title = "CI변환사용여부", example = "Y")
    @Column(name = "ci_trans_use_yn", nullable = false, length = 1)
    private String ciTransUseYn;

    @Schema(required = true, title = "템플릿 메시지 사용여부", example = "Y")
    @Column(name = "tmplt_msg_use_yn", nullable = false, length = 1)
    private String tmpltMsgUseYn;

    @Schema(required = true, title = "템플릿 CS 정보 사용여부", example = "Y")
    @Column(name = "tmplt_cs_info_use_yn", nullable = false, length = 1)
    private String tmpltCsInfoUseYn;
}
