package com.red.circle.wallet.infra.database.rds.entity.diamond;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.red.circle.framework.mybatis.entity.BaseEntity;
import com.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import java.io.Serial;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户工资钻石流水记录.
 * </p>
 *
 * @author zongpubin on 2024-03-13 17:24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_salary_diamond_running_water")
public class SalaryDiamondRunningWater extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 用户id.
   */
  @TableField("user_id")
  private Long userId;

  /**
   * 系统.
   */
  @TableField("sys_origin")
  private String sysOrigin;

  /**
   * 收支类型(0.收入 1.支出).
   */
  @TableField("type")
  private Integer type;

  /**
   * 金额.
   */
  @TableField("amount")
  private BigDecimal amount;

  /**
   * 余额.
   */
  @TableField("balance")
  private BigDecimal balance;

  /**
   * 提现手续费比例.
   */
  @TableField("service_charge")
  private Long serviceCharge;

  /**
   * 实际提现金额.
   */
  @TableField("actual_amount")
  private BigDecimal actualAmount;

  /**
   * 临时余额.
   */
  @TableField("temp_balance")
  private BigDecimal tempBalance;

  /**
   * 跟踪id.
   */
  @TableField("track_id")
  private String trackId;

  /**
   * 事件.
   */
  @TableField("salary_event")
  private String salaryEvent;

  /**
   * 事件描述.
   */
  @TableField("event_desc")
  private String eventDesc;

  /**
   * 备注.
   */
  @TableField("remark")
  private String remark;

  /**
   * 创建用户来源：0 app、1 后台.
   */
  @TableField("create_user_origin")
  private Integer createUserOrigin;

  /**
   * 账单归属(YYYYMM).
   */
  @TableField("bill_belong")
  private Integer billBelong;

  /**
   * 团队id.
   */
  @TableField("team_id")
  private Long teamId;


}
