From e9133cd1f9dd98edb77a74b39df8a89d00f1b555 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 15 Nov 2025 01:34:14 +0000 Subject: [PATCH] Add wallet_address field to user_profiles for wallet verification cgen-e1e8eec4fb7c45c8aa3ad1bd11ccdef9 --- .../20250115_add_wallet_verification.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 supabase/migrations/20250115_add_wallet_verification.sql diff --git a/supabase/migrations/20250115_add_wallet_verification.sql b/supabase/migrations/20250115_add_wallet_verification.sql new file mode 100644 index 00000000..d1ecc49d --- /dev/null +++ b/supabase/migrations/20250115_add_wallet_verification.sql @@ -0,0 +1,14 @@ +-- Migration: Add wallet verification support +-- This adds a wallet_address field to user_profiles to support the Bridge UI +-- for Phase 2 (Unified Identity: .aethex TLD verification) + +ALTER TABLE user_profiles +ADD COLUMN IF NOT EXISTS wallet_address VARCHAR(255) UNIQUE NULL DEFAULT NULL; + +-- Create an index for faster wallet lookups during verification +CREATE INDEX IF NOT EXISTS idx_user_profiles_wallet_address +ON user_profiles(wallet_address) +WHERE wallet_address IS NOT NULL; + +-- Add a comment explaining the field +COMMENT ON COLUMN user_profiles.wallet_address IS 'Connected wallet address (e.g., 0x123...). Used for Phase 2 verification and .aethex TLD checks.';