package top.tqx.demo_1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("report")
public class Report implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("report_type")
    private String reportType;
    
    @TableField("start_date")
    private LocalDate startDate;
    
    @TableField("end_date")
    private LocalDate endDate;
    
    @TableField("total_queries")
    private Integer totalQueries;
    
    @TableField("total_feedback")
    private Integer totalFeedback;
    
    @TableField("positive_count")
    private Integer positiveCount;
    
    @TableField("negative_count")
    private Integer negativeCount;
    
    @TableField("satisfaction_rate")
    private BigDecimal satisfactionRate;
    
    @TableField("avg_rating")
    private BigDecimal avgRating;
    
    @TableField("high_freq_queries")
    private String highFreqQueries;
    
    @TableField("low_rating_queries")
    private String lowRatingQueries;
    
    @TableField("improvement_suggestions")
    private String improvementSuggestions;
    
    @TableField("created_at")
    private LocalDateTime createdAt;
}
