package com.muchinfo.mtp3pojos.entity;

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.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 机构角色市场权限表
 * </p>
 *
 * @author XKF
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("AREAROLEMARKET")
@ApiModel(value="Arearolemarket对象", description="机构角色市场权限表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Arearolemarket extends Model<Arearolemarket> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "机构用户ID")
    @TableId(value = "AREAUSERID")
    private Long areauserid;

    @ApiModelProperty(value = "角色类型 -  6:自营会员 7:经纪会员 20:组织机构")
    @TableField("ROLETYPE")
    private Integer roletype;

    @ApiModelProperty(value = "市场ID")
    @TableField("MARKETID")
    private Long marketid;

    @ApiModelProperty(value = "修改时间")
    @TableField("MODIFYTIME")
    private Date modifytime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("MODIFIERID")
    private Long modifierid;

    @ApiModelProperty(value = "现货权限类型 - 0:无 1:可挂可摘 2:可挂 3:可摘 [现货类](卖大厅)")
    @TableField("SPOTRIGHTTYPE")
    private Integer spotrighttype;

    @ApiModelProperty(value = "现货权限类型 - 0:无 1:可挂可摘 2:可挂 3:可摘 [现货类](买大厅)")
    @TableField("BUYSPOTRIGHTTYPE")
    private Integer buyspotrighttype;


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

}
