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;

/**
 * <p>
 * 账号风险率个性化表
 * </p>
 *
 * @author XKF
 * @since 2024-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ACCOUNTRISKCONFIG")
@ApiModel(value="Accountriskconfig对象", description="账号风险率个性化表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Accountriskconfig extends Model<Accountriskconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资金账号ID")
    private Long accountid;

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

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

    @TableField(select = false)
    private String accountname;

    @TableField(select = false)
    private Integer usertype;

    @TableField(select = false)
    private Integer ismarketacc;
    @Override
    public Serializable pkVal() {
        return this.accountid;
    }

}
