Create a table bookings with booking_id INTEGER PRIMARY KEY, check_in DATE NOT NULL and check_out DATE NOT NULL. Reject any booking where check_out is not after check_in.
This question starts with an empty database.
Run your code to see the output here.