package com.rj.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * AI 问答主表
 *
 * <p>对应表：ai_qa_main</p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ai_qa_main")
@Schema(description = "AI问答主表")
public class AiQaMain implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键，UUID")
    @TableId("id")
    private String id;

    @Schema(description = "主题")
    @TableField("title")
    private String title;

    @Schema(description = "问题类型")
    @TableField("qa_type")
    private String qaType;

    @Schema(description = "提问内容")
    @TableField("ask_content")
    private String askContent;

    @Schema(description = "销售ID")
    @TableField("sales_id")
    private String salesId;

    @Schema(description = "销售手机号")
    @TableField("sales_phone")
    private String salesPhone;

    @Schema(description = "销售姓名")
    @TableField("sales_name")
    private String salesName;

    @Schema(description = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    @Schema(description = "备注")
    @TableField("remarks")
    private String remarks;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
