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

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.TimestampBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 房间pk游戏 胜利者表.
 * </p>
 *
 * @author pengshigang
 * @since 2021-09-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("game_room_pk_winner_record")
public class GameRoomPkWinnerRecord extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * ID.
   */
  @TableId("id")
  private Long id;

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

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

  /**
   * 自己的积分.
   */
  @TableField("integral")
  private Long integral;

  /**
   * 总积分 = 自己 + 对手 + 满足条件的额外积分.
   */
  @TableField("total_integral")
  private Long totalIntegral;

  /**
   * 类型:0.正常 1.额外奖励分值.
   */
  @TableField("type")
  private Boolean type;

  /**
   * pk类型.
   */
  @TableField("pk_type")
  private String pkType;

}
