aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20260412121235_account.sql
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2026-04-12 14:17:49 +0200
committerrtkay123 <dev@kanjala.com>2026-04-12 14:17:49 +0200
commitd9375b82c3bb3a917e1795be4dcd7ed849b32ca2 (patch)
tree308245b0e578179bf0ff047ddc453ab1934a0795 /migrations/20260412121235_account.sql
parent34b2f8ff6a99471fbb72ed7c52a92b92645b0652 (diff)
downloadsellershut-d9375b82c3bb3a917e1795be4dcd7ed849b32ca2.tar.bz2
sellershut-d9375b82c3bb3a917e1795be4dcd7ed849b32ca2.zip
build: migrations
Diffstat (limited to 'migrations/20260412121235_account.sql')
-rw-r--r--migrations/20260412121235_account.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/migrations/20260412121235_account.sql b/migrations/20260412121235_account.sql
new file mode 100644
index 0000000..583a0c4
--- /dev/null
+++ b/migrations/20260412121235_account.sql
@@ -0,0 +1,12 @@
+create extension if not exists citext;
+
+create table account (
+ provider_id text not null,
+ provider_user_id text not null,
+ email citext not null,
+ user_data jsonb not null,
+ user_id text not null references profile(id) on delete cascade,
+ primary key (provider_id, provider_user_id)
+);
+
+create index account_email_idx on account (email);