package com.ruoyi.account.api.model;
|
|
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 lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/**
|
* 用户
|
* @author zhibing.pu
|
* @Date 2024/11/21 9:25
|
*/
|
@Data
|
@TableName("t_app_user")
|
public class AppUser {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.NONE)
|
private Long id;
|
/**
|
* 用户名
|
*/
|
@TableField("name")
|
private String name;
|
/**
|
* 手机号
|
*/
|
@TableField("phone")
|
private String phone;
|
/**
|
* 头像
|
*/
|
@TableField("avatar")
|
private String avatar;
|
/**
|
* 会员id
|
*/
|
@TableField("vip_id")
|
private Integer vipId;
|
/**
|
* 微信openid
|
*/
|
@TableField("wx_openid")
|
private String wxOpenid;
|
/**
|
* 状态(1=正常,2=冻结,3=注销)
|
*/
|
@TableField("status")
|
private Integer status;
|
/**
|
* 添加时间
|
*/
|
@TableField("create_time")
|
private LocalDateTime createTime;
|
/**
|
* 删除(0=否,1=是)
|
*/
|
@TableField("del_flag")
|
private Integer delFlag;
|
/**
|
* 0否1是第一次添加
|
*/
|
@TableField("first_add")
|
private Integer firstAdd;
|
/**
|
* 最后一次登录时间
|
*/
|
@TableField("last_login_time")
|
private LocalDateTime lastLoginTime;
|
/**
|
* 推广人id
|
*/
|
@TableField("invite_user_id")
|
private Long inviteUserId;
|
/**
|
* 拥有门店id
|
*/
|
@TableField("shop_id")
|
private Integer shopId;
|
/**
|
* 合伙人积分数
|
*/
|
@TableField("part_point")
|
private Integer partPoint;
|
/**
|
* 合伙人培育积分数
|
*/
|
@TableField("part_grow_point")
|
private Integer partGrowPoint;
|
/**
|
* 消费积分数
|
*/
|
@TableField("shop_point")
|
private Integer shopPoint;
|
/**
|
* 返佣积分数
|
*/
|
@TableField("share_point")
|
private Integer sharePoint;
|
/**
|
* 消费总金额
|
*/
|
@TableField("shop_amount")
|
private BigDecimal shopAmount;
|
/**
|
* 最后消费时间
|
*/
|
@TableField("last_shop_time")
|
private LocalDateTime lastShopTime;
|
}
|