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

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

diff --git a/graphs/sql/daily_gazette/req03.sql b/graphs/sql/daily_gazette/req03.sql
new file mode 100644
index 0000000..f0173c8
--- /dev/null
+++ b/graphs/sql/daily_gazette/req03.sql
@@ -0,0 +1,28 @@
+CREATE TYPE rr_times.rubric_theme AS ENUM
+(
+    'TECHNOLOGY',
+    'ECONOMY',
+    'HEALTH',
+    'SPORT',
+    'CULTURE',
+    'POLITICS',
+    'SCIENCE',
+    'TRAVEL',
+    'SOCIETY',
+    'ENVIRONMENT',
+    'EDUCATION',
+    'MEDIA',
+    'FASHION',
+    'ARCHITECTURE',
+    'BUSINESS',
+    'SPACE'
+);
+CREATE TABLE rr_times.rubrics
+(
+    id SERIAL UNIQUE NOT NULL,
+    theme rr_times.rubric_theme NOT NULL,
+    nb_columns INTEGER NOT NULL,
+    issue_id INTEGER NOT NULL,
+    FOREIGN KEY (issue_id) REFERENCES rr_times.issues (id) ON DELETE CASCADE,
+    PRIMARY KEY (id, theme, issue_id)
+);
-- 
cgit v1.2.3

