| Column | Type | Collation | Nullable | Default |
|---|---|---|---|---|
id |
uuid |
|
not null |
|
citext |
|
|
|
|
password_hash |
character varying(255) |
|
|
|
name |
character varying(255) |
|
|
|
nickname |
citext |
|
|
|
bio |
text |
|
not null |
|
inserted_at |
timestamp(0) without time zone |
|
not null |
|
updated_at |
timestamp(0) without time zone |
|
not null |
|
ap_id |
character varying(255) |
|
not null |
|
avatar |
jsonb |
|
|
|
local |
boolean |
|
not null |
true |
follower_address |
character varying(255) |
|
|
|
last_refreshed_at |
timestamp without time zone |
|
|
|
tags |
character varying(255)[] |
|
|
ARRAY[]::character varying[] |
last_digest_emailed_at |
timestamp(0) without time zone |
|
|
now() |
multi_factor_authentication_settings |
jsonb |
|
|
'\{}'::jsonb |
following_address |
character varying(255) |
|
|
|
keys |
text |
|
|
|
banner |
jsonb |
|
|
'\{}'::jsonb |
background |
jsonb |
|
|
'\{}'::jsonb |
note_count |
integer |
|
not null |
0 |
follower_count |
integer |
|
not null |
0 |
following_count |
integer |
|
not null |
0 |
is_locked |
boolean |
|
not null |
false |
is_confirmed |
boolean |
|
not null |
true |
password_reset_pending |
boolean |
|
not null |
false |
confirmation_token |
text |
|
|
|
default_scope |
character varying(255) |
|
|
'public'::character varying |
blocks |
text[] |
|
not null |
ARRAY[]::text[] |
domain_blocks |
text[] |
|
not null |
ARRAY[]::text[] |
mutes |
text[] |
|
not null |
ARRAY[]::text[] |
muted_reblogs |
text[] |
|
not null |
ARRAY[]::text[] |
muted_notifications |
text[] |
|
not null |
ARRAY[]::text[] |
subscribers |
text[] |
|
not null |
ARRAY[]::text[] |
is_active |
boolean |
|
not null |
true |
no_rich_text |
boolean |
|
not null |
false |
ap_enabled |
boolean |
|
not null |
false |
is_moderator |
boolean |
|
not null |
false |
is_admin |
boolean |
|
not null |
false |
show_role |
boolean |
|
not null |
true |
mastofe_settings |
jsonb |
|
|
|
uri |
text |
|
|
|
hide_followers_count |
boolean |
|
not null |
false |
hide_follows_count |
boolean |
|
not null |
false |
hide_followers |
boolean |
|
not null |
false |
hide_follows |
boolean |
|
not null |
false |
hide_favorites |
boolean |
|
not null |
true |
email_notifications |
jsonb |
|
|
'\{"digest": false}'::jsonb |
mascot |
jsonb |
|
|
|
emoji |
jsonb |
|
not null |
'\{}'::jsonb |
pleroma_settings_store |
jsonb |
|
|
'\{}'::jsonb |
fields |
jsonb |
|
not null |
'[]'::jsonb |
raw_fields |
jsonb |
|
not null |
'[]'::jsonb |
is_discoverable |
boolean |
|
not null |
false |
invisible |
boolean |
|
not null |
false |
notification_settings |
jsonb |
|
not null |
'\{"follows": true, "followers": true, "non_follows": true, "non_followers": true}'::jsonb |
skip_thread_containment |
boolean |
|
not null |
false |
also_known_as |
character varying(255)[] |
|
not null |
ARRAY[]::character varying[] |
allow_following_move |
boolean |
|
not null |
true |
actor_type |
character varying(255) |
|
not null |
'Person'::character varying |
raw_bio |
text |
|
|
|
public_key |
text |
|
|
|
inbox |
text |
|
|
|
shared_inbox |
text |
|
|
|
accepts_chat_messages |
boolean |
|
|
|
is_approved |
boolean |
|
not null |
true |
registration_reason |
text |
|
|
|
last_active_at |
timestamp(0) without time zone |
|
|
|
pinned_objects |
jsonb |
|
not null |
'\{}'::jsonb |
featured_address |
character varying(255) |
|
|
|
disclose_client |
boolean |
|
|
true |
is_suggested |
boolean |
|
not null |
false |
last_status_at |
timestamp(0) without time zone |
|
|
|
language |
character varying(255) |
|
|
|
status_ttl_days |
integer |
|
|
|
Indexes:
"users_pkey" PRIMARY KEY, btree (id)
"users_ap_id_COALESCE_follower_address_index" btree (ap_id,
COALESCE(follower_address, ''::character varying))
"users_ap_id_index" UNIQUE, btree (ap_id)
"users_email_index" UNIQUE, btree (email)
"users_featured_address_index" btree (featured_address)
"users_follower_address_index" btree (follower_address)
"users_following_address_index" btree (following_address)
"users_fts_index" gin setweight(to_tsvector('simple'::regconfig, regexp_replace(nickname, '\W'::citext, ' '::text, 'g'::text,
'A'::"char") || setweight(to_tsvector('simple'::regconfig,
regexp_replace(COALESCE(name, ''::character varying)::text, '\W'::text,
' '::text, 'g'::text)), 'B'::"char")))
"users_invisible_index" btree (invisible)
"users_is_active_index" btree (is_active)
"users_is_admin_index" btree (is_admin)
"users_is_discoverable_index" btree (is_discoverable)
"users_is_moderator_index" btree (is_moderator)
"users_is_suggested_index" btree (is_suggested)
"users_last_active_at_index" btree (last_active_at)
"users_last_status_at_index" btree (last_status_at)
"users_local_index" btree (local)
"users_nickname_index" UNIQUE, btree (nickname)
"users_tags_index" gin (tags)
"users_uri_index" btree (uri)
Referenced by:
TABLE "announcement_read_relationships" CONSTRAINT
"announcement_read_relationships_user_id_fkey" FOREIGN KEY (user_id)
REFERENCES users(id) ON DELETE CASCADE
TABLE "apps" CONSTRAINT "apps_user_id_fkey" FOREIGN KEY (user_id)
REFERENCES users(id) ON DELETE CASCADE
TABLE "backups" CONSTRAINT "backups_user_id_fkey" FOREIGN KEY
(user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "bookmarks" CONSTRAINT "bookmarks_user_id_fkey" FOREIGN KEY
(user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "chats" CONSTRAINT "chats_recipient_fkey" FOREIGN KEY
(recipient) REFERENCES users(ap_id) ON DELETE CASCADE
TABLE "chats" CONSTRAINT "chats_user_id_fkey" FOREIGN KEY (user_id)
REFERENCES users(id) ON DELETE CASCADE
TABLE "conversation_participation_recipient_ships" CONSTRAINT
"conversation_participation_recipient_ships_user_id_fkey" FOREIGN KEY
(user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "conversation_participations" CONSTRAINT
"conversation_participations_user_id_fkey" FOREIGN KEY (user_id)
REFERENCES users(id) ON DELETE CASCADE
TABLE "deliveries" CONSTRAINT "deliveries_user_id_fkey" FOREIGN KEY
(user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "filters" CONSTRAINT "filters_user_id_fkey" FOREIGN KEY
(user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "following_relationships" CONSTRAINT
"following_relationships_follower_id_fkey" FOREIGN KEY (follower_id)
REFERENCES users(id) ON DELETE CASCADE
TABLE "following_relationships" CONSTRAINT
"following_relationships_following_id_fkey" FOREIGN KEY (following_id)
REFERENCES users(id) ON DELETE CASCADE
TABLE "lists" CONSTRAINT "lists_user_id_fkey" FOREIGN KEY (user_id)
REFERENCES users(id) ON DELETE CASCADE
TABLE "markers" CONSTRAINT "markers_user_id_fkey" FOREIGN KEY
(user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "mfa_tokens" CONSTRAINT "mfa_tokens_user_id_fkey" FOREIGN KEY
(user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "notifications" CONSTRAINT "notifications_user_id_fkey"
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "oauth_authorizations" CONSTRAINT
"oauth_authorizations_user_id_fkey" FOREIGN KEY (user_id) REFERENCES
users(id) ON DELETE CASCADE
TABLE "oauth_tokens" CONSTRAINT "oauth_tokens_user_id_fkey" FOREIGN
KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "password_reset_tokens" CONSTRAINT
"password_reset_tokens_user_id_fkey" FOREIGN KEY (user_id) REFERENCES
users(id) ON DELETE CASCADE
TABLE "push_subscriptions" CONSTRAINT
"push_subscriptions_user_id_fkey" FOREIGN KEY (user_id) REFERENCES
users(id) ON DELETE CASCADE
TABLE "registrations" CONSTRAINT "registrations_user_id_fkey"
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "report_notes" CONSTRAINT "report_notes_user_id_fkey" FOREIGN
KEY (user_id) REFERENCES users(id)
TABLE "scheduled_activities" CONSTRAINT
"scheduled_activities_user_id_fkey" FOREIGN KEY (user_id) REFERENCES
users(id) ON DELETE CASCADE
TABLE "thread_mutes" CONSTRAINT "thread_mutes_user_id_fkey" FOREIGN
KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "user_follows_hashtag" CONSTRAINT
"user_follows_hashtag_user_id_fkey" FOREIGN KEY (user_id) REFERENCES
users(id) ON DELETE CASCADE
TABLE "user_frontend_setting_profiles" CONSTRAINT
"user_frontend_setting_profiles_user_id_fkey" FOREIGN KEY (user_id)
REFERENCES users(id) ON DELETE CASCADE
TABLE "user_notes" CONSTRAINT "user_notes_source_id_fkey" FOREIGN
KEY (source_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "user_notes" CONSTRAINT "user_notes_target_id_fkey" FOREIGN
KEY (target_id) REFERENCES users(id) ON DELETE CASCADE
TABLE "user_relationships" CONSTRAINT
"user_relationships_source_id_fkey" FOREIGN KEY (source_id) REFERENCES
users(id) ON DELETE CASCADE
TABLE "user_relationships" CONSTRAINT
"user_relationships_target_id_fkey" FOREIGN KEY (target_id) REFERENCES
users(id) ON DELETE CASCADE