diff --git a/database_input.md b/database_import.md similarity index 62% rename from database_input.md rename to database_import.md index 3f2d992..6a1fc87 100644 --- a/database_input.md +++ b/database_import.md @@ -1,6 +1,10 @@ -# Database input +# Database import -## Has to be done on the website +The import file has to be a text file (with .txt at the end) encoded in UTF-8. It has to strictly follow the required format. + +You can take a look at the file "example_database_import.txt" for an example. + +## Has to be done on the web interface - Semester - Program - Part @@ -12,7 +16,7 @@ ## How to understand this document ### ID -None of the mentioned ids in this document is meant as database id. The ids here only refer to the inputed instances. The id in the database is assigned automatically. +None of the mentioned ids in this document is meant as database id. The ids here only refer to the imported instances. The id in the database is assigned automatically. ### Table - id -> 0 / 1 / 2 / ... (starts with 0 and has step 1) @@ -23,17 +27,21 @@ The type of the attributes can be seen in "DB.drawio". Some attributes have cons ## Tables +### Semester (Only one!) +- label -> WS / SS +- year -> 21 / 22 / ... + ### Part - id - number -> 1 / 2 / ... -- program_label -> "BS" / "MS" / "BE" / ... (for bachelor of science, master of sience, bachelor of education, etc.) +- program_label -> BS / MS / BE / ... (for bachelor of science, master of sience, bachelor of education, etc.) ### Student - student_number - first_name - last_name -- uni_mail -- *contact_mail +- uni_email +- *contact_email - *bachelor_thesis - *bachelor_thesis_work_group - *note diff --git a/example_database_input.txt b/example_database_import.txt similarity index 66% rename from example_database_input.txt rename to example_database_import.txt index 72ea8e9..1d13a89 100644 --- a/example_database_input.txt +++ b/example_database_import.txt @@ -1,3 +1,7 @@ +#Semester +label year +WS 22 + #Part id number program_label 0 1 BS @@ -6,11 +10,11 @@ id number program_label 3 2 MS #Student -student_number first_name last_name uni_mail contact_mail bachelor_thesis bachelor_thesis_work_group note -12233 Max Mustermann max@students.uni-mainz.de maxi@protonmail.com -13344 Kevin Bäcker kevin@students.uni-mainz.de kevi@protonmail.com -24455 Dora Musterfrau dora@students.uni-mainz.de Erdbeschleunigung auf dem Mars Physikum Random Notiz -55122 Felix Singer fel@students.uni-mainz.de Detektor X Physikum2 +student_number first_name last_name uni_email contact_email bachelor_thesis bachelor_thesis_work_group note +12233 Max Mustermann max@students.uni-mainz.de maxi@protonmail.com +13344 Kevin Bäcker kevin@students.uni-mainz.de kevi@protonmail.com +24455 Dora Musterfrau dora@students.uni-mainz.de Acceleration on Mars Physikum Random note +55122 Felix Singer fel@students.uni-mainz.de Detector X Physikum2 #Group id number program_label