Skip to content

users

Column NameTypeCommentDefaultNullRemark
idbigint UNSIGNEDUser Primary Key IDNOAuto Increment
account_idbigint UNSIGNEDAccount Primary Key IDNORelated field accounts->id
uidbigint UNSIGNEDUser IDNOUnique
Initialized with 8-digit random number, 9 digits if not enough, and so on.
Randomly generated without starting with 0
usernamevarchar(64)UsernameNOUnique, can only contain letters, numbers, and single hyphens
nicknamevarchar(64)NicknameNOCannot contain punctuation or special symbols
Single space allowed but not at the beginning or end
pinvarchar(64)PINYESPersonal identification number
avatar_file_idbigint UNSIGNEDAvatar Image IDYESRelated field files->id
avatar_file_urlvarchar(255)Avatar Image Full URLYES
banner_file_idbigint UNSIGNEDBackground Banner Image IDYESRelated field files->id
banner_file_urlvarchar(255)Background Banner Image URLYES
gendertinyint UNSIGNEDGender1NO1.Unknown / 2.Male / 3.Female / 4.Custom
gender_pronountinyint UNSIGNEDGender PronounYES1.She / 2.He / 3.They
gender_customvarchar(64)Gender CustomYES
birthday_display_typetinyint UNSIGNEDBirthday Display Type1NO1.Y-m-d / 2.Y / 3.m-d / 4.Hidden
biotextBioYES
locationvarchar(128)LocationYES
verified_statustinyint UNSIGNEDUser Verification Status0NO0.Unverified / 1.Verified
verified_descvarchar(255)User Verification DescriptionYES
verified_attimestampUser Verification TimeYES
conversation_policytinyint UNSIGNEDConversation Settings1NO1 Everyone
2 People you follow
3 People you follow or verified
4 No one is allowed
comment_policytinyint UNSIGNEDComment Settings1NO1 Everyone
2 People you follow
3 People you follow or verified
4 No one is allowed
more_infojsonMore InfoYES
expired_attimestampExpiration TimeYESPrivate mode dedicated field, empty means permanently valid
last_login_attimestampLast Login TimeNO
last_activity_attimestampLast Activity TimeYES
last_post_attimestampLast Post Published TimeYES
last_comment_attimestampLast Comment Published TimeYES
last_username_attimestampLast Username Modification TimeYES
last_nickname_attimestampLast Nickname Modification TimeYES
rank_statetinyint UNSIGNEDRank State1NO1.Not set
is_enabledtinyint UNSIGNEDAccount Disabled1NO0.Disabled / 1.Normal
wait_deletetinyint UNSIGNEDPending Deletion0NO0.No / 1.Yes
wait_delete_attimestampPending Deletion TimeYES
created_attimestampCreate TimeuseCurrentNOFor example, MySQL defaults to CURRENT_TIMESTAMP
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Released under the Apache-2.0 License