package com.gxwebsoft.cms.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 站点统计信息表
 *
 * @author 科技小王子
 * @since 2025-07-25 12:32:06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsStatistics对象", description = "站点统计信息表")
public class CmsStatistics implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "站点ID")
    private Integer websiteId;

    @Schema(description = "用户总数")
    private Integer userCount;

    @Schema(description = "订单总数")
    private Integer orderCount;

    @Schema(description = "商品总数")
    private Integer productCount;

    @Schema(description = "总销售额")
    private BigDecimal totalSales;

    @Schema(description = "本月销售额")
    private BigDecimal monthSales;

    @Schema(description = "今日销售额")
    private BigDecimal todaySales;

    @Schema(description = "昨日销售额")
    private BigDecimal yesterdaySales;

    @Schema(description = "本周销售额")
    private BigDecimal weekSales;

    @Schema(description = "本年销售额")
    private BigDecimal yearSales;

    @Schema(description = "今日订单数")
    private Integer todayOrders;

    @Schema(description = "本月订单数")
    private Integer monthOrders;

    @Schema(description = "今日新增用户")
    private Integer todayUsers;

    @Schema(description = "本月新增用户")
    private Integer monthUsers;

    @Schema(description = "今日访问量")
    private Integer todayVisits;

    @Schema(description = "总访问量")
    private Integer totalVisits;

    @Schema(description = "商户总数")
    private Integer merchantCount;

    @Schema(description = "活跃用户数")
    private Integer activeUsers;

    @Schema(description = "转化率(%)")
    private BigDecimal conversionRate;

    @Schema(description = "平均订单金额")
    private BigDecimal avgOrderAmount;

    @Schema(description = "统计日期")
    private LocalDate statisticsDate;

    @Schema(description = "统计类型: 1日统计, 2月统计, 3年统计")
    private Integer statisticsType;

    @Schema(description = "排序号")
    private Integer sortNumber;

    @Schema(description = "操作用户ID")
    private Integer userId;

    @Schema(description = "商户ID")
    private Integer merchantId;

    @Schema(description = "状态: 0禁用, 1启用")
    private Boolean status;

    @Schema(description = "是否删除: 0否, 1是")
    @TableLogic
    private Boolean deleted;

    @Schema(description = "租户ID")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
