2025-09-22 09:47:31 +08:00

87 lines
2.2 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 UserTableDef extends TableDef {
/**
* 实体类。
@author attiya
@since 2025-09-19
*/
public static final UserTableDef USER = new UserTableDef();
/**
* 年龄
*/
public final QueryColumn AGE = new QueryColumn(this, "age");
/**
* 姓名
*/
public final QueryColumn NAME = new QueryColumn(this, "name");
/**
* 健康1-健康 2-不健康
*/
public final QueryColumn HEATH = new QueryColumn(this, "heath");
/**
* 手机号
*/
public final QueryColumn PHONE = new QueryColumn(this, "phone");
/**
* 性别
*/
public final QueryColumn GENDER = new QueryColumn(this, "gender");
public final QueryColumn USER_ID = new QueryColumn(this, "user_id");
/**
* 地址
*/
public final QueryColumn ADDRESS = new QueryColumn(this, "address");
public final QueryColumn IS_FILLED = new QueryColumn(this, "is_filled");
public final QueryColumn WX_OPEN_ID = new QueryColumn(this, "wx_open_id");
/**
* 所患慢性病
*/
public final QueryColumn CHRONIC_DISEASE = new QueryColumn(this, "chronic_disease");
/**
* 慢性病史1-有 2-无
*/
public final QueryColumn CHRONIC_DISEASES_HISTORY = new QueryColumn(this, "chronic_diseases_history");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{AGE, NAME, HEATH, PHONE, GENDER, USER_ID, ADDRESS, IS_FILLED, WX_OPEN_ID, CHRONIC_DISEASE, CHRONIC_DISEASES_HISTORY};
public UserTableDef() {
super("", "user");
}
private UserTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public UserTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new UserTableDef("", "user", alias));
}
}