/*
 * Copyright 2022-2025 兮玥(190785909@qq.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.chestnut.cms.stat.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

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

@Getter
@Setter
@TableName(CmsSiteVisitLog.TABLE_NAME)
public class CmsSiteVisitLog implements Serializable {
	
	public final static String TABLE_NAME = "cms_site_visit_log";

	@TableId(value = "log_id", type = IdType.INPUT)
	private Long logId;

	/**
	 * 站点ID
	 */
	private Long siteId;
	
	/**
	 * 栏目ID
	 */
	private Long catalogId;
	
	/**
	 * 内容ID
	 */
	private Long contentId;

	/**
	 * 请求域
	 */
	private String host;

	/**
	 * 请求地址
	 */
	private String uri;

	/**
	 * IP地址
	 */
	private String ip;

	/**
	 * IP所属地区
	 */
	private String address;

	/**
	 * 来源地址
	 */
	private String referer;

	/**
	 * 浏览器类型
	 */
	private String browser;

	/**
	 * UserAgent
	 */
	private String userAgent;

	/**
	 * 操作系统
	 */
	private String os;

	/**
	 * 设备类型
	 */
	private String deviceType;

	/**
	 * 语言
	 */
	private String locale;

	/**
	 * 屏幕分辨率：宽
	 */
	private Integer screenWidth;

	/**
	 * 屏幕分辨率：高
	 */
	private Integer screenHeight;

	/**
	 * 色彩深度
	 */
	private Integer colorDepth;

	/**
	 * 是否允许cookie
	 */
	private Integer cookieEnabled;

	/**
	 * 是否允许java
	 */
	private Integer javaEnabled;

	/**
	 * 访问时长，单位：秒
	 */
	private Integer visitTime;

	/**
	 * 访客唯一标识
	 */
	private String uuid;

	/**
	 * 发生时间
	 */
	private LocalDateTime evtTime;
}
