All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rexsheng.springboot.faster.system.entity.table.NoticeUserTableDef Maven / Gradle / Ivy

The newest version!
package com.github.rexsheng.springboot.faster.system.entity.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class NoticeUserTableDef extends TableDef {

    /**
     * 公告接收人表 实体类。

 @author shengxp
 @since 2024-07-09
     */
    public static final NoticeUserTableDef NOTICE_USER = new NoticeUserTableDef();

    /**
     * 主键ID
     */
    public final QueryColumn ID = new QueryColumn(this, "id");

    /**
     * 非公告的消息内容,notice_id需为空
     */
    public final QueryColumn CONTENT = new QueryColumn(this, "content");

    /**
     * 公告ID
     */
    public final QueryColumn NOTICE_ID = new QueryColumn(this, "notice_id");

    /**
     * 已读时间
     */
    public final QueryColumn READ_TIME = new QueryColumn(this, "read_time");

    /**
     * 是否已读(0未读,1已读)
     */
    public final QueryColumn READ_STATE = new QueryColumn(this, "read_state");

    /**
     * 创建时间
     */
    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    /**
     * 创建人
     */
    public final QueryColumn CREATE_USER = new QueryColumn(this, "create_user");

    /**
     * 接收人
     */
    public final QueryColumn TARGET_USER = new QueryColumn(this, "target_user");

    /**
     * 修改时间
     */
    public final QueryColumn UPDATE_TIME = new QueryColumn(this, "update_time");

    /**
     * 修改人
     */
    public final QueryColumn UPDATE_USER = new QueryColumn(this, "update_user");

    /**
     * 内容批次
     */
    public final QueryColumn CONTENT_BATCH = new QueryColumn(this, "content_batch");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段,不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, CONTENT, NOTICE_ID, READ_TIME, READ_STATE, CREATE_TIME, CREATE_USER, TARGET_USER, UPDATE_TIME, UPDATE_USER, CONTENT_BATCH};

    public NoticeUserTableDef() {
        super("", "sys_notice_user");
    }

    private NoticeUserTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public NoticeUserTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new NoticeUserTableDef("", "sys_notice_user", alias));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy