75 lines
1.7 KiB
Java
75 lines
1.7 KiB
Java
package com.chuyishidai.datahub.entity;
|
||
|
||
import com.baomidou.mybatisplus.annotation.*;
|
||
import lombok.Data;
|
||
|
||
import java.math.BigDecimal;
|
||
import java.time.LocalDateTime;
|
||
|
||
/**
|
||
* 统一客户维度宽表 Entity
|
||
* 对齐 DDL: dim_customer_info
|
||
*/
|
||
@Data
|
||
@TableName("dim_customer_info")
|
||
public class CustomerInfo {
|
||
|
||
@TableId(type = IdType.AUTO)
|
||
private Long id;
|
||
|
||
/** 手机号(首选关联枢纽) */
|
||
private String mobile;
|
||
|
||
/** 有赞生态统一用户ID */
|
||
private String yzOpenId;
|
||
|
||
/** 微信生态UnionID */
|
||
private String wxUnionId;
|
||
|
||
/** 微信公众号/小程序OpenID */
|
||
private String wxOpenId;
|
||
|
||
/** 客户昵称快照 */
|
||
private String nickname;
|
||
|
||
/** 客户真实姓名 */
|
||
private String name;
|
||
|
||
/** 性别: 0-未知, 1-男, 2-女 */
|
||
private Integer gender;
|
||
|
||
/** 生日 */
|
||
private java.time.LocalDate birthday;
|
||
|
||
/** 首次注册/留资时间 */
|
||
private LocalDateTime registerTime;
|
||
|
||
/** 注册渠道 */
|
||
private String registerChannel;
|
||
|
||
/** 当前会员等级ID */
|
||
private Long memberLevelId;
|
||
|
||
/** 当前会员等级名称 */
|
||
private String memberLevelName;
|
||
|
||
/** 首单支付时间 */
|
||
private LocalDateTime firstPayTime;
|
||
|
||
/** 最近一次支付时间(RFM-R) */
|
||
private LocalDateTime lastPayTime;
|
||
|
||
/** 历史累计实付金额(RFM-M) */
|
||
private BigDecimal totalPayAmount;
|
||
|
||
/** 历史累计支付订单数(RFM-F) */
|
||
private Integer totalPayCount;
|
||
|
||
/** 客户标签集合 (JSON) */
|
||
private String customerTags;
|
||
|
||
/** 中台数据更新时间 (DB自动管理) */
|
||
@TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
|
||
private LocalDateTime etlUpdateTime;
|
||
}
|