package com.viettel.campaign.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "CAMPAIGN")
@Getter
@Setter
public class Campaign implements Serializable {

    @Id
    @NotNull
    @Basic(optional = false)
    @Column(name = "CAMPAIGN_ID")
    private BigDecimal campaignId;
    @Column(name = "COMPANY_SITE_ID")
    private BigDecimal companySiteId;
    @Column(name = "CAMPAIGN_CODE")
    private String campaignCode;
    @Column(name = "CAMPAIGN_NAME")
    private String campaignName;
    @Column(name = "CHANEL")
    private BigDecimal chanel;
    @Column(name = "CONTENT")
    private String content;
    @Column(name = "CUSTOMER_NUMBER")
    private BigDecimal customerNumber;
    @Column(name = "TARGET")
    private String target;
    @Column(name = "STATUS")
    private BigDecimal status;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "START_TIME")
    private Date startTime;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "END_TIME")
    private Date endTime;
    @Column(name = "MAX_RECALL")
    private Integer maxRecall;
    @Column(name = "RECALL_TYPE")
    private Integer recallType;
    @Column(name = "RECALL_DURATION")
    private Integer recallDuration;
    @Column(name = "CREATE_BY")
    private String createBy;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATE_TIME")
    private Date createTime;
    @Column(name = "UPDATE_BY")
    private String updateBy;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "UPDATE_TIME")
    private Date updateTime;
    @Column(name = "CAMPAIGN_TYPE")
    private String campaignType;
    @Column(name = "PRODUCT")
    private String product;
    @Column(name = "PROCESS_STATUS")
    private Integer processStatus;
    @Column(name = "DIAL_MODE")
    private BigDecimal dialMode;
    @Column(name = "DEPT_CODE")
    private String deptCode;
    @Column(name = "TIME_RANGE")
    private String timeRange;
    @Column(name = "DAY_OF_WEEK")
    private String dayOfWeek;
    @Column(name = "CURRENT_TIME_MODE")
    private BigDecimal currentTimeModel;
    @Column(name = "WRAPUP_TIME_CONNECT")
    private BigDecimal wrapupTimeConnect;
    @Column(name = "WRAPUP_TIME_DISCONNECT")
    private BigDecimal wrapupTimeDisconnect;
    @Column(name = "PREVIEW_TIME")
    private BigDecimal previewTime;
    @Column(name = "RATE_DIAL")
    private BigDecimal rateDial;
    @Column(name = "RATE_MISS")
    private BigDecimal rateMiss;
    @Column(name = "AVG_TIME_PROCESS")
    private BigDecimal avgTimeProcess;
    @Column(name = "IS_APPLY_CUST_LOCK")
    private BigDecimal isApplyCustLock;
    @Column(name = "TARGET_TYPE")
    private BigDecimal targetType;
    @Column(name = "IS_TARGET")
    private BigDecimal isTarget;
    @Column(name = "CAMPAIGN_IVR_CALLED_ID")
    private BigDecimal campaignIvrCalledId;
    @Column(name = "CONCURRENT_CALL")
    private BigDecimal concurrentCall;
    @Column(name = "CALL_OUT_TIME_IN_DAY")
    private String callOutTimeInDay;
    @Column(name = "MUSIC_LIST")
    private String musicList;
    @Column(name = "TIME_PLAY_MUSIC")
    private Integer timePlayMusic;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CAMPAIGN_START")
    private Date campaignStart;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CAMPAIGN_END")
    private Date campaignEnd;
    @Column(name = "TIME_WAIT_AGENT")
    private Integer timeWaitAgent;
    @Column(name = "QUEST_INDEX")
    private BigDecimal questIndex;

}
