2025-09-22 09:47:31 +08:00
|
|
|
|
package com.cdzy.activity.model.table;
|
|
|
|
|
|
|
|
|
|
|
|
import com.mybatisflex.core.query.QueryColumn;
|
|
|
|
|
|
import com.mybatisflex.core.table.TableDef;
|
|
|
|
|
|
|
2025-09-22 10:33:24 +08:00
|
|
|
|
// 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");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 是否已填写资料:1-未填写 2-已填
|
|
|
|
|
|
*/
|
|
|
|
|
|
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");
|
|
|
|
|
|
|
2025-09-22 09:47:31 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 所有字段。
|
|
|
|
|
|
*/
|
2025-09-22 10:33:24 +08:00
|
|
|
|
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
|
2025-09-22 09:47:31 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 默认字段,不包含逻辑删除或者 large 等字段。
|
|
|
|
|
|
*/
|
2025-09-22 10:33:24 +08:00
|
|
|
|
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");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-22 09:47:31 +08:00
|
|
|
|
private UserTableDef(String schema, String name, String alisa) {
|
|
|
|
|
|
super(schema, name, alisa);
|
|
|
|
|
|
}
|
2025-09-22 10:33:24 +08:00
|
|
|
|
|
2025-09-22 09:47:31 +08:00
|
|
|
|
public UserTableDef as(String alias) {
|
|
|
|
|
|
String key = getNameWithSchema() + "." + alias;
|
|
|
|
|
|
return getCache(key, k -> new UserTableDef("", "user", alias));
|
|
|
|
|
|
}
|
2025-09-22 10:33:24 +08:00
|
|
|
|
|
2025-09-22 09:47:31 +08:00
|
|
|
|
}
|