1.7 KiB
Executable File
1.7 KiB
Executable File
Datenbank ist nicht mit SQLite erstellt worden. Dies in die Technische Dokumentation einbeziehen.
Fahrzeug
| id | marke | model | release_year | kennzeichen | availability | location | kategorie |
|---|---|---|---|---|---|---|---|
| 1 | Bobby Car | Bobby Car | 1989 | HH AUR190 | TRUE | {0.1222, 0.7888} | Gebrauchtfahrzeug |
| 2 | Audi | A4 | 2021 | HB INS177 | FALSE | {0.8999,1.54} | Premium |
| 3 | Fiat | Cubo | 2003 | HB INS178 | TRUE | {0.8121, 0.31611} | Gast |
Booking
Booking sollte ebenfalls den Nutzer enthalten, der das Fahrzeug gebucht hat!
| id | vehicle_id | start_date | end_date | start_location | end_location | status | zahlungsmethode | bucher |
|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 01.12.2024 | 12.12.2024 | {9.18, 0.2} | {9.11,0.233} | bezahlt | PayPal | 2 |
| 2 | 3 | 15. 04.2025 | 16.05.2025 | {0.42} | {0.123} | zahlung anstehend | Bargeld | 4 |
Tarifklasse
Anzahl der Autos in der Datenbank ist redundant und kann anhand eines Commands erledigt werden. Ist das hier überhaupt Sinnvoll?
| id | tarif | price_per_day |
|---|---|---|
| 1 | Gläubiger | 0 |
| 2 | Atheist | 0.20€ |
| 3 | Prophet | 0.50€ |
| 4 | Bischof | 1€ |
| 5 | Bredi | 10€ |
| 6 | GOD | 25€ |
Benutzer
| id | username | first_name | last_name | birthdate | password | role | |
|---|---|---|---|---|---|---|---|
| 1 |