package com.red.circle.game.fruit.infrastructure.database.entity;

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

/**
 * <p>
 * 用户已开的宝箱奖励.
 * </p>
 *
 * @author zongpubin on 2023-12-12 14:19
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("game_fruit_user_opened_award")
public class GameFruitUserOpenedAward extends BaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 活动规则id.
   */
  @TableField("rule_id")
  private Long ruleId;

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

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

  /**
   * 宝箱类型.
   */
  @TableField("box_type")
  private String boxType;

  /**
   * 开奖年月日(yyyyMMdd).
   */
  @TableField("open_date")
  private Integer openDate;


}
