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

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

/**
 * <p>
 * 礼包配置.
 * </p>
 *
 * @author pengliang
 * @since 2021-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_gift_pack_config")
public class GiftPackConfig extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId("id")
  private Long id;

  /**
   * 礼包id.
   */
  @TableField("gift_pack_id")
  private Long giftPackId;

  /**
   * 类型:  礼物:GIFT  金币:GOLD  头像框：AVATAR_FRAME 座驾：RIDE.
   */
  @TableField("type")
  private String type;

  /**
   * 金币值.
   */
  @TableField("gold")
  private BigDecimal gold;

  /**
   * 关联id.
   */
  @TableField("relevance_id")
  private Long relevanceId;

  /**
   * 礼物数量.
   */
  @TableField("gift_quantity")
  private Integer giftQuantity;

  /**
   * 道具有效时长 单位：天.
   */
  @TableField("effect_duration")
  private Integer effectDuration;

}
