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:
		@@ -20,7 +20,7 @@
 | 
			
		||||
- users
 | 
			
		||||
	- id: i32
 | 
			
		||||
	- name: String
 | 
			
		||||
	- pw: Option<String>
 | 
			
		||||
	- pw: String
 | 
			
		||||
	- is_cox: bool (false)
 | 
			
		||||
	- is_admin: bool (false)
 | 
			
		||||
	- is_guest: bool (true)
 | 
			
		||||
@@ -29,13 +29,12 @@
 | 
			
		||||
	- name: String (e.g. "USI")
 | 
			
		||||
	- planned_amount_cox: i32
 | 
			
		||||
	- trip_details_id: i32 (trip_details.id)
 | 
			
		||||
	- open_registration: bool
 | 
			
		||||
	- allow_guests: bool (false)
 | 
			
		||||
- trip
 | 
			
		||||
	- id: i32
 | 
			
		||||
	- cox_id: i32 (user.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
 | 
			
		||||
- trip_details
 | 
			
		||||
	- id: i32
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user