feat: add Google Sign-In with JWT auth and Neon DB persistence

This commit is contained in:
user
2026-04-27 13:23:47 +09:00
parent 7f77c2aaf4
commit 3aa1d92c98
11 changed files with 393 additions and 19 deletions

View File

@@ -0,0 +1,10 @@
-- Auth: users table
CREATE TABLE IF NOT EXISTS users (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
email TEXT UNIQUE NOT NULL,
display_name TEXT NOT NULL,
provider TEXT NOT NULL DEFAULT 'google',
provider_subject TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);