package com.codvision.monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 站点访问记录
 * </p>
 *
 * @author lingee
 * @since 2023-11-20
 */
@Data
@TableName("tbl_website_access_record")
@ApiModel(value = "WebsiteAccessRecord", description = "站点访问记录")
public class WebsiteAccessRecord implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty("网站key")
    private String websiteKey;

    @ApiModelProperty("访问界面地址")
    private String url;

    @ApiModelProperty("访问者ID")
    private Integer visitorUid;

    @ApiModelProperty("访问者用户名")
    private String visitorName;

    @ApiModelProperty("IP地址")
    private String ip;

    @ApiModelProperty("错误信息")
    private String errorMsg;

    @ApiModelProperty("类型 0-pv/uv、1-错误信息")
    private Short type;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;


}
