package cokr.xit.ens.biz.traffic.chuncheon.mydoc.domain;

import cokr.xit.ens.biz.traffic.chuncheon.mydoc.domain.embeded.FieldCreate;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.annotations.UpdateTimestamp;
import org.springframework.context.annotation.Profile;

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

/**
 * <ul>
 * <li>업무 그룹명: 전자고지발송결과 테이블</li>
 * <li>설 명: </li>
 * <li>작성일: 2021. 12. 22. 오후 5:45:14
 * </ul>
 *
 * @author mk1126sj
 */
@Getter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "tb_elctrn_ntic_sndng_result")
@Profile("prod-traffic")
public class ElctrnNticSndngResult {


    @Id
    @Column(name = "elctrn_ntic_sndng_detail_id", length = 20)
    private String elctrnNticSndngDetailId;
    @Column(name = "sndng_result_code", length = 4)
    private String sndngResultCode;
    @Column(name = "requst_dt", length = 14)
    private String requstDt;
    @Column(name = "inqire_dt", length = 14)
    private String inqireDt;
    @Column(name = "readng_dt", length = 14)
    private String readngDt;
    @Column(name = "error_cn", length = 1000)
    private String errorCn;
    @Embedded
    private FieldCreate create;

    
    @UpdateTimestamp
    @Column(name = "last_updt_dt", nullable = true)
    private LocalDateTime lastUpdtDt;
}
