From 51fe6dfca6d865e9942d4469e574f44582642789 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sat, 16 Apr 2022 10:36:01 +0300 Subject: [PATCH] Update notes --- Database-Schema.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Database-Schema.md b/Database-Schema.md index 9c283ef..c58a6e1 100644 --- a/Database-Schema.md +++ b/Database-Schema.md @@ -43,11 +43,13 @@ SHOW TABLES IN Plan; [![Database Schema](https://raw.githubusercontent.com/plan-player-analytics/drawio-diagrams-storage/master/Database%20Schema.drawio.svg)](https://app.diagrams.net/#Hplan-player-analytics%2Fdrawio-diagrams-storage%2Fmaster%2FDatabase%20Schema.drawio.svg) -## Data types - ### Notes -`plan_servers.uuid`: This uuid is ServerUUID, which the server generates the first time the server connects to the database. It can be found in ServerInfoFile.yml inside Plan plugin folder. +- `plan_servers.uuid`: This uuid is ServerUUID, which the server generates the first time the server connects to the database. It can be found in ServerInfoFile.yml inside Plan plugin folder. +- `server_uuid` columns refer to `plan_servers.uuid` without a foreign key. +- `uuid`, `killer_uuid` & `victim_uuid` columns refer to `plan_users.uuid` without a foreign key. + +## Data types ```sql SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFAULT FROM information_schema.columns WHERE table_schema = 'Plan';