package com.pig4cloud.pig.statistics.api.entity.user;


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

import java.time.LocalDateTime;

/**
 * @author: lwh
 * @date: 2025-08-11
 * @description: 营销统计-用户分析
 */
@Data
@Schema(description = "用户分析")
@EqualsAndHashCode(callSuper = true)
public class MktStatUserAnalysis extends Model<MktStatUserAnalysis> {

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

	/**
	 * 渠道
	 */
	@Schema(description = "渠道")
	private String channel;

	/**
	 * 版本
	 */
	@Schema(description = "版本")
	private String version;

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

	/**
	 * 新增用户
	 */
	@Schema(description = "新增用户")
	private Integer newUser;

	/**
	 * 活跃用户
	 */
	@Schema(description = "活跃用户")
	private Integer activeUser;

	/**
	 * 启动次数
	 */
	@Schema(description = "启动次数")
	private Integer launch;

	/**
	 * 统计时间
	 */
	@Schema(description = "统计时间")
	private LocalDateTime statDate;

	/**
	 * 删除标记
	 */
	@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;
}
