package shop.alien.entity.second;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ssk
 * @since 2025-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SecondComplaint对象", description="")
public class SecondComplaint extends Model<SecondComplaint> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "投诉id")
    @TableField("complaint_id")
    private Integer complaintId;

    @ApiModelProperty(value = "投诉类型  1-用户  2-商品")
    @TableField("complaint_type")
    private Integer complaintType;

    @ApiModelProperty(value = "投诉原因")
    @TableField("complaint_reason")
    private String complaintReason;

    @ApiModelProperty(value = "投诉状态  0-审核中  1-成功  2-失败")
    @TableField("complaint_status")
    private Integer complaintStatus;

    @ApiModelProperty(value = "投诉结果")
    @TableField("complaint_result")
    private String complaintResult;

    @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;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
