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-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("CERTIFICATETYPECONFIG")
@ApiModel(value="Certificatetypeconfig对象", description="证件类型配置表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Certificatetypeconfig extends Model<Certificatetypeconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "证件类型枚举贡ID")
    private Long enumdicitemid;

    @ApiModelProperty(value = "是否个人 - 1:个人  2:企业 3:两者")
    @TableField("ISPERSON")
    private Integer isperson;

    @ApiModelProperty(value = "正则表达式")
    @TableField("REGEXPRESS")
    private String regexpress;

    @ApiModelProperty(value = "长度")
    @TableField("CARDLENGTH")
    private Integer cardlength;

    @ApiModelProperty(value = "提示的错误信息")
    @TableField("MSGERR")
    private String msgerr;


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

}
