dev.bannmann.anansi.postgresql.generated.Keys Maven / Gradle / Ivy
The newest version!
/*
* This file is generated by jOOQ.
*/
package dev.bannmann.anansi.postgresql.generated;
import dev.bannmann.anansi.postgresql.generated.tables.Fingerprint;
import dev.bannmann.anansi.postgresql.generated.tables.Incident;
import dev.bannmann.anansi.postgresql.generated.tables.IncidentData;
import dev.bannmann.anansi.postgresql.generated.tables.records.FingerprintRecord;
import dev.bannmann.anansi.postgresql.generated.tables.records.IncidentDataRecord;
import dev.bannmann.anansi.postgresql.generated.tables.records.IncidentRecord;
import org.jooq.ForeignKey;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;
/**
* A class modelling foreign key relationships and constraints of tables in the
* default schema.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey FINGERPRINT_PK = Internal.createUniqueKey(Fingerprint.FINGERPRINT, DSL.name("fingerprint_pk"), new TableField[] { Fingerprint.FINGERPRINT.ID }, true);
public static final UniqueKey INCIDENT_PK = Internal.createUniqueKey(Incident.INCIDENT, DSL.name("incident_pk"), new TableField[] { Incident.INCIDENT.ID }, true);
public static final UniqueKey INCIDENTDATA_PK = Internal.createUniqueKey(IncidentData.INCIDENT_DATA, DSL.name("incidentdata_pk"), new TableField[] { IncidentData.INCIDENT_DATA.INCIDENT_ID, IncidentData.INCIDENT_DATA.KEY }, true);
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
public static final ForeignKey INCIDENTDATA_FK_INCIDENTID = Internal.createForeignKey(IncidentData.INCIDENT_DATA, DSL.name("incidentdata_fk_incidentid"), new TableField[] { IncidentData.INCIDENT_DATA.INCIDENT_ID }, Keys.INCIDENT_PK, new TableField[] { Incident.INCIDENT.ID }, true);
}