com.github.rexsheng.springboot.faster.system.entity.table.LocaleSourceTableDef 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 LocaleSourceTableDef extends TableDef {
/**
* 国际化数据源表 实体类。
@author sheng
@since 2024-04-06
*/
public static final LocaleSourceTableDef LOCALE_SOURCE = new LocaleSourceTableDef();
/**
* 主键ID
*/
public final QueryColumn ID = new QueryColumn(this, "id");
/**
* 是否删除(0正常,1已删除)
*/
public final QueryColumn IS_DEL = new QueryColumn(this, "is_del");
/**
* 状态(0正常,1停用)
*/
public final QueryColumn STATUS = new QueryColumn(this, "status");
/**
* 英文标签
*/
public final QueryColumn EN_FIELD = new QueryColumn(this, "en_field");
/**
* 中文标签
*/
public final QueryColumn ZH_FIELD = new QueryColumn(this, "zh_field");
/**
* 表名
*/
public final QueryColumn TABLE_NAME = new QueryColumn(this, "table_name");
/**
* 创建时间
*/
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 VALUE_FIELD = new QueryColumn(this, "value_field");
/**
* 字典类型
*/
public final QueryColumn LOCALE_CATEGORY = new QueryColumn(this, "locale_category");
/**
* 查询条件
*/
public final QueryColumn TABLE_CONDITION = new QueryColumn(this, "table_condition");
/**
* 无效数据的条件,避免关联表仍使用
*/
public final QueryColumn INVALID_CONDITION = new QueryColumn(this, "invalid_condition");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, IS_DEL, STATUS, EN_FIELD, ZH_FIELD, TABLE_NAME, CREATE_TIME, CREATE_USER, UPDATE_TIME, UPDATE_USER, VALUE_FIELD, LOCALE_CATEGORY, TABLE_CONDITION, INVALID_CONDITION};
public LocaleSourceTableDef() {
super("", "sys_locale_source");
}
private LocaleSourceTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public LocaleSourceTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new LocaleSourceTableDef("", "sys_locale_source", alias));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy