package cokr.xit.ens.biz.iup.domain;

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

import javax.persistence.*;

@Entity
//@Data
@Getter
@ToString
@Builder
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_input_data_xit", schema = "", catalog = "", indexes = {
        @Index(name = "idx_TbInputDataXit_01", columnList = "linked_uuid")
})
public class TbInputDataXit {

    @Id
    @Column(name = "data_id", nullable = false)
    private String dataId;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "lnk_input_id")
    private TbInputXit tbInputXit;

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

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

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

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

    
    @Column(name = "msg_data", nullable = true, length = 4000)
    private String msgData;

    
    @Column(name = "msg_dtl_data", nullable = true)
    @Lob
    private String msgDtlData;

    
    @Column(name = "reg_id", nullable = false)
    private String regId;

    
    @Column(name = "reg_dt", nullable = false)
    private java.sql.Date regDt;

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

    
    @Column(name = "upd_dt", nullable = true)
    private java.sql.Date updDt;

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

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

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

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


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

    
    @Column(name = "linked_uuid", length = 40)
    @Setter
    private String linkedUuid;

}
