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

cn.vertxup.erp.domain.tables.ECustomer Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
/*
 * This file is generated by jOOQ.
 */
package cn.vertxup.erp.domain.tables;


import cn.vertxup.erp.domain.Db;
import cn.vertxup.erp.domain.Keys;
import cn.vertxup.erp.domain.tables.records.ECustomerRecord;
import org.jooq.*;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;

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


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({"all", "unchecked", "rawtypes"})
public class ECustomer extends TableImpl {

    /**
     * The reference instance of DB_ETERNAL.E_CUSTOMER
     */
    public static final ECustomer E_CUSTOMER = new ECustomer();
    private static final long serialVersionUID = 1L;
    /**
     * The column DB_ETERNAL.E_CUSTOMER.KEY. 「key」- 客户ID
     */
    public final TableField KEY = createField(DSL.name("KEY"), SQLDataType.VARCHAR(36).nullable(false), this, "「key」- 客户ID");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.COMMENT. 「comment」- 客户备注
     */
    public final TableField COMMENT = createField(DSL.name("COMMENT"), SQLDataType.CLOB, this, "「comment」- 客户备注");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.NAME. 「name」- 客户名称
     */
    public final TableField NAME = createField(DSL.name("NAME"), SQLDataType.VARCHAR(255), this, "「name」- 客户名称");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.TITLE. 「title」- 客户显示标题
     */
    public final TableField TITLE = createField(DSL.name("TITLE"), SQLDataType.VARCHAR(255), this, "「title」- 客户显示标题");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.CODE. 「code」- 客户编号
     */
    public final TableField CODE = createField(DSL.name("CODE"), SQLDataType.VARCHAR(255), this, "「code」- 客户编号");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.TAX_CODE. 「taxCode」- 税号
     */
    public final TableField TAX_CODE = createField(DSL.name("TAX_CODE"), SQLDataType.VARCHAR(255), this, "「taxCode」- 税号");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.TAX_TITLE. 「taxTitle」- 开票抬头
     */
    public final TableField TAX_TITLE = createField(DSL.name("TAX_TITLE"), SQLDataType.VARCHAR(255), this, "「taxTitle」- 开票抬头");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.CONTACT_NAME.
     * 「contactName」- 联系人姓名
     */
    public final TableField CONTACT_NAME = createField(DSL.name("CONTACT_NAME"), SQLDataType.VARCHAR(255), this, "「contactName」- 联系人姓名");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.CONTACT_PHONE.
     * 「contactPhone」- 联系人电话
     */
    public final TableField CONTACT_PHONE = createField(DSL.name("CONTACT_PHONE"), SQLDataType.VARCHAR(20), this, "「contactPhone」- 联系人电话");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.CONTACT_EMAIL.
     * 「contactEmail」- 联系人Email
     */
    public final TableField CONTACT_EMAIL = createField(DSL.name("CONTACT_EMAIL"), SQLDataType.VARCHAR(255), this, "「contactEmail」- 联系人Email");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.CONTACT_ONLINE.
     * 「contactOnline」- 在线联系方式
     */
    public final TableField CONTACT_ONLINE = createField(DSL.name("CONTACT_ONLINE"), SQLDataType.VARCHAR(255), this, "「contactOnline」- 在线联系方式");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.EMAIL. 「email」- 企业邮箱
     */
    public final TableField EMAIL = createField(DSL.name("EMAIL"), SQLDataType.VARCHAR(255), this, "「email」- 企业邮箱");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.FAX. 「fax」- 传真号
     */
    public final TableField FAX = createField(DSL.name("FAX"), SQLDataType.VARCHAR(255), this, "「fax」- 传真号");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.HOMEPAGE. 「homepage」- 客户主页
     */
    public final TableField HOMEPAGE = createField(DSL.name("HOMEPAGE"), SQLDataType.VARCHAR(128), this, "「homepage」- 客户主页");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.LOGO. 「logo」- 附件对应的
     * attachment Key
     */
    public final TableField LOGO = createField(DSL.name("LOGO"), SQLDataType.VARCHAR(36), this, "「logo」- 附件对应的 attachment Key");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.PHONE. 「phone」- 客户座机
     */
    public final TableField PHONE = createField(DSL.name("PHONE"), SQLDataType.VARCHAR(20), this, "「phone」- 客户座机");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.ADDRESS. 「address」- 客户地址
     */
    public final TableField ADDRESS = createField(DSL.name("ADDRESS"), SQLDataType.CLOB, this, "「address」- 客户地址");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.RUN_UP. 「runUp」- 挂账属性
     */
    public final TableField RUN_UP = createField(DSL.name("RUN_UP"), SQLDataType.BIT, this, "「runUp」- 挂账属性");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.TYPE. 「type」-
     * 客户分类(不同类型代表不同客户)
     */
    public final TableField TYPE = createField(DSL.name("TYPE"), SQLDataType.VARCHAR(36), this, "「type」- 客户分类(不同类型代表不同客户)");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.METADATA. 「metadata」- 附加配置
     */
    public final TableField METADATA = createField(DSL.name("METADATA"), SQLDataType.CLOB, this, "「metadata」- 附加配置");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.ACTIVE. 「active」- 是否启用
     */
    public final TableField ACTIVE = createField(DSL.name("ACTIVE"), SQLDataType.BIT, this, "「active」- 是否启用");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.SIGMA. 「sigma」-
     * 统一标识(客户所属应用)
     */
    public final TableField SIGMA = createField(DSL.name("SIGMA"), SQLDataType.VARCHAR(32), this, "「sigma」- 统一标识(客户所属应用)");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.LANGUAGE. 「language」- 使用的语言
     */
    public final TableField LANGUAGE = createField(DSL.name("LANGUAGE"), SQLDataType.VARCHAR(8), this, "「language」- 使用的语言");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.CREATED_AT. 「createdAt」-
     * 创建时间
     */
    public final TableField CREATED_AT = createField(DSL.name("CREATED_AT"), SQLDataType.LOCALDATETIME(0), this, "「createdAt」- 创建时间");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.CREATED_BY. 「createdBy」-
     * 创建人
     */
    public final TableField CREATED_BY = createField(DSL.name("CREATED_BY"), SQLDataType.VARCHAR(36), this, "「createdBy」- 创建人");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.UPDATED_AT. 「updatedAt」-
     * 更新时间
     */
    public final TableField UPDATED_AT = createField(DSL.name("UPDATED_AT"), SQLDataType.LOCALDATETIME(0), this, "「updatedAt」- 更新时间");
    /**
     * The column DB_ETERNAL.E_CUSTOMER.UPDATED_BY. 「updatedBy」-
     * 更新人
     */
    public final TableField UPDATED_BY = createField(DSL.name("UPDATED_BY"), SQLDataType.VARCHAR(36), this, "「updatedBy」- 更新人");

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

    private ECustomer(Name alias, Table aliased, Field[] parameters) {
        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
    }

    /**
     * Create an aliased DB_ETERNAL.E_CUSTOMER table reference
     */
    public ECustomer(String alias) {
        this(DSL.name(alias), E_CUSTOMER);
    }

    /**
     * Create an aliased DB_ETERNAL.E_CUSTOMER table reference
     */
    public ECustomer(Name alias) {
        this(alias, E_CUSTOMER);
    }

    /**
     * Create a DB_ETERNAL.E_CUSTOMER table reference
     */
    public ECustomer() {
        this(DSL.name("E_CUSTOMER"), null);
    }

    public  ECustomer(Table child, ForeignKey key) {
        super(child, key, E_CUSTOMER);
    }

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

    @Override
    public Schema getSchema() {
        return aliased() ? null : Db.DB_ETERNAL;
    }

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

    @Override
    public List> getUniqueKeys() {
        return Arrays.asList(Keys.KEY_E_CUSTOMER_TAX_CODE);
    }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy