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


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.admin_indicators.tables.ActiveServiceTime;
import ru.micord.webbpm.ervu.business_metrics.db_beans.admin_indicators.tables.UserActivity;
import ru.micord.webbpm.ervu.business_metrics.db_beans.admin_indicators.tables.UserActivityDynamics;
import ru.micord.webbpm.ervu.business_metrics.db_beans.admin_indicators.tables.UserAnalysis;
import ru.micord.webbpm.ervu.business_metrics.db_beans.admin_indicators.tables.records.ActiveServiceTimeRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.admin_indicators.tables.records.UserActivityDynamicsRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.admin_indicators.tables.records.UserActivityRecord;
import ru.micord.webbpm.ervu.business_metrics.db_beans.admin_indicators.tables.records.UserAnalysisRecord;
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;


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

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

    public static final UniqueKey<ActiveServiceTimeRecord> ACTIVE_SERVICE_TIME_PKEY = Internal.createUniqueKey(ActiveServiceTime.ACTIVE_SERVICE_TIME, DSL.name("active_service_time_pkey"), new TableField[] { ActiveServiceTime.ACTIVE_SERVICE_TIME.ACTIVE_SERVICE_TIME_ID }, true);
    public static final UniqueKey<UserActivityRecord> USER_ACTIVITY_PKEY = Internal.createUniqueKey(UserActivity.USER_ACTIVITY, DSL.name("user_activity_pkey"), new TableField[] { UserActivity.USER_ACTIVITY.USER_ACTIVITY_ID }, true);
    public static final UniqueKey<UserActivityDynamicsRecord> USER_ACTIVITY_DYNAMICS_PKEY = Internal.createUniqueKey(UserActivityDynamics.USER_ACTIVITY_DYNAMICS, DSL.name("user_activity_dynamics_pkey"), new TableField[] { UserActivityDynamics.USER_ACTIVITY_DYNAMICS.USER_ACTIVITY_DYNAMICS_ID }, true);
    public static final UniqueKey<UserAnalysisRecord> USER_ANALYSIS_PKEY = Internal.createUniqueKey(UserAnalysis.USER_ANALYSIS, DSL.name("user_analysis_pkey"), new TableField[] { UserAnalysis.USER_ANALYSIS.USER_ANALYSIS_ID }, true);

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

    public static final ForeignKey<ActiveServiceTimeRecord, RecruitmentRecord> ACTIVE_SERVICE_TIME__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID = Internal.createForeignKey(ActiveServiceTime.ACTIVE_SERVICE_TIME, DSL.name("fk_conv_info_records_from_easu_recruitment_id"), new TableField[] { ActiveServiceTime.ACTIVE_SERVICE_TIME.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
    public static final ForeignKey<UserActivityDynamicsRecord, RecruitmentRecord> USER_ACTIVITY_DYNAMICS__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID = Internal.createForeignKey(UserActivityDynamics.USER_ACTIVITY_DYNAMICS, DSL.name("fk_conv_info_records_from_easu_recruitment_id"), new TableField[] { UserActivityDynamics.USER_ACTIVITY_DYNAMICS.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
}
