-
Notifications
You must be signed in to change notification settings - Fork 4
IV. Database schema
Post counters for each board.
Type: hash.
Key: board name.
Value: last post number on the board.
Thread information for each thread on each board.
Type: multiple hashes. <boardName> is the additional part of the key.
Key: thread number.
Value: Stringified JSON. Fields:
-
archivedDetermines if the thread is archived. Must befalse. -
boardNameThe thread's board name. -
closedDetermines if the thread is closed. Possible values:true/false. -
createdAtThread creation date and time in ISO format. -
fixedDetermines if the thread is fixed. Possible values:true/false. -
numberThe number of the thread. -
userThread author information. Anobject.
-
hashpassUser hashpass (hex representation of a SHA-1 hash). May benull. -
ipIP-address of the user in normalized IPv6 form. -
levelUser access level."SUPERUSER","ADMIN","MODER","USER", ornull. -
passwordHashed (SHA-1) user password. May benull.
-
unbumpable Determines if the thread is unbumpable. Possible values:true/false`.
Archived thread information for each archived thread on each board.
Type: multiple hashes. <boardName> is the additional part of the key.
Key: thread number.
Value: Stringified JSON. Fields:
-
archivedDetermines if the thread is archived. Must betrue. -
boardNameThe thread's board name. -
closedDetermines if the thread is closed. Possible values:true/false. -
createdAtThread creation date and time in ISO format. -
fixedDetermines if the thread is fixed. Possible values:true/false. -
numberThe number of the thread. -
userThread author information. Anobject.
-
hashpassUser hashpass (hex representation of a SHA-1 hash). May benull. -
ipIP-address of the user in normalized IPv6 form. -
levelUser access level."SUPERUSER","ADMIN","MODER","USER", ornull. -
passwordHashed (SHA-1) user password. May benull.
-
unbumpable Determines if the thread is unbumpable. Possible values:true/false`.
Last thread update time for each thread (both archived and not archived) on each board. Hint: A thread is updated on new post if it has not reached the bump limit.
Type: multiple hashes. <boardName> is the additional part of the key.
Key: thread number.
Value: Thread last update date and time in ISO format.
A list of post numbers for each thread (both archived and not archived) on each board.
Type: multiple unordered sets. <boardName> and <threadNumber> are the additional parts of the key.
Values: Numbers of the posts in the thread.
A list of threads planned for deletion on each board. Note: Used for debug and error recovery if thread deletion fails.
Type: Unordered set.
Values: A combination of thread board name and number separated by a semicolon (<boardName>:<threadNumber>).
Post map for each thread (both archived and not archived) on each board.
Type: Hash.
Key: A combination of post board name and number separated by a semicolon (<boardName>:<postNumber>).
Value: Stringified JSON. Fields:
-
boardNameThe post's board name. -
createdAtPost creation date and time in ISO format. -
emailPost author email. Astringornull. -
geolocationPost author geolocation data. Anobject.
-
cityNameIdentified city name. May benull. -
countryCodeIdentified country code. May benull. -
countryNameIdentified country name. May benull.
-
markupAnArrayof markup modes applied to the post text. May contain"EXTENDED_WAKABA_MARK"and/or"BB_CODE". -
namePost author name. Astringornull. -
numberThe number of the post. -
optionsPost options. Anobject.
-
showTripcodeDetermines if a tripcode is to be shown for the post. May betrueorfalse. -
signAsOpDetermines whether the post is marked to have the "OP" sign. May betrueorfalse.
-
rawTextRaw post text. Astringornull. -
subjectPost subject. Astringornull. -
textMarked up post text. Astringornull. -
threadNumberThe number of the thread this post belongs to. -
updatedAtLast post update date and time in ISO format. May benullif the post was never updated. -
userPost author information. Anobject.
-
hashpassUser hashpass (hex representation of a SHA-1 hash). May benull. -
ipIP-address of the user in normalized IPv6 form. -
levelUser access level."SUPERUSER","ADMIN","MODER","USER", ornull. -
passwordHashed (SHA-1) user password. May benull.
-
bannedForDetermines whether the post author was banned for this post. May betrueorfalse.
Note: See also Redis data types documentation.