All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rexsheng.springboot.faster.system.entity.table.DictTableDef Maven / Gradle / Ivy

The newest version!
package com.github.rexsheng.springboot.faster.system.entity.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class DictTableDef extends TableDef {

    /**
     * 字典表 实体类。

 @author sheng
 @since 2024-04-06
     */
    public static final DictTableDef DICT = new DictTableDef();

    /**
     * 字典ID
     */
    public final QueryColumn ID = new QueryColumn(this, "id");

    /**
     * 是否删除(0正常,1已删除)
     */
    public final QueryColumn IS_DEL = new QueryColumn(this, "is_del");

    /**
     * 数据值
     */
    public final QueryColumn VALUE = new QueryColumn(this, "value");

    /**
     * 备注
     */
    public final QueryColumn REMARK = new QueryColumn(this, "remark");

    /**
     * 状态(0正常,1停用)
     */
    public final QueryColumn STATUS = new QueryColumn(this, "status");

    /**
     * 字典类型ID
     */
    public final QueryColumn TYPE_ID = new QueryColumn(this, "type_id");

    /**
     * 英文标签
     */
    public final QueryColumn LABEL_EN = new QueryColumn(this, "label_en");

    /**
     * 中文标签
     */
    public final QueryColumn LABEL_ZH = new QueryColumn(this, "label_zh");

    /**
     * 创建时间
     */
    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    /**
     * 创建人
     */
    public final QueryColumn CREATE_USER = new QueryColumn(this, "create_user");

    /**
     * 修改时间
     */
    public final QueryColumn UPDATE_TIME = new QueryColumn(this, "update_time");

    /**
     * 修改人
     */
    public final QueryColumn UPDATE_USER = new QueryColumn(this, "update_user");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段,不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, IS_DEL, VALUE, REMARK, STATUS, TYPE_ID, LABEL_EN, LABEL_ZH, CREATE_TIME, CREATE_USER, UPDATE_TIME, UPDATE_USER};

    public DictTableDef() {
        super("", "sys_dict");
    }

    private DictTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public DictTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new DictTableDef("", "sys_dict", alias));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy