Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MODELO DE DATOS DE HORARIOS:
- - formato horario:
- TIMETABLE: {
- "createdOn" : ISODATE: YYYY-MM-DD,
- "teachers": $ref[]: 'ref1,ref2,ref3',
- "checkpoints": $ref[],
- "duration" : 30 | 45 | 60,
- "end" : string: HH:MM,
- "start" : string: HH:MM,
- "name" : string,
- "planning" : {
- [key: "Monday" | "Thursday" ...] : {
- [key: string: HH:MM] : {
- "end" : string: HH:MM,
- "price" : 20,
- "start" : string: HH:MM,
- "teacher" : $ref
- "checkpoint" : $ref
- },
- n: n
- }
- }
- }
- - guardar horario
- /data/schools/VVpI4e7CSTe8Kg4bGkejgiFojB33/timetables/$tid
- { ...TIMETABLE }
- - asignar horario - coche
- - panel
- /data/schools/VVpI4e7CSTe8Kg4bGkejgiFojB33/timetables/$tid/cars
- {
- [key: ISODATE: YYYY-MM-DD]: $plate,
- n: n,
- }
- - back (readonly)
- /data/schools/VVpI4e7CSTe8Kg4bGkejgiFojB33/cars/$plate/timetables
- {
- [key: ISODATE: YYYY-MM-DD]: { ...TIMETABLE },
- n: n,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement