veza/veza-backend-api/migrations/021_add_profile_privacy.sql
2025-12-03 20:29:37 +01:00

7 lines
261 B
SQL

-- 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);