package top.tqx.demo_1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName("faq")
public class FAQ {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String question;

    private String answer;

    private BigDecimal avgRating;

    private Integer frequency;

    private String status;

    private String sourceDocuments;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    // Getters
    public Long getId() {
        return id;
    }

    public String getQuestion() {
        return question;
    }

    public String getAnswer() {
        return answer;
    }

    public BigDecimal getAvgRating() {
        return avgRating;
    }

    public Integer getFrequency() {
        return frequency;
    }

    public String getStatus() {
        return status;
    }

    public String getSourceDocuments() {
        return sourceDocuments;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    // Setters
    public void setId(Long id) {
        this.id = id;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public void setAvgRating(BigDecimal avgRating) {
        this.avgRating = avgRating;
    }

    public void setFrequency(Integer frequency) {
        this.frequency = frequency;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setSourceDocuments(String sourceDocuments) {
        this.sourceDocuments = sourceDocuments;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
}