/**
 * This class is generated by jOOQ
 */
package io.cattle.platform.core.model.tables;

/**
 * This class is generated by jOOQ.
 */
@javax.annotation.Generated(value    = { "http://www.jooq.org", "3.3.0" },
                            comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ProcessExecutionTable extends org.jooq.impl.TableImpl<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord> {

	private static final long serialVersionUID = -1841899956;

	/**
	 * The singleton instance of <code>cattle.process_execution</code>
	 */
	public static final io.cattle.platform.core.model.tables.ProcessExecutionTable PROCESS_EXECUTION = new io.cattle.platform.core.model.tables.ProcessExecutionTable();

	/**
	 * The class holding records for this type
	 */
	@Override
	public java.lang.Class<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord> getRecordType() {
		return io.cattle.platform.core.model.tables.records.ProcessExecutionRecord.class;
	}

	/**
	 * The column <code>cattle.process_execution.id</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord, java.lang.Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");

	/**
	 * The column <code>cattle.process_execution.process_instance_id</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord, java.lang.Long> PROCESS_INSTANCE_ID = createField("process_instance_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");

	/**
	 * The column <code>cattle.process_execution.uuid</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord, java.lang.String> UUID = createField("uuid", org.jooq.impl.SQLDataType.VARCHAR.length(128).nullable(false), this, "");

	/**
	 * The column <code>cattle.process_execution.log</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord, java.util.Map<String,Object>> LOG = createField("log", org.jooq.impl.SQLDataType.CLOB.length(16777215).asConvertedDataType(new io.cattle.platform.db.jooq.converter.DataConverter()), this, "");

	/**
	 * Create a <code>cattle.process_execution</code> table reference
	 */
	public ProcessExecutionTable() {
		this("process_execution", null);
	}

	/**
	 * Create an aliased <code>cattle.process_execution</code> table reference
	 */
	public ProcessExecutionTable(java.lang.String alias) {
		this(alias, io.cattle.platform.core.model.tables.ProcessExecutionTable.PROCESS_EXECUTION);
	}

	private ProcessExecutionTable(java.lang.String alias, org.jooq.Table<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord> aliased) {
		this(alias, aliased, null);
	}

	private ProcessExecutionTable(java.lang.String alias, org.jooq.Table<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord> aliased, org.jooq.Field<?>[] parameters) {
		super(alias, io.cattle.platform.core.model.CattleTable.CATTLE, aliased, parameters, "");
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public org.jooq.Identity<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord, java.lang.Long> getIdentity() {
		return io.cattle.platform.core.model.Keys.IDENTITY_PROCESS_EXECUTION;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public org.jooq.UniqueKey<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord> getPrimaryKey() {
		return io.cattle.platform.core.model.Keys.KEY_PROCESS_EXECUTION_PRIMARY;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public java.util.List<org.jooq.UniqueKey<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord>> getKeys() {
		return java.util.Arrays.<org.jooq.UniqueKey<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord>>asList(io.cattle.platform.core.model.Keys.KEY_PROCESS_EXECUTION_PRIMARY, io.cattle.platform.core.model.Keys.KEY_PROCESS_EXECUTION_IDX_PROCESS_EXECUTION__UUID);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public java.util.List<org.jooq.ForeignKey<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord, ?>> getReferences() {
		return java.util.Arrays.<org.jooq.ForeignKey<io.cattle.platform.core.model.tables.records.ProcessExecutionRecord, ?>>asList(io.cattle.platform.core.model.Keys.FK_PROCESS_EXECUTION_PROCESS_INSTANCE_ID);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public io.cattle.platform.core.model.tables.ProcessExecutionTable as(java.lang.String alias) {
		return new io.cattle.platform.core.model.tables.ProcessExecutionTable(alias, this);
	}

	/**
	 * Rename this table
	 */
	public io.cattle.platform.core.model.tables.ProcessExecutionTable rename(java.lang.String name) {
		return new io.cattle.platform.core.model.tables.ProcessExecutionTable(name, null);
	}
}
