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

cn.vertxup.erp.domain.tables.EContract 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.EContractRecord;
import org.jooq.*;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;

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


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

    /**
     * The reference instance of DB_ETERNAL.E_CONTRACT
     */
    public static final EContract E_CONTRACT = new EContract();
    private static final long serialVersionUID = 1L;
    /**
     * The column DB_ETERNAL.E_CONTRACT.KEY. 「key」- 合同主键
     */
    public final TableField KEY = createField(DSL.name("KEY"), SQLDataType.VARCHAR(36).nullable(false), this, "「key」- 合同主键");
    /**
     * The column DB_ETERNAL.E_CONTRACT.NAME. 「name」- 合同名称
     */
    public final TableField NAME = createField(DSL.name("NAME"), SQLDataType.VARCHAR(255), this, "「name」- 合同名称");
    /**
     * The column DB_ETERNAL.E_CONTRACT.CODE. 「code」- 合同编号
     */
    public final TableField CODE = createField(DSL.name("CODE"), SQLDataType.VARCHAR(255), this, "「code」- 合同编号");
    /**
     * The column DB_ETERNAL.E_CONTRACT.TITLE. 「title」- 合同标题
     */
    public final TableField TITLE = createField(DSL.name("TITLE"), SQLDataType.VARCHAR(255), this, "「title」- 合同标题");
    /**
     * The column DB_ETERNAL.E_CONTRACT.FILE_KEY. 「fileKey」-
     * 合同附件Key
     */
    public final TableField FILE_KEY = createField(DSL.name("FILE_KEY"), SQLDataType.VARCHAR(36), this, "「fileKey」- 合同附件Key");
    /**
     * The column DB_ETERNAL.E_CONTRACT.AMOUNT. 「amount」- 合同金额
     */
    public final TableField AMOUNT = createField(DSL.name("AMOUNT"), SQLDataType.DECIMAL(18, 2), this, "「amount」- 合同金额");
    /**
     * The column DB_ETERNAL.E_CONTRACT.COMPANY_ID. 「companyId」-
     * 合同甲方
     */
    public final TableField COMPANY_ID = createField(DSL.name("COMPANY_ID"), SQLDataType.VARCHAR(36), this, "「companyId」- 合同甲方");
    /**
     * The column DB_ETERNAL.E_CONTRACT.CUSTOMER_ID. 「customerId」-
     * 合同乙方
     */
    public final TableField CUSTOMER_ID = createField(DSL.name("CUSTOMER_ID"), SQLDataType.VARCHAR(36), this, "「customerId」- 合同乙方");
    /**
     * The column DB_ETERNAL.E_CONTRACT.EXPIRED_AT. 「expiredAt」-
     * 过期时间
     */
    public final TableField EXPIRED_AT = createField(DSL.name("EXPIRED_AT"), SQLDataType.LOCALDATETIME(0), this, "「expiredAt」- 过期时间");
    /**
     * The column DB_ETERNAL.E_CONTRACT.SIGNED_AT. 「signedAt」- 签订时间
     */
    public final TableField SIGNED_AT = createField(DSL.name("SIGNED_AT"), SQLDataType.LOCALDATETIME(0), this, "「signedAt」- 签订时间");
    /**
     * The column DB_ETERNAL.E_CONTRACT.RUN_AT. 「runAt」- 生效时间
     */
    public final TableField RUN_AT = createField(DSL.name("RUN_AT"), SQLDataType.LOCALDATETIME(0), this, "「runAt」- 生效时间");
    /**
     * The column DB_ETERNAL.E_CONTRACT.RUN_UP_AT. 「runUpAt」-
     * 挂账到期时间
     */
    public final TableField RUN_UP_AT = createField(DSL.name("RUN_UP_AT"), SQLDataType.LOCALDATETIME(0), this, "「runUpAt」- 挂账到期时间");
    /**
     * The column DB_ETERNAL.E_CONTRACT.A_NAME. 「aName」- 甲方签订人
     */
    public final TableField A_NAME = createField(DSL.name("A_NAME"), SQLDataType.VARCHAR(255), this, "「aName」- 甲方签订人");
    /**
     * The column DB_ETERNAL.E_CONTRACT.A_PHONE. 「aPhone」- 甲方签订人姓名
     */
    public final TableField A_PHONE = createField(DSL.name("A_PHONE"), SQLDataType.VARCHAR(20), this, "「aPhone」- 甲方签订人姓名");
    /**
     * The column DB_ETERNAL.E_CONTRACT.A_ADDRESS. 「aAddress」-
     * 甲方联系地址
     */
    public final TableField A_ADDRESS = createField(DSL.name("A_ADDRESS"), SQLDataType.CLOB, this, "「aAddress」- 甲方联系地址");
    /**
     * The column DB_ETERNAL.E_CONTRACT.B_NAME. 「bName」- 乙方签订人
     */
    public final TableField B_NAME = createField(DSL.name("B_NAME"), SQLDataType.VARCHAR(255), this, "「bName」- 乙方签订人");
    /**
     * The column DB_ETERNAL.E_CONTRACT.B_PHONE. 「bPhone」- 乙方签订人姓名
     */
    public final TableField B_PHONE = createField(DSL.name("B_PHONE"), SQLDataType.VARCHAR(20), this, "「bPhone」- 乙方签订人姓名");
    /**
     * The column DB_ETERNAL.E_CONTRACT.B_ADDRESS. 「bAddress」-
     * 乙方联系地址
     */
    public final TableField B_ADDRESS = createField(DSL.name("B_ADDRESS"), SQLDataType.CLOB, this, "「bAddress」- 乙方联系地址");
    /**
     * The column DB_ETERNAL.E_CONTRACT.TYPE. 「type」- 合同分类
     */
    public final TableField TYPE = createField(DSL.name("TYPE"), SQLDataType.VARCHAR(36), this, "「type」- 合同分类");
    /**
     * The column DB_ETERNAL.E_CONTRACT.METADATA. 「metadata」- 附加配置
     */
    public final TableField METADATA = createField(DSL.name("METADATA"), SQLDataType.CLOB, this, "「metadata」- 附加配置");
    /**
     * The column DB_ETERNAL.E_CONTRACT.ACTIVE. 「active」- 是否启用
     */
    public final TableField ACTIVE = createField(DSL.name("ACTIVE"), SQLDataType.BIT, this, "「active」- 是否启用");
    /**
     * The column DB_ETERNAL.E_CONTRACT.SIGMA. 「sigma」-
     * 统一标识(公司所属应用)
     */
    public final TableField SIGMA = createField(DSL.name("SIGMA"), SQLDataType.VARCHAR(32), this, "「sigma」- 统一标识(公司所属应用)");
    /**
     * The column DB_ETERNAL.E_CONTRACT.LANGUAGE. 「language」- 使用的语言
     */
    public final TableField LANGUAGE = createField(DSL.name("LANGUAGE"), SQLDataType.VARCHAR(8), this, "「language」- 使用的语言");
    /**
     * The column DB_ETERNAL.E_CONTRACT.CREATED_AT. 「createdAt」-
     * 创建时间
     */
    public final TableField CREATED_AT = createField(DSL.name("CREATED_AT"), SQLDataType.LOCALDATETIME(0), this, "「createdAt」- 创建时间");
    /**
     * The column DB_ETERNAL.E_CONTRACT.CREATED_BY. 「createdBy」-
     * 创建人
     */
    public final TableField CREATED_BY = createField(DSL.name("CREATED_BY"), SQLDataType.VARCHAR(36), this, "「createdBy」- 创建人");
    /**
     * The column DB_ETERNAL.E_CONTRACT.UPDATED_AT. 「updatedAt」-
     * 更新时间
     */
    public final TableField UPDATED_AT = createField(DSL.name("UPDATED_AT"), SQLDataType.LOCALDATETIME(0), this, "「updatedAt」- 更新时间");
    /**
     * The column DB_ETERNAL.E_CONTRACT.UPDATED_BY. 「updatedBy」-
     * 更新人
     */
    public final TableField UPDATED_BY = createField(DSL.name("UPDATED_BY"), SQLDataType.VARCHAR(36), this, "「updatedBy」- 更新人");

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

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

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

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

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

    public  EContract(Table child, ForeignKey key) {
        super(child, key, E_CONTRACT);
    }

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

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

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy