mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Improved the import file format
This commit is contained in:
parent
794b369a33
commit
57bf4013f1
2 changed files with 23 additions and 11 deletions
|
@ -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
|
- Semester
|
||||||
- Program
|
- Program
|
||||||
- Part
|
- Part
|
||||||
|
@ -12,7 +16,7 @@
|
||||||
## How to understand this document
|
## How to understand this document
|
||||||
|
|
||||||
### ID
|
### 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
|
### Table
|
||||||
- id -> 0 / 1 / 2 / ... (starts with 0 and has step 1)
|
- 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
|
## Tables
|
||||||
|
|
||||||
|
### Semester (Only one!)
|
||||||
|
- label -> WS / SS
|
||||||
|
- year -> 21 / 22 / ...
|
||||||
|
|
||||||
### Part
|
### Part
|
||||||
- id
|
- id
|
||||||
- number -> 1 / 2 / ...
|
- 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
|
||||||
- student_number
|
- student_number
|
||||||
- first_name
|
- first_name
|
||||||
- last_name
|
- last_name
|
||||||
- uni_mail
|
- uni_email
|
||||||
- *contact_mail
|
- *contact_email
|
||||||
- *bachelor_thesis
|
- *bachelor_thesis
|
||||||
- *bachelor_thesis_work_group
|
- *bachelor_thesis_work_group
|
||||||
- *note
|
- *note
|
|
@ -1,3 +1,7 @@
|
||||||
|
#Semester
|
||||||
|
label year
|
||||||
|
WS 22
|
||||||
|
|
||||||
#Part
|
#Part
|
||||||
id number program_label
|
id number program_label
|
||||||
0 1 BS
|
0 1 BS
|
||||||
|
@ -6,11 +10,11 @@ id number program_label
|
||||||
3 2 MS
|
3 2 MS
|
||||||
|
|
||||||
#Student
|
#Student
|
||||||
student_number first_name last_name uni_mail contact_mail bachelor_thesis bachelor_thesis_work_group note
|
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
|
12233 Max Mustermann max@students.uni-mainz.de maxi@protonmail.com
|
||||||
13344 Kevin Bäcker kevin@students.uni-mainz.de kevi@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
|
24455 Dora Musterfrau dora@students.uni-mainz.de Acceleration on Mars Physikum Random note
|
||||||
55122 Felix Singer fel@students.uni-mainz.de Detektor X Physikum2
|
55122 Felix Singer fel@students.uni-mainz.de Detector X Physikum2
|
||||||
|
|
||||||
#Group
|
#Group
|
||||||
id number program_label
|
id number program_label
|
Loading…
Reference in a new issue