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

import cokr.xit.ens.modules.common.domain.support.FieldError;
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_ott_his", schema = "", catalog = "", indexes = {
        @Index(name = "idx_snd_dtl_kt_gbs_ott_his_01", columnList = "regist_dt")
})
public class SendDetailKtGibisTokenHist {

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


//    @Column(name = "client_src_key", nullable = true)
//    private String clientSrcKey;


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

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

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

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

    @Embedded
    private FieldError error;


}
