package com.red.circle.other.infra.database.rds.entity.badge;


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 com.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 房间徽章
 * <p>
 * -背包.
 * </p>
 *
 * @author pengliang
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_badge_backpack")
public class RoomBadgeBackpack extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 用户.
   */
  @TableField("user_id")
  private Long userId;

  /**
   * 房间id.
   */
  @TableField("room_id")
  private Long roomId;

  /**
   * 徽章ID.
   */
  @TableField("badge_id")
  private Long badgeId;

  /**
   * 过期类型.
   */
  @TableField("expire_type")
  private String expireType;

  /**
   * 过期时间.
   */
  @TableField("expire_time")
  private Timestamp expireTime;

}
