From 62c30001cdedcfc69719de8fe6d76f2672185007 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Wed, 18 Aug 2021 18:20:47 +0200 Subject: [PATCH] Added database_input.md with example --- database_input.md | 65 ++++++++++++++++++++++++++++++++++++++ example_database_input.txt | 42 ++++++++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 database_input.md create mode 100644 example_database_input.txt diff --git a/database_input.md b/database_input.md new file mode 100644 index 0000000..3f2d992 --- /dev/null +++ b/database_input.md @@ -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 diff --git a/example_database_input.txt b/example_database_input.txt new file mode 100644 index 0000000..72ea8e9 --- /dev/null +++ b/example_database_input.txt @@ -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