summaryrefslogtreecommitdiffstats
path: root/crates/auth-service/migrations/20250725161014_token.sql
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-07-26 19:24:38 +0200
committerrtkay123 <dev@kanjala.com>2025-07-26 19:24:38 +0200
commite26d87f4fa18999c6bcfbcf32cfa85adab11acdd (patch)
tree603c6dacb6c448984bdcc5fa2b4a9314f1a23960 /crates/auth-service/migrations/20250725161014_token.sql
parent236876f1d0539ac22a3977fd8599933725ad0f90 (diff)
downloadsellershut-e26d87f4fa18999c6bcfbcf32cfa85adab11acdd.tar.bz2
sellershut-e26d87f4fa18999c6bcfbcf32cfa85adab11acdd.zip
feat(auth): create user call
Diffstat (limited to 'crates/auth-service/migrations/20250725161014_token.sql')
-rw-r--r--crates/auth-service/migrations/20250725161014_token.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/auth-service/migrations/20250725161014_token.sql b/crates/auth-service/migrations/20250725161014_token.sql
new file mode 100644
index 0000000..68f476c
--- /dev/null
+++ b/crates/auth-service/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
+);