package com.red.circle.other.app.dto.clientobject.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户团队申请记录.
 *
 * @author pengshigang on 2022/12/20
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class TeamUserApplyRecordCO extends ClientObject {

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

  /**
   * 原因.
   */
  private String reason;

  /**
   * 团队id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long teamId;

  /**
   * 审核状态.
   */
  private String status;

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

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

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

  private UserProfileDTO createUserProfile;

  /**
   * 创建用户来源：0 app、1 后台.
   */
  private Integer createUserOrigin;

  /**
   * 修改用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateUser;

  /**
   * 修改用户来源：0 app、1 后台.
   */
  private Integer updateUserOrigin;

  private UserProfileDTO updateUserProfile;

}
