package com.red.circle.wallet.infra.database.mongo.entity.bank;

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 pengliang on 2023/2/15
 */
@Data
@Accessors(chain = true)
@Document("user_bank_withdraw_gold_apply")
public class UserBankWithdrawGoldApply implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 归属平台.
   */
  private String sysOrigin;

  /**
   * GoldWithdrawAcceptAccount, 接收方式.
   */
  private String acceptAccount;

  /**
   * 接收用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long acceptUserId;

  /**
   * 提交用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long submitUserId;

  /**
   * 提交金额.
   */
  private BigDecimal amount;

  /**
   * 获得金币.
   */
  private String goldQuantity;

  /**
   * 兑换比率.
   */
  private String exchangeRate;

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

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

  /**
   * 创建用户.
   */
  private Long createUser;

  /**
   * 修改用户.
   */
  private Long updateUser;

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

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

}
