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/safe_haven/req01.sql | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 graphs/sql/safe_haven/req01.sql

(limited to 'graphs/sql/safe_haven/req01.sql')

diff --git a/graphs/sql/safe_haven/req01.sql b/graphs/sql/safe_haven/req01.sql
new file mode 100644
index 0000000..4c0d403
--- /dev/null
+++ b/graphs/sql/safe_haven/req01.sql
@@ -0,0 +1,11 @@
+CREATE TABLE banking_transactions_poc
+(
+    id serial PRIMARY KEY,
+    sender varchar(22) NOT NULL,
+    receiver varchar(22) NOT NULL,
+    amount numeric(16, 2) NOT NULL,
+    CHECK (sender SIMILAR TO 'RR[0-9]{2}[A-Z]{4}[0-9]{14}'),
+    CHECK (receiver SIMILAR TO 'RR[0-9]{2}[A-Z]{4}[0-9]{14}'),
+    CHECK (sender != receiver),
+    CHECK (amount > 0)
+);
-- 
cgit v1.2.3

