veza/veza-backend-api/migrations/021_add_profile_privacy.sql

8 lines
261 B
MySQL
Raw Normal View History

2025-12-03 19:29:37 +00:00
-- T0218: Add Profile Privacy Settings
-- Add is_public column to users table for profile privacy control
ALTER TABLE users ADD COLUMN IF NOT EXISTS is_public BOOLEAN NOT NULL DEFAULT TRUE;
CREATE INDEX IF NOT EXISTS idx_users_is_public ON users(is_public);