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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.annotations.CreationTimestamp;

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

@Entity
@Getter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "ens_snd_dtl_kt_gbs_stat_his", schema = "", catalog = "", indexes = {
        @Index(name = "idx_snd_dtl_kt_gbs_stat_his_01", columnList = "regist_dt")
})
public class SendDetailKtGibisStatHist {

    @Id
//	@GeneratedValue(strategy=GenerationType.AUTO)
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "SendDetailKtGibisStatHist_Generator")
    @TableGenerator(table = "ens_seq_generator", name = "SendDetailKtGibisStatHist_Generator"
            , pkColumnName = "seq_name", pkColumnValue = "SendDetailKtGibisStatHist_id"
            , initialValue = 0, allocationSize = 200)
    private Long id;               

    
    @Column(name = "send_detail_id", nullable = false)
    private Long sendDetailId;

    
    @Column(name = "src_key", nullable = true)
    private String srcKey;



    
    @Column(name = "service_cd", nullable = true)
    private String serviceCd;

    
    @Column(name = "mms_sndg_rslt_sqno", nullable = true, length = 8)
    private Integer mmsSndgRsltSqno;

    
    @Column(name = "prcs_dt", nullable = true, length = 8)
    private String prcsDt;

    
    @Column(name = "mms_bsns_dvcd", nullable = true, length = 5)
    private String mmsBsnsDvcd;

    
    @Column(name = "mbl_bzowr_dvcd", nullable = true, length = 2)
    private String mblBzowrDvcd;

    
    @Column(name = "rl_mms_sndg_telno", nullable = true, length = 20)
    private String rlMmsSndgTelno;

    
    @Column(name = "mms_rslt_dvcd", nullable = true, length = 2)
    private String mmsRsltDvcd;

    
    @Column(name = "mms_sndg_tmst", nullable = true, length = 14)
    private String mmsSndgTmst;

    
    @Column(name = "mms_rcv_tmst", nullable = true, length = 14)
    private String mmsRcvTmst;

    
    @Column(name = "mms_rdg_tmst", nullable = true, length = 14)
    private String mmsRdgTmst;

    
    @Column(name = "prev_approve_yn", nullable = true, length = 1)
    private String prevApproveYn;

    
    @Column(name = "msg_type", nullable = true, length = 1)
    private String msgType;



    
    @Column(name = "regist_dt", nullable = true)
    @CreationTimestamp
    private LocalDateTime registDt;

//    @Embedded
//    private FieldError error;


}
