819d6d1b8f
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
430 B
SQL
11 lines
430 B
SQL
CREATE TABLE IF NOT EXISTS user_profiles (
|
|
email TEXT NOT NULL PRIMARY KEY,
|
|
display_name TEXT NOT NULL DEFAULT '',
|
|
updated_at TIMESTAMP DEFAULT now(),
|
|
profile_url TEXT NOT NULL DEFAULT '',
|
|
profile_slug TEXT NOT NULL DEFAULT '',
|
|
bio TEXT NOT NULL DEFAULT ''
|
|
);
|
|
CREATE UNIQUE INDEX IF NOT EXISTS user_profiles_profile_slug_idx
|
|
ON user_profiles (profile_slug) WHERE profile_slug <> '';
|