package com.red.circle.other.infra.database.rds.entity.game;

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 java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * Lucky Box用户盈利亏损记录.
 * </p>
 *
 * @author pengshigang
 * @since 2021-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("game_lucky_box_user_profit_loss")
public class GameLuckyBoxUserProfitLoss implements Serializable {

  private static final long serialVersionUID = 1L;

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

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

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

  /**
   * 盈亏(负数客户赢，正数系统赢).
   */
  @TableField("profit_loss_amount")
  private BigDecimal profitLossAmount;

  /**
   * 创建时间.
   */
  @TableField("create_time")
  private LocalDateTime createTime;

  /**
   * 修改时间.
   */
  @TableField("update_time")
  private LocalDateTime updateTime;

  /**
   * 创建用户.
   */
  @TableField("create_user")
  private Long createUser;

  /**
   * 修改用户.
   */
  @TableField("update_user")
  private Long updateUser;


}
