 		(apply sql/insert! c "seats" 
 			(gen-seats-data seat-schema))))
 
-(defn- migrate__seats_for_judges! []
+(defn migrate__seats_for_judges! []
 	(create-booking "ЖУРІ" "-" [])
 	)
 




;; TODO: Ideally in one trasaction
;; TODO: Check seats availability
;; TODO: Apdate seats with status 
(defn create-booking [name phone seats]
	(let [booking-id (gen-id)]
		(sql/with-db-connection [c CONN] 
			(sql/insert! c "bookings"
	                  {
	                  	:id booking-id
	                  	:name name
	                  	:phone phone 
	                  }
			)
		)
		booking-id
	)
)



	(migrate-live! "1_reinit_seats" migrate__reinit_seats!)

	(migrate-live! "2_seats_for_judges"  migrate__seats_for_judges!)

)

