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

ca.ibodrov.mica.db.jooq.tables.MicaClientData Maven / Gradle / Ivy

The newest version!
/*
 * This file is generated by jOOQ.
 */
package ca.ibodrov.mica.db.jooq.tables;


import ca.ibodrov.mica.db.jooq.Indexes;
import ca.ibodrov.mica.db.jooq.Public;
import ca.ibodrov.mica.db.jooq.tables.records.MicaClientDataRecord;

import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Index;
import org.jooq.JSONB;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row5;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of public.mica_client_data
     */
    public static final MicaClientData MICA_CLIENT_DATA = new MicaClientData();

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

    /**
     * The column public.mica_client_data.document_id.
     */
    public final TableField DOCUMENT_ID = createField(DSL.name("document_id"), SQLDataType.UUID.nullable(false), this, "");

    /**
     * The column public.mica_client_data.external_id.
     */
    public final TableField EXTERNAL_ID = createField(DSL.name("external_id"), SQLDataType.CLOB.nullable(false), this, "");

    /**
     * The column public.mica_client_data.imported_at.
     */
    public final TableField IMPORTED_AT = createField(DSL.name("imported_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).nullable(false).defaultValue(DSL.field("now()", SQLDataType.TIMESTAMPWITHTIMEZONE)), this, "");

    /**
     * The column public.mica_client_data.kind.
     */
    public final TableField KIND = createField(DSL.name("kind"), SQLDataType.CLOB.nullable(false), this, "");

    /**
     * The column public.mica_client_data.parsed_data.
     */
    public final TableField PARSED_DATA = createField(DSL.name("parsed_data"), SQLDataType.JSONB.nullable(false), this, "");

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

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

    /**
     * Create an aliased public.mica_client_data table reference
     */
    public MicaClientData(String alias) {
        this(DSL.name(alias), MICA_CLIENT_DATA);
    }

    /**
     * Create an aliased public.mica_client_data table reference
     */
    public MicaClientData(Name alias) {
        this(alias, MICA_CLIENT_DATA);
    }

    /**
     * Create a public.mica_client_data table reference
     */
    public MicaClientData() {
        this(DSL.name("mica_client_data"), null);
    }

    public  MicaClientData(Table child, ForeignKey key) {
        super(child, key, MICA_CLIENT_DATA);
    }

    @Override
    public Schema getSchema() {
        return Public.PUBLIC;
    }

    @Override
    public List getIndexes() {
        return Arrays.asList(Indexes.IDX_CLIENT_DATA_BY_EXTERNAL_ID);
    }

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

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

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

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

    // -------------------------------------------------------------------------
    // Row5 type methods
    // -------------------------------------------------------------------------

    @Override
    public Row5 fieldsRow() {
        return (Row5) super.fieldsRow();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy