package com.red.circle.other.infra.database.mongo.entity.live;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * <p>
 * 置顶房间.
 * </p>
 *
 * @author pengshigang on 2022/11/16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Document("room_top_fixed")
public class RoomTopFixed implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 房间id.
   */
  @Id
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;


  /**
   * 归属系统.
   */
  private String sysOrigin;

  /**
   * 权重.
   */
  private Integer weights;

  /**
   * true 永远在线，false 根据房间人数决定是否在线.
   */
  private Boolean foreverOnline;

  /**
   * 区域.
   */
  private String region;

  /**
   * 开始时间.
   */
  private Timestamp startTime;

  /**
   * 过期时间.
   */
  private Timestamp expiredTime;

}
