1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

Improved the import file format

This commit is contained in:
Mo 2021-09-11 20:44:42 +02:00
parent 794b369a33
commit 57bf4013f1
2 changed files with 23 additions and 11 deletions

View file

@ -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

View file

@ -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