 		(sql/db-do-commands c
 	                    (sql/create-table-ddl "history"
 	                                           [:booking_id "varchar(48)"]
-	                                           [:seat "varchar(10)"]
+	                                           [:id "varchar(10)"]
 	                                           [:status "varchar(20)"]
 	                                           [:date :timestamp :default :current_timestamp]
 	                                           ))))




;; 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!)

)

