diff --git a/Database-Schema.md b/Database-Schema.md index 09381e9..1209b48 100644 --- a/Database-Schema.md +++ b/Database-Schema.md @@ -1,7 +1,7 @@ ![Plan Header](https://raw.githubusercontent.com/plan-player-analytics/drawio-diagrams-storage/master/image/header/main-header-Plan.jpg) # Database Schema -Page Version: **5.5 build 2265** +Page Version: **5.6 build 2820** ## Tables in Plan database @@ -11,6 +11,7 @@ SHOW TABLES IN Plan; | Tables_in_Plan | +------------------------------------+ | plan_access_log | +| plan_allowlist_bounce | | plan_cookies | | plan_extension_groups | | plan_extension_icons | @@ -27,6 +28,7 @@ SHOW TABLES IN Plan; | plan_kills | | plan_nicknames | | plan_ping | +| plan_plugin_versions | | plan_security | | plan_servers | | plan_sessions | @@ -34,6 +36,10 @@ SHOW TABLES IN Plan; | plan_tps | | plan_user_info | | plan_users | +| plan_web_group | +| plan_web_group_to_permission | +| plan_web_permission | +| plan_web_user_preferences | | plan_world_times | | plan_worlds | | plan_version_protocol | -- ViaVersion or ProtocolSupport Extensions @@ -68,7 +74,12 @@ SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFA | plan_access_log | request_method | varchar | 8 | NULL | | plan_access_log | request_uri | text | 65535 | NULL | | plan_access_log | response_code | int | NULL | NULL | -| plan_access_log | username | varchar | 100 | NULL | +| plan_allowlist_bounce | id | int | NULL | NULL | +| plan_allowlist_bounce | uuid | varchar | 36 | NULL | +| plan_allowlist_bounce | name | varchar | 36 | NULL | +| plan_allowlist_bounce | server_id | int | NULL | NULL | +| plan_allowlist_bounce | times | int | NULL | 0 | +| plan_allowlist_bounce | last_bounce | bigint | NULL | NULL | | plan_cookies | web_username | varchar | 100 | NULL | | plan_cookies | expires | bigint | NULL | NULL | | plan_cookies | cookie | varchar | 64 | NULL | @@ -169,7 +180,7 @@ SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFA | plan_geolocations | geolocation | varchar | 50 | NULL | | plan_geolocations | last_used | bigint | NULL | 0 | | plan_join_address | id | int | NULL | NULL | -| plan_join_address | join_address | varchar | 255 | NULL | +| plan_join_address | join_address | varchar | 191 | NULL | | plan_kills | id | int | NULL | NULL | | plan_kills | killer_uuid | varchar | 36 | NULL | | plan_kills | victim_uuid | varchar | 36 | NULL | @@ -197,10 +208,16 @@ SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFA | plan_platforms | linkedPlayer | varchar | 16 | NULL | | plan_platforms | languageCode | varchar | 8 | NULL | | plan_platforms | version | varchar | 16 | NULL | +| plan_plugin_versions | id | int | NULL | NULL | +| plan_plugin_versions | server_id | int | NULL | NULL | +| plan_plugin_versions | plugin_name | varchar | 100 | NULL | +| plan_plugin_versions | version | varchar | 255 | NULL | +| plan_plugin_versions | modified | bigint | NULL | 0 | +| plan_security | id | int | NULL | NULL | | plan_security | username | varchar | 100 | NULL | | plan_security | linked_to_uuid | varchar | 36 | '' | | plan_security | salted_pass_hash | varchar | 100 | NULL | -| plan_security | permission_level | int | NULL | NULL | +| plan_security | group_id | int | NULL | NULL | | plan_servers | id | int | NULL | NULL | | plan_servers | uuid | varchar | 36 | NULL | | plan_servers | name | varchar | 100 | NULL | @@ -247,7 +264,7 @@ SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFA | plan_user_info | id | int | NULL | NULL | | plan_user_info | user_id | int | NULL | NULL | | plan_user_info | server_id | int | NULL | NULL | -| plan_user_info | join_address | varchar | 255 | NULL | +| plan_user_info | join_address | varchar | 191 | NULL | | plan_user_info | registered | bigint | NULL | NULL | | plan_user_info | opped | tinyint | NULL | 0 | | plan_user_info | banned | tinyint | NULL | 0 | @@ -258,6 +275,16 @@ SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFA | plan_votes | user_name | varchar | 36 | NULL | | plan_votes | service | varchar | 150 | NULL | | plan_votes | votes | int | NULL | NULL | +| plan_web_group | id | int | NULL | NULL | +| plan_web_group | group_name | varchar | 100 | NULL | +| plan_web_group_to_permission | id | int | NULL | NULL | +| plan_web_group_to_permission | group_id | int | NULL | NULL | +| plan_web_group_to_permission | permission_id | int | NULL | NULL | +| plan_web_permission | id | int | NULL | NULL | +| plan_web_permission | permission | varchar | 100 | NULL | +| plan_web_user_preferences | id | int | NULL | NULL | +| plan_web_user_preferences | preferences | text | 65535 | NULL | +| plan_web_user_preferences | web_user_id | int | NULL | NULL | | plan_worlds | id | int | NULL | NULL | | plan_worlds | world_name | varchar | 100 | NULL | | plan_worlds | server_uuid | varchar | 36 | NULL |