From 1b8c6886f6d22f9c61e978b42d066dce91e334dc Mon Sep 17 00:00:00 2001
From: rtkay123 <dev@kanjala.com>
Date: Thu, 14 Aug 2025 18:05:07 +0200
Subject: feat(config): rule grpc

---
 crates/configuration/migrations/20250814155222_rule.sql | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 crates/configuration/migrations/20250814155222_rule.sql

(limited to 'crates/configuration/migrations/20250814155222_rule.sql')

diff --git a/crates/configuration/migrations/20250814155222_rule.sql b/crates/configuration/migrations/20250814155222_rule.sql
new file mode 100644
index 0000000..09f216a
--- /dev/null
+++ b/crates/configuration/migrations/20250814155222_rule.sql
@@ -0,0 +1,11 @@
+create table rule (
+    uuid uuid primary key,
+    configuration jsonb not null,
+    id text generated always as (
+        configuration->>'id'
+    ) stored,
+    version text generated always as (
+        configuration->>'version'
+    ) stored,
+    unique (id, version)
+);
-- 
cgit v1.2.3

