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

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.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 房间订阅数.
 * </p>
 *
 * @author pengshigang
 * @since 2021-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_subscription_count")
public class RoomSubscriptionCount extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

  /**
   * 订阅数.
   */
  @TableField("subscription_count")
  private Integer subscriptionCount;

}
