2025-09-17 16:11:59 +08:00
|
|
|
|
package com.cdzy.activity.model.table;
|
|
|
|
|
|
|
|
|
|
|
|
import com.mybatisflex.core.query.QueryColumn;
|
|
|
|
|
|
import com.mybatisflex.core.table.TableDef;
|
|
|
|
|
|
|
2025-09-19 10:11:00 +08:00
|
|
|
|
// Auto generate by mybatis-flex, do not modify it.
|
|
|
|
|
|
public class ActivityTableDef extends TableDef {
|
|
|
|
|
|
|
|
|
|
|
|
public static final ActivityTableDef ACTIVITY = new ActivityTableDef();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 报名最大人数
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn MAX_NUM = new QueryColumn(this, "max_num");
|
|
|
|
|
|
|
|
|
|
|
|
public final QueryColumn STATUS = new QueryColumn(this, "status");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 报名结束时间
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn END_TIME = new QueryColumn(this, "end_time");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 活动开始时间
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn START_TIME = new QueryColumn(this, "start_time");
|
|
|
|
|
|
|
|
|
|
|
|
public final QueryColumn ACTIVITY_ID = new QueryColumn(this, "activity_id");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 是否限制人数(0:不限制,1:限制
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn LIMIT_PEOPLE = new QueryColumn(this, "limit_people");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 活动名称
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn ACTIVITY_NAME = new QueryColumn(this, "activity_name");
|
|
|
|
|
|
|
2025-09-22 09:47:31 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 活动类型:1-体育 2-文娱
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn ACTIVITY_TYPE = new QueryColumn(this, "activity_type");
|
|
|
|
|
|
|
2025-09-19 10:11:00 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 封面
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn ACTIVITY_COVER = new QueryColumn(this, "activity_cover");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 是否限制报名人群(0:不限制,1:限制
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn LIMIT_REGISTER = new QueryColumn(this, "limit_register");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 主办方
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn ACTIVITY_SPONSOR = new QueryColumn(this, "activity_sponsor");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 活动地址
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn ACTIVITY_LOCATION = new QueryColumn(this, "activity_location");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 简介
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn ACTIVITY_DESCRIPTION = new QueryColumn(this, "activity_description");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 报名结束时间
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn REGISTRATION_END_TIME = new QueryColumn(this, "registration_end_time");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 报名开始时间
|
|
|
|
|
|
*/
|
|
|
|
|
|
public final QueryColumn REGISTRATION_START_TIME = new QueryColumn(this, "registration_start_time");
|
|
|
|
|
|
|
2025-09-17 16:11:59 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 所有字段。
|
|
|
|
|
|
*/
|
2025-09-19 10:11:00 +08:00
|
|
|
|
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
|
2025-09-17 16:11:59 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 默认字段,不包含逻辑删除或者 large 等字段。
|
|
|
|
|
|
*/
|
2025-09-22 09:47:31 +08:00
|
|
|
|
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{MAX_NUM, STATUS, END_TIME, START_TIME, ACTIVITY_ID, LIMIT_PEOPLE, ACTIVITY_NAME, ACTIVITY_TYPE, ACTIVITY_COVER, LIMIT_REGISTER, ACTIVITY_SPONSOR, ACTIVITY_LOCATION, ACTIVITY_DESCRIPTION, REGISTRATION_END_TIME, REGISTRATION_START_TIME};
|
2025-09-19 10:11:00 +08:00
|
|
|
|
|
|
|
|
|
|
public ActivityTableDef() {
|
|
|
|
|
|
super("", "activity");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-17 16:11:59 +08:00
|
|
|
|
private ActivityTableDef(String schema, String name, String alisa) {
|
|
|
|
|
|
super(schema, name, alisa);
|
|
|
|
|
|
}
|
2025-09-19 10:11:00 +08:00
|
|
|
|
|
2025-09-17 16:11:59 +08:00
|
|
|
|
public ActivityTableDef as(String alias) {
|
|
|
|
|
|
String key = getNameWithSchema() + "." + alias;
|
|
|
|
|
|
return getCache(key, k -> new ActivityTableDef("", "activity", alias));
|
|
|
|
|
|
}
|
2025-09-19 10:11:00 +08:00
|
|
|
|
|
2025-09-17 16:11:59 +08:00
|
|
|
|
}
|