ca.ibodrov.mica.db.jooq.tables.MicaProfiles 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.MicaProfilesRecord;
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.Row5;
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 MicaProfiles extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of public.mica_profiles
*/
public static final MicaProfiles MICA_PROFILES = new MicaProfiles();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return MicaProfilesRecord.class;
}
/**
* The column public.mica_profiles.id
.
*/
public final TableField ID = createField(DSL.name("id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column public.mica_profiles.name
.
*/
public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column public.mica_profiles.created_at
.
*/
public final TableField CREATED_AT = createField(DSL.name("created_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).nullable(false).defaultValue(DSL.field("now()", SQLDataType.TIMESTAMPWITHTIMEZONE)), this, "");
/**
* The column public.mica_profiles.kind
.
*/
public final TableField KIND = createField(DSL.name("kind"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column public.mica_profiles.schema
.
*/
public final TableField SCHEMA = createField(DSL.name("schema"), SQLDataType.CLOB.nullable(false), this, "");
private MicaProfiles(Name alias, Table aliased) {
this(alias, aliased, null);
}
private MicaProfiles(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased public.mica_profiles
table reference
*/
public MicaProfiles(String alias) {
this(DSL.name(alias), MICA_PROFILES);
}
/**
* Create an aliased public.mica_profiles
table reference
*/
public MicaProfiles(Name alias) {
this(alias, MICA_PROFILES);
}
/**
* Create a public.mica_profiles
table reference
*/
public MicaProfiles() {
this(DSL.name("mica_profiles"), null);
}
public MicaProfiles(Table child, ForeignKey key) {
super(child, key, MICA_PROFILES);
}
@Override
public Schema getSchema() {
return Public.PUBLIC;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.MICA_PROFILES_PKEY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.MICA_PROFILES_PKEY, Keys.MICA_PROFILES_NAME_KEY);
}
@Override
public MicaProfiles as(String alias) {
return new MicaProfiles(DSL.name(alias), this);
}
@Override
public MicaProfiles as(Name alias) {
return new MicaProfiles(alias, this);
}
/**
* Rename this table
*/
@Override
public MicaProfiles rename(String name) {
return new MicaProfiles(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public MicaProfiles rename(Name name) {
return new MicaProfiles(name, null);
}
// -------------------------------------------------------------------------
// Row5 type methods
// -------------------------------------------------------------------------
@Override
public Row5 fieldsRow() {
return (Row5) super.fieldsRow();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy