From 4f30128feb0715f05c103fec20aa6cba61e60984 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Tue, 10 Feb 2026 23:38:02 +0200 Subject: feat: db create account --- migrations/20260210194218_oauth_account.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/20260210194218_oauth_account.sql (limited to 'migrations/20260210194218_oauth_account.sql') diff --git a/migrations/20260210194218_oauth_account.sql b/migrations/20260210194218_oauth_account.sql new file mode 100644 index 0000000..ce660fe --- /dev/null +++ b/migrations/20260210194218_oauth_account.sql @@ -0,0 +1,11 @@ +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) +); + +create index account_email_idx on account (email); -- cgit v1.2.3