package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 团购数据统计
 * @TableName life_group_buy_count
 */
@TableName(value ="life_group_buy_count")
@JsonInclude
@Data
public class LifeGroupBuyCount {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 统计类型(0访问/1访客/2上架/3下架)
     */
    @ApiModelProperty(value = "统计类型(0访问/1访客/2上架/3下架)")
    @TableField("count_type")
    private String countType;

    /**
     * 店铺id
     */
    @ApiModelProperty(value = "店铺id")
    @TableField("store_id")
    private Integer storeId;

    /**
     * 团购id
     */
    @ApiModelProperty(value = "团购id")
    @TableField("group_id")
    private Integer groupId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    @TableField("count_num")
    private Integer countNum;

    /**
     * 统计日期
     */
    @ApiModelProperty(value = "统计日期")
    @TableField("count_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date countDate;
}