I'm creating an app to schedule classes with professors. What is the best way to store the availabilities of professors. (ex: Monday available from 08:00 to 12:00 and from 15:00 to 20:00).
I created a custom function that list all 1 hour slot available for the day selected on the calendar.
I am worried about that if I store dayofweek in english my function won't get the right document if the phone of the user is another language
This is the schema of my collections
AgendaProfessor:
DayOfWeek (string)
start1 (dateTime)
end1 (dateTime)
start2 (dateTime)
end2 (dateTime)
Bookings:
Professor (userRef)
Student (userRef)
start (dateTime)
end (dateTime)
price (integer)