From c9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c Mon Sep 17 00:00:00 2001
From: Martial Simon <msimon_fr@hotmail.com>
Date: Mon, 15 Sep 2025 01:08:27 +0200
Subject: add: graphs et rushs

---
 graphs/sql/daily_gazette/req04.sql | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 graphs/sql/daily_gazette/req04.sql

(limited to 'graphs/sql/daily_gazette/req04.sql')

diff --git a/graphs/sql/daily_gazette/req04.sql b/graphs/sql/daily_gazette/req04.sql
new file mode 100644
index 0000000..a8e3eff
--- /dev/null
+++ b/graphs/sql/daily_gazette/req04.sql
@@ -0,0 +1,11 @@
+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
+);
-- 
cgit v1.2.3

