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>
 * 用户分组表
AreaUserID = 1为平台对机构分组
 * </p>
 *
 * @author XKF
 * @since 2024-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("USERGROUP")
@ApiModel(value="Usergroup对象", description="用户分组表 AreaUserID = 1为平台对机构分组")
@KeySequence(value = "SEQ_USERGROUP")
public class Usergroup extends Model<Usergroup> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "AUTOID",  type=IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "用户分组名称")
    @TableField("GROUPNAME")
    private String groupname;

    @ApiModelProperty(value = "所属机构ID[AreaUserID = 1为平台对机构分组]")
    @TableField("AREAUSERID")
    private Long areauserid;

    @ApiModelProperty(value = "风险率客户类别")
    @TableField("CUSTOMERTYPE")
    private Integer customertype;

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

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


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

}
