summaryrefslogtreecommitdiffstats
path: root/crates/auth-service/migrations/20250723121223_oauth_account.sql
diff options
context:
space:
mode:
Diffstat (limited to 'crates/auth-service/migrations/20250723121223_oauth_account.sql')
-rw-r--r--crates/auth-service/migrations/20250723121223_oauth_account.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/auth-service/migrations/20250723121223_oauth_account.sql b/crates/auth-service/migrations/20250723121223_oauth_account.sql
new file mode 100644
index 0000000..826fbcc
--- /dev/null
+++ b/crates/auth-service/migrations/20250723121223_oauth_account.sql
@@ -0,0 +1,7 @@
+CREATE TABLE oauth_account (
+ provider_id text not null,
+ provider_user_id text not null,
+ user_id uuid not null,
+ primary key (provider_id, provider_user_id),
+ foreign key (user_id) references auth_user(id)
+);