package com.dora.entity;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class User {
    private Long id;
    private String phone;
    private String wechatOpenid; // 微信openid
    private String username;
    private String realUsername; // 真实用户名
    private String idNumber; // 身份证号码
    private String passwordJwt;
    private Integer role; // 角色（0游客/1普通/2VIP/3SVIP）
    private LocalDateTime membershipExpiresAt;
    private String avatarUrl;
    private Integer isVerified; // 是否实名认证 (0-未认证, 1-已认证)
    private String inviteCode;
    private Long inviterId;
    private Integer promotionLevel; // 推广等级
    private Integer points; // 积分余额
    private LocalDateTime pointsExpiresAt; // 积分过期时间
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer isDeleted; // 逻辑删除标识
} 