package com.pig4cloud.pig.marketing.api.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * @author: lwh
 * @date: 2025-07-16
 * @description: 营销数据统计
 */
@Data
@TableName("mkt_mgmt_data")
@Schema(description = "营销数据统计")
@EqualsAndHashCode(callSuper = true)
public class MarketingData extends Model<MarketingData> {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(value = "id")
	@Schema(description = "id")
	private Long id;

	/**
	 * ip
	 */
	@Schema(description = "ip")
	private String ip;

	/**
	 * 域名
	 */
	@Schema(description = "域名")
	private String domain;

	/**
	 * 浏览器指纹
	 */
	@Schema(description = "浏览器指纹")
	private String fingerprint;

	/**
	 * 流量的原始来源
	 */
	@Schema(description = "流量的原始来源")
	private String utmSource;

	/**
	 * 推广渠道类型
	 */
	@Schema(description = "推广渠道类型")
	private String utmMedium;

	/**
	 * 活动名称
	 */
	@Schema(description = "活动名称")
	private String utmCampaign;

	/**
	 * 关键词
	 */
	@Schema(description = "关键词")
	private String utmTerm;

	/**
	 * 活动内容
	 */
	@Schema(description = "活动内容")
	private String utmContent;

	/**
	 * 跳转来源
	 */
	@Schema(description = "跳转来源")
	private String referrer;

	/**
	 * 时间戳
	 */
	@Schema(description = "时间戳")
	private LocalDateTime timestamp;

	/**
	 * 埋点服务url地址
	 */
	@Schema(description = "埋点服务url地址")
	private String url;

	/**
	 * 是否移动端
	 */
	@Schema(description = "是否移动端")
	private Boolean isMobile;

	/**
	 * 浏览器
	 */
	@Schema(description = "浏览器")
	private String browser;

	@Schema(description = "浏览器版本")
	private String browserVersion;
	/**
	 * 用户代理信息
	 */
	@Schema(description = "用户代理信息")
	private String userAgent;

	/**
	 * 操作系统类型
	 */
	@Schema(description = "操作系统类型")
	private String osType;

	/**
	 * 操作系统版本
	 */
	@Schema(description = "操作系统版本")
	private String osVersion;

	/**
	 * appId
	 */
	@Schema(description = "appId")
	private String appId;

	/**
	 * 删除标记
	 */
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "删除标记,1:已删除,0:正常")
	private String delFlag;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	private String createBy;

	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.UPDATE)
	@Schema(description = "修改人")
	private String updateBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.UPDATE)
	@Schema(description = "更新时间")
	private LocalDateTime updateTime;
}
