package com.codvision.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.codvision.commoncore.enums.SqlOperator;
import com.codvision.webcore.annotation.QueryCondition;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 生成代码配置
 * </p>
 *
 * @author lingee
 * @since 2023-11-03
 */
@Data
@TableName("tbl_generator_config")
@ApiModel(value = "GeneratorConfig", description = "生成代码配置")
public class GeneratorConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("配置名称")
    @QueryCondition(condition = SqlOperator.LIKE)
    private String configName;

    @ApiModelProperty("作者名")
    private String author;

    @ApiModelProperty("生成目录")
    private String exportPath;

    @ApiModelProperty("包名")
    private String packageName;

    @ApiModelProperty("表前缀名")
    private String tablePrefixName;

    @ApiModelProperty("表名列表")
    private String tables;

    @ApiModelProperty("是否继承实体")
    private Boolean superEntity;

    @ApiModelProperty("是否覆盖原文件")
    private Boolean fileOverride;
}
