package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 积分类型表
 * </p>
 *
 * @author XKF
 * @since 2024-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SCORETYPE")
@ApiModel(value="Scoretype对象", description="积分类型表")
@KeySequence(value = "SEQ_SCORETYPE")
public class Scoretype extends Model<Scoretype> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "积分类型ID - SEQ_SCORETYPE")
    @TableId(value = "SCORETYPEID", type = IdType.INPUT)
    private Long scoretypeid;

    @ApiModelProperty(value = "积分类型名称")
    @TableField("SCORETYPENAME")
    private String scoretypename;

    @ApiModelProperty(value = "是否商城可用 - 0:不是 1:是")
    @TableField("ISSHOP")
    private Integer isshop;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    private Date createtime;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "积分服务商ID")
    @TableField("SCOREUSERID")
    private Long scoreuserid;

    @ApiModelProperty(value = "百积分抵资金(销售)")
    @TableField("SELLRATIO")
    private BigDecimal sellratio;

    @ApiModelProperty(value = "百积分抵资金(回购)")
    @TableField("BUYRATIO")
    private BigDecimal buyratio;

    @ApiModelProperty(value = "是否有效 - 0:无效 1:有效")
    @TableField("ISVALID")
    private Integer isvalid;


    @Override
    public Serializable pkVal() {
        return this.scoretypeid;
    }

}
