package com.red.circle.order.infra.database.rds.entity.product;

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

/**
 * <p>
 * 内购产品列表
 * </p>
 *
 * @author pengshigang
 * @since 2023-03-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_product_config_v2")
public class ProductConfigV2 extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

  /**
   * 描述.
   */
  @TableField("description")
  private String description;

  /**
   * 包名.
   */
  @TableField("product_package")
  private String productPackage;

  /**
   * 产品单价.
   */
  @TableField("unit_price")
  private BigDecimal unitPrice;

  /**
   * 获得糖果数量.
   */
  @TableField("obtain_candy")
  private BigDecimal obtainCandy;

  /**
   * 奖励糖果.
   */
  @TableField("reward_candy")
  private BigDecimal rewardCandy;

  /**
   * 平台.
   */
  @TableField("platform")
  private String platform;

  /**
   * 区域ids.
   */
  @TableField("regions")
  private String regions;

  /**
   * 0.下架 1.上架.
   */
  @TableField("is_showcase")
  private Boolean showcase;

  /**
   * 国家codes，逗号分隔，为空则不限制.
   */
  @TableField("country_codes")
  private String countryCodes;

  /**
   * 显示序号.
   */
  @TableField("sort")
  private Integer sort;

}
