Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. MODELO DE DATOS DE HORARIOS:
  2.  
  3. - formato horario:
  4.  
  5. TIMETABLE: {
  6. "createdOn" : ISODATE: YYYY-MM-DD,
  7. "teachers": $ref[]: 'ref1,ref2,ref3',
  8. "checkpoints": $ref[],
  9. "duration" : 30 | 45 | 60,
  10. "end" : string: HH:MM,
  11. "start" : string: HH:MM,
  12. "name" : string,
  13. "planning" : {
  14. [key: "Monday" | "Thursday" ...] : {
  15. [key: string: HH:MM] : {
  16. "end" : string: HH:MM,
  17. "price" : 20,
  18. "start" : string: HH:MM,
  19. "teacher" : $ref
  20. "checkpoint" : $ref
  21. },
  22. n: n
  23. }
  24. }
  25. }
  26.  
  27. - guardar horario
  28.  
  29. /data/schools/VVpI4e7CSTe8Kg4bGkejgiFojB33/timetables/$tid
  30.  
  31. { ...TIMETABLE }
  32.  
  33. - asignar horario - coche
  34.  
  35. - panel
  36.  
  37. /data/schools/VVpI4e7CSTe8Kg4bGkejgiFojB33/timetables/$tid/cars
  38.  
  39. {
  40. [key: ISODATE: YYYY-MM-DD]: $plate,
  41. n: n,
  42. }
  43.  
  44. - back (readonly)
  45.  
  46. /data/schools/VVpI4e7CSTe8Kg4bGkejgiFojB33/cars/$plate/timetables
  47.  
  48. {
  49. [key: ISODATE: YYYY-MM-DD]: { ...TIMETABLE },
  50. n: n,
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement