Update 'Database Design'
parent
e3bc335063
commit
c996eef08f
|
@ -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`.
|
* `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.
|
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.
|
Loading…
Reference in New Issue