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

74 lines
1.5 KiB
Markdown
Raw Normal View History

2021-09-11 18:44:42 +00:00
# Database import
2021-08-18 16:20:47 +00:00
2021-09-11 18:44:42 +00:00
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
2021-08-18 16:20:47 +00:00
- Semester
- Program
- Part
- User
- Assistant
- Experiment
- Semester Experiment
## How to understand this document
### ID
2021-09-11 18:44:42 +00:00
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.
2021-08-18 16:20:47 +00:00
### 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
2021-09-11 18:44:42 +00:00
### Semester (Only one!)
- label -> WS / SS
- year -> 21 / 22 / ...
2021-08-18 16:20:47 +00:00
### Part
- id
- number -> 1 / 2 / ...
2021-09-11 18:44:42 +00:00
- program_label -> BS / MS / BE / ... (for bachelor of science, master of sience, bachelor of education, etc.)
2021-08-18 16:20:47 +00:00
### Student
- student_number
- first_name
- last_name
2021-09-11 18:44:42 +00:00
- uni_email
- *contact_email
2021-08-18 16:20:47 +00:00
- *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