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.util.Date;

/**
 * <p>
 * 会员商品限制配置表(不显示、不能交易的权限)
 * </p>
 *
 * @author XKF
 * @since 2024-12-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("MEMBERGOODSLIMITCONFIG")
@ApiModel(value="Membergoodslimitconfig对象", description="会员商品限制配置表(不显示、不能交易的权限)")
@KeySequence(value = "SEQ_MEMBERGOODSLIMITCONFIG")
public class Membergoodslimitconfig extends Model<Membergoodslimitconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "AutoID(SEQ_MEMBERGOODSLIMITCONFIG)")
    @TableId(value = "AUTOID", type = IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "会员用户ID")
    @TableField("USERID")
    private Long userid;

    @ApiModelProperty(value = "会员角色 - 6:自营会员 7:经纪会员")
    @TableField("ROLETYPE")
    private Integer roletype;

    @ApiModelProperty(value = "商品ID")
    @TableField("GOODSID")
    private Long goodsid;

    @ApiModelProperty(value = "是否不显示 0:否 1:是")
    @TableField("ISNODISPLAY")
    private Integer isnodisplay;

    @ApiModelProperty(value = "是否不能挂买 0:否 1:是")
    @TableField("ISCANNOTBUY")
    private Integer iscannotbuy;

    @ApiModelProperty(value = "是否不能挂卖 0:否 1:是")
    @TableField("ISCANNOTSELL")
    private Integer iscannotsell;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;


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

}
