1.4 KiB
1.4 KiB
The user object is used for storing basic information about the user, authentication details are not stored on this table. Instead it would be a foreign reference key for the available authentication types that this user can use.
This object extends Entity to represent an entity.
Structure
uuid
(String): The Unique Universal Identifier for the user object #unique #primary_key #indexed This extends Entitytype
(Enum): The entity type, for users it's alwaysUSER
. This extends Entityusername
(String): The Unique username associated with the user #unique #paired_index (withdomain
) #indexed. This extends Entitydomain
(String): The domain to which this user is associated with, by defaultLOCAL
for users created under the server's local domain. (==This server manages this user==) #paired_index #indexed This extends Entityusername
anddomain
are paired unique indexes, which means the usernameJohn
may exist underLOCAL
but uniquely, no other user underLOCAL
can claim this username; but someone else fromexample.com
may claim the usernameJohn
so thatjohn@localhost
andjohn@example.com
are always unique pairs per server instancedisplay_name
: (String) *The display name for the user, non-unique.anonymous
: (Boolean) Indicates if this user account is temporary & anonymouscreated
: (Timestamp) The Timestamp for when this account was created