Add anonymous and no-photo privacy toggles for visibility and DMs

This commit is contained in:
Ryan Salazar
2026-06-26 22:28:38 -04:00
parent 5828147341
commit 684de38ffd
11 changed files with 417 additions and 11 deletions

View File

@@ -3,7 +3,11 @@
ALTER TABLE profiles
ADD COLUMN IF NOT EXISTS height_in integer,
ADD COLUMN IF NOT EXISTS weight_lb integer,
ADD COLUMN IF NOT EXISTS body_type text;
ADD COLUMN IF NOT EXISTS body_type text,
ADD COLUMN IF NOT EXISTS hide_from_anonymous boolean NOT NULL DEFAULT false,
ADD COLUMN IF NOT EXISTS block_messages_from_anonymous boolean NOT NULL DEFAULT false,
ADD COLUMN IF NOT EXISTS hide_from_no_photo boolean NOT NULL DEFAULT false,
ADD COLUMN IF NOT EXISTS block_messages_from_no_photo boolean NOT NULL DEFAULT false;
CREATE TABLE IF NOT EXISTS hide_from_rules (
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),