package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author: fcw
 * @CreateTime: 2025-04-24
 * @Description: 用户评价
 */
@Data
@ApiModel(value = "StoreEvaluation对象", description = "用户评价")
public class StoreEvaluation {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单ID")
    @TableField("user_order_id")
    private String userOrderId;

    @ApiModelProperty(value = "评分")
    @TableField("score")
    private Double score;

    @ApiModelProperty(value = "其他评分")
    @TableField("other_score")
    private String otherScore;

    @ApiModelProperty(value = "评价tags类型")
    @TableField("evaluation_tags_type")
    private String evaluationTagsType;

    @ApiModelProperty(value = "评价tags")
    @TableField("evaluation_tags")
    private String evaluationTags;

    @ApiModelProperty(value = "评价内容")
    @TableField("evaluation_content")
    private String evaluationContent;

    @ApiModelProperty(value = "评价图片")
    @TableField("evaluation_image")
    private String evaluationImage;

    @ApiModelProperty(value = "是否匿名")
    @TableField("is_anonymous")
    private String isAnonymous;

    @ApiModelProperty(value = "消费金额")
    @TableField("consumption_amount")
    private String consumptionAmount;

    @ApiModelProperty(value = "店铺ID")
    @TableField("store_id")
    private String storeId;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(value = "created_user_id", fill = FieldFill.INSERT)
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField(value = "updated_user_id", fill = FieldFill.INSERT_UPDATE)
    private Integer updatedUserId;


    @ApiModelProperty(value = "等级 1:评论   2:评价")
    @TableField("levels")
    private String levels;


    @ApiModelProperty(value = "评论id")
    @TableField("pid")
    private String pid;


    @ApiModelProperty(value = "点赞数量")
    @TableField("likes")
    private int likes;
}
