package com.icomsys.main_vm.db.jpa.entity.conversation;

import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Table(name = "TB_DICTIONARY_MASTER")
@Entity
@Getter
@Setter
@NoArgsConstructor
public class TbDictionaryMaster {
    @Id
    @Column(name = "SEQ", nullable = false, length = 20)
    private Long seq;
    @Column(name = "OPR_MNG_CODE", nullable = false, length = 40)
    private String oprMngCode;
    @Column(name = "GROUP_SEQ", nullable = false, length = 20)
    private Long groupSeq;
    @Column(name = "REP_WORD", nullable = false, length = 20)
    private String repWord;
    @Column(name = "IF_MAPPING_ID", nullable = true, length = 20)
    private Long ifMappingId;
    @Column(name = "USE_YN", nullable = false, length = 1)
    private String useYn;
    @Column(name = "REGIST_ID", nullable = false, length = 30)
    private String registId;
    @Column(name = "REGIST_DATE", nullable = false)
    private LocalDateTime registDate;
    @Column(name = "UPDATE_ID", nullable = true, length = 30)
    private String updateId;
    @Column(name = "UPDATE_DATE", nullable = true)
    private LocalDateTime updateDate;

    @Builder
    public TbDictionaryMaster(Long seq, String oprMngCode, Long groupSeq, String repWord, Long ifMappingId, String useYn, String registId, LocalDateTime registDate, String updateId, LocalDateTime updateDate) {
        this.seq = seq;
        this.oprMngCode = oprMngCode;
        this.groupSeq = groupSeq;
        this.repWord = repWord;
        this.ifMappingId = ifMappingId;
        this.useYn = useYn;
        this.registId = registId;
        this.registDate = registDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
    }
}
