Tutorial: Data Model

Data Model

{publisher:"MyEventCalendar", myeventcalendarId:"23453636dfdhay",start:"2019-08-15",end:"2019-08-16", title:"Event 1", backgroundColor:"yellow"},
Keys Value Required Description
title String Require This is title of the event
start String App generated based on user selection This is start date of the event. Date is in UTC time
end String App generated based on user selection This is end date of the event.Date is in UTC time
publisher String App generated The is generated by the app. This determines if the event is editable since it is created by the app
Location String Not required User types in the location of the event.
backgroundColor String Not required but recommended This gives a different background color to different events. Helps in easily indentifing events. Usually hex color codes
dayOfWeek Array Not required but if needed, it is app generated based on user selection This is need if you want events to reoccur. Array container the days as number, with Sunday equivating to number 0
endRecur String Not required but if used, it is app generated based on user selection Date to end recurring events. Date is in UTC