From d9375b82c3bb3a917e1795be4dcd7ed849b32ca2 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Sun, 12 Apr 2026 14:17:49 +0200 Subject: build: migrations --- migrations/20260412121235_account.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 migrations/20260412121235_account.sql (limited to 'migrations/20260412121235_account.sql') 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); -- cgit v1.2.3