com.github.rexsheng.springboot.faster.system.entity.table.FileTableDef 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 FileTableDef extends TableDef {
/**
* 文件表 实体类。
@author shengxp
@since 2024-08-27
*/
public static final FileTableDef FILE = new FileTableDef();
/**
* 主键id
*/
public final QueryColumn ID = new QueryColumn(this, "id");
/**
* 文件存储key
*/
public final QueryColumn KEY = new QueryColumn(this, "key");
/**
* 文件名称
*/
public final QueryColumn NAME = new QueryColumn(this, "name");
/**
* 文件大小
*/
public final QueryColumn SIZE = new QueryColumn(this, "size");
/**
* 是否删除(0未删除,1已删除)
*/
public final QueryColumn IS_DEL = new QueryColumn(this, "is_del");
/**
* 文件存储桶
*/
public final QueryColumn BUCKET = new QueryColumn(this, "bucket");
/**
* 文件服务类型
*/
public final QueryColumn SERVICE = new QueryColumn(this, "service");
/**
* 业务id
*/
public final QueryColumn BUSINESS_ID = new QueryColumn(this, "business_id");
/**
* 创建时间
*/
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 BUSINESS_TYPE = new QueryColumn(this, "business_type");
/**
* 文件原始名称
*/
public final QueryColumn ORIGINAL_NAME = new QueryColumn(this, "original_name");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, KEY, NAME, SIZE, IS_DEL, BUCKET, SERVICE, BUSINESS_ID, CREATE_TIME, CREATE_USER, UPDATE_TIME, UPDATE_USER, BUSINESS_TYPE, ORIGINAL_NAME};
public FileTableDef() {
super("", "sys_file");
}
private FileTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public FileTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new FileTableDef("", "sys_file", alias));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy