Jump to content

OpenSimulator Internals/FriendsService

From Open Simulator Technical Help
Revision as of 07:02, 21 June 2026 by Jwbshaw (talk | contribs) (first)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

OpenSimulator Internals/FriendsService

[edit]

Overview

[edit]

FriendsService manages the friends list, friendship requests, and permissions granted to friends.


Data Fields

[edit]
Field Type Notes
PrincipalID VARCHAR(255) String not UUID -- HyperGrid users have URI-based IDs. Part of composite primary key.
Friend VARCHAR(255) UUID or HyperGrid URI of the friend. Part of composite primary key.
Flags VARCHAR(16) Permissions this user has granted to the friend. Stored as string.
Offered VARCHAR(32) Friendship offer state. Stored as string.

TheirFlags is not stored -- computed at query time via self-join on the same table. Returns -1 if the reverse friendship record does not exist (friendship not yet reciprocated).


Database

[edit]

See Friends table for the full database schema.


See Also

[edit]