com.github.rexsheng.springboot.faster.system.entity.table.UserTokenTableDef 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 UserTokenTableDef extends TableDef {
/**
* 用户API TOKEN表 实体类。
@author shengxp
@since 2024-07-04
*/
public static final UserTokenTableDef USER_TOKEN = new UserTokenTableDef();
/**
* ID
*/
public final QueryColumn ID = new QueryColumn(this, "id");
/**
* 是否删除(0正常,1已删除)
*/
public final QueryColumn IS_DEL = new QueryColumn(this, "is_del");
/**
* 用户ID
*/
public final QueryColumn USER_ID = new QueryColumn(this, "user_id");
/**
* token名称
*/
public final QueryColumn TOKEN_NAME = new QueryColumn(this, "token_name");
/**
* 创建时间
*/
public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");
/**
* 创建人
*/
public final QueryColumn CREATE_USER = new QueryColumn(this, "create_user");
/**
* 过期时间
*/
public final QueryColumn EXPIRE_TIME = new QueryColumn(this, "expire_time");
/**
* token值
*/
public final QueryColumn TOKEN_VALUE = new QueryColumn(this, "token_value");
/**
* 修改时间
*/
public final QueryColumn UPDATE_TIME = new QueryColumn(this, "update_time");
/**
* 修改人
*/
public final QueryColumn UPDATE_USER = new QueryColumn(this, "update_user");
/**
* 业务名称
*/
public final QueryColumn BUSINESS_KEY = new QueryColumn(this, "business_key");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, IS_DEL, USER_ID, TOKEN_NAME, CREATE_TIME, CREATE_USER, EXPIRE_TIME, TOKEN_VALUE, UPDATE_TIME, UPDATE_USER, BUSINESS_KEY};
public UserTokenTableDef() {
super("", "sys_user_token");
}
private UserTokenTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public UserTokenTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new UserTokenTableDef("", "sys_user_token", alias));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy