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

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

/**
 * <p>
 * 道具商店.
 * </p>
 *
 * @author pengliang
 * @since 2022/04/13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("props_commodity_store")
public class PropsCommodityStore extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 归属平台.
   */
  @TableField("sys_origin")
  private String sysOrigin;

  /**
   * 道具资源id.
   */
  @TableField("source_id")
  private Long sourceId;

  /**
   * 道具类型.
   */
  @TableField("props_type")
  private String propsType;

  /**
   * 付费类型.
   */
  @TableField("currency_types")
  private String currencyTypes;

  /**
   * 有效天数.
   */
  @TableField("valid_days")
  private String validDays;

  /**
   * 优惠比率.
   */
  @TableField("discount")
  private BigDecimal discount;

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

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

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

  /**
   * 0.未删除 1.已删除
   */
  @TableField("is_del")
  private Boolean del;

}
