Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Profile Metadata

The profile_metadata table stores up to four custom key/value rows that are shown on the user’s profile. This document defines the validation rules for the name and value columns. Limits follow the Mastodon defaults.

position

RuleValue
TypeUINT8
Range0..=3 (primary key)

The table is capped at four rows via the primary key range. Enforcement of the upper bound is done by the application layer that writes to the table (WI-1.27).

name / value

Both columns share the same rules.

RuleValue
SanitizationTrim leading/trailing whitespace
Maximum length255 characters
Minimum length1 (empty string rejected)
NullableNo
Length unitUnicode scalar values

Enforced by TrimSanitizer + BoundedTextValidator(255) in db-utils.