package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("t_stat_user_repurchase")
public class StatUserRepurchase implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private LocalDate statDate;

    private Long userId;

    private Long shopId;

    private Integer orderCount;

    private Integer totalOrderCount;

    private LocalDate firstOrderDate;

    private LocalDate lastOrderDate;

    private BigDecimal totalAmount;

    private BigDecimal avgOrderAmount;

    private Integer repurchaseDays;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
