mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Added database_input.md with example
This commit is contained in:
parent
c2399be719
commit
62c30001cd
2 changed files with 107 additions and 0 deletions
65
database_input.md
Normal file
65
database_input.md
Normal file
|
@ -0,0 +1,65 @@
|
|||
# Database input
|
||||
|
||||
## Has to be done on the website
|
||||
- Semester
|
||||
- Program
|
||||
- Part
|
||||
- User
|
||||
- Assistant
|
||||
- Experiment
|
||||
- Semester Experiment
|
||||
|
||||
## 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.
|
||||
|
||||
### Table
|
||||
- id -> 0 / 1 / 2 / ... (starts with 0 and has step 1)
|
||||
- attribute -> example / example / ...
|
||||
- ...
|
||||
|
||||
The type of the attributes can be seen in "DB.drawio". Some attributes have constraints marked also in "DB.drawio". Optional attributes are marked in this document with "*" at the beginning.
|
||||
|
||||
## Tables
|
||||
|
||||
### Part
|
||||
- id
|
||||
- number -> 1 / 2 / ...
|
||||
- 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
|
||||
- *bachelor_thesis
|
||||
- *bachelor_thesis_work_group
|
||||
- *note
|
||||
|
||||
### Group
|
||||
- id
|
||||
- number -> 1 / 2 / ...
|
||||
- program_label
|
||||
|
||||
### Part Student
|
||||
- student_number
|
||||
- part_id
|
||||
- group_id
|
||||
|
||||
### Experiment
|
||||
- id
|
||||
- number -> 1 / 2 / ...
|
||||
- program_label
|
||||
|
||||
### Group Experiment
|
||||
- id
|
||||
- experiment_id
|
||||
- group_id
|
||||
|
||||
### Appointment
|
||||
- date -> 21.08.2021
|
||||
- special -> 1 / 0
|
||||
- group_experiment_id
|
||||
- assistant_email
|
42
example_database_input.txt
Normal file
42
example_database_input.txt
Normal file
|
@ -0,0 +1,42 @@
|
|||
#Part
|
||||
id number program_label
|
||||
0 1 BS
|
||||
1 2 BS
|
||||
2 1 MS
|
||||
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
|
||||
|
||||
#Group
|
||||
id number program_label
|
||||
0 1 BS
|
||||
1 1 MS
|
||||
|
||||
#PartStudent
|
||||
student_number part_id group_id
|
||||
12233 0 0
|
||||
13344 0 0
|
||||
24455 2 1
|
||||
55122 2 1
|
||||
|
||||
#Experiment
|
||||
id number program_label
|
||||
0 1 BS
|
||||
1 2 BS
|
||||
2 1 MS
|
||||
|
||||
#GroupExperiment
|
||||
id experiment_id group_id
|
||||
0 1 0
|
||||
1 2 1
|
||||
|
||||
#Appointment
|
||||
date special group_experiment_id assistant_email
|
||||
20.08.2022 1 0 julia@uni-mainz.de
|
||||
21.08.2022 1 0 julia@uni-mainz.de
|
||||
15.11.2022 0 1 soeren@uni-mainz.de
|
Loading…
Reference in a new issue