49 lines
1.3 KiB
Java
49 lines
1.3 KiB
Java
package com.cdzy.activity.model.table;
|
|
|
|
import com.mybatisflex.core.query.QueryColumn;
|
|
import com.mybatisflex.core.table.TableDef;
|
|
|
|
// Auto generate by mybatis-flex, do not modify it.
|
|
public class StaffTableDef extends TableDef {
|
|
|
|
/**
|
|
* 实体类。
|
|
|
|
@author attiya
|
|
@since 2025-09-18
|
|
*/
|
|
public static final StaffTableDef STAFF = new StaffTableDef();
|
|
|
|
public final QueryColumn STAFF_ID = new QueryColumn(this, "staff_id");
|
|
|
|
public final QueryColumn PASSWORD = new QueryColumn(this, "password");
|
|
|
|
public final QueryColumn USERNAME = new QueryColumn(this, "username");
|
|
|
|
public final QueryColumn CREATED_TIME = new QueryColumn(this, "created_time");
|
|
|
|
/**
|
|
* 所有字段。
|
|
*/
|
|
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
|
|
|
|
/**
|
|
* 默认字段,不包含逻辑删除或者 large 等字段。
|
|
*/
|
|
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{STAFF_ID, PASSWORD, USERNAME, CREATED_TIME};
|
|
|
|
public StaffTableDef() {
|
|
super("", "staff");
|
|
}
|
|
|
|
private StaffTableDef(String schema, String name, String alisa) {
|
|
super(schema, name, alisa);
|
|
}
|
|
|
|
public StaffTableDef as(String alias) {
|
|
String key = getNameWithSchema() + "." + alias;
|
|
return getCache(key, k -> new StaffTableDef("", "staff", alias));
|
|
}
|
|
|
|
}
|