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

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

import javax.persistence.*;
import java.time.LocalDateTime;

@Table(name = "TB_INTENT_MASTER")
@Entity
@Getter
@Setter
@NoArgsConstructor
public class TbIntentMaster {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY )
    @Column(name = "SEQ", nullable = false, length = 20)
    private Long seq;
    @Column(name = "OPR_MNG_CODE", nullable = true, length = 50)
    private String oprMngCode;
    @Column(name = "INTENT_NAME", nullable = true, length = 50)
    private String intentName;
    @Column(name = "CATEGORY", nullable = true, length = 20)
    private String category;
    @Column(name = "IF_MAPPING_ID", nullable = true, length = 20)
    private Long ifMappingId;
    @Column(name = "USE_YN", nullable = true, length = 1)
    private String useYn;
    @Column(name = "REGIST_ID", nullable = false, length = 20)
    private String registId;
    @Column(name = "REGIST_DATE", nullable = false)
    private LocalDateTime registDate;
    @Column(name = "UPDATE_ID", nullable = true, length = 20)
    private String updateId;
    @Column(name = "UPDATE_DATE", nullable = true)
    private LocalDateTime updateDate;

    @Builder
    public TbIntentMaster(Long seq, String oprMngCode, String intentName, String category, Long ifMappingId, String useYn, String registId, LocalDateTime registDate, String updateId, LocalDateTime updateDate) {
        this.seq = seq;
        this.oprMngCode = oprMngCode;
        this.intentName = intentName;
        this.category = category;
        this.ifMappingId = ifMappingId;
        this.useYn = useYn;
        this.registId = registId;
        this.registDate = registDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
    }
}
