schemas: add USER_SETTINGS.status

This commit is contained in:
Luna Mendes 2018-11-07 19:15:07 -03:00
parent e1a946eb87
commit a394c02477
2 changed files with 6 additions and 0 deletions

View File

@ -496,6 +496,8 @@ USER_SETTINGS = {
'show_current_game': {'type': 'boolean', 'required': False},
'timezone_offset': {'type': 'number', 'required': False},
'status': {'type': 'status_external', 'required': False}
}
RELATIONSHIP = {

View File

@ -134,6 +134,10 @@ CREATE TABLE IF NOT EXISTS user_settings (
-- appearance
message_display_compact bool DEFAULT false,
-- for now we store status but don't
-- actively use it, since the official client
-- sends its own presence on IDENTIFY
status text DEFAULT 'online' NOT NULL,
theme text DEFAULT 'dark' NOT NULL,
developer_mode bool DEFAULT true,