package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 评论申诉-用户补充内容表
 *
 * @author zhangchen
 * @since 2026-05-29
 */
@Data
@JsonInclude
@EqualsAndHashCode(callSuper = false)
@TableName("store_comment_appeal_supplement")
@ApiModel(value = "StoreCommentAppealSupplement对象", description = "评论申诉-用户补充内容表")
public class StoreCommentAppealSupplement extends Model<StoreCommentAppealSupplement> {

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

    @ApiModelProperty(value = "申诉ID")
    @TableField("appeal_id")
    private Integer appealId;

    @ApiModelProperty(value = "评价ID")
    @TableField("comment_id")
    private Integer commentId;

    @ApiModelProperty(value = "补充用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "门店ID")
    @TableField("store_id")
    private Integer storeId;

    @ApiModelProperty(value = "用户补充说明")
    @TableField("supplement_content")
    private String supplementContent;

    @ApiModelProperty(value = "补充图片OSS地址，多个英文逗号分隔")
    @TableField("image_urls")
    private String imageUrls;

    @ApiModelProperty(value = "审核状态：0-待审核 1-通过 2-驳回")
    @TableField("audit_status")
    private Integer auditStatus;

    @ApiModelProperty(value = "审核驳回原因")
    @TableField("audit_reason")
    private String auditReason;

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

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    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)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

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