From cd528dbb7fb5d596b47178110a3dcef9af573c8d Mon Sep 17 00:00:00 2001
From: rtkay123 <dev@kanjala.com>
Date: Fri, 25 Jul 2025 17:33:47 +0200
Subject: feat(auth): jwt

---
 crates/auth/migrations/20250725161014_token.sql | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 crates/auth/migrations/20250725161014_token.sql

(limited to 'crates/auth/migrations/20250725161014_token.sql')

diff --git a/crates/auth/migrations/20250725161014_token.sql b/crates/auth/migrations/20250725161014_token.sql
new file mode 100644
index 0000000..68f476c
--- /dev/null
+++ b/crates/auth/migrations/20250725161014_token.sql
@@ -0,0 +1,9 @@
+-- Add migration script here
+create table token (
+    user_id uuid not null,
+    token text not null,
+    session_id text not null,
+    primary key (user_id, session_id),
+    foreign key (session_id) references "tower_sessions"."session"(id) on delete cascade,
+    foreign key (user_id) references auth_user(id) on delete cascade
+);
-- 
cgit v1.2.3

