package com.xiaoniu.system.platformusers.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-10-17 09:10:56
 */
@Getter
@Setter
@TableName("tb_user_info")
@Schema(name = "TbUserInfo", description = "用户信息表")
public class TbUserInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "剩余积分")
    private Integer remainingPoints;

    @Schema(description = "会员id")
    private Long memberId;

    @Schema(description = "会员到期时间")
    private Date expirationTime;

    @Schema(description = "信誉分")
    private Integer creditScore;

    @Schema(description = "签到连续天数")
    private Integer continuousDays;

    @Schema(description = "用户类型")
    private String userType;

    @Schema(description = "用户标签")
    private String userLabel;

    @Schema(description = "创建者")
    private Long createBy;

    @Schema(description = "创建",hidden = true)
    private Date createTime;
}
