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/req02.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 graphs/sql/daily_gazette/req02.sql

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

diff --git a/graphs/sql/daily_gazette/req02.sql b/graphs/sql/daily_gazette/req02.sql
new file mode 100644
index 0000000..57eeb94
--- /dev/null
+++ b/graphs/sql/daily_gazette/req02.sql
@@ -0,0 +1,16 @@
+CREATE TABLE rr_times.translated_headlines
+(
+    id SERIAL PRIMARY KEY,
+    title TEXT NOT NULL,
+    subtitle TEXT
+);
+CREATE TABLE rr_times.issues
+(
+    id SERIAL PRIMARY KEY,
+    issued_at DATE NOT NULL,
+    language VARCHAR(2),
+    country VARCHAR(2),
+    FOREIGN KEY (language, country) REFERENCES rr_times.locales (language_code, country_code) ON DELETE SET NULL,
+    translated_headline_id INTEGER NOT NULL,
+    FOREIGN KEY (translated_headline_id) REFERENCES rr_times.translated_headlines (id) ON DELETE RESTRICT
+);
-- 
cgit v1.2.3

