package com.red.circle.other.infra.database.mongo.entity.team.bd;

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

/**
 * bd邀请代理消息.
 *
 * @author pengliang on 2022/10/10
 */
@Data
@Accessors(chain = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@Document("bd_invite_agent_message")
public class BdInviteAgentMessage implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

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

  /**
   * 被邀请用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long inviteUserId;

  /**
   * 业务类型 MessageInviteGroup.
   */
  private String group;

  /**
   * 消息内容.
   */
  private String message;

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

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

  /**
   * 0.等待，1.同意，2.不同意.
   */
  private Integer status;

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

}
