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.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 扩展字段定义表
 * </p>
 *
 * @author XKF
 * @since 2025-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BANK_EXTENDFIELD")
@ApiModel(value="BankExtendfield对象", description="扩展字段定义表")
public class BankExtendfield extends Model<BankExtendfield> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字段ID")
    private Long fieldid;

    @ApiModelProperty(value = "字段代码")
    @TableField("FIELDCODE")
    private String fieldcode;

    @ApiModelProperty(value = "字段名称")
    @TableField("FIELDNAME")
    private String fieldname;

    @ApiModelProperty(value = "状态 - 0:正常 1:注销")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "字段类型 - 1:扩展字段 2:协议字段")
    @TableField("FIELDTYPE")
    private Integer fieldtype;

    @ApiModelProperty(value = "可用类型 - 1:通用 2:机构专用 3:投资者专用")
    @TableField("USABLETYPE")
    private Integer usabletype;

    @ApiModelProperty(value = "显示顺序 - 用于前端显示")
    @TableField("ORDERINDEX")
    private Integer orderindex;


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

}
