From eb59714648bbba66e77955c8bda1c99caf1cede6 Mon Sep 17 00:00:00 2001
From: rtkay123 <dev@kanjala.com>
Date: Sat, 16 Aug 2025 10:08:51 +0200
Subject: feat(config): typologies

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

(limited to 'crates/configuration/migrations/20250816073400_typology.sql')

diff --git a/crates/configuration/migrations/20250816073400_typology.sql b/crates/configuration/migrations/20250816073400_typology.sql
new file mode 100644
index 0000000..85f8b14
--- /dev/null
+++ b/crates/configuration/migrations/20250816073400_typology.sql
@@ -0,0 +1,11 @@
+create table typology (
+    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

