Update notes

Aurora Lahtela 2022-04-16 10:36:01 +03:00
parent e82416e311
commit 51fe6dfca6

@ -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) [![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 ### 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 ```sql
SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFAULT FROM information_schema.columns WHERE table_schema = 'Plan'; SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFAULT FROM information_schema.columns WHERE table_schema = 'Plan';