/*
 * This file is generated by jOOQ.
 */
package ru.micord.webbpm.ervu.business_metrics.db_beans.metrics;


import org.jooq.ForeignKey;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;

import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.ActiveApplications;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.CitizenAppeals;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.ConvertInfoCommonResults;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.ConvertInfoComparisonCsvXml;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.ConvertInfoLoadedRecords;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.ConvertInfoNotIdentifitedRecords;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.ConvertInfoRecordsFromEasu;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.ConvertInfoSentToLkEpgu;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.CriminalAdministrativeLiability;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.Fz_53Appeals;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.IncidentsChangeDataFromGirVu;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.IncidentsClosed;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.IncidentsFilesRequests;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.IncidentsRecievedByDataFromGirVu;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.RecordsAboutCitizen;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.Recruitment;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.Region;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.Users;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.ActiveApplicationsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.CitizenAppealsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.ConvertInfoCommonResultsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.ConvertInfoComparisonCsvXmlRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.ConvertInfoLoadedRecordsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.ConvertInfoNotIdentifitedRecordsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.ConvertInfoRecordsFromEasuRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.ConvertInfoSentToLkEpguRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.CriminalAdministrativeLiabilityRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.Fz_53AppealsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.IncidentsChangeDataFromGirVuRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.IncidentsClosedRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.IncidentsFilesRequestsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.IncidentsRecievedByDataFromGirVuRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.RecordsAboutCitizenRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.RecruitmentRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.RegionRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.UsersRecord;


