Plan/documentation/StoredData.md

37 lines
2.3 KiB
Markdown
Raw Normal View History

2017-05-24 17:24:07 +08:00
![Player Analytics](https://puu.sh/t8vin.png)
# Stored Data & Data format
2017-08-01 14:11:42 +08:00
This Article is about the information stored in the Database.
Page version: **3.6.0**
2017-05-24 17:24:07 +08:00
## Stored Data & Format
Data | Format in DB | Location in DB | Description
2017-05-24 17:24:31 +08:00
-- | -- | ---- | --
2017-05-24 17:24:07 +08:00
UUID | varchar | plan_users | UUID of the player, used for saving & processing all the information
Age | integer | plan_users | Age of the player, gathered from chat. -1 if not known
Gender | varchar | plan_users | String representation of the [Gender Enum](/Plan/src/main/java/com/djrapitops/plan/api/Gender.java)
Geolocation | varchar | plan_users | Geolocation of the player
Last Gamemode | varchar | plan_users | Last Gamemode the user was seen in. Used for GMTime calculations.
Last GM Swap Time | bigint | plan_users | Playtime ms the user swapped their gamemode. Used for GMTime calculations.
Playtime | bigint | plan_users | Total playtime of the player
Login Times | integer | plan_users | How many times the player has joined.
Last Played | bigint | plan_users | Last time the player's data was processed, used for Playtime calculations
2017-08-01 14:11:42 +08:00
Register Date | bigint | plan_users | Bukkit's Register date
Banned | boolean | plan_users | Bukkit's Ban value
OP | boolean | plan_users | Bukkit's OP value
2017-05-24 17:24:07 +08:00
Nicknames | varchar | plan_nicknames | All the nicknames the player has used
Last nickname | boolean | plan_nicknames | The last nickname known stated as a boolean.
IPs | varchar | plan_ips | InetAddress the player connected from
GM Times | bigint | plan_gamemodetimes | Time spent in each Gamemode
Locations | integer, integer, String | plan_locations | X, Z & World name the player has visited.
Mob kills | integer | plan_users | Mobs the player has slain
Deaths | integer | plan_users | How many times the player has died
Player kills & Weapon used | integer, varchar, bigint, string | plan_kills | User the player killed, the time of the kill & the name of MATERIAL of the weapon.
SessionData (Start & End of session) | bigint, bigint | plan_sessions | Used for all sorts of activity calculation.
Command Usage | varchar | plan_commandusages | Each base command & how many times they have been used.
2017-08-01 14:11:42 +08:00
World times | bigint | plan_world_times | World Playtimes
World names | varchar(255) | plan_worlds | All names worlds have appeared as.
2017-05-24 17:24:07 +08:00
2017-08-01 14:11:42 +08:00
Player Online is determined by the data being in the DataCache.