Closed MingHaoC closed 3 years ago
Update to the table CREATE TABLE busyschedule(aid VARCHAR2(100) NOT NULL, title VARCHAR2(40), start_time VARCHAR2(19), end_time VARCHAR2(19), color VARCHAR2(7), userid VARCHAR2(50), PRIMARY KEY(aid), FOREIGN KEY (userid) REFERENCES user(uuid) );
update the busyschedule SQL command for insert
I just updated the schema for creating busyschedule table and updated the insert command. I also tested the endpoint with postman.
Need test with the actual frontend
The create busyschdule features was tested with front-end on 27-Nov-2020 and it works with no error.
When user logs in, the calendar will display user busy event as well now, tested with front-end on 28-Nov-2020, works with no error
-Update the busy table so it matches what front end is sending back. -Busy table schema CREATE TABLE busyschedule(aid NUMBER(15) NOT NULL, title varchar2(40), start_time varchar2(19), end_time varchar2(19), bgColor varchar2(7), dragBgColor varchar2(7), userid varchar2(50), PRIMARY KEY(aid), FOREIGN KEY (userid) REFERENCES user(uuid) );