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

/**
 * <p>
 * 内购产品列表.
 * </p>
 *
 * @author pengliang
 * @since 2020-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_product_config")
public class ProductConfig extends TimestampBaseEntity implements Serializable {

  private static final long serialVersionUID = 1L;

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

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

  /**
   * 产品id.
   */
  @TableField("product_id")
  private String productId;

  /**
   * 产品类型.
   */
  @TableField("product_type")
  private String productType;

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

  /**
   * 分组名称.
   */
  @TableField("group_name")
  private String groupName;

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

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

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

  /**
   * 折扣率.
   */
  @TableField("discount_rate")
  private BigDecimal discountRate;

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

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

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

  /**
   * 是否推荐产品.
   */
  @TableField("is_recommend")
  private Boolean recommend;

  /**
   * 标签.
   */
  @TableField("tags")
  private String tags;

}
