/**
 * 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 ServiceLogTable extends org.jooq.impl.TableImpl<io.cattle.platform.core.model.tables.records.ServiceLogRecord> {

	private static final long serialVersionUID = -1954706057;

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

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

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

	/**
	 * The column <code>cattle.service_log.account_id</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.lang.Long> ACCOUNT_ID = createField("account_id", org.jooq.impl.SQLDataType.BIGINT, this, "");

	/**
	 * The column <code>cattle.service_log.kind</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.lang.String> KIND = createField("kind", org.jooq.impl.SQLDataType.VARCHAR.length(255).nullable(false), this, "");

	/**
	 * The column <code>cattle.service_log.description</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.lang.String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR.length(1024), this, "");

	/**
	 * The column <code>cattle.service_log.created</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.util.Date> CREATED = createField("created", org.jooq.impl.SQLDataType.TIMESTAMP.asConvertedDataType(new io.cattle.platform.db.jooq.converter.DateConverter()), this, "");

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

	/**
	 * The column <code>cattle.service_log.end_time</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.util.Date> END_TIME = createField("end_time", org.jooq.impl.SQLDataType.TIMESTAMP.asConvertedDataType(new io.cattle.platform.db.jooq.converter.DateConverter()), this, "");

	/**
	 * The column <code>cattle.service_log.event_type</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.lang.String> EVENT_TYPE = createField("event_type", org.jooq.impl.SQLDataType.VARCHAR.length(255), this, "");

	/**
	 * The column <code>cattle.service_log.service_id</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.lang.Long> SERVICE_ID = createField("service_id", org.jooq.impl.SQLDataType.BIGINT, this, "");

	/**
	 * The column <code>cattle.service_log.instance_id</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.lang.Long> INSTANCE_ID = createField("instance_id", org.jooq.impl.SQLDataType.BIGINT, this, "");

	/**
	 * The column <code>cattle.service_log.transaction_id</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.lang.String> TRANSACTION_ID = createField("transaction_id", org.jooq.impl.SQLDataType.VARCHAR.length(255), this, "");

	/**
	 * The column <code>cattle.service_log.sub_log</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.lang.Boolean> SUB_LOG = createField("sub_log", org.jooq.impl.SQLDataType.BIT.nullable(false).defaulted(true), this, "");

	/**
	 * The column <code>cattle.service_log.level</code>.
	 */
	public final org.jooq.TableField<io.cattle.platform.core.model.tables.records.ServiceLogRecord, java.lang.String> LEVEL = createField("level", org.jooq.impl.SQLDataType.VARCHAR.length(255), this, "");

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

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

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

	private ServiceLogTable(java.lang.String alias, org.jooq.Table<io.cattle.platform.core.model.tables.records.ServiceLogRecord> 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.ServiceLogRecord, java.lang.Long> getIdentity() {
		return io.cattle.platform.core.model.Keys.IDENTITY_SERVICE_LOG;
	}

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

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

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

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

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