models.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. package api
  2. type Professionalmodule struct {
  3. ID uint
  4. Name string
  5. Shortname string
  6. IDCycle uint
  7. }
  8. type Cycle struct {
  9. ID uint
  10. Name string
  11. Shortname string
  12. }
  13. type Lesson struct {
  14. ID uint
  15. Timestart string
  16. Timeend string
  17. }
  18. type Attestation struct {
  19. ID uint
  20. Name string
  21. Shortname string
  22. }
  23. type Subjectofgroup struct {
  24. ID uint
  25. IDSubject uint
  26. IDGroup uint
  27. IDTeacher uint
  28. IDSemester uint
  29. IDAttestation uint
  30. Hoursquantity uint
  31. }
  32. type Subject struct {
  33. ID uint
  34. Name string
  35. Shortname string
  36. ID_professionalmodule uint
  37. IDStype uint
  38. }
  39. type Group struct {
  40. ID uint
  41. IDSpecialty uint
  42. Year uint
  43. IDTeacher uint
  44. Groupnumber string
  45. Studentsquantity uint
  46. Isbudget bool
  47. IDPlan uint
  48. }
  49. type Semester struct {
  50. ID uint
  51. Weeksquantity uint
  52. }
  53. type Exampleprogram struct {
  54. ID uint
  55. IDSpecialty uint
  56. }
  57. type Teacher struct {
  58. ID uint
  59. Name string
  60. IDClassroom uint
  61. Surname string
  62. Patronymic string
  63. }
  64. type Scheduleofgroup struct {
  65. ID uint
  66. IDSubject uint
  67. IDGroup uint
  68. IDSchedule uint
  69. IDLessonnumber uint
  70. IDClassroom uint
  71. }
  72. type Schedule struct {
  73. ID uint
  74. IsShort bool
  75. IDGroup uint
  76. IsEvenWeek bool
  77. Weekday string
  78. }
  79. type Classroom struct {
  80. ID uint
  81. Placequantity uint
  82. Iscomputer bool
  83. IDBuilding uint
  84. Name string
  85. }
  86. type Building struct {
  87. ID uint
  88. Address string
  89. }
  90. type Specialty struct {
  91. ID uint
  92. Code string
  93. Name string
  94. IDDuration uint
  95. }
  96. type DurationOfStudy struct {
  97. ID uint
  98. Yearsquantity uint
  99. }
  100. type Subjecttype struct {
  101. ID uint
  102. Name string
  103. }
  104. type Subjectofplan struct {
  105. ID uint
  106. IDPlan uint
  107. IDSubject uint
  108. Hoursquantitytotal uint
  109. independentwork uint
  110. consulthours uint
  111. }
  112. type Studyplan struct {
  113. ID uint
  114. IDSpecialty uint
  115. IDGroup uint
  116. Isarchive bool
  117. }
  118. type Subjectofexample struct {
  119. ID uint
  120. IDSubject uint
  121. IDExampleprogram uint
  122. Totalhours uint
  123. Preferredcourse string
  124. Labhours uint
  125. Practicehours uint
  126. }
  127. type VariateHours struct {
  128. IDSubject uint
  129. Freehours uint
  130. }