-- modify bookings - task 1
-- changes:
--   changed BookingDate (Reserved) data type from date to datetime, because I assumed that Little Lemon
--   allows wants bookings per day and table - a table is considered blocked for 2 hours
--   added EmployeeID input parameter
-- noqa: disable=CP03,LT02,RF03
create procedure AddBooking (
    in BookingID int, in Reserved datetime, in TableNumber int, in CustomerID int, in EmployeeID int
)
begin
    insert into Bookings (BookingID, Reserved, TableNumber, CustomerID, EmployeeID) values (
        BookingID, Reserved, TableNumber, CustomerID, EmployeeID
    );
    select concat("New booking added") as Confirmation;
end
