12 lines
530 B
SQL
12 lines
530 B
SQL
CREATE TABLE IF NOT EXISTS user_privacy (
|
|
"user" UUID PRIMARY KEY REFERENCES "user"(id),
|
|
profile_visibility TEXT NOT NULL DEFAULT 'public',
|
|
email_visibility TEXT NOT NULL DEFAULT 'private',
|
|
activity_visibility TEXT NOT NULL DEFAULT 'public',
|
|
allow_search_indexing BOOLEAN NOT NULL DEFAULT TRUE,
|
|
allow_direct_messages BOOLEAN NOT NULL DEFAULT TRUE,
|
|
show_online_status BOOLEAN NOT NULL DEFAULT TRUE,
|
|
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
|
);
|