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.Serial;
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 houyong
 * @since 2020-12-01
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Document("room_tourist")
public class RoomTourist implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识
   */
  @Id
  private String id;

  /**
   * 时序id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long timeId;

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

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 创建时间.
   */
  Timestamp createTime;

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