aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20260202155202_account.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/20260202155202_account.sql')
-rw-r--r--migrations/20260202155202_account.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/migrations/20260202155202_account.sql b/migrations/20260202155202_account.sql
new file mode 100644
index 0000000..3d82c7f
--- /dev/null
+++ b/migrations/20260202155202_account.sql
@@ -0,0 +1,9 @@
+create extension if not exists citext;
+
+create table account (
+ provider_id text not null,
+ provider_user_id text not null,
+ email citext not null,
+ ap_id text not null references profile(ap_id) on delete cascade,
+ primary key (provider_id, provider_user_id)
+)