-- Migration 009: Add custom_name to user_access -- Description: Allows users to give custom names to their beneficiaries -- Date: 2025-01-22 -- Add custom_name column to user_access table -- This allows each accessor to have their own custom name for a beneficiary -- Example: "Mom", "Dad", "Grandma" instead of the beneficiary's real name ALTER TABLE user_access ADD COLUMN IF NOT EXISTS custom_name VARCHAR(100); -- Add comment for documentation COMMENT ON COLUMN user_access.custom_name IS 'Custom display name set by the accessor for this beneficiary (e.g., "Mom", "Dad")'; -- Verify the change SELECT column_name, data_type, character_maximum_length FROM information_schema.columns WHERE table_name = 'user_access' AND column_name = 'custom_name';