58 lines
1.5 KiB
Java
58 lines
1.5 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 BulletinTableDef extends TableDef {
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 实体类。
|
|||
|
|
|
|||
|
|
@author attiya
|
|||
|
|
@since 2025-09-18
|
|||
|
|
*/
|
|||
|
|
public static final BulletinTableDef BULLETIN = new BulletinTableDef();
|
|||
|
|
|
|||
|
|
public final QueryColumn BULLETIN_ID = new QueryColumn(this, "bulletin_id");
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 封面
|
|||
|
|
*/
|
|||
|
|
public final QueryColumn BULLETIN_COVER = new QueryColumn(this, "bulletin_cover");
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 公告标题
|
|||
|
|
*/
|
|||
|
|
public final QueryColumn BULLETIN_TITLE = new QueryColumn(this, "bulletin_title");
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 内容
|
|||
|
|
*/
|
|||
|
|
public final QueryColumn BULLETIN_DESCRIPTION = new QueryColumn(this, "bulletin_description");
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 所有字段。
|
|||
|
|
*/
|
|||
|
|
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 默认字段,不包含逻辑删除或者 large 等字段。
|
|||
|
|
*/
|
|||
|
|
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{BULLETIN_ID, BULLETIN_COVER, BULLETIN_TITLE, BULLETIN_DESCRIPTION};
|
|||
|
|
|
|||
|
|
public BulletinTableDef() {
|
|||
|
|
super("", "bulletin");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private BulletinTableDef(String schema, String name, String alisa) {
|
|||
|
|
super(schema, name, alisa);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public BulletinTableDef as(String alias) {
|
|||
|
|
String key = getNameWithSchema() + "." + alias;
|
|||
|
|
return getCache(key, k -> new BulletinTableDef("", "bulletin", alias));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|