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

com.wuda.foundation.user.impl.jooq.generation.tables.UserEmail Maven / Gradle / Ivy

The newest version!
/*
 * This file is generated by jOOQ.
 */
package com.wuda.foundation.user.impl.jooq.generation.tables;


import com.wuda.foundation.user.impl.jooq.generation.FoundationUser;
import com.wuda.foundation.user.impl.jooq.generation.Indexes;
import com.wuda.foundation.user.impl.jooq.generation.Keys;
import com.wuda.foundation.user.impl.jooq.generation.tables.records.UserEmailRecord;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row11;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.TableImpl;
import org.jooq.types.UByte;
import org.jooq.types.ULong;


/**
 * 用户的email
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserEmail extends TableImpl {

    private static final long serialVersionUID = 1892568541;

    /**
     * The reference instance of foundation_user.user_email
     */
    public static final UserEmail USER_EMAIL = new UserEmail();

    /**
     * The class holding records for this type
     */
    @Override
    public Class getRecordType() {
        return UserEmailRecord.class;
    }

    /**
     * The column foundation_user.user_email.id.
     */
    public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false).identity(true), this, "");

    /**
     * The column foundation_user.user_email.user_id.
     */
    public final TableField USER_ID = createField(DSL.name("user_id"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false), this, "");

    /**
     * The column foundation_user.user_email.email_id.
     */
    public final TableField EMAIL_ID = createField(DSL.name("email_id"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false), this, "");

    /**
     * The column foundation_user.user_email.use. 用途。比如用于登录
     */
    public final TableField USE = createField(DSL.name("use"), org.jooq.impl.SQLDataType.TINYINTUNSIGNED.nullable(false), this, "用途。比如用于登录");

    /**
     * The column foundation_user.user_email.state. 状态,每种用途的email状态可能不同,比如如果用于登录的email,状态可以是禁止登录状态
     */
    public final TableField STATE = createField(DSL.name("state"), org.jooq.impl.SQLDataType.TINYINTUNSIGNED.nullable(false), this, "状态,每种用途的email状态可能不同,比如如果用于登录的email,状态可以是禁止登录状态");

    /**
     * The column foundation_user.user_email.description. 简单描述
     */
    public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.VARCHAR(45), this, "简单描述");

    /**
     * The column foundation_user.user_email.create_time.
     */
    public final TableField CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");

    /**
     * The column foundation_user.user_email.create_user_id.
     */
    public final TableField CREATE_USER_ID = createField(DSL.name("create_user_id"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false), this, "");

    /**
     * The column foundation_user.user_email.last_modify_time.
     */
    public final TableField LAST_MODIFY_TIME = createField(DSL.name("last_modify_time"), org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");

    /**
     * The column foundation_user.user_email.last_modify_user_id.
     */
    public final TableField LAST_MODIFY_USER_ID = createField(DSL.name("last_modify_user_id"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false), this, "");

    /**
     * The column foundation_user.user_email.is_deleted.
     */
    public final TableField IS_DELETED = createField(DSL.name("is_deleted"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.BIGINTUNSIGNED)), this, "");

    /**
     * Create a foundation_user.user_email table reference
     */
    public UserEmail() {
        this(DSL.name("user_email"), null);
    }

    /**
     * Create an aliased foundation_user.user_email table reference
     */
    public UserEmail(String alias) {
        this(DSL.name(alias), USER_EMAIL);
    }

    /**
     * Create an aliased foundation_user.user_email table reference
     */
    public UserEmail(Name alias) {
        this(alias, USER_EMAIL);
    }

    private UserEmail(Name alias, Table aliased) {
        this(alias, aliased, null);
    }

    private UserEmail(Name alias, Table aliased, Field[] parameters) {
        super(alias, null, aliased, parameters, DSL.comment("用户的email"), TableOptions.table());
    }

    public  UserEmail(Table child, ForeignKey key) {
        super(child, key, USER_EMAIL);
    }

    @Override
    public Schema getSchema() {
        return FoundationUser.FOUNDATION_USER;
    }

    @Override
    public List getIndexes() {
        return Arrays.asList(Indexes.USER_EMAIL_FK_USER_ID);
    }

    @Override
    public Identity getIdentity() {
        return Keys.IDENTITY_USER_EMAIL;
    }

    @Override
    public UniqueKey getPrimaryKey() {
        return Keys.KEY_USER_EMAIL_PRIMARY;
    }

    @Override
    public List> getKeys() {
        return Arrays.>asList(Keys.KEY_USER_EMAIL_PRIMARY, Keys.KEY_USER_EMAIL_IDX_UNIQUE);
    }

    @Override
    public UserEmail as(String alias) {
        return new UserEmail(DSL.name(alias), this);
    }

    @Override
    public UserEmail as(Name alias) {
        return new UserEmail(alias, this);
    }

    /**
     * Rename this table
     */
    @Override
    public UserEmail rename(String name) {
        return new UserEmail(DSL.name(name), null);
    }

    /**
     * Rename this table
     */
    @Override
    public UserEmail rename(Name name) {
        return new UserEmail(name, null);
    }

    // -------------------------------------------------------------------------
    // Row11 type methods
    // -------------------------------------------------------------------------

    @Override
    public Row11 fieldsRow() {
        return (Row11) super.fieldsRow();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy