package com.red.circle.console.app.dto.clienobject.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.agency.agency.TeamProfileDTO;
import com.red.circle.other.inner.enums.team.TeamMemberRole;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 团队成员.
 *
 * @author pengliang on 2022/12/9
 */
@Data
@Accessors(chain = true)
public class TeamMemberCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

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

  /**
   * 用户资料.
   */
  private UserProfileDTO userProfile;

  /**
   * 团长信息.
   */
  private UserProfileDTO ownUserProfile;

  /**
   * 团队资料.
   */
  private TeamProfileDTO teamProfile;

  /**
   * 角色.
   */
  private TeamMemberRole role;

  /**
   * 备注.
   */
  private String remarks;

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

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

  /**
   * 最近活跃时间.
   */
  private Timestamp activeTime;

  /**
   * 创建用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private String createUserNickname;

  /**
   * 创建用户.
   */
  private UserProfileDTO createUserProfile;

}
