xtablo-source/supabase/migrations/20251124212932_add_created_at_to_profiles.sql
2025-11-24 23:09:14 +01:00

8 lines
392 B
SQL

-- Add created_at column to profiles table
-- This tracks when the user profile was created
-- The DEFAULT CURRENT_TIMESTAMP will automatically populate this for both existing and new profiles
ALTER TABLE public.profiles
ADD COLUMN created_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP;
COMMENT ON COLUMN public.profiles.created_at IS 'Timestamp when the user profile was created';