/**
 * A class modelling foreign key relationships and constraints of tables in
 * metrics.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {

    // -------------------------------------------------------------------------
    // UNIQUE and PRIMARY KEY definitions
    // -------------------------------------------------------------------------

    public static final UniqueKey<ActiveApplicationsRecord> ACTIVE_APPLICATIONS_PKEY = Internal.createUniqueKey(ActiveApplications.ACTIVE_APPLICATIONS, DSL.name("active_applications_pkey"), new TableField[] { ActiveApplications.ACTIVE_APPLICATIONS.ACTIVE_APPLICATIONS_ID }, true);
    public static final UniqueKey<CitizenAppealsRecord> CITIZEN_APPEALS_PKEY = Internal.createUniqueKey(CitizenAppeals.CITIZEN_APPEALS, DSL.name("citizen_appeals_pkey"), new TableField[] { CitizenAppeals.CITIZEN_APPEALS.CITIZEN_APPEALS_ID }, true);
    public static final UniqueKey<ConvertInfoCommonResultsRecord> CONVERT_INFO_COMMON_RESULTS_PKEY = Internal.createUniqueKey(ConvertInfoCommonResults.CONVERT_INFO_COMMON_RESULTS, DSL.name("convert_info_common_results_pkey"), new TableField[] { ConvertInfoCommonResults.CONVERT_INFO_COMMON_RESULTS.CONVERT_INFO_COMMON_RESULTS_ID }, true);
    public static final UniqueKey<ConvertInfoComparisonCsvXmlRecord> CONVERT_INFO_COMPARISON_CSV_XML_PKEY = Internal.createUniqueKey(ConvertInfoComparisonCsvXml.CONVERT_INFO_COMPARISON_CSV_XML, DSL.name("convert_info_comparison_csv_xml_pkey"), new TableField[] { ConvertInfoComparisonCsvXml.CONVERT_INFO_COMPARISON_CSV_XML.CONVERT_INFO_COMPARISON_CSV_XML_ID }, true);
    public static final UniqueKey<ConvertInfoLoadedRecordsRecord> CONVERT_INFO_LOADED_RECORDS_PKEY = Internal.createUniqueKey(ConvertInfoLoadedRecords.CONVERT_INFO_LOADED_RECORDS, DSL.name("convert_info_loaded_records_pkey"), new TableField[] { ConvertInfoLoadedRecords.CONVERT_INFO_LOADED_RECORDS.CONVERT_INFO_LOADED_RECORDS_ID }, true);
    public static final UniqueKey<ConvertInfoNotIdentifitedRecordsRecord> CONVERT_INFO_NOT_IDENTIFITED_RECORDS_PKEY = Internal.createUniqueKey(ConvertInfoNotIdentifitedRecords.CONVERT_INFO_NOT_IDENTIFITED_RECORDS, DSL.name("convert_info_not_identifited_records_pkey"), new TableField[] { ConvertInfoNotIdentifitedRecords.CONVERT_INFO_NOT_IDENTIFITED_RECORDS.CONVERT_INFO_NOT_IDENTIFITED_RECORDS_ID }, true);
    public static final UniqueKey<ConvertInfoRecordsFromEasuRecord> CONVERT_INFO_RECORDS_FROM_EASU_PKEY = Internal.createUniqueKey(ConvertInfoRecordsFromEasu.CONVERT_INFO_RECORDS_FROM_EASU, DSL.name("convert_info_records_from_easu_pkey"), new TableField[] { ConvertInfoRecordsFromEasu.CONVERT_INFO_RECORDS_FROM_EASU.CONVERT_INFO_RECORDS_FROM_EASU_ID }, true);
    public static final UniqueKey<ConvertInfoSentToLkEpguRecord> CONVERT_INFO_SENT_TO_LK_EPGU_PKEY = Internal.createUniqueKey(ConvertInfoSentToLkEpgu.CONVERT_INFO_SENT_TO_LK_EPGU, DSL.name("convert_info_sent_to_lk_epgu_pkey"), new TableField[] { ConvertInfoSentToLkEpgu.CONVERT_INFO_SENT_TO_LK_EPGU.CONVERT_INFO_SENT_TO_LK_EPGU_ID }, true);
    public static final UniqueKey<CriminalAdministrativeLiabilityRecord> CRIMINAL_ADMINISTRATIVE_LIABILITY_PKEY = Internal.createUniqueKey(CriminalAdministrativeLiability.CRIMINAL_ADMINISTRATIVE_LIABILITY, DSL.name("criminal_administrative_liability_pkey"), new TableField[] { CriminalAdministrativeLiability.CRIMINAL_ADMINISTRATIVE_LIABILITY.CRIMINAL_ADMINISTRATIVE_LIABILITY_ID }, true);
    public static final UniqueKey<Fz_53AppealsRecord> FZ_53_APPEALS_PKEY = Internal.createUniqueKey(Fz_53Appeals.FZ_53_APPEALS, DSL.name("fz_53_appeals_pkey"), new TableField[] { Fz_53Appeals.FZ_53_APPEALS.FZ_53_APPEALS_ID }, true);
    public static final UniqueKey<IncidentsChangeDataFromGirVuRecord> INCIDENTS_CHANGE_DATA_FROM_GIR_VU_PKEY = Internal.createUniqueKey(IncidentsChangeDataFromGirVu.INCIDENTS_CHANGE_DATA_FROM_GIR_VU, DSL.name("incidents_change_data_from_gir_vu_pkey"), new TableField[] { IncidentsChangeDataFromGirVu.INCIDENTS_CHANGE_DATA_FROM_GIR_VU.INCIDENTS_CHANGE_DATA_FROM_GIR_VU_ID }, true);
    public static final UniqueKey<IncidentsClosedRecord> INCIDENTS_CLOSED_PKEY = Internal.createUniqueKey(IncidentsClosed.INCIDENTS_CLOSED, DSL.name("incidents_closed_pkey"), new TableField[] { IncidentsClosed.INCIDENTS_CLOSED.INCIDENTS_CLOSED_ID }, true);
    public static final UniqueKey<IncidentsFilesRequestsRecord> INCIDENTS_FILES_REQUESTS_PKEY = Internal.createUniqueKey(IncidentsFilesRequests.INCIDENTS_FILES_REQUESTS, DSL.name("incidents_files_requests_pkey"), new TableField[] { IncidentsFilesRequests.INCIDENTS_FILES_REQUESTS.INCIDENTS_FILES_REQUESTS_ID }, true);
    public static final UniqueKey<IncidentsRecievedByDataFromGirVuRecord> INCIDENTS_RECIEVED_BY_DATA_FROM_GIR_VU_PKEY = Internal.createUniqueKey(IncidentsRecievedByDataFromGirVu.INCIDENTS_RECIEVED_BY_DATA_FROM_GIR_VU, DSL.name("incidents_recieved_by_data_from_gir_vu_pkey"), new TableField[] { IncidentsRecievedByDataFromGirVu.INCIDENTS_RECIEVED_BY_DATA_FROM_GIR_VU.INCIDENTS_RECIEVED_BY_DATA_FROM_GIR_VU_ID }, true);
    public static final UniqueKey<RecordsAboutCitizenRecord> RECORDS_ABOUT_CITIZEN_PKEY = Internal.createUniqueKey(RecordsAboutCitizen.RECORDS_ABOUT_CITIZEN, DSL.name("records_about_citizen_pkey"), new TableField[] { RecordsAboutCitizen.RECORDS_ABOUT_CITIZEN.RECORDS_ABOUT_CITIZEN_ID }, true);
    public static final UniqueKey<RecruitmentRecord> RECRUITMENT_PKEY = Internal.createUniqueKey(Recruitment.RECRUITMENT, DSL.name("recruitment_pkey"), new TableField[] { Recruitment.RECRUITMENT.ID }, true);
    public static final UniqueKey<RegionRecord> REGION_PKEY = Internal.createUniqueKey(Region.REGION, DSL.name("region_pkey"), new TableField[] { Region.REGION.REGION_ID }, true);
    public static final UniqueKey<RegionRecord> UNI_REGION1 = Internal.createUniqueKey(Region.REGION, DSL.name("uni_region1"), new TableField[] { Region.REGION.SUBJECT_CODE }, true);
    public static final UniqueKey<UsersRecord> USERS_PKEY = Internal.createUniqueKey(Users.USERS, DSL.name("users_pkey"), new TableField[] { Users.USERS.USERS_ID }, true);

    // -------------------------------------------------------------------------
    // FOREIGN KEY definitions
    // -------------------------------------------------------------------------

    public static final ForeignKey<RecruitmentRecord, RegionRecord> RECRUITMENT__FK_RECRUITMENT_REGION_ID = Internal.createForeignKey(Recruitment.RECRUITMENT, DSL.name("fk_recruitment_region_id"), new TableField[] { Recruitment.RECRUITMENT.REGION_ID }, Keys.REGION_PKEY, new TableField[] { Region.REGION.REGION_ID }, true);
}
