package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 埋点统计数据实体类
 *
 * @author system
 * @since 2026-01-14
 */
@Data
@JsonInclude
@TableName("store_track_statistics")
@ApiModel(value = "StoreTrackStatistics对象", description = "埋点统计表")
public class StoreTrackStatistics {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "店铺ID")
    @TableField("store_id")
    private Integer storeId;

    @ApiModelProperty(value = "统计日期")
    @TableField("stat_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date statDate;

    @ApiModelProperty(value = "统计类型")
    @TableField("stat_type")
    private String statType;

    @ApiModelProperty(value = "流量数据(JSON格式)")
    @TableField("traffic_data")
    private String trafficData;

    @ApiModelProperty(value = "互动数据(JSON格式)")
    @TableField("interaction_data")
    private String interactionData;

    @ApiModelProperty(value = "优惠券数据(JSON格式)")
    @TableField("coupon_data")
    private String couponData;

    @ApiModelProperty(value = "代金券数据(JSON格式)")
    @TableField("voucher_data")
    private String voucherData;

    @ApiModelProperty(value = "服务质量数据(JSON格式)")
    @TableField("service_data")
    private String serviceData;

    @ApiModelProperty(value = "价目表排名数据(JSON格式)")
    @TableField("price_ranking_data")
    private String priceRankingData;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;
}