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


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.journal_log.tables.DictionaryUpdate;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.EpguNoticeSent;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.EpguNoticeSentError;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.ExternalSystemTransaction;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.LoadFilesJour;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.LoadFilesSpeedJour;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.LoadRecordJour;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.MessageJournal;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.ProcessedRecords;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.ProcessingTimeFilesAndRecords;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.SignJournal;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.SummonsesListDataExchange;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.SummonsesListDataExchangeError;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.UserInfo;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.UserOperation;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.UserWorkTime;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.DictionaryUpdateRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.EpguNoticeSentErrorRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.EpguNoticeSentRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.ExternalSystemTransactionRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.LoadFilesJourRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.LoadFilesSpeedJourRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.LoadRecordJourRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.MessageJournalRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.ProcessedRecordsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.ProcessingTimeFilesAndRecordsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.SignJournalRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.SummonsesListDataExchangeErrorRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.SummonsesListDataExchangeRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.UserInfoRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.UserOperationRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.records.UserWorkTimeRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.Users;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.UsersRecord;


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

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

    public static final UniqueKey<DictionaryUpdateRecord> DICTIONARY_UPDATE_PKEY = Internal.createUniqueKey(DictionaryUpdate.DICTIONARY_UPDATE, DSL.name("dictionary_update_pkey"), new TableField[] { DictionaryUpdate.DICTIONARY_UPDATE.DICTIONARY_UPDATE_ID }, true);
    public static final UniqueKey<EpguNoticeSentRecord> EPGU_NOTICE_SENT_PKEY = Internal.createUniqueKey(EpguNoticeSent.EPGU_NOTICE_SENT, DSL.name("epgu_notice_sent_pkey"), new TableField[] { EpguNoticeSent.EPGU_NOTICE_SENT.EPGU_NOTICE_SENT_ID }, true);
    public static final UniqueKey<EpguNoticeSentErrorRecord> EPGU_NOTICE_SENT_ERROR_PKEY = Internal.createUniqueKey(EpguNoticeSentError.EPGU_NOTICE_SENT_ERROR, DSL.name("epgu_notice_sent_error_pkey"), new TableField[] { EpguNoticeSentError.EPGU_NOTICE_SENT_ERROR.EPGU_NOTICE_SENT_ERROR_ID }, true);
    public static final UniqueKey<ExternalSystemTransactionRecord> EXTERNAL_SYSTEM_TRANSACTION_PKEY = Internal.createUniqueKey(ExternalSystemTransaction.EXTERNAL_SYSTEM_TRANSACTION, DSL.name("external_system_transaction_pkey"), new TableField[] { ExternalSystemTransaction.EXTERNAL_SYSTEM_TRANSACTION.EXTERNAL_SYSTEM_TRANSACTION_ID }, true);
    public static final UniqueKey<LoadFilesJourRecord> LOAD_FILES_JOUR_PKEY = Internal.createUniqueKey(LoadFilesJour.LOAD_FILES_JOUR, DSL.name("load_files_jour_pkey"), new TableField[] { LoadFilesJour.LOAD_FILES_JOUR.LOAD_FILES_JOUR_ID }, true);
    public static final UniqueKey<LoadFilesSpeedJourRecord> LOAD_FILES_SPEED_JOUR_PKEY = Internal.createUniqueKey(LoadFilesSpeedJour.LOAD_FILES_SPEED_JOUR, DSL.name("load_files_speed_jour_pkey"), new TableField[] { LoadFilesSpeedJour.LOAD_FILES_SPEED_JOUR.LOAD_FILES_SPEED_JOUR_ID }, true);
    public static final UniqueKey<LoadRecordJourRecord> LOAD_RECORD_JOUR_PKEY = Internal.createUniqueKey(LoadRecordJour.LOAD_RECORD_JOUR, DSL.name("load_record_jour_pkey"), new TableField[] { LoadRecordJour.LOAD_RECORD_JOUR.LOAD_RECORD_JOUR_ID }, true);
    public static final UniqueKey<MessageJournalRecord> MESSAGE_JOURNAL_PKEY = Internal.createUniqueKey(MessageJournal.MESSAGE_JOURNAL, DSL.name("message_journal_pkey"), new TableField[] { MessageJournal.MESSAGE_JOURNAL.MESSAGE_JOURNAL_ID }, true);
    public static final UniqueKey<ProcessedRecordsRecord> PROCESSED_RECORDS_PKEY = Internal.createUniqueKey(ProcessedRecords.PROCESSED_RECORDS, DSL.name("processed_records_pkey"), new TableField[] { ProcessedRecords.PROCESSED_RECORDS.PROCESSED_RECORDS_ID }, true);
    public static final UniqueKey<ProcessingTimeFilesAndRecordsRecord> PROCESSING_TIME_FILES_AND_RECORDS_PKEY = Internal.createUniqueKey(ProcessingTimeFilesAndRecords.PROCESSING_TIME_FILES_AND_RECORDS, DSL.name("processing_time_files_and_records_pkey"), new TableField[] { ProcessingTimeFilesAndRecords.PROCESSING_TIME_FILES_AND_RECORDS.PROCESSING_TIME_FILES_AND_RECORDS_ID }, true);
    public static final UniqueKey<SignJournalRecord> SIGN_JOURNAL_PKEY = Internal.createUniqueKey(SignJournal.SIGN_JOURNAL, DSL.name("sign_journal_pkey"), new TableField[] { SignJournal.SIGN_JOURNAL.SIGN_JOURNAL_ID }, true);
    public static final UniqueKey<SummonsesListDataExchangeRecord> SUMMONSES_LIST_DATA_EXCHANGE_PKEY = Internal.createUniqueKey(SummonsesListDataExchange.SUMMONSES_LIST_DATA_EXCHANGE, DSL.name("summonses_list_data_exchange_pkey"), new TableField[] { SummonsesListDataExchange.SUMMONSES_LIST_DATA_EXCHANGE.SUMMONSES_LIST_DATA_EXCHANGE_ID }, true);
    public static final UniqueKey<SummonsesListDataExchangeErrorRecord> SUMMONSES_LIST_DATA_EXCHANGE_ERROR_PKEY = Internal.createUniqueKey(SummonsesListDataExchangeError.SUMMONSES_LIST_DATA_EXCHANGE_ERROR, DSL.name("summonses_list_data_exchange_error_pkey"), new TableField[] { SummonsesListDataExchangeError.SUMMONSES_LIST_DATA_EXCHANGE_ERROR.SUMMONSES_LIST_DATA_EXCHANGE_ERROR_ID }, true);
    public static final UniqueKey<UserInfoRecord> USER_INFO_PKEY = Internal.createUniqueKey(UserInfo.USER_INFO, DSL.name("user_info_pkey"), new TableField[] { UserInfo.USER_INFO.USER_INFO_ID }, true);
    public static final UniqueKey<UserOperationRecord> USER_OPERATION_PKEY = Internal.createUniqueKey(UserOperation.USER_OPERATION, DSL.name("user_operation_pkey"), new TableField[] { UserOperation.USER_OPERATION.USER_OPERATION_ID }, true);
    public static final UniqueKey<UserWorkTimeRecord> USER_WORK_TIME_PKEY = Internal.createUniqueKey(UserWorkTime.USER_WORK_TIME, DSL.name("user_work_time_pkey"), new TableField[] { UserWorkTime.USER_WORK_TIME.USER_WORK_TIME_ID }, true);

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

    public static final ForeignKey<UserInfoRecord, UsersRecord> USER_INFO__FK_USER_ID = Internal.createForeignKey(UserInfo.USER_INFO, DSL.name("fk_user_id"), new TableField[] { UserInfo.USER_INFO.USER_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.USERS_PKEY, new TableField[] { Users.USERS.USERS_ID }, true);
    public static final ForeignKey<UserOperationRecord, UsersRecord> USER_OPERATION__FK_USER_ID = Internal.createForeignKey(UserOperation.USER_OPERATION, DSL.name("fk_user_id"), new TableField[] { UserOperation.USER_OPERATION.USER_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.USERS_PKEY, new TableField[] { Users.USERS.USERS_ID }, true);
    public static final ForeignKey<UserWorkTimeRecord, UsersRecord> USER_WORK_TIME__FK_USER_ID = Internal.createForeignKey(UserWorkTime.USER_WORK_TIME, DSL.name("fk_user_id"), new TableField[] { UserWorkTime.USER_WORK_TIME.USER_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.USERS_PKEY, new TableField[] { Users.USERS.USERS_ID }, true);
}
