forked from Ruderverein-Donau-Linz/rowt
simplify db model (no open_registration as you can simply set trip_details.max_people=0), use proper table name
This commit is contained in:
parent
54d2b5cf68
commit
202964bfa4
@ -20,7 +20,7 @@
|
|||||||
- users
|
- users
|
||||||
- id: i32
|
- id: i32
|
||||||
- name: String
|
- name: String
|
||||||
- pw: Option<String>
|
- pw: String
|
||||||
- is_cox: bool (false)
|
- is_cox: bool (false)
|
||||||
- is_admin: bool (false)
|
- is_admin: bool (false)
|
||||||
- is_guest: bool (true)
|
- is_guest: bool (true)
|
||||||
@ -29,13 +29,12 @@
|
|||||||
- name: String (e.g. "USI")
|
- name: String (e.g. "USI")
|
||||||
- planned_amount_cox: i32
|
- planned_amount_cox: i32
|
||||||
- trip_details_id: i32 (trip_details.id)
|
- trip_details_id: i32 (trip_details.id)
|
||||||
- open_registration: bool
|
|
||||||
- allow_guests: bool (false)
|
- allow_guests: bool (false)
|
||||||
- trip
|
- trip
|
||||||
- id: i32
|
- id: i32
|
||||||
- cox_id: i32 (user.id)
|
- cox_id: i32 (user.id)
|
||||||
- trip_details: Option<i32> (trip_details.id)
|
- trip_details: Option<i32> (trip_details.id)
|
||||||
- planned_trip_id: Option<i32> (planned_trip.id)
|
- planned_event_id: Option<i32> (planned_event.id)
|
||||||
- created: chrono::DateTime
|
- created: chrono::DateTime
|
||||||
- trip_details
|
- trip_details
|
||||||
- id: i32
|
- id: i32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user