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


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.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 将主播剩余目标兑换成美元记录.
 *
 * @author pengshigang on 2023/5/25
 */
@Data
@Accessors(chain = true)
@Document("team_exchange_surplus_target")
public class TeamExchangeSurplusTarget implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * id.
   */
  @Id
  private Long id;

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

  /**
   * 区域Code.
   */
  private String regionCode;

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

  /**
   * 日期数(兑换的是几月份的剩余积分).
   */
  private Integer dateNumber;

  /**
   * 完成的最高政策等级目标.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long maxPolicyTarget;

  /**
   * 成员目标.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long memberTarget;

  /**
   * 剩余目标.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long surplusTarget;

  /**
   * 兑换比例.
   */
  private BigDecimal subscriptionRatio;

  /**
   * 美元.
   */
  private BigDecimal amountUsd;

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

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

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

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

}
