diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:08:27 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:08:27 +0200 |
| commit | c9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c (patch) | |
| tree | 3e4f42f93c7ae89a364e4d51fff6e5cec4e55fa9 /graphs/sql/safe_haven/req01.sql | |
add: graphs et rushs
Diffstat (limited to 'graphs/sql/safe_haven/req01.sql')
| -rw-r--r-- | graphs/sql/safe_haven/req01.sql | 11 |
1 files changed, 11 insertions, 0 deletions
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) +); |
