-
-
Notifications
You must be signed in to change notification settings - Fork 15
Database Structure
jokil123 edited this page Aug 9, 2021
·
22 revisions
A detail description of our MariaDB/MYSQL database structure. (It's not the best but it's honest work 👀)
Updated for V1.2
plotsystem_ftp_configurationsplotsystem_countriesplotsystem_serversplotsystem_city_projectsplotsystem_buildersplotsystem_reviewsplotsystem_difficultiesplotsystem_plots

Configuration data for the ftp servers.
-
schematic_pathspecifies the path to the schematic folder. If no path is specified,/var/lib/Plot System/schematicsis used by default. -
address,port,username&passwordcredentials for the fpt server.
schematic_path: "/plot-system/schematics"
address: "177.013"
port: 22,
username: "jo_kil",
password: "********"
All countries within one Build team are stored in this table.
-
server_idrefers to the server the country runs on. -
nameis the country ISO code. -
head_idis the id for the playerhead corresponding to the country flag. Player head ids can be found at https://minecraft-heads.com/. If no id is specified, a steve head will be used by default.
server_id: 2,
name: "AT",
head_id: "40404",
This table is for all Terra servers.
-
ftp_configuration_idthe fpt server from which to paste from. Only leave blank if you use simbolic links. If two servers use the same fpt configuration, both will paste the schematic. -
namename of the server.
ftp_configuration_id: 1,
name: nitrado-net-ftp
The city projects each contain a number of plots. Multiple buildsites can be present in a singe city.
-
country_idwhat country the city is in. -
namebuild project name. -
descriptionbuild site description. -
visibleif the buildsite is shown to builders / can be build on.
country_id: 1
name: vienna city center
description: the center of the city of vienna
visible: 1
Table for builders, which can build on plots.
-
uuidbuilder uuid. -
namebuilder name. -
scoretotal accumulated number of points. -
completed_plotsnumber of plots completed. -
first_slot,second_slot&third_slotin each of these attributes one plot is store, this is to ensure that only 3 plots can be built at once. This value is NULL if the plot has no slot.
uuid: "c36ceb6f-da46-43de-a49a-7137cd5d5552"
name: "JO_KIL"
score: 153
completed_plots: 37
first_slot: 345
second_slot: NULL
third_slot: 457
Reviews for a plot, multiple reviews can exist for one plot if a build is rejected.
-
reviewer_uuidthe uuid of the player reviewing the plot -
ratingthe rating of each category in a stringified array. Each category has a value from 0-5 (0-> plot is rejected, 1 -> worst, 5 -> best). There are 4 categories (accuracy, block pallete, detailing, technique). -
feedbackthe written feedback of the plot -
review_datetimestamp when review is completed -
sentboolean if the builder of the plot has recieved his review. This happens automatically when the builder joins the server.
reviewer_uuid: "c36ceb6f-da46-43de-a49a-7137cd5d5552"
rating: "2, 4, 5, 3"
feedback: "nice plot (‾◡◝)"
review_date: 2001-9-11
sent: 1
Different difficulty tiers for the plots. Builders can only build on a certain difficulty if thier score is high enough.
-
namename of the difficulty. -
multiplierscore multiplier for this plot. The score is calculated by multiplying the review sum with this value. -
score_requirementthe minumum score a builder requires to build this plot
name: "Literally Impossible"
multiplier: 100000
score_requirement: 1000
city_project_iddifficulty_idreview_idowner_uuidmember_uuidsstatusmc_coordinates- ``






