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

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.util.Date;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 直播麦克风 设置.
 *
 * @author pengliang on 2023/12/9
 */
@Data
@Accessors(chain = true)
@Document("live_mic_setting")
public class LiveMicSetting implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  @Id
  private String id;

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

  /**
   * 麦克风位置.
   */
  private List<LiveMicSettingSeat> micSeats;

  /**
   * 创建时间.
   */
  private Date createTime;

  /**
   * 修改时间.
   */
  private Date updateTime;

}
