Guest User

Untitled

a guest
Mar 23rd, 2018
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. // GINO JSON
  2.  
  3. const user = {
  4. email: "email@mail.com",
  5. password: "123",
  6. role: 1 // 1 parent 2 student 3 teacher
  7. };
  8. // 1 Parent
  9. const userMetaParent = {
  10. children: [1, 2, 3] // Children IDS
  11. };
  12.  
  13. const userMetaStudent = {
  14. subjects: [1, 2, 3], // Subject Ids
  15. schedules: [1, 2, 3],
  16. assignment: [1, 2, 3], // Ass ID
  17. section: 1, //Section id
  18. grade: 4
  19. };
  20.  
  21. const userMetaTeacher = {
  22. schedules: [1, 2, 3], //Schedule ID
  23. sections: [1, 2, 3] // Section ID
  24. };
  25.  
  26. const section = {
  27. id: 1,
  28. name: "J",
  29. teacher: 1, // Teacher ID
  30. students: [1, 2, 3] // Section Students
  31. };
  32.  
  33. const schedule = {
  34. id: 1,
  35. teacher: 1, // Teacher id
  36. subject: 1, // Subject ID - Math
  37. students: [1, 2, 3], // Schedule Students,
  38. days: [1, 2] // 1 - Mon 2 - Tue and so on 7 - sun
  39. };
  40.  
  41. const subjects = [
  42. {
  43. id: 1,
  44. name: "Math - 1",
  45. description: "Mathalino",
  46. grade: 1
  47. },
  48. {
  49. id: 2,
  50. name: "Physics -1",
  51. description: "Masakit sa ulo",
  52. grade: 2
  53. }
  54. ];
  55.  
  56. const assignment = {
  57. id: 1,
  58. name: "",
  59. description: "",
  60. completed: false
  61. };
Add Comment
Please, Sign In to add comment