package org.nl.system.service.generator.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 列的数据信息表
 * </p>
 *
 * @author generator
 * @since 2023-05-03
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("code_column_config")
public class CodeColumnConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "column_id", type = IdType.ASSIGN_ID)
    private String column_id;

    @ApiModelProperty(value = "表名")
    private String table_name;

    @ApiModelProperty(value = "数据库字段名称")
    private String column_name;

    @ApiModelProperty(value = "数据库字段类型")
    private String column_type;

    @ApiModelProperty(value = "数据库字段键类型")
    private String key_type;

    @ApiModelProperty(value = "字段额外的参数")
    private String extra;

    @ApiModelProperty(value = "数据库字段描述")
    private String remark;

    @ApiModelProperty(value = "是否必填")
    private Boolean not_null;

    @ApiModelProperty(value = "是否在列表显示")
    private Boolean list_show;

    @ApiModelProperty(value = "是否表单显示")
    private Boolean form_show;

    @ApiModelProperty(value = "表单类型")
    private String form_type;

    @ApiModelProperty(value = "查询 1:模糊 2：精确")
    private String query_type;

    @ApiModelProperty(value = "字典名称")
    private String dict_name;

    @ApiModelProperty(value = "日期注解")
    private String date_annotation;
}
