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

com.github.rexsheng.springboot.faster.system.entity.table.UserTableDef 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 UserTableDef extends TableDef {

    /**
     * 用户表 实体类。

 @author shengxp
 @since 2024-09-03
     */
    public static final UserTableDef USER = new UserTableDef();

    /**
     * 用户ID
     */
    public final QueryColumn ID = new QueryColumn(this, "id");

    /**
     * 性别(0男,1女)
     */
    public final QueryColumn SEX = new QueryColumn(this, "sex");

    /**
     * 邮箱
     */
    public final QueryColumn MAIL = new QueryColumn(this, "mail");

    /**
     * 用户姓名
     */
    public final QueryColumn NAME = new QueryColumn(this, "name");

    /**
     * 是否删除(0正常,1已删除)
     */
    public final QueryColumn IS_DEL = new QueryColumn(this, "is_del");

    /**
     * 手机号
     */
    public final QueryColumn PHONE = new QueryColumn(this, "phone");

    /**
     * 头像
     */
    public final QueryColumn AVATAR = new QueryColumn(this, "avatar");

    /**
     * 部门ID
     */
    public final QueryColumn DEPT_ID = new QueryColumn(this, "dept_id");

    /**
     * 状态(0正常,1停用)
     */
    public final QueryColumn STATUS = new QueryColumn(this, "status");

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

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

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

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

    /**
     * 登录账号
     */
    public final QueryColumn LOGIN_ACCOUNT = new QueryColumn(this, "login_account");

    /**
     * 上次登录时间
     */
    public final QueryColumn LAST_LOGIN_TIME = new QueryColumn(this, "last_login_time");

    /**
     * 登录密码
     */
    public final QueryColumn LOGIN_PASSWORD = new QueryColumn(this, "login_password");

    /**
     * 上次修改密码时间
     */
    public final QueryColumn LAST_PASSWORD_TIME = new QueryColumn(this, "last_password_time");

    /**
     * 账号锁定截止时间
     */
    public final QueryColumn ACCOUNT_LOCKED_TIME = new QueryColumn(this, "account_locked_time");

    /**
     * 账号过期时间
     */
    public final QueryColumn ACCOUNT_EXPIRED_TIME = new QueryColumn(this, "account_expired_time");

    /**
     * 密码过期时间
     */
    public final QueryColumn PASSWORD_EXPIRED_TIME = new QueryColumn(this, "password_expired_time");

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

    /**
     * 默认字段,不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, SEX, MAIL, NAME, IS_DEL, PHONE, AVATAR, DEPT_ID, STATUS, CREATE_TIME, CREATE_USER, UPDATE_TIME, UPDATE_USER, LOGIN_ACCOUNT, LAST_LOGIN_TIME, LOGIN_PASSWORD, LAST_PASSWORD_TIME, ACCOUNT_LOCKED_TIME, ACCOUNT_EXPIRED_TIME, PASSWORD_EXPIRED_TIME};

    public UserTableDef() {
        super("", "sys_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("", "sys_user", alias));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy