-
-
Notifications
You must be signed in to change notification settings - Fork 171
Database Schema
Risto Lahtela edited this page Nov 2, 2019
·
23 revisions
Page Version: 5.0 build 260
SHOW TABLES IN Plan;
plan_extension_groups
plan_extension_icons
plan_extension_plugins
plan_extension_providers
plan_extension_server_table_values
plan_extension_server_values
plan_extension_tables
plan_extension_tabs
plan_extension_user_table_values
plan_extension_user_values
plan_geolocations
plan_kills
plan_nicknames
plan_ping
plan_security
plan_servers
plan_sessions
plan_settings
plan_tps
plan_user_info
plan_users
plan_version_protocol
plan_world_times
plan_worlds
plan_servers.uuid
: This uuid is ServerUUID, which the server generates the first time the server connects to the database. It uses server properties as the seed and can be found in ServerInfoFile.yml
SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFAULT FROM information_schema.columns WHERE table_schema = 'Plan';TABLE_NAME,COLUMN_NAME,DATA_TYPE,CHARACTER_MAXIMUM_LENGTH,COLUMN_DEFAULT
TABLE_NAME | COLUMN_NAME | DATA_TYPE | CHARACTER_MAXIMUM_LENGTH | COLUMN_DEFAULT |
---|---|---|---|---|
plan_extension_groups | id | int | NULL | NULL |
plan_extension_groups | uuid | varchar | 36 | NULL |
plan_extension_groups | group_name | varchar | 50 | NULL |
plan_extension_groups | provider_id | int | NULL | NULL |
plan_extension_icons | id | int | NULL | NULL |
plan_extension_icons | name | varchar | 50 | 'question' |
plan_extension_icons | family | varchar | 15 | 'SOLID' |
plan_extension_icons | color | varchar | 25 | 'NONE' |
plan_extension_plugins | id | int | NULL | NULL |
plan_extension_plugins | name | varchar | 50 | NULL |
plan_extension_plugins | last_updated | bigint | NULL | NULL |
plan_extension_plugins | server_uuid | varchar | 36 | NULL |
plan_extension_plugins | icon_id | int | NULL | NULL |
plan_extension_providers | id | int | NULL | NULL |
plan_extension_providers | name | varchar | 50 | NULL |
plan_extension_providers | text | varchar | 50 | NULL |
plan_extension_providers | description | varchar | 150 | NULL |
plan_extension_providers | priority | int | NULL | 0 |
plan_extension_providers | groupable | tinyint | NULL | 0 |
plan_extension_providers | condition_name | varchar | 54 | NULL |
plan_extension_providers | provided_condition | varchar | 50 | NULL |
plan_extension_providers | format_type | varchar | 25 | NULL |
plan_extension_providers | hidden | tinyint | NULL | 0 |
plan_extension_providers | player_name | tinyint | NULL | 0 |
plan_extension_providers | plugin_id | int | NULL | NULL |
plan_extension_providers | icon_id | int | NULL | NULL |
plan_extension_providers | tab_id | int | NULL | NULL |
plan_extension_providers | show_in_players_table | tinyint | NULL | 0 |
plan_extension_server_table_values | id | int | NULL | NULL |
plan_extension_server_table_values | uuid | varchar | 36 | NULL |
plan_extension_server_table_values | col_1_value | varchar | 250 | NULL |
plan_extension_server_table_values | col_2_value | varchar | 250 | NULL |
plan_extension_server_table_values | col_3_value | varchar | 250 | NULL |
plan_extension_server_table_values | col_4_value | varchar | 250 | NULL |
plan_extension_server_table_values | col_5_value | varchar | 250 | NULL |
plan_extension_server_table_values | table_id | int | NULL | NULL |
plan_extension_server_values | id | int | NULL | NULL |
plan_extension_server_values | boolean_value | tinyint | NULL | NULL |
plan_extension_server_values | double_value | double | NULL | NULL |
plan_extension_server_values | percentage_value | double | NULL | NULL |
plan_extension_server_values | long_value | bigint | NULL | NULL |
plan_extension_server_values | string_value | varchar | 50 | NULL |
plan_extension_server_values | group_value | varchar | 50 | NULL |
plan_extension_server_values | provider_id | int | NULL | NULL |
plan_extension_tables | id | int | NULL | NULL |
plan_extension_tables | name | varchar | 50 | NULL |
plan_extension_tables | color | varchar | 25 | 'NONE' |
plan_extension_tables | condition_name | varchar | 54 | NULL |
plan_extension_tables | col_1_name | varchar | 50 | NULL |
plan_extension_tables | col_2_name | varchar | 50 | NULL |
plan_extension_tables | col_3_name | varchar | 50 | NULL |
plan_extension_tables | col_4_name | varchar | 50 | NULL |
plan_extension_tables | col_5_name | varchar | 50 | NULL |
plan_extension_tables | plugin_id | int | NULL | NULL |
plan_extension_tables | icon_1_id | int | NULL | NULL |
plan_extension_tables | icon_2_id | int | NULL | NULL |
plan_extension_tables | icon_3_id | int | NULL | NULL |
plan_extension_tables | icon_4_id | int | NULL | NULL |
plan_extension_tables | icon_5_id | int | NULL | NULL |
plan_extension_tables | tab_id | int | NULL | NULL |
plan_extension_tabs | id | int | NULL | NULL |
plan_extension_tabs | name | varchar | 50 | NULL |
plan_extension_tabs | element_order | varchar | 100 | 'VALUES,TABLE,GRAPH' |
plan_extension_tabs | tab_priority | int | NULL | NULL |
plan_extension_tabs | plugin_id | int | NULL | NULL |
plan_extension_tabs | icon_id | int | NULL | NULL |
plan_extension_user_table_values | id | int | NULL | NULL |
plan_extension_user_table_values | uuid | varchar | 36 | NULL |
plan_extension_user_table_values | col_1_value | varchar | 250 | NULL |
plan_extension_user_table_values | col_2_value | varchar | 250 | NULL |
plan_extension_user_table_values | col_3_value | varchar | 250 | NULL |
plan_extension_user_table_values | col_4_value | varchar | 250 | NULL |
plan_extension_user_table_values | table_id | int | NULL | NULL |
plan_extension_user_values | id | int | NULL | NULL |
plan_extension_user_values | boolean_value | tinyint | NULL | NULL |
plan_extension_user_values | double_value | double | NULL | NULL |
plan_extension_user_values | percentage_value | double | NULL | NULL |
plan_extension_user_values | long_value | bigint | NULL | NULL |
plan_extension_user_values | string_value | varchar | 50 | NULL |
plan_extension_user_values | group_value | varchar | 50 | NULL |
plan_extension_user_values | uuid | varchar | 36 | NULL |
plan_extension_user_values | provider_id | int | NULL | NULL |
plan_geolocations | id | int | NULL | NULL |
plan_geolocations | uuid | varchar | 36 | NULL |
plan_geolocations | geolocation | varchar | 50 | NULL |
plan_geolocations | last_used | bigint | NULL | 0 |
plan_kills | id | int | NULL | NULL |
plan_kills | killer_uuid | varchar | 36 | NULL |
plan_kills | victim_uuid | varchar | 36 | NULL |
plan_kills | server_uuid | varchar | 36 | NULL |
plan_kills | weapon | varchar | 30 | NULL |
plan_kills | date | bigint | NULL | NULL |
plan_kills | session_id | int | NULL | NULL |
plan_nicknames | id | int | NULL | NULL |
plan_nicknames | uuid | varchar | 36 | NULL |
plan_nicknames | nickname | varchar | 75 | NULL |
plan_nicknames | server_uuid | varchar | 36 | NULL |
plan_nicknames | last_used | bigint | NULL | NULL |
plan_ping | id | int | NULL | NULL |
plan_ping | uuid | varchar | 36 | NULL |
plan_ping | server_uuid | varchar | 36 | NULL |
plan_ping | date | bigint | NULL | NULL |
plan_ping | max_ping | int | NULL | NULL |
plan_ping | min_ping | int | NULL | NULL |
plan_ping | avg_ping | double | NULL | NULL |
plan_security | username | varchar | 100 | NULL |
plan_security | salted_pass_hash | varchar | 100 | NULL |
plan_security | permission_level | int | NULL | NULL |
plan_servers | id | int | NULL | NULL |
plan_servers | uuid | varchar | 36 | NULL |
plan_servers | name | varchar | 100 | NULL |
plan_servers | web_address | varchar | 100 | NULL |
plan_servers | is_installed | tinyint | NULL | 1 |
plan_servers | max_players | int | NULL | -1 |
plan_sessions | id | int | NULL | NULL |
plan_sessions | uuid | varchar | 36 | NULL |
plan_sessions | server_uuid | varchar | 36 | NULL |
plan_sessions | session_start | bigint | NULL | NULL |
plan_sessions | session_end | bigint | NULL | NULL |
plan_sessions | mob_kills | int | NULL | NULL |
plan_sessions | deaths | int | NULL | NULL |
plan_sessions | afk_time | bigint | NULL | NULL |
plan_settings | id | int | NULL | NULL |
plan_settings | server_uuid | varchar | 39 | NULL |
plan_settings | updated | bigint | NULL | NULL |
plan_settings | content | text | 65535 | NULL |
plan_tps | server_id | int | NULL | NULL |
plan_tps | date | bigint | NULL | NULL |
plan_tps | tps | double | NULL | NULL |
plan_tps | players_online | int | NULL | NULL |
plan_tps | cpu_usage | double | NULL | NULL |
plan_tps | ram_usage | bigint | NULL | NULL |
plan_tps | entities | int | NULL | NULL |
plan_tps | chunks_loaded | int | NULL | NULL |
plan_tps | free_disk_space | bigint | NULL | -1 |
plan_users | id | int | NULL | NULL |
plan_users | uuid | varchar | 36 | NULL |
plan_users | registered | bigint | NULL | NULL |
plan_users | name | varchar | 16 | NULL |
plan_users | times_kicked | int | NULL | 0 |
plan_user_info | id | int | NULL | NULL |
plan_user_info | uuid | varchar | 36 | NULL |
plan_user_info | server_uuid | varchar | 36 | NULL |
plan_user_info | registered | bigint | NULL | NULL |
plan_user_info | opped | tinyint | NULL | 0 |
plan_user_info | banned | tinyint | NULL | 0 |
plan_version_protocol | uuid | varchar | 36 | NULL |
plan_version_protocol | protocol_version | int | NULL | NULL |
plan_worlds | id | int | NULL | NULL |
plan_worlds | world_name | varchar | 100 | NULL |
plan_worlds | server_uuid | varchar | 36 | NULL |
plan_world_times | id | int | NULL | NULL |
plan_world_times | uuid | varchar | 36 | NULL |
plan_world_times | world_id | int | NULL | NULL |
plan_world_times | server_uuid | varchar | 36 | NULL |
plan_world_times | session_id | int | NULL | NULL |
plan_world_times | survival_time | bigint | NULL | 0 |
plan_world_times | creative_time | bigint | NULL | 0 |
plan_world_times | adventure_time | bigint | NULL | 0 |
plan_world_times | spectator_time | bigint | NULL | 0 |