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


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.Recruitment;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.RecruitmentRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.AllSummonses;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.DownloadForPrint;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.FormedSummonses;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ImpositionTmpMeasures;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.InfoSentToLkEpgu;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RecruitOfficeVisit;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RemoveTmpMeasures;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SummonsesReason;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SupportLk;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.AllSummonsesRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.DownloadForPrintRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.FormedSummonsesRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.ImpositionTmpMeasuresRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.InfoSentToLkEpguRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.RecruitOfficeVisitRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.RemoveTmpMeasuresRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.SummonsesReasonRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.SupportLkRecord;


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

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

    public static final UniqueKey<AllSummonsesRecord> ALL_SUMMONSES_PKEY = Internal.createUniqueKey(AllSummonses.ALL_SUMMONSES, DSL.name("all_summonses_pkey"), new TableField[] { AllSummonses.ALL_SUMMONSES.ALL_SUMMONSES_ID }, true);
    public static final UniqueKey<DownloadForPrintRecord> DOWNLOAD_FOR_PRINT_PKEY = Internal.createUniqueKey(DownloadForPrint.DOWNLOAD_FOR_PRINT, DSL.name("download_for_print_pkey"), new TableField[] { DownloadForPrint.DOWNLOAD_FOR_PRINT.DOWNLOAD_FOR_PRINT_ID }, true);
    public static final UniqueKey<FormedSummonsesRecord> FORMED_SUMMONSES_PKEY = Internal.createUniqueKey(FormedSummonses.FORMED_SUMMONSES, DSL.name("formed_summonses_pkey"), new TableField[] { FormedSummonses.FORMED_SUMMONSES.FORMED_SUMMONSES_ID }, true);
    public static final UniqueKey<ImpositionTmpMeasuresRecord> IMPOSITION_TMP_MEASURES_PKEY = Internal.createUniqueKey(ImpositionTmpMeasures.IMPOSITION_TMP_MEASURES, DSL.name("imposition_tmp_measures_pkey"), new TableField[] { ImpositionTmpMeasures.IMPOSITION_TMP_MEASURES.IMPOSITION_TMP_MEASURES_ID }, true);
    public static final UniqueKey<InfoSentToLkEpguRecord> INFO_SENT_TO_LK_EPGU_PKEY = Internal.createUniqueKey(InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU, DSL.name("info_sent_to_lk_epgu_pkey"), new TableField[] { InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU.INFO_SENT_TO_LK_EPGU_ID }, true);
    public static final UniqueKey<RecruitOfficeVisitRecord> RECRUIT_OFFICE_VISIT_PKEY = Internal.createUniqueKey(RecruitOfficeVisit.RECRUIT_OFFICE_VISIT, DSL.name("recruit_office_visit_pkey"), new TableField[] { RecruitOfficeVisit.RECRUIT_OFFICE_VISIT.RECRUIT_OFFICE_VISIT_ID }, true);
    public static final UniqueKey<RemoveTmpMeasuresRecord> REMOVE_TMP_MEASURES_PKEY = Internal.createUniqueKey(RemoveTmpMeasures.REMOVE_TMP_MEASURES, DSL.name("remove_tmp_measures_pkey"), new TableField[] { RemoveTmpMeasures.REMOVE_TMP_MEASURES.REMOVE_TMP_MEASURES_ID }, true);
    public static final UniqueKey<SummonsesReasonRecord> SUMMONSES_REASON_PKEY = Internal.createUniqueKey(SummonsesReason.SUMMONSES_REASON, DSL.name("summonses_reason_pkey"), new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
    public static final UniqueKey<SummonsesReasonRecord> UNI_SUMMONSES_REASON1 = Internal.createUniqueKey(SummonsesReason.SUMMONSES_REASON, DSL.name("uni_summonses_reason1"), new TableField[] { SummonsesReason.SUMMONSES_REASON.CODE }, true);
    public static final UniqueKey<SupportLkRecord> SUPPORT_LK_PKEY = Internal.createUniqueKey(SupportLk.SUPPORT_LK, DSL.name("support_lk_pkey"), new TableField[] { SupportLk.SUPPORT_LK.SUPPORT_LK_ID }, true);

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

    public static final ForeignKey<AllSummonsesRecord, RecruitmentRecord> ALL_SUMMONSES__FK_CRIMINAL_ADMINISTRATIVE_LIABILITY_RECRUITMENT_ID = Internal.createForeignKey(AllSummonses.ALL_SUMMONSES, DSL.name("fk_criminal_administrative_liability_recruitment_id"), new TableField[] { AllSummonses.ALL_SUMMONSES.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
    public static final ForeignKey<DownloadForPrintRecord, RecruitmentRecord> DOWNLOAD_FOR_PRINT__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID = Internal.createForeignKey(DownloadForPrint.DOWNLOAD_FOR_PRINT, DSL.name("fk_conv_info_records_from_easu_recruitment_id"), new TableField[] { DownloadForPrint.DOWNLOAD_FOR_PRINT.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
    public static final ForeignKey<DownloadForPrintRecord, SummonsesReasonRecord> DOWNLOAD_FOR_PRINT__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(DownloadForPrint.DOWNLOAD_FOR_PRINT, DSL.name("fk_summonses_reason_id"), new TableField[] { DownloadForPrint.DOWNLOAD_FOR_PRINT.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
    public static final ForeignKey<FormedSummonsesRecord, RecruitmentRecord> FORMED_SUMMONSES__FK_CRIMINAL_ADMINISTRATIVE_LIABILITY_RECRUITMENT_ID = Internal.createForeignKey(FormedSummonses.FORMED_SUMMONSES, DSL.name("fk_criminal_administrative_liability_recruitment_id"), new TableField[] { FormedSummonses.FORMED_SUMMONSES.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
    public static final ForeignKey<FormedSummonsesRecord, SummonsesReasonRecord> FORMED_SUMMONSES__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(FormedSummonses.FORMED_SUMMONSES, DSL.name("fk_summonses_reason_id"), new TableField[] { FormedSummonses.FORMED_SUMMONSES.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
    public static final ForeignKey<ImpositionTmpMeasuresRecord, RecruitmentRecord> IMPOSITION_TMP_MEASURES__FK_CRIMINAL_ADMINISTRATIVE_LIABILITY_RECRUITMENT_ID = Internal.createForeignKey(ImpositionTmpMeasures.IMPOSITION_TMP_MEASURES, DSL.name("fk_criminal_administrative_liability_recruitment_id"), new TableField[] { ImpositionTmpMeasures.IMPOSITION_TMP_MEASURES.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
    public static final ForeignKey<ImpositionTmpMeasuresRecord, SummonsesReasonRecord> IMPOSITION_TMP_MEASURES__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(ImpositionTmpMeasures.IMPOSITION_TMP_MEASURES, DSL.name("fk_summonses_reason_id"), new TableField[] { ImpositionTmpMeasures.IMPOSITION_TMP_MEASURES.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
    public static final ForeignKey<InfoSentToLkEpguRecord, RecruitmentRecord> INFO_SENT_TO_LK_EPGU__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID = Internal.createForeignKey(InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU, DSL.name("fk_conv_info_records_from_easu_recruitment_id"), new TableField[] { InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
    public static final ForeignKey<InfoSentToLkEpguRecord, SummonsesReasonRecord> INFO_SENT_TO_LK_EPGU__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU, DSL.name("fk_summonses_reason_id"), new TableField[] { InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
    public static final ForeignKey<RecruitOfficeVisitRecord, RecruitmentRecord> RECRUIT_OFFICE_VISIT__FK_CRIMINAL_ADMINISTRATIVE_LIABILITY_RECRUITMENT_ID = Internal.createForeignKey(RecruitOfficeVisit.RECRUIT_OFFICE_VISIT, DSL.name("fk_criminal_administrative_liability_recruitment_id"), new TableField[] { RecruitOfficeVisit.RECRUIT_OFFICE_VISIT.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
    public static final ForeignKey<RecruitOfficeVisitRecord, SummonsesReasonRecord> RECRUIT_OFFICE_VISIT__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(RecruitOfficeVisit.RECRUIT_OFFICE_VISIT, DSL.name("fk_summonses_reason_id"), new TableField[] { RecruitOfficeVisit.RECRUIT_OFFICE_VISIT.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
    public static final ForeignKey<RemoveTmpMeasuresRecord, RecruitmentRecord> REMOVE_TMP_MEASURES__FK_CRIMINAL_ADMINISTRATIVE_LIABILITY_RECRUITMENT_ID = Internal.createForeignKey(RemoveTmpMeasures.REMOVE_TMP_MEASURES, DSL.name("fk_criminal_administrative_liability_recruitment_id"), new TableField[] { RemoveTmpMeasures.REMOVE_TMP_MEASURES.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
    public static final ForeignKey<RemoveTmpMeasuresRecord, SummonsesReasonRecord> REMOVE_TMP_MEASURES__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(RemoveTmpMeasures.REMOVE_TMP_MEASURES, DSL.name("fk_summonses_reason_id"), new TableField[] { RemoveTmpMeasures.REMOVE_TMP_MEASURES.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
    public static final ForeignKey<SummonsesReasonRecord, SummonsesReasonRecord> SUMMONSES_REASON__FK_PARENT_SUMMONSES_REASON_ID = Internal.createForeignKey(SummonsesReason.SUMMONSES_REASON, DSL.name("fk_parent_summonses_reason_id"), new TableField[] { SummonsesReason.SUMMONSES_REASON.PARENT_SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
}
