ca.ibodrov.mica.db.jooq.tables.MicaClients Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package ca.ibodrov.mica.db.jooq.tables;
import ca.ibodrov.mica.db.jooq.Keys;
import ca.ibodrov.mica.db.jooq.Public;
import ca.ibodrov.mica.db.jooq.tables.records.MicaClientsRecord;
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.Name;
import org.jooq.Record;
import org.jooq.Row3;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
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 MicaClients extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of public.mica_clients
*/
public static final MicaClients MICA_CLIENTS = new MicaClients();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return MicaClientsRecord.class;
}
/**
* The column public.mica_clients.id
.
*/
public final TableField ID = createField(DSL.name("id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column public.mica_clients.name
.
*/
public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column public.mica_clients.created_at
.
*/
public final TableField CREATED_AT = createField(DSL.name("created_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).nullable(false).defaultValue(DSL.field("now()", SQLDataType.TIMESTAMPWITHTIMEZONE)), this, "");
private MicaClients(Name alias, Table aliased) {
this(alias, aliased, null);
}
private MicaClients(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased public.mica_clients
table reference
*/
public MicaClients(String alias) {
this(DSL.name(alias), MICA_CLIENTS);
}
/**
* Create an aliased public.mica_clients
table reference
*/
public MicaClients(Name alias) {
this(alias, MICA_CLIENTS);
}
/**
* Create a public.mica_clients
table reference
*/
public MicaClients() {
this(DSL.name("mica_clients"), null);
}
public MicaClients(Table child, ForeignKey key) {
super(child, key, MICA_CLIENTS);
}
@Override
public Schema getSchema() {
return Public.PUBLIC;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.MICA_CLIENTS_PKEY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.MICA_CLIENTS_PKEY, Keys.MICA_CLIENTS_NAME_KEY);
}
@Override
public MicaClients as(String alias) {
return new MicaClients(DSL.name(alias), this);
}
@Override
public MicaClients as(Name alias) {
return new MicaClients(alias, this);
}
/**
* Rename this table
*/
@Override
public MicaClients rename(String name) {
return new MicaClients(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public MicaClients rename(Name name) {
return new MicaClients(name, null);
}
// -------------------------------------------------------------------------
// Row3 type methods
// -------------------------------------------------------------------------
@Override
public Row3 fieldsRow() {
return (Row3) super.fieldsRow();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy