Update 'Database Design'

projectmoon 2020-11-07 14:44:02 +00:00
parent e3bc335063
commit c996eef08f
1 changed files with 82 additions and 74 deletions

@ -72,3 +72,11 @@ User variables are implemented with two trees:
* `room_user_variable_count`: Key format `<username> 0xfe <room_id>`. Value type is `i32`.
The `room_user_variables` tree contains the actual variables and their value, defined by the user. The `room_user_variable_count` tree keeps track of how many variables a user has defined on a per room basis. APIs atomically update both trees transactionally.
## Design: Room State Management
This will document the room state management database design, once it's finished.
### Database Schema
TODO.