new db model design

This commit is contained in:
philipp 2023-03-25 14:47:34 +01:00
parent a166b73ebe
commit 5e45010b68

View File

@ -1,3 +1,10 @@
# Process
- [ ] Import rowing members -> "Firstname Lastname"
- [ ] New name -> is_guest = True
- [ ] New trip from cox: define amount of rowers
- [ ] guests only see guest trips
# Edge case # Edge case
- Trip in the morning on usi rowing day - Trip in the morning on usi rowing day
- after N people (/ cox) -> red highlighted -> queue - after N people (/ cox) -> red highlighted -> queue
@ -14,16 +21,28 @@
- id: i32 - id: i32
- name: String - name: String
- pw: Option<String> - pw: Option<String>
- is_cox: bool - is_cox: bool (false)
- is_admin: bool - is_admin: bool (false)
- day - is_guest: bool (true)
- day: chrono::NaiveDate - planned_event
- id: i32
- name: String (e.g. "USI")
- planned_amount_cox: i32 - planned_amount_cox: i32
- planned_starting_time: Option<String> - trip_details_id: i32 (trip_details.id)
- open_registration: bool - open_registration: bool
- allow_guests: bool (false)
- trip - trip
- day: String - id: i32
- user_id: i32 - cox_id: i32 (user.id)
- cox_id: Option<i32> - trip_details: Option<i32> (trip_details.id)
- begin: Option<String> - planned_trip_id: Option<i32> (planned_trip.id)
- created: chrono::DateTime
- trip_details
- id: i32
- planned_starting_time: String
- max_people: i32
- day: chrono::NaiveDate
- user_trip
- trip_details_id: i32 (trip_details.id)
- user_id: i32 (user.id)
- created: chrono::DateTime - created: chrono::DateTime