CREATE TABLE rr_times.articles
(
    id SERIAL PRIMARY KEY,
    translated_article_id INTEGER NOT NULL,
    rubric_id INTEGER NOT NULL,
    language VARCHAR(2) NOT NULL,
    country VARCHAR(2) NOT NULL,
    FOREIGN KEY (language, country) REFERENCES rr_times.locales (language_code, country_code) ON DELETE CASCADE,
    FOREIGN KEY (rubric_id)  REFERENCES rr_times.rubrics (id) ON DELETE CASCADE,
    FOREIGN KEY (translated_article_id) REFERENCES rr_times.translated_articles (id) ON DELETE CASCADE
);
