/*
 * This file is generated by jOOQ.
*/
package com.sms.sis.db.tables;


import com.sms.sis.db.Keys;
import com.sms.sis.db.Sugarcrm_4_12;
import com.sms.sis.db.tables.records.CurrenciesRecord;

import java.sql.Timestamp;
import java.util.Arrays;
import java.util.List;

import javax.annotation.Generated;

import org.jooq.Field;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;


/**
 * This class is generated by jOOQ.
 */
@Generated(
    value = {
        "http://www.jooq.org",
        "jOOQ version:3.9.3"
    },
    comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Currencies extends TableImpl<CurrenciesRecord> {

    private static final long serialVersionUID = -1140586521;

    /**
     * The reference instance of <code>sugarcrm_4_12.currencies</code>
     */
    public static final Currencies CURRENCIES = new Currencies();

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

    /**
     * The column <code>sugarcrm_4_12.currencies.id</code>.
     */
    public final TableField<CurrenciesRecord, String> ID = createField("id", org.jooq.impl.SQLDataType.CHAR.length(36).nullable(false), this, "");

    /**
     * The column <code>sugarcrm_4_12.currencies.name</code>.
     */
    public final TableField<CurrenciesRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(36), this, "");

    /**
     * The column <code>sugarcrm_4_12.currencies.symbol</code>.
     */
    public final TableField<CurrenciesRecord, String> SYMBOL = createField("symbol", org.jooq.impl.SQLDataType.VARCHAR.length(36), this, "");

    /**
     * The column <code>sugarcrm_4_12.currencies.iso4217</code>.
     */
    public final TableField<CurrenciesRecord, String> ISO4217 = createField("iso4217", org.jooq.impl.SQLDataType.VARCHAR.length(3), this, "");

    /**
     * The column <code>sugarcrm_4_12.currencies.conversion_rate</code>.
     */
    public final TableField<CurrenciesRecord, Double> CONVERSION_RATE = createField("conversion_rate", org.jooq.impl.SQLDataType.DOUBLE.defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.DOUBLE)), this, "");

    /**
     * The column <code>sugarcrm_4_12.currencies.status</code>.
     */
    public final TableField<CurrenciesRecord, String> STATUS = createField("status", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");

    /**
     * The column <code>sugarcrm_4_12.currencies.deleted</code>.
     */
    public final TableField<CurrenciesRecord, Byte> DELETED = createField("deleted", org.jooq.impl.SQLDataType.TINYINT, this, "");

    /**
     * The column <code>sugarcrm_4_12.currencies.date_entered</code>.
     */
    public final TableField<CurrenciesRecord, Timestamp> DATE_ENTERED = createField("date_entered", org.jooq.impl.SQLDataType.TIMESTAMP, this, "");

    /**
     * The column <code>sugarcrm_4_12.currencies.date_modified</code>.
     */
    public final TableField<CurrenciesRecord, Timestamp> DATE_MODIFIED = createField("date_modified", org.jooq.impl.SQLDataType.TIMESTAMP, this, "");

    /**
     * The column <code>sugarcrm_4_12.currencies.created_by</code>.
     */
    public final TableField<CurrenciesRecord, String> CREATED_BY = createField("created_by", org.jooq.impl.SQLDataType.CHAR.length(36).nullable(false), this, "");

    /**
     * Create a <code>sugarcrm_4_12.currencies</code> table reference
     */
    public Currencies() {
        this("currencies", null);
    }

    /**
     * Create an aliased <code>sugarcrm_4_12.currencies</code> table reference
     */
    public Currencies(String alias) {
        this(alias, CURRENCIES);
    }

    private Currencies(String alias, Table<CurrenciesRecord> aliased) {
        this(alias, aliased, null);
    }

    private Currencies(String alias, Table<CurrenciesRecord> aliased, Field<?>[] parameters) {
        super(alias, null, aliased, parameters, "");
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Schema getSchema() {
        return Sugarcrm_4_12.SUGARCRM_4_12;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public UniqueKey<CurrenciesRecord> getPrimaryKey() {
        return Keys.KEY_CURRENCIES_PRIMARY;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<UniqueKey<CurrenciesRecord>> getKeys() {
        return Arrays.<UniqueKey<CurrenciesRecord>>asList(Keys.KEY_CURRENCIES_PRIMARY);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Currencies as(String alias) {
        return new Currencies(alias, this);
    }

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