68 lines
1.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.designhub.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 用户徽章实体
*/
@Data
@TableName("user_badge")
public class UserBadge implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
private Long id;
/**
* 用户ID
*/
private Long userId;
/**
* 徽章代码
*/
private String badgeCode;
/**
* 徽章名称
*/
private String badgeName;
/**
* 徽章图标URL
*/
private String badgeIcon;
/**
* 徽章颜色
*/
private String badgeColor;
/**
* 徽章描述
*/
private String description;
/**
* 来源类型:rule/manual/achievement
*/
private String sourceType;
/**
* 来源ID
*/
private Long sourceId;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
}